Re: [PATCH 2/2] hwmon: (nct6683) Report the step up and step down times of NCT6687D-R fans

From: Guenter Roeck

Date: Sat Nov 28 2026 - 19:34:33 EST


On Sat, Nov 28, 2026 at 09:55:11PM +0100, Tomasz Bojanowski wrote:
> On MSI boards with an NCT6687D-R (customer ID 0x20d), the BIOS setup
> offers a Step Up Time and a Step Down Time for each fan. Report them as
> pwmN_step_up_time and pwmN_step_down_time, in milliseconds as the
> nct6775 driver does, for the fans whose curve is reported.
>
> The EC holds the times in tenths of a second, in tables indexed by
> channel: 0x81a + n (step up) and 0x824 + n (step down) for channels 0-9,
> 0xe7e + n - 10 (step up) and 0xe84 + n - 10 (step down) for channels
> 10-15. This was found on an MSI MAG B850M MORTAR WIFI (MS-7E61) by
> changing the times in the BIOS setup and reading the EC before and
> after. Each changed time changed one byte in these tables, and setting
> the times back restored them. Taken together, the readings identify the
> byte of each time of pwm1, pwm2, pwm13, pwm14 and pwm16; for pwm15,
> whose two times always had the same value, they identify the two bytes,
> and which of them is the step up time follows from the layout of the
> tables. Channels 10 and 11 have no fan header on this board. Times of
> 0.1, 0.2, 0.3, 0.7 and 1.0 seconds read as 0x01, 0x02, 0x03, 0x07 and
> 0x0a.
>
> On pwm16, the duty cycle changed by one per step time while following
> the curve with times of 300, 700 and 1000 ms, and by one per 200 ms
> with 100 ms.
>
> The attributes are read-only. Whether the EC uses a time written
> outside the BIOS setup has not been checked.
>
> Tested on the same board with two different sets of times in the BIOS
> setup: all six fans with a curve (pwm1, pwm2 and pwm13 to pwm16)
> reported the times set there.
>
> Signed-off-by: Tomasz Bojanowski <tomasz@xxxxxxxxxxxxx>

Applied.

Thanks,
Guenter