Bug 2127658 - nct6775 does not populate /sys/class/hwmon/ on ASUS motherboard with NCT6798D sensor chip
Summary: nct6775 does not populate /sys/class/hwmon/ on ASUS motherboard with NCT6798D...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 36
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-09-17 20:30 UTC by Steve
Modified: 2023-09-13 13:37 UTC (History)
18 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-05-25 17:13:54 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
journalctl -k with kernel 5.19.9-200.fc36.x86_64 (89.36 KB, text/plain)
2022-09-18 13:43 UTC, Steve
no flags Details
lsmod with kernel 5.19.9-200.fc36.x86_64 (4.32 KB, text/plain)
2022-09-18 13:45 UTC, Steve
no flags Details
journalctl -k with kernel 6.0.0-0.rc5.20220914git3245cb65fd91.39.fc38.x86_64 (140.91 KB, text/plain)
2022-09-18 15:23 UTC, Steve
no flags Details
DSDT for ASUS PRIME H570M-PLUS (2.37 MB, text/plain)
2022-09-23 13:43 UTC, Steve
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Linux Kernel 204807 0 P1 RESOLVED Hardware monitoring sensor nct6798d doesn't work unless acpi_enforce_resources=lax is enabled 2022-09-25 22:29:49 UTC

Description Steve 2022-09-17 20:30:02 UTC
1. Please describe the problem:

With an ASUS PRIME H570M-PLUS motherboard, nct6775 does not populate /sys/class/hwmon/.

This appears to be the problem:

$ journalctl -b --no-hostname | grep -A 2 nct6775
Sep 17 12:37:55 kernel: nct6775: Found NCT6798D or compatible chip at 0x2e:0x290
Sep 17 12:37:55 kernel: ACPI Warning: SystemIO range 0x0000000000000295-0x0000000000000296 conflicts with OpRegion 0x0000000000000290-0x0000000000000299 (\RMTW.SHWM) (20220331/utaddress-204)
Sep 17 12:37:55 kernel: ACPI: OSL: Resource conflict; ACPI support missing from driver?

A workaround is to append "acpi_enforce_resources=lax" to the kernel command-line.

2. What is the Version-Release number of the kernel:

kernel-5.19.8-200.fc36.x86_64
lm_sensors-3.6.0-11.fc36.x86_64

3. Did it work previously in Fedora?

Don't know. This is a new motherboard.

4. Can you reproduce this issue? If so, please provide the steps to reproduce
   the issue below:

Always. Configure lm_sensors as below.

5. Does this problem occur with the latest Rawhide kernel? 

Didn't try.

6. Are you running any modules that not shipped with directly Fedora's kernel?:

No.

7. Please attach the kernel logs.

nct6775 is configured and loaded:

$ grep nct6775 /etc/sysconfig/lm_sensors
HWMON_MODULES="coretemp nct6775"

$ lsmod | grep nct6775
nct6775                28672  0
nct6775_core           73728  1 nct6775
hwmon_vid              16384  1 nct6775
wmi                    32768  3 nct6775,asus_wmi,wmi_bmof

The DMI shows that the sensor chip is a Nuvoton NCT6798D:

# dmidecode -t 34
# dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 3.3.0 present.

Handle 0x0030, DMI type 34, 11 bytes
Management Device
	Description: Nuvoton NCT6798D
	Type: LM78
	Address: 0x00000000
	Address Type: I/O Port

The latest firmware is installed:

$ inxi -M
Machine:
  Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
  Mobo: ASUSTeK model: PRIME H570M-PLUS v: Rev 1.xx
    serial: <superuser required> UEFI: American Megatrends v: 1601
    date: 05/07/2022

The ASUS PRIME-H570M-PLUS-CSM product page is here:

https://www.asus.com/us/Motherboards-Components/Motherboards/CSM/PRIME-H570M-PLUS-CSM/

