[PATCH 0/7] alpha: marvel: environmental sensors

From: Matt Turner

Date: Sat Nov 14 2026 - 12:40:12 EST


The service processors of the Marvel AlphaServers (GS1280, ES80, ES47)
monitor temperatures, fans, voltages and power supplies. Linux can't read
these sensors, and the events the firmware raises when one changes state
are printed only with CONFIG_VERBOSE_MCHECK, and then decoded wrongly.

Patches 1 and 2 fix the event reporting. Patch 3 adds the SRM callback
that refreshes the readings of one config tree node, and patch 4
registers a platform device. Patch 5 is the hwmon driver, which polls.
Patches 6 and 7 make it reread the sensors and notify userspace when the
firmware reports an event.

The hwmon patches depend on the alpha ones, so I'd suggest the whole
series go through the alpha tree with an ack from Guenter.

Tested on an ES47, where sensors(1) shows the temperatures, fans,
voltages and power supply alarms. No environmental event fired during
testing, so patches 6 and 7 are only build tested.

Signed-off-by: Matt Turner <mattst88@xxxxxxxxx>
---
Matt Turner (7):
alpha: marvel: report environmental events without VERBOSE_MCHECK
alpha: marvel: fix the environmental subpacket layout
alpha: marvel: refresh environmental readings through the console
alpha: marvel: register a platform device for the environmental sensors
hwmon: Add driver for Marvel AlphaServer environmental sensors
alpha: marvel: notify environmental events
hwmon: (marvel-env) Notify userspace of environmental events

Documentation/hwmon/index.rst | 1 +
Documentation/hwmon/marvel-env.rst | 64 ++++
MAINTAINERS | 8 +
arch/alpha/include/asm/console.h | 2 +
arch/alpha/include/asm/err_ev7.h | 16 +-
arch/alpha/include/asm/marvel_env.h | 17 +
arch/alpha/include/uapi/asm/console.h | 2 +
arch/alpha/kernel/core_marvel.c | 59 ++++
arch/alpha/kernel/err_marvel.c | 39 ++-
arch/alpha/kernel/proto.h | 1 +
arch/alpha/kernel/srmcons.c | 3 +-
arch/alpha/lib/callback_srm.S | 1 +
drivers/hwmon/Kconfig | 12 +
drivers/hwmon/Makefile | 1 +
drivers/hwmon/marvel-env.c | 633 ++++++++++++++++++++++++++++++++++
15 files changed, 840 insertions(+), 19 deletions(-)
---
base-commit: 0b4cadbe7c39d830dec35c4a2655483de0dae568
change-id: 20261114-marvel-env-d0289c736ba3

Best regards,
--
Matt Turner <mattst88@xxxxxxxxx>