[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230419061146.22246-1-angelogioacchino.delregno@collabora.com>
Date: Wed, 19 Apr 2023 08:11:44 +0200
From: AngeloGioacchino Del Regno
<angelogioacchino.delregno@...labora.com>
To: rafael@...nel.org
Cc: daniel.lezcano@...aro.org, amitk@...nel.org, rui.zhang@...el.com,
matthias.bgg@...il.com, angelogioacchino.delregno@...labora.com,
aouledameur@...libre.com, bchihi@...libre.com,
daniel@...rotopia.org, ye.xingchen@....com.cn, hsinyi@...omium.org,
michael.kao@...iatek.com, linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org
Subject: [PATCH 0/2] MediaTek AUXADC thermal: urgent fixes
The AUXADC thermal driver unfortunately has issues with a fixed wait
at probe, as this is not only SoC dependent, but actually depends on
the board (and even aging...): for example, that works fine on the
Chromebook that I have here in my hands but not for the ones in our lab.
Some machines are working fine with that 30ms delay at probe, but some
others are not, hence I started digging in downstream sources here and
there, and found that there actually is a valid temperature range for
at least auxadc-thermal *v1* and can be actually found in multiple
downstream kernels for MT8173 and MT6795.
As for v2 and v3 thermal IP, I'm sure that the v1 range works fine but
I've "left room" for adding specific ranges for them later: this fix
is urgent, as many MT8173 and MT8183 Chromebooks are failing tests in
KernelCI due to thermal shutdown during boot.
For the KernelCI logs, you can look at [1] for 8173, [2] for 8183.
[1]: https://storage.kernelci.org/next/master/next-20230405/arm64/defconfig+arm64-chromebook/gcc-10/lab-collabora/igt-kms-mediatek-mt8173-elm-hana.html
[2]: https://storage.kernelci.org/next/master/next-20230405/arm64/defconfig+arm64-chromebook/gcc-10/lab-collabora/cros-ec-mt8183-kukui-jacuzzi-juniper-sku16.html
AngeloGioacchino Del Regno (2):
Revert "thermal/drivers/mediatek: Add delay after thermal banks
initialization"
thermal/drivers/mediatek: Add temperature constraints to validate read
drivers/thermal/mediatek/auxadc_thermal.c | 23 ++++++++++++++++++++---
1 file changed, 20 insertions(+), 3 deletions(-)
--
2.40.0
Powered by blists - more mailing lists