Re: [PATCH] drm/amd: Make SW CTF handler cope with different read_sensor() results

2023-12-15 Thread Lazar, Lijo
On 12/14/2023 10:15 PM, Mario Limonciello wrote: The SW CTF handler assumes that the read_sensor() call always succeeds and has updated `hotspot_tmp`, but this may not be guaranteed. For example some of the read_sensor() callbacks will return 0 when a RAS interrupt is triggered in which case

[PATCH] drm/amd: Make SW CTF handler cope with different read_sensor() results

2023-12-14 Thread Mario Limonciello
The SW CTF handler assumes that the read_sensor() call always succeeds and has updated `hotspot_tmp`, but this may not be guaranteed. For example some of the read_sensor() callbacks will return 0 when a RAS interrupt is triggered in which case `hotspot_tmp` won't be updated. Adjust the logic to