Re: [PATCH RESEND v2 3/5] thermal/drivers/mediatek/lvts: Disable low offset IRQ for minimum threshold
From: Daniel Lezcano
Date: Tue Jan 14 2025 - 13:30:42 EST
On 13/01/2025 14:27, Nícolas F. R. A. Prado wrote:
In order to get working interrupts, a low offset value needs to be
configured. The minimum value for it is 20 Celsius, which is what is
configured when there's no lower thermal trip (ie the thermal core
passes -INT_MAX as low trip temperature). However, when the temperature
gets that low and fluctuates around that value it causes an interrupt
storm.
Is it really about an irq storm or about having a temperature threshold
set close to the ambiant temperature. So leading to unnecessary wakeups
as there is need for mitigation ?
Prevent that interrupt storm by not enabling the low offset interrupt if
the low threshold is the minimum one.
The case where the high threshold is the INT_MAX should be handled too.
The system may have configured a thermal zone without critical trip
points, so setting the next upper threshold will program the register
with INT_MAX. I guess it is an undefined behavior in this case, right ?
Cc: stable@xxxxxxxxxxxxxxx
[ ... ]
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog