Fred78290 / nct6687d

Linux kernel module for Nuvoton NCT6687-R
GNU General Public License v2.0
203 stars 40 forks source link

NCT6686D-L #85

Closed Stefanqn closed 7 months ago

Stefanqn commented 7 months ago

Loading the driver on a Lenovo P330 board, which uses a NCT6686D-L, results in an error:

[ 1003.123226] nct6687: Found NCT6686D or compatible chip at 0x002e:0x0a20
[ 1004.147175] nct6687: EC Invalid address: 0xFFFF

depending on the options (modprobe nct6687 force=1 manual=1) also

Jan 17 20:16:48 qnx kernel: nct6687: Found NCT6686D or compatible chip at 0x002e:0x0a20
Jan 17 20:16:48 qnx kernel: ACPI Warning: SystemIO range 0x0000000000000A20-0x0000000000000A23 conflicts with OpRegion 0x0000000000000A20-0x0000000000000A22 (\HWMB) (20230331/utaddress-204)
Jan 17 20:16:48 qnx kernel: ACPI Warning: SystemIO range 0x0000000000000A20-0x0000000000000A23 conflicts with OpRegion 0x0000000000000A20-0x0000000000000A22 (\_SB.PCI0.LPCB.SIO1.ECSP) (20230331/utaddress-204)
Jan 17 20:16:48 qnx kernel: ACPI: OSL: Resource conflict; ACPI support missing from driver?
Jan 17 20:16:49 qnx kernel: nct6687: EC Invalid address: 0xFFFF

Update

I actually managed to get it working by adding acpi_enforce_resources=lax as a kernel parameter. The driver loads with modprobe after booting, yet it doesn't load while booting. During boot it shows:

Jan 18 18:16:04 qnx kernel: nct6687: loading out-of-tree module taints kernel.
Jan 18 18:16:04 qnx kernel: nct6687: module verification failed: signature and/or required key missing - tainting kernel
Jan 18 18:16:05 qnx kernel: nct6687: EC base I/O port unconfigured
Jan 18 18:16:05 qnx systemd-modules-load[339]: Failed to insert module 'nct6687': No such device

While loading it with modprobe afterwards works and prints:

Jan 19 14:36:16 qnx kernel: nct6687: Found NCT6686D or compatible chip at 0x002e:0x0a20
Jan 19 14:36:16 qnx kernel: ACPI Warning: SystemIO range 0x0000000000000A20-0x0000000000000A23 conflicts with OpRegion 0x0000000000000A20-0x0000000000000A22 (\HWMB) (20230331/utaddress-204)
Jan 19 14:36:16 qnx kernel: ACPI Warning: SystemIO range 0x0000000000000A20-0x0000000000000A23 conflicts with OpRegion 0x0000000000000A20-0x0000000000000A22 (\_SB.PCI0.LPCB.SIO1.ECSP) (20230331/utaddres>
Jan 19 14:36:16 qnx kernel: ACPI: OSL: Resource conflict; ACPI support missing from driver?
Jan 19 14:36:16 qnx kernel: ACPI: OSL: Resource conflict: System may be unstable or behave erratically
Jan 19 14:36:16 qnx kernel: nct6687 nct6687.2592: NCT6686D EC firmware version 1.0 build 08/16/18
Jan 19 14:36:18 qnx kernel: nct6687: EC Invalid address: 0xFFFF

Update II I actually solved the loading during boot issue by adding: softdep nct6687 pre: i2c_i801 to a /etc/modprobe.d/ entry.

@Fred78290 would you like me to make a PR to update the doc regarding my two issues?

Fred78290 commented 7 months ago

@Stefanqn

@Fred78290 would you like me to make a PR to update the doc regarding my two issues?

If you want.