From nobody Sat Sep 12 21:57:41 2026 X-Original-To: dev-commits-src-main@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 4hj4yt0v76z6r3x0 for ; Sat, 12 Sep 2026 21:57:42 +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 4hj4yt0RMMz4MBH for ; Sat, 12 Sep 2026 21:57:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789250262; 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=ik3FgTDLQs0sy4fWcUra4udhDT/dWz9kDdQJRTvh2yHpspfxWltc5CdrrD7U/pXn/mPzh2 YLHBUgUBEmiw+TqoJxXyjntqZflrIopxnkuWyx0KuwVuP72xm3QkjsaNh9FXjy4cct0v3i CXmvdKKmr8BkVmYKJNMIYu7JQH8JXYPwTa5WrN0pyoOQrIkQz5QOHgz9hJ1g+8yDjvjJgt naZztG7L+qAHJH+RiE8tBiwr+xzFkRuBkBURKPwEvusftClv4mVgLJs+u7fPeWj1tBpfiI tqDBlRfr5q2Nt9OPrjZEnK4fHAi0rZYR29VGz/a0Dkj0ygaiqpZE47htA+Jgpg== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1789250262; b=Nm1xgvPvEzfUR5KhZN3hLIJXIcEAHP0m5FwXfTPGHxMSU4eoA1kHHyW3A7gmhX/jJVL+dp KlAjUJ/o1eBWe0j2ouvDcA7iE6e+P+nYjYjnv0EZ9nXZT3V0OXWHHQJF6Yax5oSE0KSU8S GX/1l7+S0tpgk/5zmc4ZM1cuBjt74M2ehbJ/WFpUK1p+KVJObLKC1R0PEGWURu+6c3uyPa bw6X0VHuY6NiCsBN0utonlu74ntkAiSaJoJhMG6NtgCE8bPDbn6mEeAtGxC3w0tHEJodCS 5pOy1855jRNWOXulN+Jvmkds/aEz6vaS/rKCnhmZaDPjs2jLFL/vI278zF80qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789250262; 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=eSVQImGxPLsNtYl6PVUg4HEwE9kNqu4YW0LylvbN5F2W/plyotKeaMSOGqmdIBJdl4s9pW et5SuVVey1mNo67MB/vKIvLdYI7QhK7fiLEzzx9gIcQKMSqglN6UiUZ5/rh7c2/BbV/if/ UpSqoD7O8oZRz9GSaVce8T/weS7EBQ9vMQxF8qGRL+gaL4kdTsFfyE6vF6FxhMjRVDt6Wr 9xRTX0hQd39quv1nGPX0L74D2gV3WnBrWx82fnKQRMtYyHEJwkgFK3JRQcnS/2mC0iEbtP F+HyMzQRAk7YpIRJMtpQYq1wbU27CePcnyPyPZ9IuHAvFX/QU/aIemBFe7eO1Q== 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 4hj4ys6KYpzF9Y for ; Sat, 12 Sep 2026 21:57:41 +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 the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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",