From: John den Heijer <jdenheijer74@gmail.com>
To: linux-hwmon@vger.kernel.org
Cc: eugene.shalygin@gmail.com, linux@roeck-us.net
Subject: [RFC PATCH v3 0/3] hwmon: asus-ec-sensors: MAXIMUS XI HERO Fan Extension Card
Date: Sat, 28 Nov 2026 21:09:49 +0100 [thread overview]
Message-ID: <20261128200952.2935-1-jdenheijer74@gmail.com> (raw)
This is a request for design and safety feedback, not a request to merge
the series as-is. It adds opt-in monitoring of the three fan tachometers
and three thermistors on an ASUS Fan Extension Card attached to a ROG
MAXIMUS XI HERO (non-WiFi), BIOS 2004.
The pinned base is Guenter Roeck's hwmon-next at
8d0f79f49fb10c9f07fee6720551113272a1812b. It already contains the
MAXIMUS IX EXTREME selector-based extension fan path and EC 00:60..62
temperature descriptors, but does not select these sensors on XI HERO.
The BIOS 2004 image (SHA-256
034e6c688ca41cf448745398ce3ccfa184dfae217287ee7b72039498ff5aa812)
provides the following property and transaction evidence:
EXT_FAN1/2/3: properties 0x060400e2/e3/e4; write EC 00:43 with
selector 0x0a/0x0b/0x0c, then read high/low RPM bytes at 00:57/58.
The getter checks EC 00:d4 on every call and performs first-use or
lost-latch read-modify-writes d4 |= 0x80 and 89 |= 0x07.
EXT_Sensor1/2/3: properties 0x06030032/34/36; after a firmware card
property check, write EC 00:68 = 0x07 immediately before each read
of 00:60/61/62. The exact meaning of 0x68 is not established.
BIOS 2203 has the same relevant fan mapping and getter control flow.
The BIOS presence property, IsEXTFanCardExist (0x06060050), reads the
EXTFanCard UEFI/Setup variable; we have not established a reliable live
electrical card-presence signal. Accordingly, the XI HERO extension
sensors remain disabled by default and are enabled only by an explicit
module parameter on the exact non-WiFi DMI name. The WiFi entry is not
changed. With the option enabled, the first read of any hwmon input may
trigger a full refresh and the extension setup writes, even if the user
did not request an EXT_* attribute.
Patch 1 changes generic EC/selector error propagation so a failed block
read cannot publish a partial sensor cache. This affects failure paths
on all supported boards, not only XI HERO. Patches 2 and 3 add the board
opt-in, RPM path and thermistor path. Patch 2 currently relies on the
restore/error path introduced by patch 1; we would rebase or reshape the
series if the generic change should be reviewed separately.
The new transactions use the driver's configured ACPI EC mutex, normally
\AMW0.ASMX on XI HERO. They do not add PWM, fan-control, NCT, direct
EC-port or WMI accesses. They do write the EC bank selector, the BIOS
observed d4/89 setup registers, the fan selector and 0x68. We do not
claim that these writes are harmless when the optional card is absent.
A different, locally maintained asus-ec-sensors module for Unraid 7.4.1
/ 6.18.64-Unraid has returned all six channels on a physical XI HERO
with the card installed, including after one reboot. The binaries and
some error/selector handling differ; that test is not a runtime test of
this upstream RFC. All three v2 increments compiled with W=1 on both
x86_64 and i386. For v3 we fault-injected the actual initialization
helper on a host with memory-backed EC stubs. After a lost latch, v2
skipped the retry when either the read or write at 0x89 failed; v3
repeated both setup writes. The driver object compiled with W=1 and
no warnings after each v3 patch on x86_64 and i386 with GCC 15.2.0.
On x86_64 the v3 module also linked with W=1 against a freshly built
vmlinux; modpost completed without diagnostics. We have not run v3 on
hardware.
Questions for maintainers:
1. Is a default-off, exact-DMI opt-in acceptable when firmware exposes
only a Setup-variable-backed card property, or is another presence
mechanism required before these EC writes can be accepted?
2. Should the driver preserve the BIOS first-use d4/89 writes even when
d4 bit 7 is already set? We have not isolated their necessity and do
not want to replace a working BIOS sequence with an untested shortcut.
3. Is reproducing the BIOS's 68=07 write before every thermistor read an
acceptable basis while its bit semantics remain unknown? A separate
BIOS Extension control initialization path also writes 68=07.
4. Would you prefer patch 1 as a separate bugfix before the board support,
and what fault-path regression evidence would be useful?
5. Is the separate non-WiFi board profile and module parameter an
appropriate interface, or should the board/card policy be expressed
differently?
Changes since v2:
- Add Fixes tags for the original block-read and selector error paths.
- Clear the cached initialization flag before attempting either setup
write, so a partial recovery can be retried.
- Document enable_ext_fan and explain the BIOS cutoff of 165 RPM.
- Keep the thermistor patch functionally unchanged.
v2: https://lore.kernel.org/linux-hwmon/20261128191225.2990-1-jdenheijer74@gmail.com/
John den Heijer (3):
hwmon: (asus-ec-sensors) propagate EC read and selector errors
hwmon: (asus-ec-sensors) add opt-in MAXIMUS XI HERO EXT fan RPM
hwmon: (asus-ec-sensors) add MAXIMUS XI HERO EXT thermistors
Documentation/hwmon/asus_ec_sensors.rst | 7 ++
drivers/hwmon/asus-ec-sensors.c | 142 +++++++++++++++++++++---
2 files changed, 131 insertions(+), 18 deletions(-)
base-commit: 8d0f79f49fb10c9f07fee6720551113272a1812b
--
2.54.0 (Apple Git-157)
next reply other threads:[~2026-11-28 20:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-28 20:09 John den Heijer [this message]
2026-11-28 20:09 ` [RFC PATCH v3 1/3] hwmon: (asus-ec-sensors) propagate EC read and selector errors John den Heijer
2026-11-28 20:09 ` [RFC PATCH v3 2/3] hwmon: (asus-ec-sensors) add opt-in MAXIMUS XI HERO EXT fan RPM John den Heijer
2026-11-28 20:09 ` [RFC PATCH v3 3/3] hwmon: (asus-ec-sensors) add MAXIMUS XI HERO EXT thermistors John den Heijer
2026-11-28 20:17 ` [RFC PATCH v3 0/3] hwmon: asus-ec-sensors: MAXIMUS XI HERO Fan Extension Card sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261128200952.2935-1-jdenheijer74@gmail.com \
--to=jdenheijer74@gmail.com \
--cc=eugene.shalygin@gmail.com \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux@roeck-us.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox