Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.218.44 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795893162; b=JlCGDc2uAPvchPf5lwxrv3zRHDGxJgJJwNifyAFOKndXouxi0ElnhJQDs5jqxrhijnmp SfdAiNy6kzCvX/X+DXWCgTH4oE5MPvweFN44WCkrJ0RBP0z5qRUJD3mWRddGARTuVBmbc u9sfmKf6MQMZ+Dg/WiE5zbLvnyCBYgSSV8wFF46cejNomjHsWas27Jw7wgwkKcLJoquBN dcQiFf13vyR98JYPncS7XkKHRdYfZ/BNrx407IeQWew+g1SbKoO3F6v1mOtJYAfrDTkPK r9bmWIabgpNUAvM8mvwrKxM9HXKHcPSaoU0DUCDlZIYF1RkgJhoBS0If9yA9kMk3tdw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795893162; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject: Date:Message-ID:X-Mailer:MIME-Version:Content-Transfer-Encoding; bh=CQ/ujNfzNk4/5MsfjlU7QjNwMuDhVDWJy6MTMZh0GYM=; b=ENaANm+7VsVl3zHxVbWb1un96hsQIR9RnhWoGbiZe3elgjztnzM57wq58WZj4aoTagof FgYRN5zcmfXwZ3DSN5tw/Xjv1SyvF5uvVH56gUfvYIJJ0kM0yMawNnKuIfzdR07ESVI9G s2VF3yRJdvdYIGbSxeC5sngaoePywvxnW2i96PppsfRhBE7lZALW+hxPOlrHRGFhhn/zu JuV+lOWGUR3fRbcBpN1z3RZHqnE8WLXqbCaDSRYsh0oVp0JtjFFuObOjYoZFKOcQa1XVC LW5O5igNefcCDOeEQcKJEH7r9AmPqAHfT7aVTgrddjkrc3GClxm+wvzEaWdXbZqrT+A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=Qh7eF5xW; arc=none smtp.remote-ip=209.85.218.44 Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7DCE2606A31C for ; Sat, 28 Nov 2026 19:12:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7DCE2606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=Qh7eF5xW Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-c5127c7abd5so1391924666b.3 for ; Sat, 28 Nov 2026 11:12:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795893161; x=1796497961; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=CQ/ujNfzNk4/5MsfjlU7QjNwMuDhVDWJy6MTMZh0GYM=; b=Qh7eF5xWlbQygZQ7TJdvC+cwjK9etOhkSDdXeBhQ0sYteNvAMsN9ybbOfBnhxVCm3v 4A9yb2FXACYSVOl00DEPVk7BSNfo9PLaW1AkxNtKcmAb/icWTVi+MvYiE0BRij6MCKkJ tA7a0cfHuvAc6pmjHtei69xAHODG5gfTmCsALIOhtyKBXB3aWbmJKj1hMntB+WQpFq0Z MhXqfHdJIuyaYb4u80XGK8OD/g3G7Dbti+28Od7TQwuiO+UmZ4ak7i9fGxysbTh+O22b 85F/WNY846NG1FGVYbmXhztMslgPcB91gJ8kyKFrSrM6GXZBcVR9w3M4D8r55jZizesa zfhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795893161; x=1796497961; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=CQ/ujNfzNk4/5MsfjlU7QjNwMuDhVDWJy6MTMZh0GYM=; b=heZNPMG2a003pLA9tNNK88D/DTilTAQRc93QKpCP6lxpJSSuagga96yg8LQ3Bcqsl4 n0xthHfXijcT6TQ7zkm8evGEGbT5wTK/LAMjuLlKMsBXIgjvv8MCy1iLQRct83vY9erb JvLhflCM/nsV0udsJwoX+Yo8NOQntIHx3E9ZhT5NpuUgWNDBz2Q/zJAJn2DuOi1TEKg7 ufnatowDCrse0giqElWfkFxcPZMSo+1U2nMKHJK4m16ZBcgiaeKwwryAka+z83u72kpZ +4n4ENnR6IL6L3Ljz6VPWI1Pw5P2RKjbxBLZgFVAi93TuAERVlvz8pY8TBFrpa4MMuw1 JE2A== X-Gm-Message-State: APuU4Z+6y2zMCL1QKwmIr6Q9RF8/ZDBE0k+ESaYUF3aQRiTTACxvU1QX 3+WjdXJli9pZeBIXBW4Ftw0jG1Q5015HRApoOPXhLSkMhTuICmNLdmid1r5Yww== X-Gm-Gg: AZFdTZfWXNRHZYDVkwZ4co4BVOPX4KoMp6AbfkiWXWAI7P7PLWbIBNyl75QIZNAWMQs cf7g7W3Kxap+mPWtdc5+aIbDHlr5bVUgFq6dkXGgkZ6epqops7y7vtvlDVR+bJWCin5oHY8gucM XkKBcLqsO+Fj3V7qUmhEIr4QnXFhpU0ld3AsOAw3YEpC+CTV1l9sd+Y5mBdeCUDU9vRoHlSYY4c R8Gf9xTCVcgyIUmnAuf5jsTsF+2AiBU9cPNc5Mmz5yN9qMwtsjJV+VLwf1emwV7jcBzfxxZd9LC 4xp/vwV2X57RQXxzCF33Kj6vRixjMk5OgsO1RRqTtGb0Re/8B6oUDU2Zxgwoi8qBnB8BYJxI52E yFRnc7cco83BV0AGgcCmg9U6qVAu9IGD4NkDndSw4Vu/8UugGnzrHMSYSQ0jP+m8LtdxcCeOHJy OsMZZ6BjFZKLUtgxnmSP1HIwZzf3wcoTXv+AWrdj0c849x4gMiG9mNLncuAkjHFTAUEm8Iqskrp RZGiWuv9YLO8T1uvJACjvXJdN8xNYQUNeCWg4rOrNqx6ws9bMdkeLFZjSRRxBkDWVJf2xGlK8TR N+SYFZx0WbZLH9hOi/aF668q9zYAh9G1dz6B6+DDKZ3TJJI5OMACW+dwoOgxQ94vbri8FmDQZZI ypq2FruabY7AvlmQEI0o/C/L76/RSQ8girhWQU5CeVujKNDpnOFZZ7lxN X-Received: by 2002:a17:907:c643:10b0:c2e:4292:d27e with SMTP id a640c23a62f3a-c513a816d3amr1640646966b.22.1795893160538; Sat, 28 Nov 2026 11:12:40 -0800 (PST) Received: from mbp-van-jochem-1.home.net (2a02-a457-b6dc-0-6041-c856-6a37-2062.fixed6.kpn.net. [2a02:a457:b6dc:0:6041:c856:6a37:2062]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c513afc73d3sm985957366b.64.2026.11.28.11.12.40 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sat, 28 Nov 2026 11:12:40 -0800 (PST) From: John den Heijer To: linux-hwmon@vger.kernel.org Cc: eugene.shalygin@gmail.com, linux@roeck-us.net Subject: [RFC PATCH v2 0/3] hwmon: asus-ec-sensors: MAXIMUS XI HERO Fan Extension Card Date: Sat, 28 Nov 2026 20:12:22 +0100 Message-ID: <20261128191225.2990-1-jdenheijer74@gmail.com> X-Mailer: git-send-email 2.54.0 X-Mailing-List: linux-hwmon@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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 |=3D 0x80 and 89 |=3D 0x07. EXT_Sensor1/2/3: properties 0x06030032/34/36; after a firmware card property check, write EC 00:68 =3D 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. On the v1 base, x86_64 and i386 objects compiled with W=3D1, an x86_64 module linked with modpost without diagnostics, and a static comparison of 66 DMI names finds no default sensor-mask, family, mutex or existing-descriptor change. We have not tested this RFC on other boards or with the card absent. 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=3D07 write before every thermistor read an acceptable basis while its bit semantics remain unknown? A separate BIOS Extension control initialization path also writes 68=3D07. 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? The series is intentionally an RFC. The three patches carry the submitter-confirmed DCO sign-off. We welcome review of the card-presence policy, register transactions and generic error handling before any attempt to merge. Changes since v1: - Rebased on hwmon-next at Guenter's request. The resulting driver is byte-identical to the v1 driver. - The archived v1 diffs contain wrapped lines. In particular, git reports corrupt patches for 2/3 and 3/3. The original diffs apply cleanly on this base. v1: https://lore.kernel.org/linux-hwmon/CAP-m2G6VwPqTOZ_uQEAsWnb=3Dj4yFj+_N= 0V33gOTL5kRYwwYbvg@mail.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 drivers/hwmon/asus-ec-sensors.c | 140 ++++++++++++++++++++++++++++---- 1 file changed, 122 insertions(+), 18 deletions(-) base-commit: 8d0f79f49fb10c9f07fee6720551113272a1812b --=20 2.54.0 (Apple Git-157)