17 Commits

Author SHA1 Message Date
Peter (YM)
88203440b2 thermal: allow thermal_hal to read sysfs_gpu
Update the sepolicy for thermalhal to read sysfs_gpu to access the basic
gpu info.

Bug: 336698561
Test: Flash Build and boot to home, run adb shell dumpsys android.hardware.thermal.IThermal/default, check the cdevceiling and hardlimit number for gpu
Change-Id: I6e722e108284ee0d7a0c86a9e50749ecf4b354a5
Signed-off-by: Peter (YM) <peterym@google.com>
2024-04-29 05:37:09 +00:00
YiHo Cheng
8051099b42 dumpstate: thermal: Add tmu intpend dumps
tmu intpend register dump sysfs is added so add the sysfs in thermal
dump script as well

Bug: 271619423
Test: adb bugreport
Change-Id: I9d5fe4302ce6101837a075ab46798e5f49a61d7d
2024-03-15 18:04:10 +08:00
TeYuan Wang
2e4c437b43 sepolicy: allow setprop for thermal_controld
selinux denied log:
[   53.774820] type=1400 audit(1709683991.036:9): avc:  denied  { write } for  comm="setprop" name="property_service" dev="tmpfs" ino=842 scontext=u:r:pixel-thermal-control-sh:s0 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0

Bug: 328118301
Test: adb shell getprop vendor.disable.thermalhal.control
Change-Id: I590f05d1119d11400b0115fff63b3420790e7332
2024-03-11 19:00:11 +00:00
Treehugger Robot
792837721c Merge "dumpstate: thermal: update thermal dump script path" into main 2024-02-29 08:45:22 +00:00
YiHo Cheng
a1f78bf75d dumpstate: thermal: update thermal dump script path
Correct thermal dump script file path

Bug: 326349256
Test: build

Change-Id: Iaf2108f037ca89ffae3e89a2e81996d03c79ff5f
2024-02-29 06:51:05 +00:00
YiHo Cheng
26ee331772 gs-common:thermal: Add thermal owner file am: d2dc2ff3b8
Original change: https://android-review.googlesource.com/c/device/google/gs-common/+/2979052

Change-Id: Ie1df5242b051f4b9ed7cd660692ec0c49afef86f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-27 17:31:19 +00:00
YiHo Cheng
d2dc2ff3b8 gs-common:thermal: Add thermal owner file
Bug: 327096037
Test: build

Change-Id: I5ec3640c5cc6f66e53d5cbedacd68bc2c6b3cc22
2024-02-27 08:00:12 +00:00
Will Song
24a0f58c33 thermal-hal: Add schema to check thermalHAL JSON files
Added a schema in proto to check fields of the JSON files
during pre-submit.

Test: Build
Bug: 127794899
Change-Id: I9e6cf116746f357d1de1b578f494a2b8f485e640
2023-11-16 15:52:21 -08:00
Ram Chandrasekar
8762a73f1b RELAND: sepolicy: thermal: move thermal makefile
move thermal makefile to the dump folder. This is done as a part of
reorganizing thermal sepolicy code.
Reland this change, since all the references from EoL socs are removed.

Bug: 289146743
Test: Compilation and bootup test

Change-Id: Ibe60672d34b02712f04293cc891c12a07a93c23e
Signed-off-by: Ram Chandrasekar <rchandrasekar@google.com>
2023-09-01 11:31:43 -07:00
Randall Huang
31a8c774cb Revert "sepolicy: thermal: move thermal makefile"
Revert submission 24269757-thermal-sepolicy

Reason for revert: b/297279327 build breakage

Reverted changes: /q/submissionid:24269757-thermal-sepolicy

Change-Id: I74437b2eed80b72280baf7a9140ab9f493709ce9
2023-08-24 03:27:16 +00:00
Ram Chandrasekar
7817a84c48 sepolicy: thermal: move thermal makefile
move thermal makefile to the dump folder. This is done as a part of
reorganizing thermal sepolicy code.

Bug: 289146743
Test: Compilation and bootup test

Change-Id: I43d5d3916e7ec49cfc174bf709a466d4078b1c21
Signed-off-by: Ram Chandrasekar <rchandrasekar@google.com>
2023-08-03 12:31:01 -06:00
Ram Chandrasekar
90fd300e5f thermal-hal: Add thermal HAL configs
Add all thermal HAL sepolicy and makefile to the new common folder.

Bug: 289146743
Test: Compilation test

Change-Id: I133dcdac20a970e7ff4026fa503e46fd073be34f
Signed-off-by: Ram Chandrasekar <rchandrasekar@google.com>
2023-08-03 12:30:14 -06:00
Ram Chandrasekar
910ecf4ffa sepolicy: thermal: reorganize the source to folder
Reorganize the dump thermal script source and sepolicy to its own
folder. This is done as a part of moving all thermal product
makefiles to gs-common.

Bug: 289146743
Test: Compilation and bootup test

Change-Id: Ie9162b401c9bed57c3d2e2648edc17457ad8883e
Signed-off-by: Ram Chandrasekar <rchandrasekar@google.com>
2023-07-31 11:13:51 -06:00
YiHo Cheng
99770a6fcd dumpstate:thermal: refactor dump_thermal.sh
- use echo instead of printf to save script execution time
- fix incorrect format in dump_thermal.sh

Bug: 290888701
Test: time ./dump_thermal.sh
Test: adb bugreport
Change-Id: I501775ccceaf9dc423db87913939ea2e361ed8c7
2023-07-21 13:58:39 +08:00
Ziyi Cui
3add9b2b48 gs-common:dumpstate: Combine Temperature Residency bugreport to pixel_metrics
Bug: 246799997
Test: Test: "adb bugreport" includes temp residency metrics capture.
Change-Id: I51eb7f961bd1ddeb0b7cd7bb33d1a19fef9b2c92
2022-11-28 20:16:47 +00:00
Ziyi Cui
4a96ebedbf gs-common:dumpstate: Dump Temperature Residency at bugreport
At the bugreport, capture Temperature Residency metrics

Bug: 246799997
Test: Test: "adb bugreport" includes temp residency metrics capture.
Change-Id: I1cb1c9e53890f3175812e15a15f09bcb7fd9d6af
2022-11-24 00:12:48 +00:00
Adam Shih
486bbb9212 create thermal dump in gs-common
Bug: 257880034
Test: adb bugreport
Change-Id: I0d93796c2639148dfb00b0d739cbae483091bfd4
2022-11-15 15:36:01 +08:00