From 96d8f09cf7fa51db051edadb97d183cc07450c69 Mon Sep 17 00:00:00 2001 From: Suprabh Shukla Date: Mon, 6 Mar 2023 16:46:19 -0800 Subject: [PATCH 1/2] Add device irq map for Pixel 7 devices This xml maps the devices that can wake the main CPU up to subsystems that use them. Test: Builds, boots. Manualy verify the loaded map in the output of `dumpsys batterystats --wakeups` Bug: 271922941 Change-Id: Idd14c6a71c697fb649b42fe4886454fa3345aeba --- .../base/core/res/res/xml/irq_device_map.xml | 27 +++++++++++++++++++ .../base/core/res/res/xml/irq_device_map.xml | 27 +++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 cheetah/overlay/frameworks/base/core/res/res/xml/irq_device_map.xml create mode 100644 panther/overlay/frameworks/base/core/res/res/xml/irq_device_map.xml diff --git a/cheetah/overlay/frameworks/base/core/res/res/xml/irq_device_map.xml b/cheetah/overlay/frameworks/base/core/res/res/xml/irq_device_map.xml new file mode 100644 index 0000000..beb5166 --- /dev/null +++ b/cheetah/overlay/frameworks/base/core/res/res/xml/irq_device_map.xml @@ -0,0 +1,27 @@ + + + + + Alarm + + + Wifi + + + diff --git a/panther/overlay/frameworks/base/core/res/res/xml/irq_device_map.xml b/panther/overlay/frameworks/base/core/res/res/xml/irq_device_map.xml new file mode 100644 index 0000000..beb5166 --- /dev/null +++ b/panther/overlay/frameworks/base/core/res/res/xml/irq_device_map.xml @@ -0,0 +1,27 @@ + + + + + Alarm + + + Wifi + + + From cd38e3f7e133c03e4093c8ff24dfab8e721d497d Mon Sep 17 00:00:00 2001 From: Jimmy Shiu Date: Tue, 29 Nov 2022 18:36:17 +0800 Subject: [PATCH 2/2] powerhint: Boost GPU(302000) by 1st frame Take ADPF_FIRST_FRAME hint to boost the GPU freq to 302000 Bug: 243025173 Test: Manual Change-Id: I52ab59a98ff5e14fe03e82ed73f18a3d9c961721 Merged-In: I52ab59a98ff5e14fe03e82ed73f18a3d9c961721 --- powerhint-cheetah.json | 6 ++++++ powerhint-panther.json | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/powerhint-cheetah.json b/powerhint-cheetah.json index 7223fa2..66d3593 100644 --- a/powerhint-cheetah.json +++ b/powerhint-cheetah.json @@ -1785,6 +1785,12 @@ "Duration": 0, "Value": "572000" }, + { + "PowerHint": "ADPF_FIRST_FRAME", + "Node": "GPUMinFreq", + "Duration": 50, + "Value": "302000" + }, { "PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_LIGHT", "Node": "PMU_POLL", diff --git a/powerhint-panther.json b/powerhint-panther.json index 3c1b93c..93362fa 100644 --- a/powerhint-panther.json +++ b/powerhint-panther.json @@ -1652,6 +1652,12 @@ "Duration": 0, "Value": "572000" }, + { + "PowerHint": "ADPF_FIRST_FRAME", + "Node": "GPUMinFreq", + "Duration": 50, + "Value": "302000" + }, { "PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_LIGHT", "Node": "PMU_POLL",