From 0bf1d2efbd743d688b7f27d537c782a0d01cd026 Mon Sep 17 00:00:00 2001 From: fboltz Date: Tue, 15 Feb 2022 23:09:00 +0100 Subject: [PATCH 1/2] Add suport for NCT6687D with ID 0xD592 found on MSI B460M bazooka --- nct6687.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/nct6687.c b/nct6687.c index 03625e9..1c0f64b 100644 --- a/nct6687.c +++ b/nct6687.c @@ -19,6 +19,7 @@ * Notes: * (1) Total number of voltage and 9 displayed. */ +#define DEBUG 1 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include @@ -70,7 +71,8 @@ static const char *const nct6687_chip_names[] = { #define SIO_REG_ENABLE 0x30 /* Logical device enable */ #define SIO_REG_ADDR 0x60 /* Logical device address (2 bytes) */ -#define SIO_NCT6687_ID 0xd592 +#define SIO_NCT6687_ID 0xd451 // 0xd592 +#define SIO_NCT6687D_ID 0xd592 static inline void superio_outb(int ioreg, int reg, int val) { @@ -1034,7 +1036,9 @@ static int __init nct6687_find(int sioaddr, struct nct6687_sio_data *sio_data) val = (superio_inb(sioaddr, SIO_REG_DEVID) << 8) | superio_inb(sioaddr, SIO_REG_DEVREVISION); - if (val == SIO_NCT6687_ID) + pr_debug("found chip ID: 0x%04x\n", val); + + if (val == SIO_NCT6687_ID || val == SIO_NCT6687D_ID) { sio_data->kind = nct6687; } From 2bb3c1b0417c3eda30de08c24e2266938d309309 Mon Sep 17 00:00:00 2001 From: fboltz Date: Tue, 15 Feb 2022 23:21:10 +0100 Subject: [PATCH 2/2] Update README --- README.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ca728ff..78e3281 100644 --- a/README.md +++ b/README.md @@ -69,11 +69,18 @@ Just add nct6687 into /etc/modules ![Fan](./images/fan.png) ![Voltage](./images/voltage.png) ## Tested -This module was tested on Ubuntu 20.04 with [Linux Kernel 5.8.18-050818-generic](https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.8.18/) on motherboard [MAG-B550-TOMAHAWK](https://www.msi.com//Motherboard/MAG-B550-TOMAHAWK) running an [AMD 3900X](https://www.amd.com/en/products/cpu/amd-ryzen-9-3900x) +This module was tested on Ubuntu 20.04 with all kernel availble on motherboard [MAG-B550-TOMAHAWK](https://www.msi.com//Motherboard/MAG-B550-TOMAHAWK) running an [AMD 3900X/AMD 5900X](https://www.amd.com/en/products/cpu/amd-ryzen-9-3900x) -## TODO +## Other motherboard supported + +- Many people have reported compatibility with MB having h410M & H510M chipset from some manufacturer. See issue report. + +## CHANGELOG + +- Add support for MSI B460M Bazooka having NCT6687 with another device ID + +## VERIFIED **1. Fan speed control** -- Changing fan speed and restore to default value not tested. -- Becareful probably fan speed could down to 0 RPM +- Changing fan speed was tested succesfuly by users, see reported issue.