From: Guenter Roeck <linux@roeck-us.net>
To: Hamza Mahfooz <someguy@effective-light.com>
Cc: linux-hwmon@vger.kernel.org, Jonathan Corbet <corbet@lwn.net>,
Randy Dunlap <rdunlap@infradead.org>,
linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] hwmon: (nct6683) Add fan control support for MSI boards with NCT6687D-R
Date: Mon, 26 Oct 2026 12:14:36 -0700 [thread overview]
Message-ID: <c302d22e-6ef4-409c-8f9c-28922afbad59@roeck-us.net> (raw)
In-Reply-To: <20261004153250.516730-3-someguy@effective-light.com>
On Sun, Oct 04, 2026 at 11:32:50AM -0400, Hamza Mahfooz wrote:
> The fan control registers of the NCT6687D-R used on recent MSI boards
> (customer ID 0x20d) differ from the ones used on Mitac boards, and
> changes must be made in a configuration phase of its fan engine.
>
> Add fan control support for these boards, based on a reverse engineered
> register map:
>
> - Manual mode is selected with bit (channel % 8) of register 0xa00
> (channels 0-7) or 0x80f (channels 8-15). In manual mode, the duty
> cycle is set with register (0xa28 + channel) (channels 0-7) or
> (0x260 + channel - 10) (channels 10-15). Otherwise, the fan curve
> configured by the BIOS is used.
> - A configuration phase is requested by setting bit 7 of register
> 0xa01, and is entered once register 0xcf8 reports that the fan
> registers are unlocked. It is completed by setting bit 6 of register
> 0xa01, after which the EC checks the new configuration, locks the
> registers again and reports whether the configuration was accepted.
>
> Fan control is supported for the CPU (channel 0), pump (channel 1) and
> system fan (channels 10-15) headers. Add pwmN_enable attributes for
> them, with 1 selecting manual and 2 automatic mode, and make pwmN
> writable in manual mode. The behaviour of the driver does not change
> unless pwmN or pwmN_enable is written.
>
> Signed-off-by: Hamza Mahfooz <someguy@effective-light.com>
Applied.
Thanks,
Guenter
next prev parent reply other threads:[~2026-10-26 19:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-04 15:32 [PATCH 0/2] " Hamza Mahfooz
2026-10-04 15:32 ` [PATCH 1/2] hwmon: (nct6683) Report the duty cycle of NCT6687D-R system fans Hamza Mahfooz
2026-10-26 19:13 ` Guenter Roeck
2026-10-04 15:32 ` [PATCH 2/2] hwmon: (nct6683) Add fan control support for MSI boards with NCT6687D-R Hamza Mahfooz
2026-10-26 19:14 ` Guenter Roeck [this message]
2026-10-26 18:35 ` [PATCH 0/2] " Hamza Mahfooz
2026-10-26 19:15 ` Guenter Roeck
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=c302d22e-6ef4-409c-8f9c-28922afbad59@roeck-us.net \
--to=linux@roeck-us.net \
--cc=corbet@lwn.net \
--cc=linux-doc@vger.kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rdunlap@infradead.org \
--cc=someguy@effective-light.com \
/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
all inboxes | Powered by JetHome®