diff mbox series

[4.19.y,29/29] arm64: defconfig: Enable R-Car thermal driver

Message ID 1556706143-11898-30-git-send-email-fabrizio.castro@bp.renesas.com (mailing list archive)
State Accepted
Headers show
Series Add further support for the RZ/G2M | expand

Commit Message

Fabrizio Castro May 1, 2019, 10:22 a.m. UTC
From: Simon Horman <horms+renesas@verge.net.au>

commit 4aac2bf0760d359af44e423dc01e10880d9d18b0 upstream.

Enable the R-Car thermal driver as a built-in.
This seems safer than enabling as a module from the point of view of
protecting equipment from overheating.

This driver is used in conjunction with the R-Car V3M (r8a77970),
E3 (r8a77990) and D3 (r8a77995) SoCs.

Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
---
 arch/arm64/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Pavel Machek May 2, 2019, 9:34 p.m. UTC | #1
Hi!

> commit 4aac2bf0760d359af44e423dc01e10880d9d18b0 upstream.
> 
> Enable the R-Car thermal driver as a built-in.
> This seems safer than enabling as a module from the point of view of
> protecting equipment from overheating.

No objections here, but...

...make sure your hardware can protect itself when kernel fails for
whatever reason. Yes, crashes from time to time, and then thermal
support will fail, too.

Thanks,
									Pavel
Fabrizio Castro May 3, 2019, 10:25 a.m. UTC | #2
Hi Pavel,

Thank you for your feedback!

> From: Pavel Machek <pavel@denx.de>
> Sent: 02 May 2019 22:34
> Subject: Re: [cip-dev] [PATCH 4.19.y 29/29] arm64: defconfig: Enable R-Car thermal driver
> 
> Hi!
> 
> > commit 4aac2bf0760d359af44e423dc01e10880d9d18b0 upstream.
> >
> > Enable the R-Car thermal driver as a built-in.
> > This seems safer than enabling as a module from the point of view of
> > protecting equipment from overheating.
> 
> No objections here, but...
> 
> ...make sure your hardware can protect itself when kernel fails for
> whatever reason. Yes, crashes from time to time, and then thermal
> support will fail, too.
> 

My understanding is that the unit is programmed to always output from
pins VTHSENSE and VTHREF (as in like the THIDLE bits are always 00),
therefore it's down to the PCB design to pick this up properly. A kernel
crash will prevent a graceful shutdown.

Biju, you had a deeper look into this a while back, is my understanding correct?

Thanks,
Fab

> Thanks,
> 									Pavel
> 
> --
> (english) http://www.livejournal.com/~pavelmachek
> (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
diff mbox series

Patch

diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index e6ec985..11f9f0d 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -365,6 +365,7 @@  CONFIG_THERMAL_GOV_POWER_ALLOCATOR=y
 CONFIG_CPU_THERMAL=y
 CONFIG_THERMAL_EMULATION=y
 CONFIG_ROCKCHIP_THERMAL=m
+CONFIG_RCAR_THERMAL=y
 CONFIG_RCAR_GEN3_THERMAL=y
 CONFIG_ARMADA_THERMAL=y
 CONFIG_BRCMSTB_THERMAL=m