From 2d8da5bd44c5279b8d1acdfdcf7492439d3bcfb8 Mon Sep 17 00:00:00 2001 From: Jimmy Shiu Date: Thu, 18 Mar 2021 13:25:50 +0800 Subject: [PATCH] powerhint: Add FIXED_PERFORMANCE hints According VTS, PowerHal must support FixedPerformance Mode. Add FIXED_PERFORMANCE hints to fix the VTS failure. Test: atest VtsHalPowerTargetTest Bug: 183069028 Change-Id: I1eb6276108593f915f5043efb5a0c7f659c109e9 --- powerhint.json | 36 ++++++++++++++++++++++++++++++++++++ powerhint_a0.json | 24 ++++++++++++++++++++++++ powerhint_a1.json | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 96 insertions(+) diff --git a/powerhint.json b/powerhint.json index 2133b8b0..b2a77d3b 100644 --- a/powerhint.json +++ b/powerhint.json @@ -231,6 +231,42 @@ "Duration": 0, "Value": "471000" }, + { + "PowerHint": "FIXED_PERFORMANCE", + "Node": "CPUBigClusterMaxFreq", + "Duration": 0, + "Value": "9999999" + }, + { + "PowerHint": "FIXED_PERFORMANCE", + "Node": "CPUBigClusterMinFreq", + "Duration": 0, + "Value": "9999999" + }, + { + "PowerHint": "FIXED_PERFORMANCE", + "Node": "CPUMidClusterMaxFreq", + "Duration": 0, + "Value": "9999999" + }, + { + "PowerHint": "FIXED_PERFORMANCE", + "Node": "CPUMidClusterMinFreq", + "Duration": 0, + "Value": "9999999" + }, + { + "PowerHint": "FIXED_PERFORMANCE", + "Node": "CPULittleClusterMaxFreq", + "Duration": 0, + "Value": "9999999" + }, + { + "PowerHint": "FIXED_PERFORMANCE", + "Node": "CPULittleClusterMinFreq", + "Duration": 0, + "Value": "9999999" + }, { "PowerHint": "THERMAL_FLASH_LED_REDUCE_CRITICAL", "Node": "LimitFlashCurrent", diff --git a/powerhint_a0.json b/powerhint_a0.json index 2de5d279..a379f465 100644 --- a/powerhint_a0.json +++ b/powerhint_a0.json @@ -213,6 +213,30 @@ "Node": "GPUMinFreq", "Duration": 0, "Value": "670000" + }, + { + "PowerHint": "FIXED_PERFORMANCE", + "Node": "CPUBigClusterMaxFreq", + "Duration": 0, + "Value": "9999999" + }, + { + "PowerHint": "FIXED_PERFORMANCE", + "Node": "CPUBigClusterMinFreq", + "Duration": 0, + "Value": "9999999" + }, + { + "PowerHint": "FIXED_PERFORMANCE", + "Node": "CPULittleClusterMaxFreq", + "Duration": 0, + "Value": "9999999" + }, + { + "PowerHint": "FIXED_PERFORMANCE", + "Node": "CPULittleClusterMinFreq", + "Duration": 0, + "Value": "9999999" } ] } diff --git a/powerhint_a1.json b/powerhint_a1.json index 3a380a6c..a526b0f8 100644 --- a/powerhint_a1.json +++ b/powerhint_a1.json @@ -244,6 +244,42 @@ "Duration": 0, "Value": "670000" }, + { + "PowerHint": "FIXED_PERFORMANCE", + "Node": "CPUBigClusterMaxFreq", + "Duration": 0, + "Value": "9999999" + }, + { + "PowerHint": "FIXED_PERFORMANCE", + "Node": "CPUBigClusterMinFreq", + "Duration": 0, + "Value": "9999999" + }, + { + "PowerHint": "FIXED_PERFORMANCE", + "Node": "CPUMidClusterMaxFreq", + "Duration": 0, + "Value": "9999999" + }, + { + "PowerHint": "FIXED_PERFORMANCE", + "Node": "CPUMidClusterMinFreq", + "Duration": 0, + "Value": "9999999" + }, + { + "PowerHint": "FIXED_PERFORMANCE", + "Node": "CPULittleClusterMaxFreq", + "Duration": 0, + "Value": "9999999" + }, + { + "PowerHint": "FIXED_PERFORMANCE", + "Node": "CPULittleClusterMinFreq", + "Duration": 0, + "Value": "9999999" + }, { "PowerHint": "THERMAL_FLASH_LED_REDUCE_CRITICAL", "Node": "LimitFlashCurrent",