From 125d1d5833a8153eabddf5f1bc608efaa7605bd2 Mon Sep 17 00:00:00 2001 From: TeYuan Wang Date: Thu, 2 Dec 2021 11:01:37 +0800 Subject: [PATCH 1/4] dumpstate: add more cooling device debug info Bug: 202813409 Test: check dumpstate_board.txt Change-Id: Ice04536c321d35553a948cdea2e6a1add207c2c7 --- dumpstate/DumpstateDevice.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dumpstate/DumpstateDevice.cpp b/dumpstate/DumpstateDevice.cpp index 11faf7f3..fd3ca202 100644 --- a/dumpstate/DumpstateDevice.cpp +++ b/dumpstate/DumpstateDevice.cpp @@ -492,6 +492,10 @@ void DumpstateDevice::dumpThermalSection(int fd) { "for f in /sys/class/thermal/cooling* ; do " "type=`cat $f/type` ; temp=`cat $f/cur_state` ; echo \"$type: $temp\" ; " "done"}); + RunCommandToFd(fd, "Cooling Device Time in State", {"/vendor/bin/sh", "-c", "for f in /sys/class/thermal/cooling* ; " + "do type=`cat $f/type` ; temp=`cat $f/stats/time_in_state_ms` ; echo \"$type:\n$temp\" ; done"}); + RunCommandToFd(fd, "Cooling Device Trans Table", {"/vendor/bin/sh", "-c", "for f in /sys/class/thermal/cooling* ; " + "do type=`cat $f/type` ; temp=`cat $f/stats/trans_table` ; echo \"$type:\n$temp\" ; done"}); RunCommandToFd(fd, "Cooling Device State2Power Table", {"/vendor/bin/sh", "-c", "for f in /sys/class/thermal/cooling* ; do " "type=`cat $f/type` ; state2power_table=`cat $f/state2power_table` ; echo \"$type: $state2power_table\" ; " From 26f9f02fb571746fbf0fb258e8b21389a0dd1954 Mon Sep 17 00:00:00 2001 From: joenchen Date: Fri, 19 Nov 2021 12:10:58 +0000 Subject: [PATCH 2/4] init: change owners of sysfs nodes min_vrefresh and idle_delay_ms init: change file owners of sysfs nodes min_vrefresh and idle_delay_ms in order to grant permission for hwcomposer Bug: 202567084 Test: use the following commands adb shell "vndservice call Exynos.HWCService 1005 i32 0 i32 30" adb shell "vndservice call Exynos.HWCService 1006 i32 0 i32 1000" Change-Id: Ia072a9826402bdf23d2577b8dc7f82b5e4d903f6 Merged-In: Ia072a9826402bdf23d2577b8dc7f82b5e4d903f6 --- conf/init.gs101.rc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conf/init.gs101.rc b/conf/init.gs101.rc index 3cd6f0fd..d624eb20 100644 --- a/conf/init.gs101.rc +++ b/conf/init.gs101.rc @@ -542,6 +542,8 @@ on fs chown system system /sys/class/backlight/panel0-backlight/hbm_mode chown system system /sys/class/backlight/panel0-backlight/local_hbm_mode chown system system /sys/devices/platform/exynos-drm/primary-panel/gamma + chown system system /sys/devices/platform/exynos-drm/primary-panel/min_vrefresh + chown system system /sys/devices/platform/exynos-drm/primary-panel/idle_delay_ms chown system system /sys/module/drm/parameters/vblankoffdelay chown system system /sys/class/dqe/atc/ambient_light chown system system /sys/class/dqe/atc/st From 50f80d1be1946573679f5967d736e9c5ec808681 Mon Sep 17 00:00:00 2001 From: joenchen Date: Wed, 17 Nov 2021 07:03:56 +0000 Subject: [PATCH 3/4] gs101: declare IDisplay to V4 Bug: 202567084 Test: build pass Change-Id: I08485ead1c05e8e46611156c76ec4a1d760fbbb0 Merged-In: I08485ead1c05e8e46611156c76ec4a1d760fbbb0 --- device_framework_matrix_product.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/device_framework_matrix_product.xml b/device_framework_matrix_product.xml index 866dbf1b..ec6e7172 100644 --- a/device_framework_matrix_product.xml +++ b/device_framework_matrix_product.xml @@ -72,7 +72,7 @@ com.google.hardware.pixel.display - 3 + 4 IDisplay default From d8ce1583245702e42c1c9c93fa3a56a6bc39e234 Mon Sep 17 00:00:00 2001 From: Shinru Han Date: Mon, 6 Dec 2021 15:01:46 +0800 Subject: [PATCH 4/4] gps: Update EnableOnChipStopNotification MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Set EnableOnChipStopNotification=”2”. Sends on-chip stop notification only when the Host request exists and on-chip request stops. Bug: 208940846 Test: logging test for case #1, #3 and #4 in b/197196725#comment39 Change-Id: I8a244eb3a705f1cc2884e1a180cb8ad6ebd41ad7 --- gnss/47765/config/gps.xml | 2 +- gnss/47765/config/gps.xml.oriole | 2 +- gnss/47765/config/gps.xml.raven | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gnss/47765/config/gps.xml b/gnss/47765/config/gps.xml index 7bc6fd55..00cc8f46 100644 --- a/gnss/47765/config/gps.xml +++ b/gnss/47765/config/gps.xml @@ -75,7 +75,7 @@ RfPathLossDb_Cp_L5="3.5" OnChipGpsCarrierType="3,2,3,3,2,3,2,3,3,3,1,2,1,3,2,1,2,3,1,1,1,1,3,3,3,3,3,1,2,3,2,3" - EnableOnChipStopNotification="false" + EnableOnChipStopNotification="2" PowerMode="3" /> diff --git a/gnss/47765/config/gps.xml.oriole b/gnss/47765/config/gps.xml.oriole index 549edf68..e387a421 100644 --- a/gnss/47765/config/gps.xml.oriole +++ b/gnss/47765/config/gps.xml.oriole @@ -75,7 +75,7 @@ RfPathLossDb_Cp_L5="4.1" OnChipGpsCarrierType="3,2,3,3,2,3,2,3,3,3,1,2,1,3,2,1,2,3,1,1,1,1,3,3,3,3,3,1,2,3,2,3" - EnableOnChipStopNotification="false" + EnableOnChipStopNotification="2" PowerMode="3" /> diff --git a/gnss/47765/config/gps.xml.raven b/gnss/47765/config/gps.xml.raven index 9d28207a..3c394d61 100644 --- a/gnss/47765/config/gps.xml.raven +++ b/gnss/47765/config/gps.xml.raven @@ -75,7 +75,7 @@ RfPathLossDb_Cp_L5="4" OnChipGpsCarrierType="3,2,3,3,2,3,2,3,3,3,1,2,1,3,2,1,2,3,1,1,1,1,3,3,3,3,3,1,2,3,2,3" - EnableOnChipStopNotification="false" + EnableOnChipStopNotification="2" PowerMode="3" />