Threadripper lm_sensors HALP

Hi all - I’ve worked with the author of the it87 module to get support working for the Gigabyte X399 board. Thanks to @baz and CC @wendell

With the new module loaded, output looks like https://github.com/groeck/it87/issues/49#issuecomment-331392857

Here are the fixes, quick summary -

  • There are two chips — IT8792E and the IT8795E — both having the same ID (LOL WUT!), so sensors detects it as IT8792. In reality the block diagram for the Gigabyte board lists a IT8795 chip.

  • the IT8792 is connected to SYS_FAN4 (fan3) and SYS_FAN5_PUMP (fan1) from my testing.

  • The IT8686 has CPU_FAN (fan1) which shows my H115i’s pump rpm.

  • Noticed in0 reporting odd values at times on idle, but my latest test with the current version on Github reports VCore correctly. It also seems both chips are connected to VCore.

  • CPU temp is reported via IT8686 temp3.

  • We had an issue that loading the driver would cause fan3 to stop spinning; this has now been resolved. The author needed a full acpidump and some other troubleshooting to figure this out. When the fan stopped running a quick cat /sys/class/hwmon/hwmon1/pwm1_enable would get it to run again for a short while.

      [root@threadripper it87]# modprobe it87 ignore_resource_conflict=1
      [root@threadripper it87]# sensors
      it8792-isa-0a60
      Adapter: ISA adapter
      in0:          +1.38 V  (min =  +0.00 V, max =  +2.78 V)
      in1:          +1.50 V  (min =  +0.00 V, max =  +2.78 V)
      in2:          +1.04 V  (min =  +0.00 V, max =  +2.78 V)
      in3:          +2.00 V  (min =  +0.00 V, max =  +2.78 V)
      in4:          +1.78 V  (min =  +0.00 V, max =  +2.78 V)
      in5:          +1.50 V  (min =  +0.00 V, max =  +2.78 V)
      in6:          +2.78 V  (min =  +0.00 V, max =  +2.78 V)  ALARM
      3VSB:         +3.33 V  (min =  +0.00 V, max =  +5.56 V)
      Vbat:         +3.14 V
      fan1:        1138 RPM  (min =    0 RPM)
      fan2:           0 RPM  (min =    0 RPM)
      fan3:        1048 RPM  (min =    0 RPM)
      temp1:        +48.0°C  (low  = +127.0°C, high = +127.0°C)  sensor = thermistor
      temp2:        -55.0°C  (low  = +127.0°C, high = +127.0°C)  sensor = thermistor
      temp3:        +45.0°C  (low  = +127.0°C, high = +127.0°C)  sensor = thermistor
      intrusion0:  ALARM
    
      iwlwifi-virtual-0
      Adapter: Virtual device
      temp1:        +46.0°C
    
      it8686-isa-0a40
      Adapter: ISA adapter
      in0:          +1.39 V  (min =  +0.00 V, max =  +3.06 V)
      in1:          +2.00 V  (min =  +0.00 V, max =  +3.06 V)
      in2:          +2.02 V  (min =  +0.00 V, max =  +3.06 V)
      in3:          +2.00 V  (min =  +0.00 V, max =  +3.06 V)
      in4:          +1.21 V  (min =  +0.00 V, max =  +3.06 V)
      in5:          +0.97 V  (min =  +0.00 V, max =  +3.06 V)
      in6:          +1.21 V  (min =  +0.00 V, max =  +3.06 V)
      3VSB:         +3.34 V  (min =  +0.00 V, max =  +6.12 V)
      Vbat:         +3.07 V
      fan1:        1430 RPM  (min =   10 RPM)
      fan2:           0 RPM  (min =    0 RPM)
      fan3:           0 RPM  (min =    0 RPM)
      fan4:           0 RPM  (min =    0 RPM)
      fan5:           0 RPM  (min =    0 RPM)
      temp1:        +48.0°C  (low  = +127.0°C, high = +127.0°C)  sensor = thermistor
      temp2:        +57.0°C  (low  = +127.0°C, high = +127.0°C)  sensor = thermistor
      temp3:        +37.0°C  (low  =  +0.0°C, high = +70.0°C)  sensor = AMD AMDSI
      temp4:        +47.0°C  (low  = +127.0°C, high = +127.0°C)  sensor = thermistor
      temp5:        +43.0°C  (low  = +127.0°C, high = +127.0°C)  sensor = thermistor
      temp6:        -55.0°C  (low  = +127.0°C, high = +127.0°C)  sensor = thermistor
      intrusion0:  ALARM