Comment 1 Steve 2022-09-17 21:40:18 UTC
A web search for "RMTW.SHWM" found a report of an identical warning with a different ASUS motherboard:

support for an "ROG STRIX B560-G GAMING WIFI" ?
Date: Tue, 7 Dec 2021 23:02:59 +0100
https://www.spinics.net/lists/linux-hwmon/msg13673.html

The warning from kernel 5.15.7-rc1 is at the end.

Comment 2 Steve 2022-09-17 23:05:49 UTC
# dmidecode -t 2
# dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 3.3.0 present.

Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
	Manufacturer: ASUSTeK COMPUTER INC.
	Product Name: PRIME H570M-PLUS
	Version: Rev 1.xx
	Serial Number: [removed]
	Asset Tag: Default string
	Features:
		Board is a hosting board
		Board is replaceable
	Location In Chassis: Default string
	Chassis Handle: 0x0003
	Type: Motherboard
	Contained Object Handles: 0

Comment 3 Steve 2022-09-18 13:43:48 UTC
Created attachment 1912683 [details]
journalctl -k with kernel 5.19.9-200.fc36.x86_64

Comment 4 Steve 2022-09-18 13:45:25 UTC
Created attachment 1912684 [details]
lsmod with kernel 5.19.9-200.fc36.x86_64

Comment 5 Steve 2022-09-18 15:23:09 UTC
Created attachment 1912691 [details]
journalctl -k with kernel 6.0.0-0.rc5.20220914git3245cb65fd91.39.fc38.x86_64

The same problem occurs with kernel 6.0.0-0.rc5.20220914git3245cb65fd91.39.fc38.x86_64.

This might be related:

Sep 18 08:09:44 kernel: eeepc-wmi eeepc-wmi: Detected AsusMbSwInterface, not ASUSWMI, use DSTS

Comment 6 Steve 2022-09-23 13:43:35 UTC
Created attachment 1913766 [details]
DSDT for ASUS PRIME H570M-PLUS

Generated with:

# acpidump -n DSDT -b
# iasl -d dsdt.dat

Comment 7 Ben Cotton 2023-04-25 17:57:06 UTC
This message is a reminder that Fedora Linux 36 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 36 on 2023-05-16.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '36'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 36 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 8 Ludek Smid 2023-05-25 17:13:54 UTC
Fedora Linux 36 entered end-of-life (EOL) status on 2023-05-16.

Fedora Linux 36 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 9 Steve 2023-09-13 13:37:31 UTC
Belatedly reporting this bug as fixed with kernel 6.4.13-100.fc37.x86_64.

No warning follows this:

$ journalctl -b --no-hostname | grep -i nct6775
Sep 13 05:22:07 kernel: nct6775: Found NCT6798D or compatible chip at 0x2e:0x290

And /sys/class/hwmon/ is populated:

$ grep -E . /sys/class/hwmon/hwmon3/{name,fan*_input}
/sys/class/hwmon/hwmon3/name:nct6798
/sys/class/hwmon/hwmon3/fan1_input:792
/sys/class/hwmon/hwmon3/fan2_input:1278
/sys/class/hwmon/hwmon3/fan3_input:0
/sys/class/hwmon/hwmon3/fan4_input:934
/sys/class/hwmon/hwmon3/fan5_input:0
/sys/class/hwmon/hwmon3/fan6_input:0
/sys/class/hwmon/hwmon3/fan7_input:0

This kernel commit adds support for the ASUS PRIME H570M-PLUS motherboard:

hwmon: (nct6775) update ASUS WMI monitoring list A620/B760/W790
author	Denis Pauk <pauk.denis>	2023-04-08 19:22:28 +0300
committer	Guenter Roeck <linux>	2023-04-19 07:08:40 -0700
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/drivers/hwmon/nct6775-platform.c?h=linux-6.4.y&id=5dcd53e315b7cd3efb591227c281f979bebd2155


Note You need to log in before you can comment on or make changes to this bug.