summaryrefslogtreecommitdiff
path: root/thermal
AgeCommit message (Collapse)Author
2020-10-14Add P21 skin thermistor into control listWei Wang
Bug: 170435769 Test: build Change-Id: I6d3a9c3ce1f6713235123c4d14f7637775c2be9f
2020-10-13thermal: Correct usb overheat mitigation propYiHo Cheng
- correct usb overheat mitigation prop so usb overheat mitigation can be disabled/enabled via the prop. - add charger-therm for sm7250 so charging throttling can be disabled/enabled. Bug: 170391428 Test: adb shell setprop persist.vendor.disable.thermal.control 0/1 and check charger-therm can be enabled/disabled. Test: adb shell setprop persist.vendor.disable.usb.overheat.mitigation 0/1 and check usb overheat mitigation can be enabled/disabled. Change-Id: I92aff73c47bf66ea8ff06990ea750dad83143fa3
2020-09-25Migrate to use /dev for thermal scriptWei Wang
Test: boot Bug: 169261083 Signed-off-by: Wei Wang <wvw@google.com> Change-Id: I8207c1c0e2e82d2743aa5122ef18cd457ac246c3
2020-09-23thermal: create thermal symlinks in dev folderTeYuan Wang
Bug: 169261083 Test: thermal symlinks can be created in dev folder Change-Id: If813ecae4338385f8a1051ac235f471908d5018c Signed-off-by: TeYuan Wang <kamewang@google.com>
2020-09-14thermal: move thermal control property to HALTeYuan Wang
Bug: 167405442 Test: Switch thermal property and confirm throttling behavior can be turned on/off. Change-Id: I15e26067fcbd45d30a7212c50af9a90d1d28464f Signed-off-by: TeYuan Wang <kamewang@google.com>
2020-08-20thermal: notify perfmgr current thermal status am: 7c8556bf9a am: 09c798cd8d ↵Kyle Lin
am: 36dc7b20c1 Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/pixel/+/12325648 Change-Id: Ib73766f037e7f7c9e9087aa010be32678a65a718
2020-08-19thermal: notify perfmgr current thermal statusKyle Lin
Bug: 72471476 Bug: 162791243 Test: build and using emul temp/running burn8 to verify it Change-Id: If0fd7d5a877f172562eed406a0a39cfa120e6961
2020-07-31Explicitly initialize CPU usage informationWei Wang
Bug: 160657621 Test: atest VtsHalThermalV1_0TargetTest Change-Id: Ie742ff673be1874e9d7d403e398b5a803da45c18
2020-07-21Do not fail on cpu0 online nodeWei Wang
Bug: 160657621 Test: atest VtsHalThermalV1_0TargetTest Signed-off-by: Wei Wang <wvw@google.com> Change-Id: Ie79bfac3bb7918eebeab6ecaf6f4bdf1f9eb2e67
2020-03-27thermal: use common device.mkmandyshen
Bug: 146390555 Test: No avc denied and thermal_log can print when thermal-hal ativates Change-Id: I0b93bcf994924cb6fe67336a51aaacb43760f506
2020-03-24Merge "thermal: add sensor logging in thermalWatcherCallbackFunc" into rvc-devTreeHugger Robot
2020-03-23thermal: add sensor logging in thermalWatcherCallbackFuncTeYuan Wang
Bug: 151818536 Test: Log can be printed as below: I/android.hardware.thermal@2.0-service.pixel( 889): skin-therm-monitor: 50 Change-Id: Iefd24ff48ead9c2da55640742abcb158e9b181c2 Signed-off-by: TeYuan Wang <kamewang@google.com>
2020-03-19thermal: remove redundant cdev_to_watch registrationTeYuan Wang
cdev_to_watch fd causes pollOnce function return immediatly. Because thermalhal does not monitor cdev status now, so remove cdev_to_watch fd to avoid threadLoop busy problem. Bug: 151897840 Test: Verified thermalhal notifythrottling via emul_temp thermalhal will not keep busy. Change-Id: I999c9b843dde5870d83d8305d5517196188fa819 Signed-off-by: TeYuan Wang <kamewang@google.com>
2020-03-18Fix bugprone-use-after-move.Josh Gao
fd was moved out of, so we were adding -1 to the looper. Bug: http://b/150783499 Test: treehugger (cherry picked from commit 56ed76601d2fa5f1a1e6f7f24d79975a69f43a39) Change-Id: Ib571f32078fd9adb91a1e619110330583b75482b
2020-03-14Add OWNERS files for power and thermal HALWei Wang
Bug: 111098032 Test: build Change-Id: I8765d04f850336fe62159f51b3802df8f3eaf5bf
2020-03-10thermal: Optimize uevent monitor timeout mechanismTeYuan Wang
If non-thermal uevents keep triggered, thermalhal will not hit uevent timeout to update temperature. Bug: 138257706 Test: pts-tradefed run pts -m PtsThermalHalTestCases Change-Id: I8470b95f34ff3867e1a9c677e3712d8c8deb3a3c Signed-off-by: TeYuan Wang <kamewang@google.com>
2019-11-20Add thermal logging daemonWei Wang
Bug: 126562025 Bug: 144859663 Test: build and check thermal logging Change-Id: I996546110f4d66b3ff8052cb46000fe0e5f7b0da
2019-10-02Remove libhwbinder/libhidltransport depsSteven Moreland
Since these were combined into libhidlbase. Bug: 135686713 Test: build only (libhwbinder/libhidltransport are empty) Change-Id: Ife609bf7eddeae2fba81625d92de7d8ecddf60e6
2019-09-17Merge "Remove static vndk dep from vendor modules"Inseob Kim
2019-09-11Remove static vndk dep from vendor modulesInseob Kim
Instead, vendor modules should link against shared vndk. Bug: 137178339 Test: mma Change-Id: I20375b28fdb70c14ce80ffb115a19e38e3745b56
2019-09-10Adds missing interface for vendor.thermal-hal-2-0.Daniel Norman
init_rc files require the entire interface inheritance hierarchy to be listed, since e.g. all 1.0::IThermal functions are also implemented by 2.0::IThermal. Bug: 118016875 Test: builds & passes existing tests. Merged-In: I3fe1bc5e103fc3dd631f5dabc3408803dbdcbd60 Change-Id: I3fe1bc5e103fc3dd631f5dabc3408803dbdcbd60
2019-04-02thermal: Change polling to ueventTeYuan Wang
Bug:119189816 Test: Verified on blueline: Can receive uevent and change to polling mode. Can keep to waiting uevent if no thermsitor accross threshold. lshal debug android.hardware.thermal@2.0::IThermal/default pts-tradefed run singleCommand pts -m PtsThermalHalTestCases -l verbose Change-Id: I3bc8fe2024b8e1e12704f7f03019430569117f6b Signed-off-by: TeYuan Wang <kamewang@google.com>
2019-02-20Make sure (un)register API failed with nullptrWei Wang
Test: Build Test: VtsHalThermalV2_0TargetTest Change-Id: Iad9874017be50c7cc9f5d68020810071a2c95e2d
2019-02-19Always send NONE throttling status to framework if the thermal sensor is not ↵Wei Wang
monitored Test: build Change-Id: I9a5affb946b87ad6907e8dc9e3b9ba6983f7ab61
2019-02-04Thermal: parse thermal paths at initializationWei Wang
Bug: 118439547 Test: boot and lshal Change-Id: I3404752c8beac0127e3dbb36a5724df72eac9ed9
2019-01-31ThermalHAL: change log level for callbackWei Wang
Test: Build Change-Id: Icfcfb318c2bfcfa27857ea436f62eed5252c503e
2018-11-08thermal HAL: removing libpixelthermalVincent Palomares
Libpixelthermal is losing its only remaining user (in master) with this bug. Its code and features were replaced by the 2.0 thermal HAL, whose code is Pixel-version-agnostic. Test: build Bug: 118508571 Change-Id: I77ec67df27138eaa2b264df3deaa65a3f2738850 Signed-off-by: Vincent Palomares <paillon@google.com>
2018-10-16hardware: pixel: thermal: Use readFileFromString instead of infile.readMiguel de Dios
Bug: 117836889 Bug: 117302521 Test: pts-tradefed run singleCommand pts -m PtsThermalHalTestCases -l verbose Change-Id: I45da824405a4aa68b4112d482c1af8e6378b1e74
2018-10-05thermal: Move common thermal HAL code to shared Pixel library.Vincent Palomares
Created new 'thermal_structs.h' file to avoid library -> HAL include dependency. Removed battery_thresholds.cpp/h. Bug: 117104007 Test: adb shell dumpsys hardware_properties adb shell su 0 lshal debug android.hardware.thermal@1.1::IThermal/default pts -m PtsThermalHalTestCases vts -m VtsHalThermalV1_0Target vts -m VtsHalThermalV1_1Target Change-Id: Id517eea8e3e9bee1fbc579f176ff8850180ed105 Signed-off-by: Vincent Palomares <paillon@google.com>