From b82d7371b51735bf298d7070ce9bab6564b72873 Mon Sep 17 00:00:00 2001 From: Divya Sharma Date: Wed, 3 Mar 2021 14:25:53 -0800 Subject: [PATCH 01/35] Specify stable AIDL version number. Bug: 181709127 Change-Id: I1132378f14428bf511f3cea4f419e90a6e89f823 --- Android.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Android.mk b/Android.mk index 84b9e54..f2ef2b6 100644 --- a/Android.mk +++ b/Android.mk @@ -7,7 +7,8 @@ ifeq ($(call is-vendor-board-platform,QCOM),true) include $(CLEAR_VARS) LOCAL_MODULE_RELATIVE_PATH := hw -LOCAL_SHARED_LIBRARIES := liblog libcutils libdl libxml2 libbase libutils android.hardware.power-ndk_platform libbinder_ndk +# KEYSTONE(I1132378f14428bf511f3cea4f419e90a6e89f823,b/181709127) +LOCAL_SHARED_LIBRARIES := liblog libcutils libdl libxml2 libbase libutils android.hardware.power-V1-ndk_platform libbinder_ndk LOCAL_HEADER_LIBRARIES += libutils_headers LOCAL_HEADER_LIBRARIES += libhardware_headers LOCAL_SRC_FILES := power-common.c metadata-parser.c utils.c list.c hint-data.c powerhintparser.c Power.cpp main.cpp From 777f97d17b2baf3cf48122eb9663b238c67d3ec0 Mon Sep 17 00:00:00 2001 From: Vini Vennapusa Date: Thu, 1 Jul 2021 18:33:35 +0530 Subject: [PATCH 02/35] Power: Add powerhint.xml for waipio Added powerhint.xml for waipio target and modified the make file. Change-Id: Ib28f9f2b00ef116394b0a88cf60a6d004c23b5bc --- config/taro/powerhint.xml | 341 ++++++++++++++++++++++++++++++++++++++ power-vendor-product.mk | 2 + 2 files changed, 343 insertions(+) create mode 100644 config/taro/powerhint.xml diff --git a/config/taro/powerhint.xml b/config/taro/powerhint.xml new file mode 100644 index 0000000..5f338b6 --- /dev/null +++ b/config/taro/powerhint.xml @@ -0,0 +1,341 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/power-vendor-product.mk b/power-vendor-product.mk index a06869c..d34d793 100644 --- a/power-vendor-product.mk +++ b/power-vendor-product.mk @@ -15,4 +15,6 @@ else ifeq ($(TARGET_BOARD_PLATFORM),lahaina) PRODUCT_COPY_FILES += vendor/qcom/opensource/power/config/lahaina/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml else ifeq ($(TARGET_BOARD_PLATFORM),holi) PRODUCT_COPY_FILES += vendor/qcom/opensource/power/config/holi/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml +else ifeq ($(TARGET_BOARD_PLATFORM),taro) +PRODUCT_COPY_FILES += vendor/qcom/opensource/power/config/taro/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml endif From f912e70cf4bdb222e39180648235d1c3d35ad7ff Mon Sep 17 00:00:00 2001 From: Neeraj Jain Date: Sun, 11 Jul 2021 13:54:27 -0700 Subject: [PATCH 03/35] Power: Update powerhint with CPU,Bus DCVS settings Update waipio powerhint.xml with CPU and Bus DCVS settings for camera cases. Change-Id: I706198c1b7c20af83296bb44f6db472401ff9bd5 --- config/taro/powerhint.xml | 57 +++++++++++++++------------------------ 1 file changed, 22 insertions(+), 35 deletions(-) diff --git a/config/taro/powerhint.xml b/config/taro/powerhint.xml index 5f338b6..4020202 100644 --- a/config/taro/powerhint.xml +++ b/config/taro/powerhint.xml @@ -222,12 +222,10 @@ - - + 0x43004000, 0x64, 0x43008000, 0, 0x41444100, 0, 0x41440100, 0x63"/> @@ -237,16 +235,17 @@ - + - - - + + + + + 0x43004000, 0x64, 0x43008000, 0, 0x40804100, 0x433, 0x41444100, 0, 0x41444000, 0, 0x41440000, 0x63, + 0x40CE0000, 0x0032000A, 0x40CE0200, 0x00550055"/> @@ -255,16 +254,17 @@ - + - - - + + + + + 0x43004000, 0x64, 0x43008000, 0, 0x40804100, 0x433, 0x41444100, 0, 0x41444000, 0, 0x41440000, 0x63, + 0x40CE0000, 0x0032000A, 0x40CE0200, 0x00550055"/> @@ -273,30 +273,17 @@ - + - - - + + + + - - - - - - - - - - - + 0x43004000, 0x64, 0x43008000, 0, 0x40804100, 0x433, 0x41444100, 0, 0x41444000, 0, 0x41440000, 0x63, + 0x40CE0000, 0x0028000A, 0x40CE0200, 0x00550055"/> From 2d4023c3f70acbede8fb5c8ceb6209457f3ecc7d Mon Sep 17 00:00:00 2001 From: Neeraj Jain Date: Tue, 27 Jul 2021 13:05:06 -0700 Subject: [PATCH 04/35] [Waipio] Update CPU and DDR settimgs for camera cases Change-Id: Ife4df873d240b22a75744c8ada3a9a321e950d40 --- config/taro/powerhint.xml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/config/taro/powerhint.xml b/config/taro/powerhint.xml index 4020202..4b29a32 100644 --- a/config/taro/powerhint.xml +++ b/config/taro/powerhint.xml @@ -222,10 +222,11 @@ + + 0x43004000, 0x64, 0x43008000, 0, 0x41444100, 0, 0x41440100, 0x63, 0x40804100, 0x2D9"/> @@ -235,6 +236,7 @@ + @@ -244,7 +246,7 @@ @@ -254,6 +256,7 @@ + @@ -263,7 +266,7 @@ From 75b025416a5cac0cfee4666e82ef48c278e9d10e Mon Sep 17 00:00:00 2001 From: Neeraj Jain Date: Tue, 27 Jul 2021 13:05:06 -0700 Subject: [PATCH 05/35] Revert "[Waipio] Update CPU and DDR settimgs for camera cases" This reverts commit 2d4023c3f70acbede8fb5c8ceb6209457f3ecc7d. Change-Id: I42f23536aa0300a128e45fa0ff785533d82488a7 --- config/taro/powerhint.xml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/config/taro/powerhint.xml b/config/taro/powerhint.xml index 4b29a32..4020202 100644 --- a/config/taro/powerhint.xml +++ b/config/taro/powerhint.xml @@ -222,11 +222,10 @@ - + 0x43004000, 0x64, 0x43008000, 0, 0x41444100, 0, 0x41440100, 0x63"/> @@ -236,7 +235,6 @@ - @@ -246,7 +244,7 @@ @@ -256,7 +254,6 @@ - @@ -266,7 +263,7 @@ From 05b4ff89432bb3467802854703204f134327560a Mon Sep 17 00:00:00 2001 From: Divya Sharma Date: Thu, 12 Aug 2021 21:05:25 -0700 Subject: [PATCH 06/35] Revert "Power: Update powerhint with CPU,Bus DCVS settings" This reverts commit f912e70cf4bdb222e39180648235d1c3d35ad7ff. Change-Id: I77c7ac5bd93e7a7495e85a23a4a7c4c0c536d146 --- config/taro/powerhint.xml | 57 ++++++++++++++++++++++++--------------- 1 file changed, 35 insertions(+), 22 deletions(-) diff --git a/config/taro/powerhint.xml b/config/taro/powerhint.xml index 4020202..5f338b6 100644 --- a/config/taro/powerhint.xml +++ b/config/taro/powerhint.xml @@ -222,10 +222,12 @@ + + + 0x43004000, 0x64, 0x43008000, 0, 0x41444100, 0, 0x41440100, 0x63,0x43420000, 0xC8"/> @@ -235,17 +237,16 @@ - + - - - - + + + + 0x43004000, 0x64, 0x43008000, 0, 0x40800100, 0x3E6, 0x41444100, 0, 0x41440100, 0x63, + 0x43420000, 0xC8"/> @@ -254,17 +255,16 @@ - + - - - - + + + + 0x43004000, 0x64, 0x43008000, 0, 0x40800100, 0x4B9, 0x41444100, 0, 0x41440100, 0x63, + 0x43420000, 0xC8"/> @@ -273,17 +273,30 @@ - + - - - - + + + + 0x43004000, 0x64, 0x43008000, 0, 0x40800100, 0x4B9, 0x41444100, 0, 0x41440100, 0x63, + 0x43420000, 0xC8"/> + + + + + + + + + + + From 6791733cabe0326f5532f9875979d886df804766 Mon Sep 17 00:00:00 2001 From: Vini Vennapusa Date: Mon, 6 Sep 2021 11:19:09 +0530 Subject: [PATCH 07/35] Power : Add tunings for 240FPS decode cases. Added support for video decode 240FPS case. Change-Id: I2f5e1dc89f78bb56723c92f674f13ce7dbc8368b --- config/taro/powerhint.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/taro/powerhint.xml b/config/taro/powerhint.xml index c769549..3ebc982 100644 --- a/config/taro/powerhint.xml +++ b/config/taro/powerhint.xml @@ -353,5 +353,11 @@ Resources="0x40400000, 0x1, 0x40800100, 0x46C, 0x40800000, 0x553, 0x40C20000, 0X14, 0x40C1C000, 0X1E"/> + + + + From f018741b02ef09603ff426dfa0cacabc3a5265d7 Mon Sep 17 00:00:00 2001 From: Divya Sharma Date: Tue, 12 Oct 2021 11:50:16 -0700 Subject: [PATCH 08/35] Revert "Power : Add tunings for 240FPS decode cases." This reverts commit 6791733cabe0326f5532f9875979d886df804766. Change-Id: Ib0f6eb30eb40351ee2f7725bc3510542aaa52377 --- config/taro/powerhint.xml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/config/taro/powerhint.xml b/config/taro/powerhint.xml index 3ebc982..c769549 100644 --- a/config/taro/powerhint.xml +++ b/config/taro/powerhint.xml @@ -353,11 +353,5 @@ Resources="0x40400000, 0x1, 0x40800100, 0x46C, 0x40800000, 0x553, 0x40C20000, 0X14, 0x40C1C000, 0X1E"/> - - - - From abed3bb458b877b5d39cac64e47959cc5fd1a63e Mon Sep 17 00:00:00 2001 From: Sumit Gemini Date: Fri, 10 Jun 2022 19:25:01 +0530 Subject: [PATCH 09/35] power : add powerhint file for parrot target Add Powerhint tunings for Parrot Change-Id: Ifbd87e24ec4609f75124b965fe85375139a30f69 --- config/parrot/powerhint.xml | 333 ++++++++++++++++++++++++++++++++++++ power-vendor-product.mk | 4 +- 2 files changed, 336 insertions(+), 1 deletion(-) create mode 100644 config/parrot/powerhint.xml diff --git a/config/parrot/powerhint.xml b/config/parrot/powerhint.xml new file mode 100644 index 0000000..6e24a52 --- /dev/null +++ b/config/parrot/powerhint.xml @@ -0,0 +1,333 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/power-vendor-product.mk b/power-vendor-product.mk index 2a019cc..7b470ca 100644 --- a/power-vendor-product.mk +++ b/power-vendor-product.mk @@ -19,4 +19,6 @@ else ifeq ($(TARGET_BOARD_PLATFORM),taro) PRODUCT_COPY_FILES += vendor/qcom/opensource/power/config/taro/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml else ifeq ($(TARGET_BOARD_PLATFORM),kalama) PRODUCT_COPY_FILES += vendor/qcom/opensource/power/config/kalama/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml -endif +else ifeq ($(TARGET_BOARD_PLATFORM),parrot) +PRODUCT_COPY_FILES += vendor/qcom/opensource/power/config/parrot/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml +endif \ No newline at end of file From f06cbda7af6c5e7d525d8206efd6a521a9d76e3d Mon Sep 17 00:00:00 2001 From: Vini Vennapusa Date: Mon, 27 Jun 2022 12:36:56 +0530 Subject: [PATCH 10/35] Revert "Power:Replace library name from ndk_platform to ndk" Replace library name to ndk_platform for Android-S targets. Change-Id: Ia27a33a0d78671b5087abe6a562a7513053981ac --- Android.mk | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Android.mk b/Android.mk index 3b90046..f2ef2b6 100644 --- a/Android.mk +++ b/Android.mk @@ -8,14 +8,7 @@ include $(CLEAR_VARS) LOCAL_MODULE_RELATIVE_PATH := hw # KEYSTONE(I1132378f14428bf511f3cea4f419e90a6e89f823,b/181709127) -LOCAL_SHARED_LIBRARIES := liblog libcutils libdl libxml2 libbase libutils libbinder_ndk - -ifeq ($(call math_gt_or_eq, 33, $(PLATFORM_SDK_VERSION)), true) - LOCAL_SHARED_LIBRARIES += android.hardware.power-V1-ndk -else - LOCAL_SHARED_LIBRARIES += android.hardware.power-V1-ndk_platform -endif - +LOCAL_SHARED_LIBRARIES := liblog libcutils libdl libxml2 libbase libutils android.hardware.power-V1-ndk_platform libbinder_ndk LOCAL_HEADER_LIBRARIES += libutils_headers LOCAL_HEADER_LIBRARIES += libhardware_headers LOCAL_SRC_FILES := power-common.c metadata-parser.c utils.c list.c hint-data.c powerhintparser.c Power.cpp main.cpp From 0f893c2254af1011126b4bc660724b2ba339167b Mon Sep 17 00:00:00 2001 From: Om SIngh Date: Wed, 11 May 2022 15:48:31 +0530 Subject: [PATCH 11/35] power: added powerhint.xml for neo target Added powerhint for neo Change-Id: I833338abe6ef8ddfd6974c2e0b4347a8dd7c8399 --- config/neo/powerhint.xml | 415 +++++++++++++++++++++++++++++++++++++++ power-vendor-product.mk | 4 +- 2 files changed, 418 insertions(+), 1 deletion(-) create mode 100644 config/neo/powerhint.xml diff --git a/config/neo/powerhint.xml b/config/neo/powerhint.xml new file mode 100644 index 0000000..406f053 --- /dev/null +++ b/config/neo/powerhint.xml @@ -0,0 +1,415 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/power-vendor-product.mk b/power-vendor-product.mk index 7b470ca..8d44b56 100644 --- a/power-vendor-product.mk +++ b/power-vendor-product.mk @@ -21,4 +21,6 @@ else ifeq ($(TARGET_BOARD_PLATFORM),kalama) PRODUCT_COPY_FILES += vendor/qcom/opensource/power/config/kalama/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml else ifeq ($(TARGET_BOARD_PLATFORM),parrot) PRODUCT_COPY_FILES += vendor/qcom/opensource/power/config/parrot/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml -endif \ No newline at end of file +else ifeq ($(TARGET_BOARD_PLATFORM),neo) +PRODUCT_COPY_FILES += vendor/qcom/opensource/power/config/neo/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml +endif From 74398ccbe3679f769ed6fa7933ceaedb254d979d Mon Sep 17 00:00:00 2001 From: Sumit Gemini Date: Mon, 18 Jul 2022 13:29:15 +0530 Subject: [PATCH 12/35] power : Modify powerhint file for parrot target Modify Powerhint tunings for Parrot Change-Id: Id2af1019ad74fdc62ae63dbdf00dc4bb13890d35 --- config/parrot/powerhint.xml | 46 ++++++++++++++++++++++--------------- 1 file changed, 28 insertions(+), 18 deletions(-) diff --git a/config/parrot/powerhint.xml b/config/parrot/powerhint.xml index 6e24a52..3cc06ae 100644 --- a/config/parrot/powerhint.xml +++ b/config/parrot/powerhint.xml @@ -58,76 +58,86 @@ + - + + + 0x41000000, 0x4, 0x43048000, 0x32, 0x43020000, 100"/> + - + + + 0x40CF4000, 0x002D0028, 0x41000000, 0x4, 0x43048000, 0x32, 0x43020000, 100"/> + - + + + Resources="0x40C68100, -10, 0x40C68000, -10, 0x43034000, 0x21, 0x40CE0000, 0x0023001E, + 0x40CF4000, 0x0023001E, 0x41000000, 0x4, 0x43048000, 0x32, 0x43020000, 100"/> + - + + + Resources="0x40C68100, -10, 0x40C68000, -10, 0x43034000, 0x21, 0x40800100, 0x459, + 0x40CE0000, 0x0023001E, 0x40CF4000, 0x0023001E, 0x41000000, 0x4, 0x43020000, 100"/> + - + + Resources="0x40C68100, -10, 0x40C68000, -10, 0x43034000, 0x21, 0x40800100, 0x459, + 0x41000000, 0x4"/> + - + + Resources="0x40C68100, -10, 0x40C68000, -10, 0x4143C100, 940, 0x43034000, 0x21, + 0x40800100, 1113, 0x40804100, 1804, 0x41000000, 0x4, 0x43048000, 0x32"/> From 34439eef570c59e98c81c51f8d0e9d3aed6ca8f8 Mon Sep 17 00:00:00 2001 From: Sumit Gemini Date: Mon, 18 Jul 2022 13:29:15 +0530 Subject: [PATCH 13/35] power : Modify powerhint file for parrot target Modify Powerhint tunings for Parrot Change-Id: Id2af1019ad74fdc62ae63dbdf00dc4bb13890d35 --- config/parrot/powerhint.xml | 46 ++++++++++++++++++++++--------------- 1 file changed, 28 insertions(+), 18 deletions(-) diff --git a/config/parrot/powerhint.xml b/config/parrot/powerhint.xml index 6e24a52..3cc06ae 100644 --- a/config/parrot/powerhint.xml +++ b/config/parrot/powerhint.xml @@ -58,76 +58,86 @@ + - + + + 0x41000000, 0x4, 0x43048000, 0x32, 0x43020000, 100"/> + - + + + 0x40CF4000, 0x002D0028, 0x41000000, 0x4, 0x43048000, 0x32, 0x43020000, 100"/> + - + + + Resources="0x40C68100, -10, 0x40C68000, -10, 0x43034000, 0x21, 0x40CE0000, 0x0023001E, + 0x40CF4000, 0x0023001E, 0x41000000, 0x4, 0x43048000, 0x32, 0x43020000, 100"/> + - + + + Resources="0x40C68100, -10, 0x40C68000, -10, 0x43034000, 0x21, 0x40800100, 0x459, + 0x40CE0000, 0x0023001E, 0x40CF4000, 0x0023001E, 0x41000000, 0x4, 0x43020000, 100"/> + - + + Resources="0x40C68100, -10, 0x40C68000, -10, 0x43034000, 0x21, 0x40800100, 0x459, + 0x41000000, 0x4"/> + - + + Resources="0x40C68100, -10, 0x40C68000, -10, 0x4143C100, 940, 0x43034000, 0x21, + 0x40800100, 1113, 0x40804100, 1804, 0x41000000, 0x4, 0x43048000, 0x32"/> From 7539f93d05cbb3de1e753473818b68cdb083d08f Mon Sep 17 00:00:00 2001 From: Sumit Gemini Date: Tue, 23 Aug 2022 13:25:30 +0530 Subject: [PATCH 14/35] Power : Modify powerhint file for parrot target Modify Open/Close tunings for Parrot Change-Id: Ib7c2d25b0ce4d9c2df452203f1e483413742aa80 --- config/parrot/powerhint.xml | 50 +++++++++++++++++++++---------------- 1 file changed, 29 insertions(+), 21 deletions(-) diff --git a/config/parrot/powerhint.xml b/config/parrot/powerhint.xml index 3cc06ae..4984277 100644 --- a/config/parrot/powerhint.xml +++ b/config/parrot/powerhint.xml @@ -62,6 +62,7 @@ + @@ -69,7 +70,7 @@ @@ -78,7 +79,7 @@ - + @@ -86,58 +87,65 @@ + + Resources="0x40C68100, -10, 0x40C68000, -10, 0x43034000, 0x21, 0x40804100, 1497, + 0x40CE0000, 0x0023001E, 0x40CF4000, 0x0023001E, 0x41000000, 0x4, 0x43048000, 0x32, + 0x43020000, 100"/> + + 0x40804100, 1497, 0x40CE0000, 0x0023001E, 0x40CF4000, 0x0023001E, 0x41000000, 0x4, + 0x43020000, 100"/> + + + 0x40804100, 1497, 0x41000000, 0x4, 0x43020000, 100"/> - + + + 0x40800100, 1113, 0x40804100, 1497, 0x41000000, 0x4, 0x43048000, 0x32, 0x43020000, 100"/> @@ -308,26 +316,26 @@ - - - - + + + + + Resources="0x40400000, 0x1, 0x40C00000, 0x1, 0x40804000, 0X834, 0x40800000, 0X834, + 0x40804100, 0X708, 0x40800100, 0X708"/> - - - - + + + + + Resources="0x40400000, 0x1, 0x40C00000, 0x1, 0x40804000, 0X834, 0x40800000, 0X834, + 0x40804100, 0X708, 0x40800100, 0X708"/> From b35ce3fd55baaadfc16249cacdf14da965c42664 Mon Sep 17 00:00:00 2001 From: Om Singh Date: Thu, 11 Aug 2022 11:25:39 +0530 Subject: [PATCH 15/35] power: tuning of camera open and close Setting cpu_min_freq and cpu_max_freq to maximum possible value Change-Id: Ib970a99fc7bfdf414a7730f964eee2094ff20306 --- config/neo/powerhint.xml | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/config/neo/powerhint.xml b/config/neo/powerhint.xml index 406f053..362e71a 100644 --- a/config/neo/powerhint.xml +++ b/config/neo/powerhint.xml @@ -375,30 +375,20 @@ - - - - - - + + + Resources="0x40400000, 0x1, 0x40C00000, 0x1, 0x40804000, 0XFFFF, 0x40800000, 0XFFFF"/> - - - - - - + + + Resources="0x40400000, 0x1, 0x40C00000, 0x1, 0x40804000, 0XFFFF, 0x40800000, 0XFFFF"/> From 77a93d925ebb39b2f986ea4d10580051cb33ec93 Mon Sep 17 00:00:00 2001 From: Sumit Gemini Date: Fri, 26 Aug 2022 14:27:37 +0530 Subject: [PATCH 16/35] Power : Modify powerhint file for tofino target Modify Open/Close tunings for Tofino Change-Id: I9a7e18ccfb9a93d12ee1f23f76cc12ec895c3564 --- config/taro/powerhint.xml | 115 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) diff --git a/config/taro/powerhint.xml b/config/taro/powerhint.xml index 31009ff..1308996 100644 --- a/config/taro/powerhint.xml +++ b/config/taro/powerhint.xml @@ -40,6 +40,10 @@ Id="0x00001203" Enable="true" Target="cape" Resources="" /> + + + + + + + + @@ -91,6 +107,12 @@ 0x40800200, 0x399, 0x40804200, 0x840, 0x42804000, 0x9, 0x42808000, 0x5, 0x41000000, 0x3, 0x41000200, 0x1"/> + + @@ -115,6 +137,12 @@ 0x40800200, 0x399, 0x40804200, 0x840, 0x42804000, 0x9, 0x42808000, 0x5, 0x41000000, 0x3, 0x41000200, 0x1"/> + + @@ -139,6 +167,12 @@ 0x40800200, 0x399, 0x40804200, 0x840, 0x42804000, 0x9, 0x42808000, 0x5, 0x41000000, 0x3, 0x41000200, 0x1"/> + + @@ -163,6 +197,12 @@ 0x40800200, 0x399, 0x40804200, 0x840, 0x42804000, 0x9, 0x42808000, 0x5, 0x41000000, 0x3, 0x41000200, 0x1"/> + + @@ -187,6 +227,12 @@ 0x40800200, 0x399, 0x40804200, 0x840, 0x42804000, 0x9, 0x42808000, 0x5, 0x41000000, 0x3, 0x41000200, 0x1"/> + + @@ -211,6 +257,12 @@ 0x40800200, 0x399, 0x40804200, 0x840, 0x42804000, 0x9, 0x42808000, 0x5, 0x41000000, 0x3, 0x41000200, 0x1"/> + + @@ -235,6 +287,12 @@ 0x40800200, 0x399, 0x40804200, 0x840, 0x42804000, 0x9, 0x42808000, 0x5, 0x41000000, 0x3, 0x41000200, 0x1"/> + + @@ -259,6 +317,12 @@ 0x40800200, 0x399, 0x40804200, 0x840, 0x42804000, 0x9, 0x42808000, 0x5, 0x41000000, 0x3, 0x41000200, 0x1"/> + + @@ -283,6 +347,12 @@ 0x40800200, 0x399, 0x40804200, 0x840, 0x42804000, 0x9, 0x42808000, 0x5, 0x41000000, 0x3, 0x41000200, 0x1"/> + + @@ -307,6 +377,12 @@ Resources="0x4183C000, 0x21, 0x41834000, 0x64, 0x41838000, 0, 0x43034000, 0x21, 0x43020000, 0x64, 0x43024000, 0, 0x41444100, 0, 0x41440100, 0x63, 0x40804100, 0x2B3, 0x41008000, 0, 0x41008100, 0, 0x41008200, 0"/> + + + @@ -337,6 +413,13 @@ 0x43020000, 0x64, 0x43024000, 0, 0x4303C000, 0x858B8 ,0x40804100, 0x420, 0x41444100, 0, 0x41444000, 0, 0x41440000, 0x63, 0x40CE0000, 0x0032000A, 0x40CE0200, 0x00550055, 0x41008000, 0, 0x41008100, 0, 0x41008200, 0"/> + + + @@ -367,6 +450,13 @@ 0x43020000, 0x64, 0x43024000, 0, 0x4303C000, 0x17BA38, 0x40804100, 0x420, 0x41444100, 0, 0x41444000, 0, 0x41440000, 0x63, 0x40CE0000, 0x0032000A, 0x40CE0200, 0x00550055, 0x41008000, 0, 0x41008100, 0, 0x41008200, 0"/> + + + @@ -396,6 +486,13 @@ 0x43020000, 0x64, 0x43024000, 0, 0x40804100, 0x420, 0x41444100, 0, 0x41444000, 0, 0x41440000, 0x63, 0x40CE0000, 0x0028000A, 0x40CE0200, 0x00550055, 0x41008000, 0, 0x41008100, 0, 0x41008200, 0"/> + + + @@ -415,6 +512,11 @@ Resources="0x40400000, 0x1, 0x40800100, 0x40C, 0x40800000, 0x4CC, 0x40C20000, 0x14, 0x40C1C000, 0x1E, 0x41820000, 0x0A, 0x41808000, 0x50, 0x4180C000, 0"/> + + @@ -432,6 +534,10 @@ Id="0x00001337" Enable="true" Timeout="0" Target="cape" Resources="0x40400000, 0x1, 0x40C00000, 0x1, 0x40804000, 0XFFF, 0x40800000, 0XFFF, 0x40804100, 0XFFF, 0x40800100, 0XFFF, 0x40800200, 0XFFF, 0x40804200, 0XFFF"/> + @@ -450,6 +556,10 @@ Id="0x00001338" Enable="true" Timeout="0" Target="cape" Resources="0x40400000, 0x1, 0x40C00000, 0x1, 0x40804000, 0XFFF, 0x40800000, 0XFFF, 0x40804100, 0XFFF, 0x40800100, 0XFFF, 0x40800200, 0XFFF, 0x40804200, 0XFFF"/> + @@ -467,6 +577,11 @@ Resources="0x40400000, 0x1, 0x40800100, 0x46C, 0x40800000, 0x52C, 0x40C20000, 0X14, 0x40C1C000, 0X1E"/> + + Date: Fri, 26 Aug 2022 11:55:12 +0800 Subject: [PATCH 17/35] power: Add support for EXPENSIVE_RENDERING When background_blur is enabled, the rendering can be expensive and many janks will occur. So, need to support the mode in power module and pass it to perf-hal to handle. Change-Id: I5bab53e72134d76201d9fc28b9bdae4185790deb CRs-Fixed: 3278491 --- Power.cpp | 7 +++++-- power-common.c | 10 ++++++++++ power-common.h | 3 +++ 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/Power.cpp b/Power.cpp index 260ad4c..4ab9e83 100644 --- a/Power.cpp +++ b/Power.cpp @@ -63,7 +63,6 @@ ndk::ScopedAStatus Power::setMode(Mode type, bool enabled) { case Mode::DOUBLE_TAP_TO_WAKE: case Mode::LOW_POWER: case Mode::LAUNCH: - case Mode::EXPENSIVE_RENDERING: case Mode::DEVICE_IDLE: case Mode::DISPLAY_INACTIVE: case Mode::AUDIO_STREAMING_LOW_LATENCY: @@ -74,6 +73,9 @@ ndk::ScopedAStatus Power::setMode(Mode type, bool enabled) { case Mode::VR: LOG(INFO) << "Mode " << static_cast(type) << "Not Supported"; break; + case Mode::EXPENSIVE_RENDERING: + set_expensive_rendering(enabled); + break; case Mode::INTERACTIVE: setInteractive(enabled); power_hint(POWER_HINT_INTERACTION, NULL); @@ -93,6 +95,7 @@ ndk::ScopedAStatus Power::isModeSupported(Mode type, bool* _aidl_return) { LOG(INFO) << "Power isModeSupported: " << static_cast(type); switch(type){ + case Mode::EXPENSIVE_RENDERING: case Mode::INTERACTIVE: case Mode::SUSTAINED_PERFORMANCE: case Mode::FIXED_PERFORMANCE: @@ -121,4 +124,4 @@ ndk::ScopedAStatus Power::isBoostSupported(Boost type, bool* _aidl_return) { } // namespace power } // namespace hardware } // namespace android -} // namespace aidl \ No newline at end of file +} // namespace aidl diff --git a/power-common.c b/power-common.c index eb92998..a7a32e5 100644 --- a/power-common.c +++ b/power-common.c @@ -49,6 +49,7 @@ #include "power-common.h" static struct hint_handles handles[NUM_HINTS]; +static int handleER = 0; void power_init() { @@ -115,6 +116,15 @@ void power_hint(power_hint_t hint, void *data) } } +void set_expensive_rendering(bool enabled) +{ + if (enabled) { + handleER = perf_hint_enable(PERF_HINT_EXPENSIVE_RENDERING, 0); + } else if (handleER > 0) { + release_request(handleER); + } +} + int __attribute__ ((weak)) set_interactive_override(int on) { return HINT_NONE; diff --git a/power-common.h b/power-common.h index 697302a..b95ea22 100644 --- a/power-common.h +++ b/power-common.h @@ -49,6 +49,8 @@ extern "C" { #define HINT_HANDLED (0) #define HINT_NONE (-1) +#define PERF_HINT_EXPENSIVE_RENDERING 0x000010A5 + #include enum CPU_GOV_CHECK { @@ -60,6 +62,7 @@ enum CPU_GOV_CHECK { void power_init(void); void power_hint(power_hint_t hint, void *data); +void set_expensive_rendering(bool enabled); void set_interactive(int on); #ifdef __cplusplus From ca80f817c578d5889cc846a1355a7bf6acc0ba24 Mon Sep 17 00:00:00 2001 From: zehugong Date: Mon, 1 Aug 2022 10:34:38 +0800 Subject: [PATCH 18/35] power: add powerhint for video decode 30 fps secure/non-secure tunning Add powerhint on diwali Change-Id: I973e0706611b2445a585a6fb7b7c3163083c8762 --- config/taro/powerhint.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/taro/powerhint.xml b/config/taro/powerhint.xml index 1308996..287b043 100644 --- a/config/taro/powerhint.xml +++ b/config/taro/powerhint.xml @@ -600,6 +600,9 @@ + @@ -609,6 +612,9 @@ + From 7535ea765c71e10d9f5558b826b21cc79cda3887 Mon Sep 17 00:00:00 2001 From: zehugong Date: Tue, 20 Sep 2022 14:23:32 +0800 Subject: [PATCH 19/35] power: update power hint for ukee. Add video decode power hint to support video power feature. Change-Id: I1b22969b04a3a7175c65428a8d05e121b43cae87 --- config/taro/powerhint.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/taro/powerhint.xml b/config/taro/powerhint.xml index 287b043..c897fc6 100644 --- a/config/taro/powerhint.xml +++ b/config/taro/powerhint.xml @@ -603,6 +603,9 @@ + @@ -615,6 +618,9 @@ + From b4abf47299136942d3f0eacf5553e0d26a1812d6 Mon Sep 17 00:00:00 2001 From: Divya Verma Date: Mon, 26 Sep 2022 20:07:21 +0530 Subject: [PATCH 20/35] power : revised tunings for parrot revised camera encode tuning for parrot --- config/parrot/powerhint.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/parrot/powerhint.xml b/config/parrot/powerhint.xml index 4984277..1319e19 100644 --- a/config/parrot/powerhint.xml +++ b/config/parrot/powerhint.xml @@ -99,11 +99,12 @@ + + 0x43020000, 100, 0x4303C000, 0x17BA38"/> From 33e85f52aa2deac4a29fc7ea34ce04b3a437ebd2 Mon Sep 17 00:00:00 2001 From: Om Singh Date: Fri, 21 Oct 2022 11:23:00 +0530 Subject: [PATCH 21/35] Power: tuning of snapshot, 30fps and ZSL use cases Updating parameters for snapshot and 30fps use case Change-Id: I4c1ef298ac84ff8f2b21aef36c89a3c831231a29 --- config/neo/powerhint.xml | 32 +++++++++----------------------- 1 file changed, 9 insertions(+), 23 deletions(-) diff --git a/config/neo/powerhint.xml b/config/neo/powerhint.xml index 362e71a..e76ac6b 100644 --- a/config/neo/powerhint.xml +++ b/config/neo/powerhint.xml @@ -74,19 +74,13 @@ - - - - - - - - + + + 0x43020000, 0x64, 0x43024000, 0, 0x41444000, 0, 0x41440000, 0x63, 0x43048000, 0x32"/> @@ -97,19 +91,13 @@ - - - - - - - + + + 0x43020000, 0x64, 0x43024000, 0, 0x4303C000, 0x858B8 , 0x41444000, 0, 0x41440000, 0x63, 0x43048000, 0x32"/> @@ -392,14 +380,12 @@ - - - - + + Resources="0x40400000, 0x1, 0x40800000, 0x459"/> + From c88ddbdef55fe93e011f75501b306a7e177b21b3 Mon Sep 17 00:00:00 2001 From: Surya Prakash Date: Mon, 3 Oct 2022 11:51:14 +0530 Subject: [PATCH 22/35] power: improve silver capped freq for taro Changing capped silver freq for taro. Change-Id: I1988560acfb39ca08b23880fd524901fbb04c0b8 --- config/taro/powerhint.xml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config/taro/powerhint.xml b/config/taro/powerhint.xml index c897fc6..3bf3058 100644 --- a/config/taro/powerhint.xml +++ b/config/taro/powerhint.xml @@ -27,6 +27,11 @@ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * Changes from Qualcomm Innovation Center are provided under the following license: + * + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause-Clear */ --> @@ -369,7 +374,7 @@ + 0x43020000, 0x64, 0x43024000, 0, 0x41444100, 0, 0x41440100, 0x63, 0x40804100, 0x34C, 0x41008000, 0, 0x41008100, 0, 0x41008200, 0"/> Date: Thu, 10 Nov 2022 10:51:06 +0530 Subject: [PATCH 23/35] power: updated power for ravelin Revised power hint file to support ravelin Change-Id: Icccaafbc02beecaa149023e0960d4c16700a9c46 --- config/parrot/powerhint.xml | 48 ++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/config/parrot/powerhint.xml b/config/parrot/powerhint.xml index 1319e19..02c7070 100644 --- a/config/parrot/powerhint.xml +++ b/config/parrot/powerhint.xml @@ -41,19 +41,19 @@ @@ -68,7 +68,7 @@ @@ -85,7 +85,7 @@ @@ -101,7 +101,7 @@ @@ -116,7 +116,7 @@ @@ -130,7 +130,7 @@ @@ -144,7 +144,7 @@ @@ -159,7 +159,7 @@ @@ -173,7 +173,7 @@ @@ -187,7 +187,7 @@ @@ -201,7 +201,7 @@ @@ -215,7 +215,7 @@ @@ -229,7 +229,7 @@ @@ -243,7 +243,7 @@ @@ -257,7 +257,7 @@ @@ -271,7 +271,7 @@ @@ -284,7 +284,7 @@ @@ -297,7 +297,7 @@ @@ -310,7 +310,7 @@ @@ -322,7 +322,7 @@ @@ -334,7 +334,7 @@ @@ -345,7 +345,7 @@ From b5f91b546f58a38af37bebfc8ce2675794b70f4b Mon Sep 17 00:00:00 2001 From: Ammar Mahmood Date: Wed, 12 Oct 2022 10:47:15 -0700 Subject: [PATCH 24/35] Power: Adding powerhint.xml for Halliday target Adding powerhint for Halliday Change-Id: I60943cdd92f890fe8763fcfef06a0a8352d70d36 --- config/anorak/powerhint.xml | 456 ++++++++++++++++++++++++++++++++++++ power-vendor-product.mk | 2 + 2 files changed, 458 insertions(+) create mode 100644 config/anorak/powerhint.xml diff --git a/config/anorak/powerhint.xml b/config/anorak/powerhint.xml new file mode 100644 index 0000000..dbb71ed --- /dev/null +++ b/config/anorak/powerhint.xml @@ -0,0 +1,456 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/power-vendor-product.mk b/power-vendor-product.mk index 8d44b56..e6959ab 100644 --- a/power-vendor-product.mk +++ b/power-vendor-product.mk @@ -23,4 +23,6 @@ else ifeq ($(TARGET_BOARD_PLATFORM),parrot) PRODUCT_COPY_FILES += vendor/qcom/opensource/power/config/parrot/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml else ifeq ($(TARGET_BOARD_PLATFORM),neo) PRODUCT_COPY_FILES += vendor/qcom/opensource/power/config/neo/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml +else ifeq ($(TARGET_BOARD_PLATFORM),anorak) +PRODUCT_COPY_FILES += vendor/qcom/opensource/power/config/anorak/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml endif From d87b134d015be29c3a0404fcd863077cdd7724fc Mon Sep 17 00:00:00 2001 From: Sumit Gemini Date: Mon, 21 Nov 2022 17:15:13 +0530 Subject: [PATCH 25/35] Power : Set minCpu freq for preview to meet FPS modifed camera close hintID and set min CPUfre for camera preview case Change-Id: I5b65e521c6de2dc2505a144438f481d069888fe6 --- config/taro/powerhint.xml | 40 ++++++++++++++++++++++++++++++++------- 1 file changed, 33 insertions(+), 7 deletions(-) diff --git a/config/taro/powerhint.xml b/config/taro/powerhint.xml index 3bf3058..57a4068 100644 --- a/config/taro/powerhint.xml +++ b/config/taro/powerhint.xml @@ -32,6 +32,31 @@ * * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. * SPDX-License-Identifier: BSD-3-Clause-Clear + * + * Redistribution and use in source and binary forms, with or without + * modification,are permitted (subject to the limitations in the disclaimer + * below) provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer inthe + * documentation and/or other materials provided with the distribution. + * * Neither the name of Qualcomm Innovation Center, Inc. nor the names + * of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY + * THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND + * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, + * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED + * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ --> @@ -382,11 +407,12 @@ Resources="0x4183C000, 0x21, 0x41834000, 0x64, 0x41838000, 0, 0x43034000, 0x21, 0x43020000, 0x64, 0x43024000, 0, 0x41444100, 0, 0x41440100, 0x63, 0x40804100, 0x2B3, 0x41008000, 0, 0x41008100, 0, 0x41008200, 0"/> + + 0x43020000, 0x64, 0x43024000, 0, 0x41444100, 0, 0x41440100, 0x63, 0x40800100, 0x2B3, 0x40804100, 0x2B3, 0x41008000, 0, 0x41008100, 0, 0x41008200, 0"/> @@ -541,8 +567,8 @@ 0x40804100, 0XFFF, 0x40800100, 0XFFF, 0x40800200, 0XFFF, 0x40804200, 0XFFF"/> + Resources="0x40400000, 0x1, 0x40C00000, 0x1, 0x40804000, 0XFFF, 0x40800000, 0XFFF, + 0x40804100, 0XFFF, 0x40800100, 0XFFF, 0x40800200, 0XFFF, 0x40804200, 0XFFF"/> @@ -562,9 +588,9 @@ Resources="0x40400000, 0x1, 0x40C00000, 0x1, 0x40804000, 0XFFF, 0x40800000, 0XFFF, 0x40804100, 0XFFF, 0x40800100, 0XFFF, 0x40800200, 0XFFF, 0x40804200, 0XFFF"/> + Id="0x00001338" Enable="true" Timeout="0" Target="ukee" + Resources="0x40400000, 0x1, 0x40C00000, 0x1, 0x40804000, 0XFFF, 0x40800000, 0XFFF, + 0x40804100, 0XFFF, 0x40800100, 0XFFF, 0x40800200, 0XFFF, 0x40804200, 0XFFF"/> @@ -584,7 +610,7 @@ From 64019ba53ccb800f0510ca1caec30f8f5349ccb8 Mon Sep 17 00:00:00 2001 From: Surya Prakash Date: Thu, 8 Dec 2022 11:37:11 +0530 Subject: [PATCH 26/35] power: modified powerhint file for ravelin power hint changes for ravelin Change-Id: I524dcb3b76c4a46a516a3771db8152e3d4ada965 --- config/parrot/powerhint.xml | 359 +++++++++++++++++++++++++++++++++--- 1 file changed, 335 insertions(+), 24 deletions(-) diff --git a/config/parrot/powerhint.xml b/config/parrot/powerhint.xml index 02c7070..71b0bef 100644 --- a/config/parrot/powerhint.xml +++ b/config/parrot/powerhint.xml @@ -41,19 +41,19 @@ @@ -68,7 +68,7 @@ @@ -85,7 +85,7 @@ @@ -101,7 +101,7 @@ @@ -116,7 +116,7 @@ @@ -130,7 +130,7 @@ @@ -144,7 +144,7 @@ @@ -159,7 +159,7 @@ @@ -173,7 +173,7 @@ @@ -187,7 +187,7 @@ @@ -201,7 +201,7 @@ @@ -215,7 +215,7 @@ @@ -229,7 +229,7 @@ @@ -243,7 +243,7 @@ @@ -257,7 +257,7 @@ @@ -271,7 +271,7 @@ @@ -284,7 +284,7 @@ @@ -297,7 +297,7 @@ @@ -310,7 +310,7 @@ @@ -322,7 +322,7 @@ @@ -334,7 +334,7 @@ @@ -345,8 +345,319 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From c3c87c75b0c51733f7f4f96e349ec26b50bf6879 Mon Sep 17 00:00:00 2001 From: Om Singh Date: Thu, 5 Jan 2023 13:11:08 +0530 Subject: [PATCH 27/35] Power: tuning of 30fps use case Updating parameter for 30fps use case Change-Id: Id2ced860b024975c684144603bae6329e3b25077 --- config/neo/powerhint.xml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/config/neo/powerhint.xml b/config/neo/powerhint.xml index e76ac6b..a57ab12 100644 --- a/config/neo/powerhint.xml +++ b/config/neo/powerhint.xml @@ -90,14 +90,14 @@ - + + 0x43020000, 0x64, 0x43024000, 0, 0x4303C000, 0x17BA38 , 0x41444000, 0, 0x41440000, 0x63, 0x43048000, 0x32"/> @@ -365,18 +365,20 @@ + + Resources="0x40400000, 0x1, 0x40C00000, 0x1, 0x40804000, 0XFFFF, 0x40800000, 0XFFFF, 0x4303C000, 0x17BA38"/> + + Resources="0x40400000, 0x1, 0x40C00000, 0x1, 0x40804000, 0XFFFF, 0x40800000, 0XFFFF, 0x4303C000, 0x17BA38"/> From 08782496ca3dd54b0c3e5233bfef0f977089308f Mon Sep 17 00:00:00 2001 From: Prabhat Kumar Arya Date: Wed, 11 Jan 2023 13:17:24 +0530 Subject: [PATCH 28/35] Powerhint file for Ravelin Added Powerhint.xml changes for Ravelin. Change-Id: I3e1c4aadfff1fe0d13be7f331fd403e7691dbe82 --- config/parrot/powerhint.xml | 46 ++++++++++++++++--------------------- 1 file changed, 20 insertions(+), 26 deletions(-) diff --git a/config/parrot/powerhint.xml b/config/parrot/powerhint.xml index 71b0bef..cef9e37 100644 --- a/config/parrot/powerhint.xml +++ b/config/parrot/powerhint.xml @@ -369,66 +369,60 @@ - + - - - + + + Resources="0x40C68100, -10, 0x40C68000, -10, 0x4143C100, 920, 0x41440100, 0x5F, + 0x43034000, 0x21, 0x40804100, 1804,0x41000100, 6,0x43048000, 0x32, 0x43020000, 100"/> - + - - - + + + Resources="0x40C68100, -10, 0x40C68000, -10, 0x4143C100, 920, 0x41440100, 0x5F, + 0x43034000, 0x21, 0x40800100, 920, 0x40804100, 1804, 0x41000100, 6, + 0x43048000, 0x32, 0x43020000, 100"/> - - - + + + Resources="0x40C68100, -10, 0x40C68000, -10, 0x43034000, 0x21, 0x40804100, 1804, + 0x41000100, 6, 0x43048000, 0x32, 0x43020000, 100, 0x4303C000, 0x17BA38"/> - - - - + + + From 4661766ecffa6081c07b5c8a465dee6c4bac6047 Mon Sep 17 00:00:00 2001 From: Ammar Mahmood Date: Thu, 16 Feb 2023 14:17:37 -0800 Subject: [PATCH 29/35] Power: Modifying powerhint.xml for Halliday Target Tuning GPU powerhint for Halliday Change-Id: Idf2372652e6ad5aa4dc679223205108135866792 --- config/anorak/powerhint.xml | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/config/anorak/powerhint.xml b/config/anorak/powerhint.xml index dbb71ed..355840a 100644 --- a/config/anorak/powerhint.xml +++ b/config/anorak/powerhint.xml @@ -88,14 +88,14 @@ - + @@ -106,14 +106,14 @@ - + @@ -124,14 +124,14 @@ - + @@ -142,14 +142,14 @@ - + @@ -160,14 +160,14 @@ - + @@ -178,14 +178,14 @@ - + @@ -196,14 +196,14 @@ - + @@ -214,14 +214,14 @@ - + @@ -232,14 +232,14 @@ - + From 7a8aefc0c0974f6240d2e4e233ee7504b7b08432 Mon Sep 17 00:00:00 2001 From: Sumit Gemini Date: Wed, 22 Feb 2023 10:23:41 +0530 Subject: [PATCH 30/35] Power : Add power tuning for sHDR encode use case Add power tuning for sHDR encode case for Yupik in power.lnx.5.0 Change-Id: Iac83d923ff83a09cdbb02af4322e233cdf0a9348 --- config/lahaina/powerhint.xml | 68 ++++++++++++++++++++++++++++-------- 1 file changed, 53 insertions(+), 15 deletions(-) diff --git a/config/lahaina/powerhint.xml b/config/lahaina/powerhint.xml index 8bb63d8..9b8a87c 100644 --- a/config/lahaina/powerhint.xml +++ b/config/lahaina/powerhint.xml @@ -213,13 +213,13 @@ - + - - + + @@ -229,14 +229,14 @@ - + - + - - + + @@ -245,14 +245,14 @@ - + - + - - + + @@ -261,14 +261,14 @@ - + - + - - + + @@ -286,6 +286,24 @@ Id="0x00001334" Enable="true" Timeout="0" Target="lahaina" Resources="0x40400000, 0x1, 0x40800100, 0x40C, 0x40800000, 0x4CC, 0x40C20000, 0x14, 0x40C1C000, 0x1E, 0x41820000, 0x0A, 0x41808000, 0x50, 0x4180C000, 0"/> + + + + + + + + + + + + + + @@ -670,6 +688,26 @@ 0x40C68130, 0xFFFFFFFA, 0x4143C100, 940, 0x4183C000, 0x14, 0x43034000, 0x14, 0x40800100, 940, 0x40804100, 1804, 0x40CEC000, 0x1"/> + + + + + + + + + + + + + + + From 31f7ba3c4befdc26d80e98e7528a635ad38fb039 Mon Sep 17 00:00:00 2001 From: Divya Verma Date: Tue, 7 Mar 2023 14:05:45 +0530 Subject: [PATCH 31/35] power: modify tunings for camera close hint modify tunings for ravelin camera closed hint Change-Id: I5708ad04cf81d1a3b2aa2aa4f3d252c2ccc83c7a --- config/parrot/powerhint.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/parrot/powerhint.xml b/config/parrot/powerhint.xml index cef9e37..f1b17c1 100644 --- a/config/parrot/powerhint.xml +++ b/config/parrot/powerhint.xml @@ -632,14 +632,13 @@ - From 8e990c106b03ceb999825c3f060db1dd1ae02fa6 Mon Sep 17 00:00:00 2001 From: Mohit Rimza Date: Wed, 15 Mar 2023 13:08:10 +0530 Subject: [PATCH 32/35] power: added power hint for sHDR case to support parrot and ravelin added power hint for sHDR case to support parrot and ravelin Change-Id: Iac904c411696c1473f1bfe928b103aa46f1fb7a4 --- config/parrot/powerhint.xml | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/config/parrot/powerhint.xml b/config/parrot/powerhint.xml index f1b17c1..139db71 100644 --- a/config/parrot/powerhint.xml +++ b/config/parrot/powerhint.xml @@ -106,6 +106,26 @@ 0x40CE0000, 0x0023001E, 0x40CF4000, 0x0023001E, 0x41000000, 0x4, 0x43048000, 0x32, 0x43020000, 100, 0x4303C000, 0x17BA38"/> + + + + + + + + + + + + + + + @@ -411,6 +431,26 @@ Resources="0x40C68100, -10, 0x40C68000, -10, 0x43034000, 0x21, 0x40804100, 1804, 0x41000100, 6, 0x43048000, 0x32, 0x43020000, 100, 0x4303C000, 0x17BA38"/> + + + + + + + + + + + + + + + From 12299eccb113774c12e7b3b5136835d321d52d2b Mon Sep 17 00:00:00 2001 From: jiayin Date: Fri, 14 Apr 2023 14:53:38 +0800 Subject: [PATCH 33/35] power: adjust powerhint for halliday Update GPU freq settings in powerhint due to more frequency points was added for GPU. Change-Id: I0f4f0d8ebd842a13be79b904cdb4c22bad862ea0 --- config/anorak/powerhint.xml | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/config/anorak/powerhint.xml b/config/anorak/powerhint.xml index 355840a..76ba23c 100644 --- a/config/anorak/powerhint.xml +++ b/config/anorak/powerhint.xml @@ -87,7 +87,7 @@ - + @@ -95,7 +95,7 @@ @@ -105,7 +105,7 @@ - + @@ -113,7 +113,7 @@ @@ -123,7 +123,7 @@ - + @@ -131,7 +131,7 @@ @@ -141,7 +141,7 @@ - + @@ -149,7 +149,7 @@ @@ -159,7 +159,7 @@ - + @@ -167,7 +167,7 @@ @@ -177,7 +177,7 @@ - + @@ -185,7 +185,7 @@ @@ -195,7 +195,7 @@ - + @@ -203,7 +203,7 @@ @@ -213,7 +213,7 @@ - + @@ -221,7 +221,7 @@ @@ -231,7 +231,7 @@ - + @@ -239,7 +239,7 @@ From a355df77fb14b696ce6840150ed9de09eadf544b Mon Sep 17 00:00:00 2001 From: Ammar Mahmood Date: Tue, 18 Jul 2023 13:15:07 -0700 Subject: [PATCH 34/35] Power: Modifying powerhint.xml for Halliday target Modifying powerhint (Camera Open/Close removal) for Halliday Target Change-Id: Ifeccd4dedf1b285a98c02dc3b42951a86a00bd3b --- config/anorak/powerhint.xml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/config/anorak/powerhint.xml b/config/anorak/powerhint.xml index 76ba23c..33c03b2 100644 --- a/config/anorak/powerhint.xml +++ b/config/anorak/powerhint.xml @@ -380,10 +380,10 @@ - + + + + @@ -394,10 +394,10 @@ - + + + + From 6766a136c32eec4ccc0cb4de878ea971b037994e Mon Sep 17 00:00:00 2001 From: Vinay Rijhwani Date: Fri, 14 Jul 2023 17:02:13 +0530 Subject: [PATCH 35/35] power: Replace library name with ndk from ndk_platform for upgrade sdk version Replace library name with suffix ndk from ndk_platform for upgrade sdk version Change-Id: If9f07dd855bf5b13806a8c80036c49c2c2df8f51 Signed-off-by: Vinay Rijhwani --- Android.mk | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Android.mk b/Android.mk index f2ef2b6..af78f3e 100644 --- a/Android.mk +++ b/Android.mk @@ -8,7 +8,14 @@ include $(CLEAR_VARS) LOCAL_MODULE_RELATIVE_PATH := hw # KEYSTONE(I1132378f14428bf511f3cea4f419e90a6e89f823,b/181709127) -LOCAL_SHARED_LIBRARIES := liblog libcutils libdl libxml2 libbase libutils android.hardware.power-V1-ndk_platform libbinder_ndk +LOCAL_SHARED_LIBRARIES := liblog libcutils libdl libxml2 libbase libutils libbinder_ndk + +ifeq ($(call math_gt_or_eq, $(PLATFORM_SDK_VERSION), 34), true) +LOCAL_SHARED_LIBRARIES += android.hardware.power-V1-ndk +else +LOCAL_SHARED_LIBRARIES += android.hardware.power-V1-ndk_platform +endif + LOCAL_HEADER_LIBRARIES += libutils_headers LOCAL_HEADER_LIBRARIES += libhardware_headers LOCAL_SRC_FILES := power-common.c metadata-parser.c utils.c list.c hint-data.c powerhintparser.c Power.cpp main.cpp