Commit graph

29 commits

Author SHA1 Message Date
Peter (YM)
c1a6e0447e thermal: reading the thermistor temperature from upstream sysfs
- Workaround to avoid wrong sensor value reading for thermalHAL
- align thermal trigger temp for off mode charging config

Bug: 351248307
Test: Build and boot to home
Flag: EXEMPT (bug 337358613)
Change-Id: Ic83bb09287d4203eb816987e6abf4579b37b002b
Signed-off-by: Peter (YM) <peterym@google.com>
2024-07-09 03:12:12 +00:00
Treehugger Robot
adb687fe6a Merge "thermal: update charging thermal throttling" into main 2024-06-26 09:42:33 +00:00
Peter (YM)
1dd20df4df thermal: use stats-updator to trigger virtual sensor and remove unused virtual sensor
- Use stats-updator to ensure all the virutal sensor we want to monitor
can be trigger at the same time.

- Remove the un-used virtual sensor

- Update the name of VSKIN-SKIN-UNDER-52 to avoid confusion

Bug: 333834000
Test: Build on device and boot to home, b/333834000#comment8
Flag: EXEMPT (bug 337358613)
Change-Id: I9fc4df066b17417cee412d776a118ea1935fbc34
Signed-off-by: Peter (YM) <peterym@google.com>
2024-06-20 02:34:33 +00:00
David Chao
e625085871 thermal: update charging thermal throttling
Align charging thermal throttling parameters with leading project.

Bug: 333833667
Test: boot to home and thermal throttling worked as expected.
Change-Id: If8cfb1738c0dd921d52bdeb243dabdf3c190a9a4
2024-06-17 11:36:31 +00:00
Treehugger Robot
bd74564d02 Merge "thermal: enable quiet_therm mointor for backup shutdown" into main 2024-06-13 08:53:23 +00:00
Peter (YM)
a09374e841 Merge "thermal: add btmspkr_therm as trigger sensor" into main 2024-06-12 08:34:10 +00:00
Peter (YM)
e2f2401f32 thermal: add btmspkr_therm as trigger sensor
Align with latest Pixel setup.
Fix the issue that sensor trip temp not updated.

