Skip to contentSkip to conversation

w83795 & Supermicro H8DTI

lm-sensors Mikhail Kuzminsky 3 participants 3 messages Feb 18, 2011 – Mar 8, 2011

lore
Share & tools
lore
#0 lore raw

We use 64 bit OpenSuSE kernel 2.6.27 (patched for right numactl work) w/OpenSuSE sensors 3.0.3 (w/libsensors4) packages installed.

Motherboard Supermicro X8DTI has w83795adg (I beleive) chip, and I obtained from Supermicro Tech Support the necessary data (see below) for /etc/sensors3.conf

1) 1st of all, I need to install "stand-alone" w83795 driver for my kernel.
Do I understand correctly that simple issuing of "make all" under root is enough ?
(of course, I do not say about w83795 loading).

2) Am I right in a pair of "compute" statements for in3 and in4 values:

compute in3 @*0.032, @/0.032
compute in4 @*0.008*6.62, @/0.008/6.62

if I base on data supplied by Supermicro (below, they are for 5V and 12V) ?

==Supermicro data=========Bus Type = SMBus
One W83795AG

Windbond W83795AG, Slave Address=0x2f (0x5E in 8-Bit format)
==============================Fan1 Fan Speed, Offset 0x2e RPM = 84375/Data
Fan2 Fan Speed, Offset 0x30 RPM = 84375/Data
Fan3 Fan Speed, Offset 0x35 RPM = 84375/Data
Fan4 Fan Speed, Offset 0x31 RPM = 84375/Data
Fan5 Fan Speed, Offset 0x34 RPM = 84375/Data
Fan6 Fan Speed, Offset 0x32 RPM = 84375/Data
Fan7 Fan Speed, Offset 0x2f RPM = 84375/Data
Fan8 Fan Speed, Offset 0x33 RPM = 84375/Data
CPU1 Voltage, Offset 0x11 Voltage = Data* 0.008
CPU2 Voltage, Offset 0x10 Voltage = Data* 0.008
+5V Voltage, Offset 0x13 Voltage = Data* 0.008 * (40/10)
+12V Voltage, Offset 0x14 Voltage = Data* 0.008/ (10./66.2)
CPU1 DIMM Voltage, Offset 0x17 Voltage = Data* 0.008
CPU2 DIMM Voltage, Offset 0x16 Voltage = Data* 0.008
+1.5V Voltage, Offset 0x12 Voltage = Data* 0.008
+3.3V Voltage, Offset 0x1c Voltage = Data* 0.024
+3.3VSB Voltage, Offset 0x1d Voltage = Data* 0.024
Battery Voltage, Offset 0x1e Voltage = Data* 0.024
CPU1 Temperature, Offset 0x26 Temperature = Data
CPU2 Temperature, Offset 0x27 Temperature = Data
System Temperature, Offset 0x1f Temperature = Data
Chassis Intrusion, Bank 0, Offset 0x46, BitMask 0x40 1 = Bad, 0 = Good

			(Clear Bit: Bank 0, Offset 0x4d, BitMask 0x80)

Power Supply Failure, GP11(From W83627HF) 1 = Good, 0 = Bad

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#1 lore raw

--------------------------------------------------
From: "Mikhail Kuzminsky" <[email protected]>
Sent: Friday, February 18, 2011 8:15 PM
To: <[email protected]>
Subject: [lm-sensors] w83795 & Supermicro H8DTI

Quoted 48 lines

We use 64 bit OpenSuSE kernel 2.6.27 (patched for right numactl work) w/OpenSuSE sensors 3.0.3 (w/libsensors4) packages installed.

Motherboard Supermicro X8DTI has w83795adg (I beleive) chip, and I obtained from Supermicro Tech Support the necessary data (see below) for /etc/sensors3.conf

1) 1st of all, I need to install "stand-alone" w83795 driver for my
kernel. Do I understand correctly that simple issuing of "make all"
under root is enough ?
(of course, I do not say about w83795 loading).

2) Am I right in a pair of "compute" statements for in3 and in4 values:

compute in3 @*0.032, @/0.032
compute in4 @*0.008*6.62, @/0.008/6.62

if I base on data supplied by Supermicro (below, they are for 5V and 12V) ?
==Supermicro data=========> Bus Type = SMBus
One W83795AG

Windbond W83795AG, Slave Address=0x2f (0x5E in 8-Bit format) ==============================> Fan1 Fan Speed, Offset 0x2e RPM = 84375/Data Fan2 Fan Speed, Offset 0x30 RPM = 84375/Data
Fan3 Fan Speed, Offset 0x35 RPM = 84375/Data
Fan4 Fan Speed, Offset 0x31 RPM = 84375/Data
Fan5 Fan Speed, Offset 0x34 RPM = 84375/Data
Fan6 Fan Speed, Offset 0x32 RPM = 84375/Data
Fan7 Fan Speed, Offset 0x2f RPM = 84375/Data
Fan8 Fan Speed, Offset 0x33 RPM = 84375/Data
CPU1 Voltage, Offset 0x11 Voltage = Data* 0.008
CPU2 Voltage, Offset 0x10 Voltage = Data* 0.008
+5V Voltage, Offset 0x13 Voltage = Data* 0.008 * (40/10)
+12V Voltage, Offset 0x14 Voltage = Data* 0.008/ (10./66.2)
CPU1 DIMM Voltage, Offset 0x17 Voltage = Data* 0.008
CPU2 DIMM Voltage, Offset 0x16 Voltage = Data* 0.008
+1.5V Voltage, Offset 0x12 Voltage = Data* 0.008
+3.3V Voltage, Offset 0x1c Voltage = Data* 0.024
+3.3VSB Voltage, Offset 0x1d Voltage = Data* 0.024
Battery Voltage, Offset 0x1e Voltage = Data* 0.024
CPU1 Temperature, Offset 0x26 Temperature = Data
CPU2 Temperature, Offset 0x27 Temperature = Data
System Temperature, Offset 0x1f Temperature = Data
Chassis Intrusion, Bank 0, Offset 0x46, BitMask 0x40 1 = Bad, 0 = Good (Clear Bit: Bank 0, Offset 0x4d, BitMask 0x80)

