From nobody Sat Sep 12 21:57:41 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4hj4yz3C2lz6r42w for ; Sat, 12 Sep 2026 21:57:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hj4yz1Smzz4MDl for ; Sat, 12 Sep 2026 21:57:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789250267; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=d7iqxMwxtdfzxggSNy1Du3dnQCY+g2iK21vHgbUnOvA=; b=R0c2tZFUIe4NJ+zXI0YEvLs6lM904/n7wDktuj8mlROwV+WUsYx2cA9KCrNSZhbt4iFJCb //pQz5R44Inv5TpBx9TZ6ChA6d/EHuASBQ23q3SIlg3pA+nWS6BgOxmR/a/FIdvKW6G5xs oC4jow/arodXIgwW8MQKoizEofP+fJ1wJM2kb2xgD8VBwoH3jnmA1+PnjxxEc4wrDUpveS lo/rz6BOStJyRq3KpVEKWNYkPWXNWE7lx1BGBX9lT6SNPRFn29KEopVh+b9BNkUAkxVv9q evTWSWcJ4+z6nD7iLczPrMMEY8NhgTn16njwullXpWqvde1JIZyJoxL5XsPUAQ== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1789250267; b=XRFldRpkF8mtooejraM8CopTdnqU1frpwnkX0A7FzKeO9Q98fVk5qyGVOnSAVyVbxTgeWw ARuaCSalZRK41DCkvFwCjMYm9XEGkMl+b33815k3d6R/TshRz11E8qF69JCdmBRe7N9v7a DZ2DVGvJauBK/s1h40Q/tS6A5jf+gJ9ic7ahVDduwEaL2+lnyHgP7qDtw2HdDHjszpLaFZ fwKiiuU4tHeSA3zbg+K5tTpHNRBXcj90H4+H1SFCwVgXKzATf9GsFw9HwyXJolvLo+Dkj1 5Pea5gG2usPaRt/WgrA0OeOp+aQhvfk9u612mF5GU5NPqtsjZBNqU54YdhxK4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789250267; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=d7iqxMwxtdfzxggSNy1Du3dnQCY+g2iK21vHgbUnOvA=; b=i3ZFe6qwPIs+dYk74z77C4rzGvndf/JXp6q48g7IyWD4VgqcOWRWffHIjpjwjXkjbOaEGy tWmRU7u5FjI/yQC0yF/YUBnzUzZkiNqv4uGFZRzat2FfWP+QVYxgjadQavFnPgX5wqMeSB rQbDgL391pc+XvihP7MSxe/A6eDuqzVT6YPF/LExYILz/gebJf3e/FgV990xqOfFEQmtQj ywW+BdhRG1UYXxhHePVeTCqowmVDKl+yXhG7o665e6rnkktVcRSshu+0JUoDt4iRyAcczD sL4Xvm18Z8gteaATuVIFfUa0Go5N8KVPU5gXeN4zg4e5/WlW1FvlQizTqEbyZA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hj4yy75GhzFHj for ; Sat, 12 Sep 2026 21:57:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3386f by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sat, 12 Sep 2026 21:57:41 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Nick Price Subject: git: 9c650fb537d5 - main - superio, ncthwm: add support for the Nuvoton NCT6798D List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: nprice X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9c650fb537d53ec396fc8537b2de403553ae3d02 Auto-Submitted: auto-generated Date: Sat, 12 Sep 2026 21:57:41 +0000 Message-Id: <6aa5cad5.3386f.125a1d19@gitrepo.freebsd.org> The branch main has been updated by nprice: URL: https://cgit.FreeBSD.org/src/commit/?id=9c650fb537d53ec396fc8537b2de403553ae3d02 commit 9c650fb537d53ec396fc8537b2de403553ae3d02 Author: Nick Price AuthorDate: 2026-09-12 21:56:08 +0000 Commit: Nick Price CommitDate: 2026-09-12 21:57:24 +0000 superio, ncthwm: add support for the Nuvoton NCT6798D The ASUS PRIME X570-P carries a Nuvoton NCT6798D, Super I/O device ID 0xd42b. Add an exact-match entry to both. Exact rather than masked: the neighboring 0xd42a entries are deliberately exact with an extid because that ID is claimed by both NCT6796D-E and NCT5585D, and widening the family would make them collide. The NCT6798D has seven tachometers, so raise NCTHWM_FAN_MAX to seven and describe the two extra ones; existing entries keep fan_count = 5 and are unaffected. Fan names follow the NCT6779 convention and do not map to any board's physical headers. Tested on: ASUS PRIME X570-P, Ryzen 9 5950X, FreeBSD 16.0-CURRENT. Approved by: adrian Reviewed by: stephane.rochoy_stormshield.eu, adrian Differential Revision: https://reviews.freebsd.org/D58291 Signed-off-by: Nick Price --- sys/dev/ncthwm/ncthwm.c | 17 ++++++++++++++++- sys/dev/superio/superio.c | 5 +++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/sys/dev/ncthwm/ncthwm.c b/sys/dev/ncthwm/ncthwm.c index 99d32be8a82d..c23635df66fe 100644 --- a/sys/dev/ncthwm/ncthwm.c +++ b/sys/dev/ncthwm/ncthwm.c @@ -39,7 +39,7 @@ #include #include -#define NCTHWM_FAN_MAX 5 +#define NCTHWM_FAN_MAX 7 #define NCTHWM_BANK_SELECT 0x4e #define NCTHWM_VENDOR_ID 0x4f @@ -98,6 +98,21 @@ struct ncthwm_device { { .name = "AUXFAN1", .low_byte_offset = 0xc7, .high_byte_offset = 0xc6 }, { .name = "AUXFAN2", .low_byte_offset = 0xc9, .high_byte_offset = 0xc8 }, }, + }, { + .devid = 0xd42b, + .descr = "HWM on Nuvoton NCT6798D", + .base_offset = 5, + .fan_bank = 4, + .fan_count = 7, + .fan_info = { + { .name = "SYSFAN", .low_byte_offset = 0xc1, .high_byte_offset = 0xc0 }, + { .name = "CPUFAN", .low_byte_offset = 0xc3, .high_byte_offset = 0xc2 }, + { .name = "AUXFAN0", .low_byte_offset = 0xc5, .high_byte_offset = 0xc4 }, + { .name = "AUXFAN1", .low_byte_offset = 0xc7, .high_byte_offset = 0xc6 }, + { .name = "AUXFAN2", .low_byte_offset = 0xc9, .high_byte_offset = 0xc8 }, + { .name = "AUXFAN3", .low_byte_offset = 0xcb, .high_byte_offset = 0xca }, + { .name = "AUXFAN4", .low_byte_offset = 0xcf, .high_byte_offset = 0xce }, + }, } }; diff --git a/sys/dev/superio/superio.c b/sys/dev/superio/superio.c index 24d40eb7a208..007e91552f11 100644 --- a/sys/dev/superio/superio.c +++ b/sys/dev/superio/superio.c @@ -452,6 +452,11 @@ static const struct { .descr = "Nuvoton NCT5585D", .devices = nct5585_devices, }, + { + .vendor = SUPERIO_VENDOR_NUVOTON, .devid = 0xd42b, + .descr = "Nuvoton NCT6798D", + .devices = nct67xx_devices, + }, { .vendor = SUPERIO_VENDOR_NUVOTON, .devid = 0xc800, .mask = 0xff, .descr = "Nuvoton NCT6791",