[Bug 204807] Hardware monitoring sensor nct6798d doesn't work unless acpi_enforce_resources=lax is enabled

bugzilla-daemon
2021-09-19T14:38:49Z

Kamil Pietrzak (kpietrzak@disroot.org) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |kpietrzak@disroot.org

--- Comment #122 from Kamil Pietrzak (kpietrzak@disroot.org) ---
I confrm patch works on my "TUF GAMING Z490-PLUS (WI-FI)".

[1295150.017048] nct6775: Found NCT6798D or compatible chip at 0x0:0x290

nct6798-isa-0000
Adapter: ISA adapter
in0: 835.00 mV (min = +0.00 V, max = +1.94 V)
in1: 5.00 V (min = +0.00 V, max = +0.00 V) ALARM
in2: 3.38 V (min = +0.00 V, max = +0.00 V) ALARM
in3: 3.33 V (min = +0.00 V, max = +0.00 V) ALARM
in4: 12.00 V (min = +0.00 V, max = +0.00 V) ALARM
in5: 784.00 mV (min = +0.00 V, max = +0.00 V) ALARM
in6: 1000.00 mV (min = +0.00 V, max = +0.00 V) ALARM
in7: 3.38 V (min = +0.00 V, max = +0.00 V) ALARM
in8: 3.12 V (min = +0.00 V, max = +0.00 V) ALARM
in9: 1.06 V (min = +0.00 V, max = +0.00 V) ALARM
in10: 1.36 V (min = +0.00 V, max = +0.00 V) ALARM
in11: 960.00 mV (min = +0.00 V, max = +0.00 V) ALARM
in12: 1.04 V (min = +0.00 V, max = +0.00 V) ALARM
in13: 1000.00 mV (min = +0.00 V, max = +0.00 V) ALARM
in14: 1.02 V (min = +0.00 V, max = +0.00 V) ALARM
fan1: 369 RPM (min = 0 RPM)
fan2: 389 RPM (min = 0 RPM)
fan3: 398 RPM (min = 0 RPM)
fan4: 0 RPM (min = 0 RPM)
fan5: 0 RPM (min = 0 RPM)
fan6: 0 RPM (min = 0 RPM)
fan7: 0 RPM (min = 0 RPM)
SYSTIN: +30.0°C (high = +80.0°C, hyst = +75.0°C) sensor =
thermistor
CPUTIN: +33.5°C (high = +80.0°C, hyst = +75.0°C) sensor =
thermistor
AUXTIN0: +26.0°C sensor = thermistor
AUXTIN1: +7.0°C sensor = thermistor
AUXTIN2: +28.0°C sensor = thermistor
AUXTIN3: +25.0°C sensor = thermistor
PECI Agent 0 Calibration: +32.5°C
PCH_CHIP_CPU_MAX_TEMP: +0.0°C
PCH_CHIP_TEMP: +0.0°C
PCH_CPU_TEMP: +0.0°C
intrusion0: OK
intrusion1: ALARM
beep_enable: disabled

I also noticed that some voltage values reported by nct6775 differs from the
ones reported by Asus software on Windows.

I changed voltage scaling factors to those listed below and now voltages are
reported like on Asus software on Windows.

/*
* Some of the voltage inputs have internal scaling, the tables below
* contain 8 (the ADC LSB in mV) * scaling factor * 100
*/
static const u16 scale_in[15] = {
888, 4000, 1600, 1600, 9600, 800, 800, 1600, 1600, 1600, 1600, 1600,
800,
800, 800
};