]> www.infradead.org Git - users/jedix/linux-maple.git/commit
arm64: zynqmp: Add thermal zones
authorSean Anderson <sean.anderson@linux.dev>
Mon, 12 Aug 2024 21:51:28 +0000 (17:51 -0400)
committerMichal Simek <michal.simek@amd.com>
Wed, 2 Oct 2024 07:21:26 +0000 (09:21 +0200)
commitd57df7a7b78eecfe65cb358faf27ad5872bd297f
tree638aa8684571b26b4fba7d2c10da473a0975e0ae
parente279e4b2faf81eb5570138eb61f2c8acd95ce893
arm64: zynqmp: Add thermal zones

Add some thermal trip points. We can't undervolt the CPUs to save power
when we underclock them, so there isn't really a point in throttling
them until we are about to overheat. As such, the passive trip point is
right below the critical trip point.

The critical trip point is the extended/industrial-grade maximum
junction temperature of 100C minus the maximum temperature sensor error
of 3.5C (in the range -55C to 110C). Automotive- and military-grade
parts can go up to 125C, but as far as I can tell there is no way to
detect them at runtime. Userspace can adjust the trip points at runtime,
but this may not be viable when booting above 100C. I think it's
reasonable to ask automotive/military users to edit their device trees
to bump the trip points, but if that proves to be an issue we can
always go with no default temperatures. However, that wouldn't be too
nice for the majority of extended/industrial users.

Signed-off-by: Sean Anderson <sean.anderson@linux.dev>
Link: https://lore.kernel.org/r/20240812215129.3599832-4-sean.anderson@linux.dev
Signed-off-by: Michal Simek <michal.simek@amd.com>
arch/arm64/boot/dts/xilinx/zynqmp.dtsi