Re: [PATCH v1 1/1] thermal: imx: implement runtime PM support
From: Daniel Lezcano <hidden>
Date: 2021-10-19 11:55:38
Also in:
linux-arm-kernel, lkml
On 19/10/2021 13:51, Oleksij Rempel wrote:
Hi Daniel, On Tue, Oct 19, 2021 at 01:04:46PM +0200, Daniel Lezcano wrote:quoted
On 24/09/2021 13:50, Oleksij Rempel wrote:quoted
Starting with commit d92ed2c9d3ff ("thermal: imx: Use driver's local data to decide whether to run a measurement") this driver stared using irq_enabled flag to make decision to power on/off the thermal core. This triggered a regression, where after reaching critical temperature, alarm IRQ handler set irq_enabled to false, disabled thermal core and was not able read temperature and disable cooling sequence. In case the cooling device is "CPU/GPU freq", the system will run with reduce performance until next reboot. To solve this issue, we need to move all parts implementing hand made runtime power management and let it handle actual runtime PM framework. Fixes: d92ed2c9d3ff ("thermal: imx: Use driver's local data to decide whether to run a measurement") Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>Thanks for this fix. Petr or Oleksij, could you confirm it is tested and working without CONFIG_PM ?Petr was right, no it is not working without PM.
Ok, thanks. I suppose the fix is related to the initialization of the sensor which should be enabled with/out pm_runtime, right ? -- <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