From a039035efc61f2d1acfc9de3a458ca45a7fd2b3b Mon Sep 17 00:00:00 2001 From: Andy Hsu Date: Tue, 26 Apr 2022 18:33:20 +0800 Subject: [PATCH] Add a new powerhint mode to boost GPU in shots on P22. In P22 (Pro), there is no scaling_min_compute_freq (b/228921300) and under STREAMING_STANDARD setting GPU min frequency is 302000 which is smaller than scaling_min_compute_freq 471000 on P21 (Whi). In addition, on Pro GPU we expect 25~30% slow down in the same frequency compared to Whi. To boost the performance of GPU for shots on Pro, we add a new powerhint mode GCA_CAMERA_SHOT_GPU_EXTREME which raises the GPU frequency to the maximum. Bug: 230289913. Test: Pushed to local C10 (EVT1.0, go/ab/8471717) and test with cl/444178649 (trace: https://ui.perfetto.dev/#!/?s=23af98f7bc1729faefb9df2c6890566d48111bc957592a7c5ffbdad87c3d2f2d) Change-Id: Ib77bddbdac32e689120c513f38029be9eab96449 --- powerhint-cheetah-a0.json | 7 +++++++ powerhint-cheetah.json | 7 +++++++ powerhint-cloudripper.json | 7 +++++++ powerhint-panther-a0.json | 7 +++++++ powerhint-panther.json | 7 +++++++ powerhint-ravenclaw.json | 7 +++++++ 6 files changed, 42 insertions(+) diff --git a/powerhint-cheetah-a0.json b/powerhint-cheetah-a0.json index 09d4fcd..8707576 100644 --- a/powerhint-cheetah-a0.json +++ b/powerhint-cheetah-a0.json @@ -103,6 +103,7 @@ "Name": "GPUMinFreq", "Path": "/sys/devices/platform/28000000.mali/hint_min_freq", "Values": [ + "848000", "762000", "471000", "400000", @@ -784,6 +785,12 @@ "Duration": 3000, "Value": "9999999" }, + { + "PowerHint": "GCA_CAMERA_SHOT_GPU_EXTREME", + "Node": "GPUMinFreq", + "Duration": 3000, + "Value": "848000" + }, { "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "CPULittleClusterMaxFreq", diff --git a/powerhint-cheetah.json b/powerhint-cheetah.json index 1d0cb50..33debac 100644 --- a/powerhint-cheetah.json +++ b/powerhint-cheetah.json @@ -103,6 +103,7 @@ "Name": "GPUMinFreq", "Path": "/sys/devices/platform/28000000.mali/hint_min_freq", "Values": [ + "848000", "762000", "471000", "400000", @@ -783,6 +784,12 @@ "Duration": 3000, "Value": "9999999" }, + { + "PowerHint": "GCA_CAMERA_SHOT_GPU_EXTREME", + "Node": "GPUMinFreq", + "Duration": 3000, + "Value": "848000" + }, { "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "CPULittleClusterMaxFreq", diff --git a/powerhint-cloudripper.json b/powerhint-cloudripper.json index cf0157e..b7fc8bd 100644 --- a/powerhint-cloudripper.json +++ b/powerhint-cloudripper.json @@ -90,6 +90,7 @@ "Name": "GPUMinFreq", "Path": "/sys/devices/platform/28000000.mali/hint_min_freq", "Values": [ + "848000", "762000", "471000", "400000", @@ -623,6 +624,12 @@ "Duration": 3000, "Value": "9999999" }, + { + "PowerHint": "GCA_CAMERA_SHOT_GPU_EXTREME", + "Node": "GPUMinFreq", + "Duration": 3000, + "Value": "848000" + }, { "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "CPULittleClusterMaxFreq", diff --git a/powerhint-panther-a0.json b/powerhint-panther-a0.json index 1c7a853..617473b 100644 --- a/powerhint-panther-a0.json +++ b/powerhint-panther-a0.json @@ -103,6 +103,7 @@ "Name": "GPUMinFreq", "Path": "/sys/devices/platform/28000000.mali/hint_min_freq", "Values": [ + "848000", "762000", "471000", "400000", @@ -772,6 +773,12 @@ "Duration": 3000, "Value": "9999999" }, + { + "PowerHint": "GCA_CAMERA_SHOT_GPU_EXTREME", + "Node": "GPUMinFreq", + "Duration": 3000, + "Value": "848000" + }, { "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "CPULittleClusterMaxFreq", diff --git a/powerhint-panther.json b/powerhint-panther.json index 98da014..b3b9c25 100644 --- a/powerhint-panther.json +++ b/powerhint-panther.json @@ -103,6 +103,7 @@ "Name": "GPUMinFreq", "Path": "/sys/devices/platform/28000000.mali/hint_min_freq", "Values": [ + "848000", "762000", "471000", "400000", @@ -771,6 +772,12 @@ "Duration": 3000, "Value": "9999999" }, + { + "PowerHint": "GCA_CAMERA_SHOT_GPU_EXTREME", + "Node": "GPUMinFreq", + "Duration": 3000, + "Value": "848000" + }, { "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "CPULittleClusterMaxFreq", diff --git a/powerhint-ravenclaw.json b/powerhint-ravenclaw.json index 9235e7f..828a224 100644 --- a/powerhint-ravenclaw.json +++ b/powerhint-ravenclaw.json @@ -90,6 +90,7 @@ "Name": "GPUMinFreq", "Path": "/sys/devices/platform/28000000.mali/hint_min_freq", "Values": [ + "848000", "762000", "471000", "400000", @@ -623,6 +624,12 @@ "Duration": 3000, "Value": "9999999" }, + { + "PowerHint": "GCA_CAMERA_SHOT_GPU_EXTREME", + "Node": "GPUMinFreq", + "Duration": 3000, + "Value": "848000" + }, { "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "CPULittleClusterMaxFreq",