Bug: 346562574
Test: Build and boot to home, confirm the sensor trip temp is updated
Change-Id: I588e65e72158a0b9006f949688e0fa18e4f6d2b4
Signed-off-by: Peter (YM) <peterym@google.com>
2024-06-12 05:06:07 +00:00
Peter (YM)
61a7a29145 thermal: update vskin correlation to v2
- Model: based on evt 1.0 50 case and Proto 1.1 150 case
- Legacy: based on evt 1.0 50 case, also update the trigger temp based on legacy report (b/333834000#6)

Bug: 333834000
Test: Build and boot to home
Change-Id: Ibe4988ec2e9944a81c7a64a0315727a6c942e2e0
Signed-off-by: Peter (YM) <peterym@google.com>
2024-06-12 03:36:02 +00:00
Peter (YM)
671b3cf727 thermal: enable quiet_therm mointor for backup shutdown
- increase shutdown threshold to 60 to better monitor the thermal under
  high vskin
- Monitor vskin_legay - quiet_therm and vskin_model - quiet_them when vskin is higher than 52
- Monitor quiet_therm when it's over candidate shutdown threshold (55 degC)

Bug: 333485619
Test: Flash and boot to home
Change-Id: Id2ca58d427d342d353d7083e4771ac47caa074ec
Signed-off-by: Peter (YM) <peterym@google.com>
2024-06-12 03:06:19 +00:00
Peter (YM)
b1cec3fd6d thermal: align wth cellular-emergency threshold
The threshold was increased in early stage, since we have a better vskin
eqaution now, we can align the threshold value to other pixel device.

Bug: 346484703
Test: build and boot to home
Change-Id: Ie191e816e2a0a2be405c7c71ece38b7d2fb71d8e
Signed-off-by: Peter (YM) <peterym@google.com>
2024-06-11 08:21:29 +00:00
Peter (YM)
8f730bc927 thermal: usb thermal throttle in off charging mode
Fix the issue that device not trigger usb throttle in off mode charging.

Bug: 344445952
Test: Build and flash on device, verify with uart.
Change-Id: Ic6d453b1cab4614f8f6b42a9b6f5fe521a98101d
Signed-off-by: Peter (YM) <peterym@google.com>
2024-06-03 06:57:07 +00:00
samou
bd9bbb5288 thermal: tegu: Remove BCL related thermal zone
Bug: 342504477
Change-Id: I8da3a8b1ae6fee59b8e03fddc5f2bdca2c080a8b
Signed-off-by: samou <samou@google.com>
2024-05-24 08:03:35 +00:00
Peter (YM)
1ef4072ac6 thermal: init WLC themral throttle
- Init vskin-wlc v1
- init wlc thermal throttle with last generation algorithm

Bug: 341236825
Test: Build and boot to home
Change-Id: Iac66f0a13d94bf1e94744f7954775f0a91cbde0b
Signed-off-by: Peter (YM) <peterym@google.com>
2024-05-20 23:28:42 +00:00
Peter (YM)
36ca057ab7 thermal: Align PARTIAL_SYSTEM_POWER rails
Test: Build and verify offmode charge no thermalhal crash
Bug: 332417716
Change-Id: I7735336ed5282457af8f134c065c01f8022813c8
Signed-off-by: Peter (YM) <peterym@google.com>
2024-05-09 03:40:48 +00:00
Peter (YM)
605307f729 thermal: update thermal config
Algin with latest device setting

1. Update cdevceiling and hardlimit with frequency
2. Update TPU thermal throttle policy
3. Release thermal throttle in camera and game mode

Bug: 317750833
Test: Build and flash on device
Change-Id: If51183f72822febb3b3cf0cac33d03b33a4fb270
Signed-off-by: Peter (YM) <peterym@google.com>
2024-05-09 03:38:32 +00:00
Peter (YM)
eed13b648c Merge "thermal: usb thermal protection" into main 2024-05-03 05:24:53 +00:00
Peter (YM)
fd239ef939 thermal: usb thermal protection
Based on HW proposal in b/335112894#comment21

Bug: 335112894
Test: b/335112894#comment21, verifiy by HW test
Change-Id: Id1f9e1595433c55d59539c947f8e8a5da285dfa9
Signed-off-by: Peter (YM) <peterym@google.com>
2024-05-03 01:53:37 +00:00
sashwinbalaji
b564103698 thermal: Update thermistor_name.txt from tflite model
With ag/27095449, we'll always parse thermistor_name config and the
current tflite model thermistor_name is not in json format.
This will lead to thermal hal crash. Fix it by setting the file content
to empty json object {}

Bug: 337961368
Test: Locally update and ensure no thermal hal crash
Change-Id: Ib171509a9cdf89d7982adcc0fa3c9c700b49b55b
2024-04-30 19:52:13 +08:00
Peter (YM)
f60d0384fc thermal: enable thermal throttle with legacy vskin v1
Provide legacy v1 based on Proto1.1 thermal test result

Bug: 330247219
Test: Run thermal benchmark test
Change-Id: I74e1b58a045c34670694c1edbe8338827c2776fa
Signed-off-by: Peter (YM) <peterym@google.com>
2024-04-17 11:13:26 +00:00
Peter (YM)
65bc4ef474 Merge "thermal: Add VSKIN-MODEL" into main 2024-04-16 02:39:06 +00:00
Peter (YM)
398ff36592 thermal: enable wired charging throttle
- Enable VSKIN-CHARGE based on idle charging case
- Enable Wired charging throttle with previous generation product's policy

Bug: 333663839
Test: Build and boot to home
Change-Id: I8b6f4a8d41afbd2f739f73d56c8e49fca406704b
Signed-off-by: Peter (YM) <peterym@google.com>
2024-04-12 07:20:55 +00:00
Peter (YM)
0a40d744ba thermal: Add VSKIN-MODEL
- Enable vskin-model but not apply thermal throttle
- Capture model abnormal value when it's outside -20 and 60 degC

Bug: 330247219
Test: Build and boot to home
Change-Id: Ibfa26713129b0e22305ca4ed147b9cebd05858b6
Signed-off-by: Peter (YM) <peterym@google.com>
2024-04-12 01:18:16 +00:00
sashwinbalaji
66c6afa1e2 thermal: Remove deprecated power rails
Remove the below power rails as they're going to be replaced with
different ones for better ODPM coverage.

  - S8S_VDD_G3D_L2
  - L9S_GNSS_CORE

Bug: 331556280
Test: Push config and verify thermal logs
Change-Id: I5a04e715bf49a6c4ee502eb82ca18795cff3eb9a
2024-04-01 12:48:54 +08:00
Peter (YM)
48a04811af thermal: remove chg_mdis
Bug: 328019873
Test: Device boot to home
Change-Id: I130099fa565a0c7f9c75d3acbd77e987e596a0f8
Signed-off-by: Peter (YM) <peterym@google.com>
2024-03-05 02:41:53 +00:00
Peter (YM)
2bb3daf080 Merge "thermal: remove redundant config" into main 2024-02-21 06:29:23 +00:00
Peter (YM)
579cd6ce9e thermal: init basic cpu throttle
Based on similar device thermal policy init the cpu throttle

There are some basic thermal function removed / changed, b/317750833 for  tracking:
1. Remove GPU cooling device
2. Remove chg_mdis cooling device
3. Higher temperature threshold, VSKIN shutdown set to 75 degC

Bug: 317355916
Test: flash on device and boot to home
Change-Id: Ibaa6e14b68744a31c4611a3d07c311754da5364d
Signed-off-by: Peter (YM) <peterym@google.com>
2023-12-26 09:04:04 +00:00
Peter (YM)
1e7c7b751a thermal: remove redundant config
Bug: 317750833
Test: Flash and boot to home
Change-Id: I58200f722d02f031ba31a8f510f3094b91688972
Signed-off-by: Peter (YM) <peterym@google.com>
2023-12-26 08:53:10 +00:00
Peter (YM)
12f74a39c3 thermal: clean up config
Bug: 310563534
Test: None
Change-Id: I7e500801f75bf5d53b711d7299278b7b84bcd2e0
Signed-off-by: Peter (YM) <peterym@google.com>
2023-11-13 09:30:17 +00:00
Wilson Sung
a5146d127e Initialize Tegu
Copy tegu from caimito c3019ae

Bug: 298309659
Change-Id: I7d168ff0c60b7c3696239c12534ea3cfac239c1a
2023-09-15 09:48:00 +00:00