Quoted 7 lines

Power Supply Failure, GP11(From W83627HF) 1 = Good, 0 = Bad

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

Hi,

just download the driver, the make file and i2c-compat.h from
http://khali.linux-fr.org/devel/misc/w83795/ the do a make && make install

That should be enough to install the driver for your kernel. A modprobe w83795 should then load the driver and sensors should show values :)

Regards
Ian Dobson

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#2 lore raw
In reply to Mikhail Kuzminsky

Hi Mikhail,

Sorry for the late answer. I am the (co-)author of the w83795 Linux driver.

Quoted 7 lines · Mikhail Kuzminsky

We use 64 bit OpenSuSE kernel 2.6.27 (patched for right numactl work) w/OpenSuSE sensors 3.0.3 (w/libsensors4) packages installed.

Motherboard Supermicro X8DTI has w83795adg (I beleive) chip, and I obtained from Supermicro Tech Support the necessary data (see below) for /etc/sensors3.conf

Quoted 5 lines

1) 1st of all, I need to install "stand-alone" w83795 driver for my kernel.
Do I understand correctly that simple issuing of "make all" under root is enough ?
(of course, I do not say about w83795 loading).

Not sure what you mean with "under root". If you meant "as root user", then please no, _never_ build software as root user. Build as a regular user and only install as root. Other than this, yes, "make" as a regular user and "make install" as root should be enough, although you may have to do it again whenever you upgrade your kernel.

Quoted 8 lines

2) Am I right in a pair of "compute" statements for in3 and in4 values:

compute in3 @*0.032, @/0.032
compute in4 @*0.008*6.62, @/0.008/6.62

if I base on data supplied by Supermicro (below, they are for 5V and 12V) ?

No. The 0.008 above corresponds to the ADC resolution, and the driver handles it. The only part of the conversion which goes in the configuration file is the external scaling factor.

So you want:

   compute  in3  @ * 4,    @ / 4
   compute  in4  @ * 6.62, @ / 6.62
Quoted 4 lines

==Supermicro data=========> Bus Type = SMBus
One W83795AG

Quoted 9 lines

Windbond W83795AG, Slave Address=0x2f (0x5E in 8-Bit format)
==============================> Fan1 Fan Speed, Offset 0x2e RPM = 84375/Data
Fan2 Fan Speed, Offset 0x30 RPM = 84375/Data
Fan3 Fan Speed, Offset 0x35 RPM = 84375/Data
Fan4 Fan Speed, Offset 0x31 RPM = 84375/Data
Fan5 Fan Speed, Offset 0x34 RPM = 84375/Data
Fan6 Fan Speed, Offset 0x32 RPM = 84375/Data
Fan7 Fan Speed, Offset 0x2f RPM = 84375/Data
Fan8 Fan Speed, Offset 0x33 RPM = 84375/Data

Apparently the SuperMicro engineers had fun with the fan numbering ;) This can be translated to the following configuration statements:

   label  fan1  "Fan 1"
   label  fan2  "Fan 7"
   label  fan3  "Fan 2"
   label  fan4  "Fan 4"
   label  fan5  "Fan 6"
   label  fan6  "Fan 8"
   label  fan7  "Fan 5"
   label  fan8  "Fan 3"
Quoted 7 lines

CPU1 Voltage, Offset 0x11 Voltage = Data* 0.008
CPU2 Voltage, Offset 0x10 Voltage = Data* 0.008
+5V Voltage, Offset 0x13 Voltage = Data* 0.008 * (40/10)
+12V Voltage, Offset 0x14 Voltage = Data* 0.008/ (10./66.2)
CPU1 DIMM Voltage, Offset 0x17 Voltage = Data* 0.008
CPU2 DIMM Voltage, Offset 0x16 Voltage = Data* 0.008
+1.5V Voltage, Offset 0x12 Voltage = Data* 0.008

No scaling needed except for +5V and +12V, already discussed above.

Quoted 3 lines

+3.3V Voltage, Offset 0x1c Voltage = Data* 0.024
+3.3VSB Voltage, Offset 0x1d Voltage = Data* 0.024
Battery Voltage, Offset 0x1e Voltage = Data* 0.024

These are already handled by the driver.

Quoted 3 lines

CPU1 Temperature, Offset 0x26 Temperature = Data
CPU2 Temperature, Offset 0x27 Temperature = Data
System Temperature, Offset 0x1f Temperature = Data

These correspond to temp7, temp8 and temp5, respectively. So:

   label  temp5  "Sys Temp"
   label  temp7  "CPU1 Temp"
   label  temp8  "CPU2 Temp"
Quoted 2 lines

Chassis Intrusion, Bank 0, Offset 0x46, BitMask 0x40 1 = Bad, 0 = Good

			(Clear Bit: Bank 0, Offset 0x4d, BitMask 0x80)

Supported by the driver, no configuration needed.

Quoted 1 line

Power Supply Failure, GP11(From W83627HF) 1 = Good, 0 = Bad

We don't have support for this feature.

I have come up with the following configuration file, please give it a try:
http://khali.linux-fr.org/devel/lm-sensors/sensors3-Supermicro-H8DTI.conf

Signature · 7 lines
Jean Delvare
http://khali.linux-fr.org/wishlist.html

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors