From c3a6514d48fcbd236071d078ea57359353353a2b Mon Sep 17 00:00:00 2001 From: "Ali K. Zadeh" Date: Fri, 19 Apr 2024 22:02:04 +0000 Subject: [PATCH] Increase SPC thresholds for 60fps This CL increase SPC threshold for little core to 55, and for mid core to 32. Tests show that in a loaded scenario, framedrop rate can reduce to almost zero, while not impacting the power in the unloaded (baseline) scenario. Bug: 304536786 Test: 1080p60: https://docs.google.com/spreadsheets/d/10g6mWm8q9FgnBDvC1CzYWgVM6DZZJQLdAYqf2zW209U/edit?usp=sharing Test: 4k60: https://docs.google.com/spreadsheets/d/1Rnz5gkqgoHFz5vwq5uezy8JD1uGkq_52fqDAmBetafY/edit?usp=sharing&resourcekey=0-zAOJ1GPbHWGYdU5QlUaH3Q Test: Loaded - 1080p60: https://docs.google.com/spreadsheets/d/1Ae1sFdXfHL0R_za3o7tUhws-4Xs3F7XktPld9Eh0xYE/edit?usp=sharing&resourcekey=0-dPQmBCXISNX_GA8s2uzLcw Test: Loaded - 4k60: https://docs.google.com/spreadsheets/d/1QeSJjTRhyL41Bjm9wF9tKcC8mHpC02vkr6R2qJlNA1w/edit?usp=sharing Change-Id: I077a42349527721f31eeb10c4521f48c1448374a --- perf/powerhint-caiman.json | 5 +++-- perf/powerhint-komodo.json | 5 +++-- perf/powerhint-ripcurrentpro.json | 5 +++-- perf/powerhint-tokay.json | 5 +++-- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/perf/powerhint-caiman.json b/perf/powerhint-caiman.json index 96fc3d46..2393d76e 100644 --- a/perf/powerhint-caiman.json +++ b/perf/powerhint-caiman.json @@ -646,6 +646,7 @@ "Path": "/sys/devices/system/cpu/cpufreq/policy4/sched_pixel/spc_threshold", "Values": [ "50", + "32", "30", "20", "18" @@ -1908,7 +1909,7 @@ "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "PMU_LIT_SPC_THRESHOLD", "Duration": 0, - "Value": "35" + "Value": "55" }, { "PowerHint": "CAMERA_STREAMING_HIGH", @@ -1926,7 +1927,7 @@ "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "PMU_MID_SPC_THRESHOLD", "Duration": 0, - "Value": "20" + "Value": "32" }, { "PowerHint": "CAMERA_STREAMING_HIGH", diff --git a/perf/powerhint-komodo.json b/perf/powerhint-komodo.json index 5083ecfa..84f77ae9 100644 --- a/perf/powerhint-komodo.json +++ b/perf/powerhint-komodo.json @@ -646,6 +646,7 @@ "Path": "/sys/devices/system/cpu/cpufreq/policy4/sched_pixel/spc_threshold", "Values": [ "50", + "32", "30", "20", "18" @@ -1908,7 +1909,7 @@ "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "PMU_LIT_SPC_THRESHOLD", "Duration": 0, - "Value": "35" + "Value": "55" }, { "PowerHint": "CAMERA_STREAMING_HIGH", @@ -1926,7 +1927,7 @@ "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "PMU_MID_SPC_THRESHOLD", "Duration": 0, - "Value": "20" + "Value": "32" }, { "PowerHint": "CAMERA_STREAMING_HIGH", diff --git a/perf/powerhint-ripcurrentpro.json b/perf/powerhint-ripcurrentpro.json index d2984619..d8b6e007 100644 --- a/perf/powerhint-ripcurrentpro.json +++ b/perf/powerhint-ripcurrentpro.json @@ -729,6 +729,7 @@ "Path": "/sys/devices/system/cpu/cpufreq/policy4/sched_pixel/spc_threshold", "Values": [ "50", + "32", "30", "20", "18" @@ -1897,7 +1898,7 @@ "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "PMU_LIT_SPC_THRESHOLD", "Duration": 0, - "Value": "35" + "Value": "55" }, { "PowerHint": "CAMERA_STREAMING_HIGH", @@ -1915,7 +1916,7 @@ "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "PMU_MID_SPC_THRESHOLD", "Duration": 0, - "Value": "20" + "Value": "32" }, { "PowerHint": "CAMERA_STREAMING_HIGH", diff --git a/perf/powerhint-tokay.json b/perf/powerhint-tokay.json index 96fc3d46..2393d76e 100644 --- a/perf/powerhint-tokay.json +++ b/perf/powerhint-tokay.json @@ -646,6 +646,7 @@ "Path": "/sys/devices/system/cpu/cpufreq/policy4/sched_pixel/spc_threshold", "Values": [ "50", + "32", "30", "20", "18" @@ -1908,7 +1909,7 @@ "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "PMU_LIT_SPC_THRESHOLD", "Duration": 0, - "Value": "35" + "Value": "55" }, { "PowerHint": "CAMERA_STREAMING_HIGH", @@ -1926,7 +1927,7 @@ "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "PMU_MID_SPC_THRESHOLD", "Duration": 0, - "Value": "20" + "Value": "32" }, { "PowerHint": "CAMERA_STREAMING_HIGH",