Discussion:
[lm-sensors] NCT6793D
Grazvydas Ignotas
2015-08-27 00:57:04 UTC
Permalink
Hi,

I have NCT6793D [1] on a MSI "Z170A PC MATE (MS-7971)" board. There
doesn't seem to be any driver that would work out of the box, and
nct6775 seems to be the closest one. Curiously this chip is not listed
on the manufacturer's website.

Loading the nct6775 driver with debug results in:
[ 125.155290] nct6775: unsupported chip ID: 0xd121

Patching that check to treat this chip as nct6792 produces seemingly
working driver. There are various voltages reported (don't know what
they correspond to), cooler connected to CPUFAN1 appears as "fan2" and
gives correct looking RPM, "PECI Agent 0" reading is close to
coretemp, but all other temperature outputs don't seem to be working
(just showing static values). I was able to successfully control the
CPU fan using pwm sysfs knobs.

All in all it seems to be useful on this chip, probably worth enabling
in mainline. Feel free to CC me when/if there are any patches to test.

[1] Loading Image...

Gražvydas
Guenter Roeck
2015-08-27 03:06:16 UTC
Permalink
Hi,
Post by Grazvydas Ignotas
Hi,
I have NCT6793D [1] on a MSI "Z170A PC MATE (MS-7971)" board. There
doesn't seem to be any driver that would work out of the box, and
nct6775 seems to be the closest one. Curiously this chip is not listed
on the manufacturer's website.
[ 125.155290] nct6775: unsupported chip ID: 0xd121
Patching that check to treat this chip as nct6792 produces seemingly
working driver. There are various voltages reported (don't know what
they correspond to), cooler connected to CPUFAN1 appears as "fan2" and
gives correct looking RPM, "PECI Agent 0" reading is close to
coretemp, but all other temperature outputs don't seem to be working
(just showing static values). I was able to successfully control the
CPU fan using pwm sysfs knobs.
All in all it seems to be useful on this chip, probably worth enabling
in mainline. Feel free to CC me when/if there are any patches to test.
[1] http://notaz.gp2x.de/img/mess/hw/NCT6793D.jpg
We'll need a little more information. It may well be that the chip is
all the same as the NCT6792D, but who knows.

I'll try to get a datasheet. We'll see how it goes.

Thanks,
Guenter
Guenter Roeck
2015-08-31 02:59:54 UTC
Permalink
Hi,
Post by Grazvydas Ignotas
Hi,
I have NCT6793D [1] on a MSI "Z170A PC MATE (MS-7971)" board. There
doesn't seem to be any driver that would work out of the box, and
nct6775 seems to be the closest one. Curiously this chip is not listed
on the manufacturer's website.
[ 125.155290] nct6775: unsupported chip ID: 0xd121
Patching that check to treat this chip as nct6792 produces seemingly
working driver. There are various voltages reported (don't know what
they correspond to), cooler connected to CPUFAN1 appears as "fan2" and
gives correct looking RPM, "PECI Agent 0" reading is close to
coretemp, but all other temperature outputs don't seem to be working
(just showing static values). I was able to successfully control the
CPU fan using pwm sysfs knobs.
All in all it seems to be useful on this chip, probably worth enabling
in mainline. Feel free to CC me when/if there are any patches to test.
Turns out the NCT6793D is almost register compatible to NCT6792D. Only
difference I can find is that the NCT6792D has "3-wire enable" registers
for each fan. Those registers do not exist on NCT6793D.

Please try the driver at https://github.com/groeck/nct6775 and let me know
if it works.

Thanks,
Guenter
Grazvydas Ignotas
2015-08-31 22:33:21 UTC
Permalink
Post by Guenter Roeck
Turns out the NCT6793D is almost register compatible to NCT6792D. Only
difference I can find is that the NCT6792D has "3-wire enable" registers
for each fan. Those registers do not exist on NCT6793D.
Please try the driver at https://github.com/groeck/nct6775 and let me know
if it works.
It doesn't, still says "unsupported chip ID: 0xd121".

With patched ID check I've also noticed that pwmX_step_down_time and
pwmX_step_up_time are mixed up, don't know if this is something
NCT6793D specific, looks more like general driver bug.

Gražvydas
Guenter Roeck
2015-08-31 22:55:20 UTC
Permalink
Post by Grazvydas Ignotas
Post by Guenter Roeck
Turns out the NCT6793D is almost register compatible to NCT6792D. Only
difference I can find is that the NCT6792D has "3-wire enable" registers
for each fan. Those registers do not exist on NCT6793D.
Please try the driver at https://github.com/groeck/nct6775 and let me know
if it works.
It doesn't, still says "unsupported chip ID: 0xd121".
Oops - sorry, now fixed.
Post by Grazvydas Ignotas
With patched ID check I've also noticed that pwmX_step_down_time and
pwmX_step_up_time are mixed up, don't know if this is something
NCT6793D specific, looks more like general driver bug.
Thanks for noticing. I'll look into it.

Thanks,
Guenter
Guenter Roeck
2015-08-31 23:06:03 UTC
Permalink
Post by Grazvydas Ignotas
Post by Guenter Roeck
Turns out the NCT6793D is almost register compatible to NCT6792D. Only
difference I can find is that the NCT6792D has "3-wire enable" registers
for each fan. Those registers do not exist on NCT6793D.
Please try the driver at https://github.com/groeck/nct6775 and let me know
if it works.
It doesn't, still says "unsupported chip ID: 0xd121".
With patched ID check I've also noticed that pwmX_step_down_time and
pwmX_step_up_time are mixed up, don't know if this is something
NCT6793D specific, looks more like general driver bug.
This is interesting. Datasheet for NCT6775 says that up registers are at 0xX04,
and down registers at 0xX03. All other datasheets, starting with NCT6776,
say the opposite.

Makes me wonder if the NCT6775 datasheet is wrong. I'll try to find out.

Again, thanks for noticing.

Guenter
Guenter Roeck
2015-08-31 23:17:56 UTC
Permalink
Post by Grazvydas Ignotas
Post by Guenter Roeck
Turns out the NCT6793D is almost register compatible to NCT6792D. Only
difference I can find is that the NCT6792D has "3-wire enable" registers
for each fan. Those registers do not exist on NCT6793D.
Please try the driver at https://github.com/groeck/nct6775 and let me know
if it works.
It doesn't, still says "unsupported chip ID: 0xd121".
With patched ID check I've also noticed that pwmX_step_down_time and
pwmX_step_up_time are mixed up, don't know if this is something
NCT6793D specific, looks more like general driver bug.
Should now be fixed. Unfortunately, I don't have a system with nct6775
anymore, so we'll have to assume that the datasheets are correct.

Guenter
Grazvydas Ignotas
2015-08-31 23:45:10 UTC
Permalink
Post by Guenter Roeck
Post by Grazvydas Ignotas
Post by Guenter Roeck
Turns out the NCT6793D is almost register compatible to NCT6792D. Only
difference I can find is that the NCT6792D has "3-wire enable" registers
for each fan. Those registers do not exist on NCT6793D.
Please try the driver at https://github.com/groeck/nct6775 and let me know
if it works.
It doesn't, still says "unsupported chip ID: 0xd121".
With patched ID check I've also noticed that pwmX_step_down_time and
pwmX_step_up_time are mixed up, don't know if this is something
NCT6793D specific, looks more like general driver bug.
Should now be fixed. Unfortunately, I don't have a system with nct6775
anymore, so we'll have to assume that the datasheets are correct.
All good now on NCT6793D, FWIW:
Tested-by: Grazvydas Ignotas <***@gmail.com>

Gražvydas

Loading...