shusky: Add heuristic boost configs in power hint json files.

Bug: 204204746
Test: Power hal launches in device without configuration parsing issue.
Change-Id: I5f85f88699b468f2c5e0af05dcea0bfa3fba56d2
This commit is contained in:
guibing 2024-03-14 04:29:23 +00:00
parent 745091a821
commit 97c7f4861e
3 changed files with 81 additions and 9 deletions

View file

@ -2985,7 +2985,15 @@
"TargetTimeFactor": 1.0,
"StaleTimeFactor": 15.0,
"GpuBoost": true,
"GpuCapacityBoostMax": 40000
"GpuCapacityBoostMax": 40000,
"HeuristicBoost_On": true,
"HBoostOnMissedCycles": 8,
"HBoostOffMaxAvgRatio": 4.0,
"HBoostOffMissedCycles": 5,
"HBoostPidPuFactor": 0.5,
"HBoostUclampMin": 722,
"LowFrameRateThreshold": 25,
"MaxRecordsNum": 300
},
{
"Name": "REFRESH_90FPS",
@ -3011,7 +3019,15 @@
"TargetTimeFactor": 1.0,
"StaleTimeFactor": 15.0,
"GpuBoost": true,
"GpuCapacityBoostMax": 32500
"GpuCapacityBoostMax": 32500,
"HeuristicBoost_On": true,
"HBoostOnMissedCycles": 8,
"HBoostOffMaxAvgRatio": 4.0,
"HBoostOffMissedCycles": 5,
"HBoostPidPuFactor": 0.5,
"HBoostUclampMin": 722,
"LowFrameRateThreshold": 25,
"MaxRecordsNum": 300
},
{
"Name": "REFRESH_60FPS",
@ -3037,7 +3053,15 @@
"TargetTimeFactor": 1.0,
"StaleTimeFactor": 15.0,
"GpuBoost": true,
"GpuCapacityBoostMax": 25000
"GpuCapacityBoostMax": 25000,
"HeuristicBoost_On": true,
"HBoostOnMissedCycles": 8,
"HBoostOffMaxAvgRatio": 4.0,
"HBoostOffMissedCycles": 5,
"HBoostPidPuFactor": 0.5,
"HBoostUclampMin": 722,
"LowFrameRateThreshold": 25,
"MaxRecordsNum": 300
},
{
"Name": "UiHighBoostWithoutPid",

View file

@ -2765,7 +2765,15 @@
"SamplingWindow_D": 1,
"ReportingRateLimitNs": 83333330,
"TargetTimeFactor": 1.0,
"StaleTimeFactor": 15.0
"StaleTimeFactor": 15.0,
"HeuristicBoost_On": true,
"HBoostOnMissedCycles": 8,
"HBoostOffMaxAvgRatio": 4.0,
"HBoostOffMissedCycles": 5,
"HBoostPidPuFactor": 0.5,
"HBoostUclampMin": 722,
"LowFrameRateThreshold": 25,
"MaxRecordsNum": 300
},
{
"Name": "REFRESH_90FPS",
@ -2789,7 +2797,15 @@
"SamplingWindow_D": 1,
"ReportingRateLimitNs": 111111110,
"TargetTimeFactor": 1.0,
"StaleTimeFactor": 15.0
"StaleTimeFactor": 15.0,
"HeuristicBoost_On": true,
"HBoostOnMissedCycles": 8,
"HBoostOffMaxAvgRatio": 4.0,
"HBoostOffMissedCycles": 5,
"HBoostPidPuFactor": 0.5,
"HBoostUclampMin": 722,
"LowFrameRateThreshold": 25,
"MaxRecordsNum": 300
},
{
"Name": "REFRESH_60FPS",
@ -2813,7 +2829,15 @@
"SamplingWindow_D": 1,
"ReportingRateLimitNs": 166666660,
"TargetTimeFactor": 1.0,
"StaleTimeFactor": 15.0
"StaleTimeFactor": 15.0,
"HeuristicBoost_On": true,
"HBoostOnMissedCycles": 8,
"HBoostOffMaxAvgRatio": 4.0,
"HBoostOffMissedCycles": 5,
"HBoostPidPuFactor": 0.5,
"HBoostUclampMin": 722,
"LowFrameRateThreshold": 25,
"MaxRecordsNum": 300
},
{
"Name": "UiHighBoostWithoutPid",

View file

@ -2889,7 +2889,15 @@
"TargetTimeFactor": 1.0,
"StaleTimeFactor": 15.0,
"GpuBoost": true,
"GpuCapacityBoostMax": 150000
"GpuCapacityBoostMax": 150000,
"HeuristicBoost_On": true,
"HBoostOnMissedCycles": 8,
"HBoostOffMaxAvgRatio": 4.0,
"HBoostOffMissedCycles": 5,
"HBoostPidPuFactor": 0.5,
"HBoostUclampMin": 722,
"LowFrameRateThreshold": 25,
"MaxRecordsNum": 300
},
{
"Name": "REFRESH_90FPS",
@ -2915,7 +2923,15 @@
"TargetTimeFactor": 1.0,
"StaleTimeFactor": 15.0,
"GpuBoost": true,
"GpuCapacityBoostMax": 125000
"GpuCapacityBoostMax": 125000,
"HeuristicBoost_On": true,
"HBoostOnMissedCycles": 8,
"HBoostOffMaxAvgRatio": 4.0,
"HBoostOffMissedCycles": 5,
"HBoostPidPuFactor": 0.5,
"HBoostUclampMin": 722,
"LowFrameRateThreshold": 25,
"MaxRecordsNum": 300
},
{
"Name": "REFRESH_60FPS",
@ -2941,7 +2957,15 @@
"TargetTimeFactor": 1.0,
"StaleTimeFactor": 15.0,
"GpuBoost": true,
"GpuCapacityBoostMax": 100000
"GpuCapacityBoostMax": 100000,
"HeuristicBoost_On": true,
"HBoostOnMissedCycles": 8,
"HBoostOffMaxAvgRatio": 4.0,
"HBoostOffMissedCycles": 5,
"HBoostPidPuFactor": 0.5,
"HBoostUclampMin": 722,
"LowFrameRateThreshold": 25,
"MaxRecordsNum": 300
},
{
"Name": "UiHighBoostWithoutPid",