All of lore.kernel.org
 help / color / mirror / Atom feed
* bmcsensors and strange sensor values.
@ 2005-05-19  6:25 Peter Wilsmore
  2005-05-19  6:25 ` Mark Studebaker
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: Peter Wilsmore @ 2005-05-19  6:25 UTC (permalink / raw)
  To: lm-sensors

Hi,
 
I have been struggling with patching RHEL kernel 2.4.21 with lm-sensors so I can read the temperature/fan/voltage readings from a MSI-9549 M/B which according to a spec sheet from MSI uses IPMI1.5 with a bmc chip with all the standard values. I have finnally managed to get lm-sensors to compile against 2.4.21-EL. I have loaded all the drivers that are recommended from sensors-detect and a few others that I have read are required for the bmcsensors module to work:-
 
The relivent bits from sensors-detect are: 
 
Driver `bmcsensors' (should be inserted):
  Detects correctly:
  * ISA bus address 0x0ca0 (Busdriver `i2c-isa')
    Chip `IPMI BMC KCS' (confidence: 4)
 
#----cut here----
# I2C adapter drivers
modprobe i2c-amd756
modprobe i2c-isa
# I2C chip drivers
modprobe eeprom
modprobe bmcsensors
# sleep 2 # optional
/usr/local/bin/sensors -s # recommended
 
So I have loaded the following modules:
 
bmcsensors
i2c-proc
ipmi_kcs_drv
i2c-isa
i2c-ipmi
ipmi_msghandler
i2c-dev
i2c-amd756
i2c-core
 
but /var/log/messages reports:
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 14: nonlinear function 0x07 unsupported, expect bad results
 
for all the fan sensors, and comes back with strange results for most of the rest of the values:
 
bmc-ipmi-0000
Adapter: Dummy adapter
in1:       +8.00 V  (min =  +2.02 V, max = +14.11 V)
in2:       +1.52 V  (min =  +0.38 V, max =  +2.69 V)
in3:       +1.65 V  (min =  +0.42 V, max =  +2.91 V)
in4:       +3.30 V  (min =  +0.83 V, max =  +5.82 V)
in5:       +1.52 V  (min =  +0.38 V, max =  +2.69 V)
in6:       +2.57 V  (min =  +0.42 V, max =  +2.91 V)
in7:       +5.07 V  (min =  +0.83 V, max =  +5.82 V)
fan1:        0 RPM  (min =    0 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:      +0.0?C  (high =   +48?C, hyst =    +5?C)
temp2:     +20.0?C  (high =   +48?C, hyst =    +5?C)
temp3:     +46.0?C  (high =   +97?C, hyst =    +5?C)
temp4:     +49.0?C  (high =   +97?C, hyst =    +5?C)

I have tried both lm-sensors 2.8.7 and the cvs version from the web site.

I am wondering if anyone can suggest how I can get lm-sensors to properly detect the values. Is there a module I am missing or some way of reading the values using the i2c-ipmb module? The sensors.conf file says that I don't need compute lines for bmcsensors, but do I need to add them? Can I include support for nonlinear functions on the bmcsensors modules easily? I have a pdf called MSI9549_IPMI_Spec from MSI if that might help, but it doesn't seem to have any details about the sensor values and it's 78 pages and a few meg so I haven't attached it..
 
Any suggestions would be greatly appreciated.
 
thanks,
 
Peter
-------------- next part --------------
Sep  6 03:51:43 compute-0-0 kernel: i2c-amd756.o version 2.8.7 (20040611)
Sep  6 03:51:43 compute-0-0 kernel: bmcsensors.o: attach_adapter...
Sep  6 03:51:43 compute-0-0 kernel: bmcsensors.o: attach_adapter, expected 0xb0000, got 0x40000
Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: i2c /dev entries driver module version 2.8.7 (20040611)
Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: Registered 'ISA main adapter' as minor 0
Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: Registered 'IPMI adapter' as minor 1
Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: Registered 'SMBus AMD756 adapter at 80e0' as minor 2
Sep  6 03:54:50 compute-0-0 kernel: bmcsensors.o sleeping a while
Sep  6 03:54:52 compute-0-0 kernel: bmcsensors.o sleeping again
Sep  6 03:54:54 compute-0-0 kernel: bmcsensors.o i2c cleanup
Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o version 2.8.7 (20040611)
Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter...
Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter, expected 0xb0000, got 0x50000
Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter...
Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: Registered client, scanning for sensors...
Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: reserve_sdr...
Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter...
Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter, expected 0xb0000, got 0x40000
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: all sensors detected
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: building proc table
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 0: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp1 "TMP_S1"
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 1: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp2 "TMP_S2"
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 2: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp3 "TMP_P1"
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 3: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp4 "TMP_P0"
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 4: (type 0x02) (fmt=0; mc; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in1 "VLT12"
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 5: (type 0x02) (fmt=0; m\x12; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in2 "P1Vcpp"
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 6: (type 0x02) (fmt=0; m\x13; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in3 "P1V2.5"
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 7: (type 0x02) (fmt=0; m&; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in4 "VSB5.0"
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 8: (type 0x02) (fmt=0; m\x12; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in5 "P0Vcpp"
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 9: (type 0x02) (fmt=0; m\x13; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in6 "P0V2.5"
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 10: (type 0x02) (fmt=0; m&; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in7 "VLT5.0"
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 11: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan1 "FAN_S2"
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 11: nonlinear function 0x07 unsupported, expect bad results
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 12: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan2 "FAN_S4"
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 12: nonlinear function 0x07 unsupported, expect bad results
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 13: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan3 "FAN_S1"
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 13: nonlinear function 0x07 unsupported, expect bad results
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 14: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan4 "FAN_S3"
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 14: nonlinear function 0x07 unsupported, expect bad results
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 15: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan5 "FAN_S5"
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 15: nonlinear function 0x07 unsupported, expect bad results
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: 0 reservations cancelled
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registered 4 temp, 7 volt, 0 current, 5 fan sensors
Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: bmcsensor thread done

^ permalink raw reply	[flat|nested] 16+ messages in thread

* bmcsensors and strange sensor values.
  2005-05-19  6:25 bmcsensors and strange sensor values Peter Wilsmore
@ 2005-05-19  6:25 ` Mark Studebaker
  2005-05-19  6:25 ` Peter Wilsmore
                   ` (13 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Mark Studebaker @ 2005-05-19  6:25 UTC (permalink / raw)
  To: lm-sensors

your modules are fine.

Non-linear function 7 is 1/x, according to the IPMI spec, which can be handled without floating point, so
support could be added. Feel free to send a patch. You'll need the IPMI spec for reference.
You're the first to report this.

The voltages look fine. the voltage limits are too far away from the nominal to be useful but that
may just be the way the BMC is programmed. Perhaps the 'non-critical thresholds' would be better for you.
That would take a bmcsensors.c mod.

The temp. hysteresis value isn't present, I don't think (the module looks for this first), so the module is using the lower temperature limit,
but the 'sensors' program is reporting it as a hysteresis (it assumes the vaule will be a hysteresis value). 
You'll have to change 'sensors' to report it correctly.

mds


Peter Wilsmore wrote:
> Hi,
>  
> I have been struggling with patching RHEL kernel 2.4.21 with lm-sensors so I can read the temperature/fan/voltage readings from a MSI-9549 M/B which according to a spec sheet from MSI uses IPMI1.5 with a bmc chip with all the standard values. I have finnally managed to get lm-sensors to compile against 2.4.21-EL. I have loaded all the drivers that are recommended from sensors-detect and a few others that I have read are required for the bmcsensors module to work:-
>  
> The relivent bits from sensors-detect are: 
>  
> Driver `bmcsensors' (should be inserted):
>   Detects correctly:
>   * ISA bus address 0x0ca0 (Busdriver `i2c-isa')
>     Chip `IPMI BMC KCS' (confidence: 4)
>  
> #----cut here----
> # I2C adapter drivers
> modprobe i2c-amd756
> modprobe i2c-isa
> # I2C chip drivers
> modprobe eeprom
> modprobe bmcsensors
> # sleep 2 # optional
> /usr/local/bin/sensors -s # recommended
>  
> So I have loaded the following modules:
>  
> bmcsensors
> i2c-proc
> ipmi_kcs_drv
> i2c-isa
> i2c-ipmi
> ipmi_msghandler
> i2c-dev
> i2c-amd756
> i2c-core
>  
> but /var/log/messages reports:
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 14: nonlinear function 0x07 unsupported, expect bad results
>  
> for all the fan sensors, and comes back with strange results for most of the rest of the values:
>  
> bmc-ipmi-0000
> Adapter: Dummy adapter
> in1:       +8.00 V  (min =  +2.02 V, max = +14.11 V)
> in2:       +1.52 V  (min =  +0.38 V, max =  +2.69 V)
> in3:       +1.65 V  (min =  +0.42 V, max =  +2.91 V)
> in4:       +3.30 V  (min =  +0.83 V, max =  +5.82 V)
> in5:       +1.52 V  (min =  +0.38 V, max =  +2.69 V)
> in6:       +2.57 V  (min =  +0.42 V, max =  +2.91 V)
> in7:       +5.07 V  (min =  +0.83 V, max =  +5.82 V)
> fan1:        0 RPM  (min =    0 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:      +0.0?C  (high =   +48?C, hyst =    +5?C)
> temp2:     +20.0?C  (high =   +48?C, hyst =    +5?C)
> temp3:     +46.0?C  (high =   +97?C, hyst =    +5?C)
> temp4:     +49.0?C  (high =   +97?C, hyst =    +5?C)
> 
> I have tried both lm-sensors 2.8.7 and the cvs version from the web site.
> 
> I am wondering if anyone can suggest how I can get lm-sensors to properly detect the values. Is there a module I am missing or some way of reading the values using the i2c-ipmb module? The sensors.conf file says that I don't need compute lines for bmcsensors, but do I need to add them? Can I include support for nonlinear functions on the bmcsensors modules easily? I have a pdf called MSI9549_IPMI_Spec from MSI if that might help, but it doesn't seem to have any details about the sensor values and it's 78 pages and a few meg so I haven't attached it..
>  
> Any suggestions would be greatly appreciated.
>  
> thanks,
>  
> Peter
> 
> 
> ------------------------------------------------------------------------
> 
> Sep  6 03:51:43 compute-0-0 kernel: i2c-amd756.o version 2.8.7 (20040611)
> Sep  6 03:51:43 compute-0-0 kernel: bmcsensors.o: attach_adapter...
> Sep  6 03:51:43 compute-0-0 kernel: bmcsensors.o: attach_adapter, expected 0xb0000, got 0x40000
> Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: i2c /dev entries driver module version 2.8.7 (20040611)
> Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: Registered 'ISA main adapter' as minor 0
> Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: Registered 'IPMI adapter' as minor 1
> Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: Registered 'SMBus AMD756 adapter at 80e0' as minor 2
> Sep  6 03:54:50 compute-0-0 kernel: bmcsensors.o sleeping a while
> Sep  6 03:54:52 compute-0-0 kernel: bmcsensors.o sleeping again
> Sep  6 03:54:54 compute-0-0 kernel: bmcsensors.o i2c cleanup
> Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o version 2.8.7 (20040611)
> Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter...
> Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter, expected 0xb0000, got 0x50000
> Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter...
> Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: Registered client, scanning for sensors...
> Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: reserve_sdr...
> Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter...
> Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter, expected 0xb0000, got 0x40000
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: all sensors detected
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: building proc table
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 0: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp1 "TMP_S1"
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 1: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp2 "TMP_S2"
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 2: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp3 "TMP_P1"
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 3: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp4 "TMP_P0"
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 4: (type 0x02) (fmt=0; mc; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in1 "VLT12"
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 5: (type 0x02) (fmt=0; m\x12; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in2 "P1Vcpp"
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 6: (type 0x02) (fmt=0; m\x13; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in3 "P1V2.5"
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 7: (type 0x02) (fmt=0; m&; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in4 "VSB5.0"
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 8: (type 0x02) (fmt=0; m\x12; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in5 "P0Vcpp"
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 9: (type 0x02) (fmt=0; m\x13; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in6 "P0V2.5"
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 10: (type 0x02) (fmt=0; m&; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in7 "VLT5.0"
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 11: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan1 "FAN_S2"
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 11: nonlinear function 0x07 unsupported, expect bad results
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 12: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan2 "FAN_S4"
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 12: nonlinear function 0x07 unsupported, expect bad results
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 13: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan3 "FAN_S1"
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 13: nonlinear function 0x07 unsupported, expect bad results
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 14: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan4 "FAN_S3"
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 14: nonlinear function 0x07 unsupported, expect bad results
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 15: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan5 "FAN_S5"
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 15: nonlinear function 0x07 unsupported, expect bad results
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: 0 reservations cancelled
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registered 4 temp, 7 volt, 0 current, 5 fan sensors
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: bmcsensor thread done
> 

^ permalink raw reply	[flat|nested] 16+ messages in thread

* bmcsensors and strange sensor values.
  2005-05-19  6:25 bmcsensors and strange sensor values Peter Wilsmore
  2005-05-19  6:25 ` Mark Studebaker
  2005-05-19  6:25 ` Peter Wilsmore
@ 2005-05-19  6:25 ` Peter Wilsmore
  2005-05-19  6:25 ` Peter Wilsmore
                   ` (11 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Peter Wilsmore @ 2005-05-19  6:25 UTC (permalink / raw)
  To: lm-sensors

Thanks for the suggestions. I am trying to hack the changes into bmcsensors as you suggested:
 
 
static long conv_val(int value, struct sdrdata *sd)
{
        u8 k1, k2;
        long r;
        float temp;
        r = value * sd->m;
        k1 = sd->k & 0x0f;
        k2 = sd->k >> 4;
        if(k1 < 8)
                r += sd->b * exps[k1];
        else
                r += sd->b / exps[16 - k1];
        r *= exps[decplaces(sd)];
        if(k2 < 8)
                r *= exps[k2];
        else
                r /= exps[16 - k2];
        if(sd->linear = 7) {
                temp = value * sd->m;
                k1 = sd->k & 0x0f;
                k2 = sd->k >> 4;
                if(k1 < 8)
                        temp += sd->b * exps[k1];
                else
                        temp += sd->b / exps[16 - k1];
                temp *= exps[decplaces(sd)];
                if(k2 < 8)
                        temp *= exps[k2];
                else
                        temp /= exps[16 - k2];
                r = 1 / temp;
        }
        return r;
}
 
The temp variable probibly isn't necessary but I didn't want to have any acuracy loss from using float and coverting to int on the other sensors. After these changes though, I still seem to be getting odd results on the fan speed (at least I am getting something now though)
 
output from sensors (the rest is irrelivent - its all working properly from the looks of it.):
 
fan1:     9852 RPM  (min = 344827 RPM)
fan2:     11494 RPM  (min = 344827 RPM)
fan3:     6896 RPM  (min = 344827 RPM)
fan4:     11494 RPM  (min = 344827 RPM)
fan5:     11123 RPM  (min = 344827 RPM)
 
Slap me with a wet fish and call me stupid, but I don't think 344627 RPM is the minumium speed for the fans ;P, the chassis would take off if they were running at that speed. Not to mention the actual reading seem a little high (half that maybe?). Am I missing something here? From what I have been able to understand of my reading of the APMI spec fans do sometimes use an upper and lower threshold but the bmcsensors code seems to ingore that. Could that be what is going wrong?
 
thanks,
  Peter

 
________________________________

From: Mark Studebaker [mailto:mds4@verizon.net]
Sent: Wed 8/09/2004 9:38 AM
To: Peter Wilsmore
Cc: lm78@Stimpy.netroedge.com
Subject: Re: bmcsensors and strange sensor values.



your modules are fine.

Non-linear function 7 is 1/x, according to the IPMI spec, which can be handled without floating point, so
support could be added. Feel free to send a patch. You'll need the IPMI spec for reference.
You're the first to report this.

The voltages look fine. the voltage limits are too far away from the nominal to be useful but that
may just be the way the BMC is programmed. Perhaps the 'non-critical thresholds' would be better for you.
That would take a bmcsensors.c mod.

The temp. hysteresis value isn't present, I don't think (the module looks for this first), so the module is using the lower temperature limit,
but the 'sensors' program is reporting it as a hysteresis (it assumes the vaule will be a hysteresis value).
You'll have to change 'sensors' to report it correctly.

mds


Peter Wilsmore wrote:
> Hi,
> 
> I have been struggling with patching RHEL kernel 2.4.21 with lm-sensors so I can read the temperature/fan/voltage readings from a MSI-9549 M/B which according to a spec sheet from MSI uses IPMI1.5 with a bmc chip with all the standard values. I have finnally managed to get lm-sensors to compile against 2.4.21-EL. I have loaded all the drivers that are recommended from sensors-detect and a few others that I have read are required for the bmcsensors module to work:-
> 
> The relivent bits from sensors-detect are:
> 
> Driver `bmcsensors' (should be inserted):
>   Detects correctly:
>   * ISA bus address 0x0ca0 (Busdriver `i2c-isa')
>     Chip `IPMI BMC KCS' (confidence: 4)
> 
> #----cut here----
> # I2C adapter drivers
> modprobe i2c-amd756
> modprobe i2c-isa
> # I2C chip drivers
> modprobe eeprom
> modprobe bmcsensors
> # sleep 2 # optional
> /usr/local/bin/sensors -s # recommended
> 
> So I have loaded the following modules:
> 
> bmcsensors
> i2c-proc
> ipmi_kcs_drv
> i2c-isa
> i2c-ipmi
> ipmi_msghandler
> i2c-dev
> i2c-amd756
> i2c-core
> 
> but /var/log/messages reports:
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 14: nonlinear function 0x07 unsupported, expect bad results
> 
> for all the fan sensors, and comes back with strange results for most of the rest of the values:
> 
> bmc-ipmi-0000
> Adapter: Dummy adapter
> in1:       +8.00 V  (min =  +2.02 V, max = +14.11 V)
> in2:       +1.52 V  (min =  +0.38 V, max =  +2.69 V)
> in3:       +1.65 V  (min =  +0.42 V, max =  +2.91 V)
> in4:       +3.30 V  (min =  +0.83 V, max =  +5.82 V)
> in5:       +1.52 V  (min =  +0.38 V, max =  +2.69 V)
> in6:       +2.57 V  (min =  +0.42 V, max =  +2.91 V)
> in7:       +5.07 V  (min =  +0.83 V, max =  +5.82 V)
> fan1:        0 RPM  (min =    0 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:      +0.0?C  (high =   +48?C, hyst =    +5?C)
> temp2:     +20.0?C  (high =   +48?C, hyst =    +5?C)
> temp3:     +46.0?C  (high =   +97?C, hyst =    +5?C)
> temp4:     +49.0?C  (high =   +97?C, hyst =    +5?C)
>
> I have tried both lm-sensors 2.8.7 and the cvs version from the web site.
>
> I am wondering if anyone can suggest how I can get lm-sensors to properly detect the values. Is there a module I am missing or some way of reading the values using the i2c-ipmb module? The sensors.conf file says that I don't need compute lines for bmcsensors, but do I need to add them? Can I include support for nonlinear functions on the bmcsensors modules easily? I have a pdf called MSI9549_IPMI_Spec from MSI if that might help, but it doesn't seem to have any details about the sensor values and it's 78 pages and a few meg so I haven't attached it..
> 
> Any suggestions would be greatly appreciated.
> 
> thanks,
> 
> Peter
>
>
> ------------------------------------------------------------------------
>
> Sep  6 03:51:43 compute-0-0 kernel: i2c-amd756.o version 2.8.7 (20040611)
> Sep  6 03:51:43 compute-0-0 kernel: bmcsensors.o: attach_adapter...
> Sep  6 03:51:43 compute-0-0 kernel: bmcsensors.o: attach_adapter, expected 0xb0000, got 0x40000
> Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: i2c /dev entries driver module version 2.8.7 (20040611)
> Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: Registered 'ISA main adapter' as minor 0
> Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: Registered 'IPMI adapter' as minor 1
> Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: Registered 'SMBus AMD756 adapter at 80e0' as minor 2
> Sep  6 03:54:50 compute-0-0 kernel: bmcsensors.o sleeping a while
> Sep  6 03:54:52 compute-0-0 kernel: bmcsensors.o sleeping again
> Sep  6 03:54:54 compute-0-0 kernel: bmcsensors.o i2c cleanup
> Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o version 2.8.7 (20040611)
> Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter...
> Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter, expected 0xb0000, got 0x50000
> Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter...
> Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: Registered client, scanning for sensors...
> Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: reserve_sdr...
> Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter...
> Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter, expected 0xb0000, got 0x40000
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: all sensors detected
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: building proc table
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 0: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp1 "TMP_S1"
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 1: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp2 "TMP_S2"
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 2: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp3 "TMP_P1"
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 3: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp4 "TMP_P0"
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 4: (type 0x02) (fmt=0; mc; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in1 "VLT12"
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 5: (type 0x02) (fmt=0; m\x12; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in2 "P1Vcpp"
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 6: (type 0x02) (fmt=0; m\x13; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in3 "P1V2.5"
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 7: (type 0x02) (fmt=0; m&; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in4 "VSB5.0"
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 8: (type 0x02) (fmt=0; m\x12; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in5 "P0Vcpp"
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 9: (type 0x02) (fmt=0; m\x13; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in6 "P0V2.5"
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 10: (type 0x02) (fmt=0; m&; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in7 "VLT5.0"
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 11: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan1 "FAN_S2"
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 11: nonlinear function 0x07 unsupported, expect bad results
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 12: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan2 "FAN_S4"
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 12: nonlinear function 0x07 unsupported, expect bad results
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 13: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan3 "FAN_S1"
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 13: nonlinear function 0x07 unsupported, expect bad results
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 14: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan4 "FAN_S3"
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 14: nonlinear function 0x07 unsupported, expect bad results
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 15: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan5 "FAN_S5"
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 15: nonlinear function 0x07 unsupported, expect bad results
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: 0 reservations cancelled
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registered 4 temp, 7 volt, 0 current, 5 fan sensors
> Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: bmcsensor thread done
>




^ permalink raw reply	[flat|nested] 16+ messages in thread

* bmcsensors and strange sensor values.
  2005-05-19  6:25 bmcsensors and strange sensor values Peter Wilsmore
                   ` (4 preceding siblings ...)
  2005-05-19  6:25 ` Peter Wilsmore
@ 2005-05-19  6:25 ` Mark Studebaker
  2005-05-19  6:25 ` Mark Studebaker
                   ` (8 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Mark Studebaker @ 2005-05-19  6:25 UTC (permalink / raw)
  To: lm-sensors

your code looks functionally correct
since from your previous dmesg output we know m) and k2=9 (i.e. k2=-7 signed)
a raw limit reading of 1 yields a limit of 1/((29 * 1 * 10**-7) = 344827.

The fan readings look too high by a factor of 2 but that again could be a mistake in the BMC SDR.

So again, as with the voltage limits, I don't think the limits are set correctly in the BMC.
Perhaps other limits (non-critical?) are set correctly. You may want to try one of the SDR dumper tools out there,
or add more printk's to the driver to see what they are.
I think the IPMI site may have some pointers to tools.

For coding style, you'll of course want to get rid of the duplicate code.
Floating point is also not allowed in the kernel.
As a way around it, when the function is 1/x, it may be safe to assume that 10**k2 is a very small number
and do 1/x of it separately by flipping the exponent (k2 = 16- k2).

If you're quite ambitious you could try implement limit setting, if of course your BMC supports it.

mds




Peter Wilsmore wrote:
> Thanks for the suggestions. I am trying to hack the changes into bmcsensors as you suggested:
>  
>  
> static long conv_val(int value, struct sdrdata *sd)
> {
>         u8 k1, k2;
>         long r;
>         float temp;
>         r = value * sd->m;
>         k1 = sd->k & 0x0f;
>         k2 = sd->k >> 4;
>         if(k1 < 8)
>                 r += sd->b * exps[k1];
>         else
>                 r += sd->b / exps[16 - k1];
>         r *= exps[decplaces(sd)];
>         if(k2 < 8)
>                 r *= exps[k2];
>         else
>                 r /= exps[16 - k2];
>         if(sd->linear = 7) {
>                 temp = value * sd->m;
>                 k1 = sd->k & 0x0f;
>                 k2 = sd->k >> 4;
>                 if(k1 < 8)
>                         temp += sd->b * exps[k1];
>                 else
>                         temp += sd->b / exps[16 - k1];
>                 temp *= exps[decplaces(sd)];
>                 if(k2 < 8)
>                         temp *= exps[k2];
>                 else
>                         temp /= exps[16 - k2];
>                 r = 1 / temp;
>         }
>         return r;
> }
>  
> The temp variable probibly isn't necessary but I didn't want to have any acuracy loss from using float and coverting to int on the other sensors. After these changes though, I still seem to be getting odd results on the fan speed (at least I am getting something now though)
>  
> output from sensors (the rest is irrelivent - its all working properly from the looks of it.):
>  
> fan1:     9852 RPM  (min = 344827 RPM)
> fan2:     11494 RPM  (min = 344827 RPM)
> fan3:     6896 RPM  (min = 344827 RPM)
> fan4:     11494 RPM  (min = 344827 RPM)
> fan5:     11123 RPM  (min = 344827 RPM)
>  
> Slap me with a wet fish and call me stupid, but I don't think 344627 RPM is the minumium speed for the fans ;P, the chassis would take off if they were running at that speed. Not to mention the actual reading seem a little high (half that maybe?). Am I missing something here? From what I have been able to understand of my reading of the APMI spec fans do sometimes use an upper and lower threshold but the bmcsensors code seems to ingore that. Could that be what is going wrong?
>  
> thanks,
>   Peter
> 
>  
> ________________________________
> 
> From: Mark Studebaker [mailto:mds4@verizon.net]
> Sent: Wed 8/09/2004 9:38 AM
> To: Peter Wilsmore
> Cc: lm78@Stimpy.netroedge.com
> Subject: Re: bmcsensors and strange sensor values.
> 
> 
> 
> your modules are fine.
> 
> Non-linear function 7 is 1/x, according to the IPMI spec, which can be handled without floating point, so
> support could be added. Feel free to send a patch. You'll need the IPMI spec for reference.
> You're the first to report this.
> 
> The voltages look fine. the voltage limits are too far away from the nominal to be useful but that
> may just be the way the BMC is programmed. Perhaps the 'non-critical thresholds' would be better for you.
> That would take a bmcsensors.c mod.
> 
> The temp. hysteresis value isn't present, I don't think (the module looks for this first), so the module is using the lower temperature limit,
> but the 'sensors' program is reporting it as a hysteresis (it assumes the vaule will be a hysteresis value).
> You'll have to change 'sensors' to report it correctly.
> 
> mds
> 
> 
> Peter Wilsmore wrote:
> 
>>Hi,
>>
>>I have been struggling with patching RHEL kernel 2.4.21 with lm-sensors so I can read the temperature/fan/voltage readings from a MSI-9549 M/B which according to a spec sheet from MSI uses IPMI1.5 with a bmc chip with all the standard values. I have finnally managed to get lm-sensors to compile against 2.4.21-EL. I have loaded all the drivers that are recommended from sensors-detect and a few others that I have read are required for the bmcsensors module to work:-
>>
>>The relivent bits from sensors-detect are:
>>
>>Driver `bmcsensors' (should be inserted):
>>  Detects correctly:
>>  * ISA bus address 0x0ca0 (Busdriver `i2c-isa')
>>    Chip `IPMI BMC KCS' (confidence: 4)
>>
>>#----cut here----
>># I2C adapter drivers
>>modprobe i2c-amd756
>>modprobe i2c-isa
>># I2C chip drivers
>>modprobe eeprom
>>modprobe bmcsensors
>># sleep 2 # optional
>>/usr/local/bin/sensors -s # recommended
>>
>>So I have loaded the following modules:
>>
>>bmcsensors
>>i2c-proc
>>ipmi_kcs_drv
>>i2c-isa
>>i2c-ipmi
>>ipmi_msghandler
>>i2c-dev
>>i2c-amd756
>>i2c-core
>>
>>but /var/log/messages reports:
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 14: nonlinear function 0x07 unsupported, expect bad results
>>
>>for all the fan sensors, and comes back with strange results for most of the rest of the values:
>>
>>bmc-ipmi-0000
>>Adapter: Dummy adapter
>>in1:       +8.00 V  (min =  +2.02 V, max = +14.11 V)
>>in2:       +1.52 V  (min =  +0.38 V, max =  +2.69 V)
>>in3:       +1.65 V  (min =  +0.42 V, max =  +2.91 V)
>>in4:       +3.30 V  (min =  +0.83 V, max =  +5.82 V)
>>in5:       +1.52 V  (min =  +0.38 V, max =  +2.69 V)
>>in6:       +2.57 V  (min =  +0.42 V, max =  +2.91 V)
>>in7:       +5.07 V  (min =  +0.83 V, max =  +5.82 V)
>>fan1:        0 RPM  (min =    0 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:      +0.0?C  (high =   +48?C, hyst =    +5?C)
>>temp2:     +20.0?C  (high =   +48?C, hyst =    +5?C)
>>temp3:     +46.0?C  (high =   +97?C, hyst =    +5?C)
>>temp4:     +49.0?C  (high =   +97?C, hyst =    +5?C)
>>
>>I have tried both lm-sensors 2.8.7 and the cvs version from the web site.
>>
>>I am wondering if anyone can suggest how I can get lm-sensors to properly detect the values. Is there a module I am missing or some way of reading the values using the i2c-ipmb module? The sensors.conf file says that I don't need compute lines for bmcsensors, but do I need to add them? Can I include support for nonlinear functions on the bmcsensors modules easily? I have a pdf called MSI9549_IPMI_Spec from MSI if that might help, but it doesn't seem to have any details about the sensor values and it's 78 pages and a few meg so I haven't attached it..
>>
>>Any suggestions would be greatly appreciated.
>>
>>thanks,
>>
>>Peter
>>
>>
>>------------------------------------------------------------------------
>>
>>Sep  6 03:51:43 compute-0-0 kernel: i2c-amd756.o version 2.8.7 (20040611)
>>Sep  6 03:51:43 compute-0-0 kernel: bmcsensors.o: attach_adapter...
>>Sep  6 03:51:43 compute-0-0 kernel: bmcsensors.o: attach_adapter, expected 0xb0000, got 0x40000
>>Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: i2c /dev entries driver module version 2.8.7 (20040611)
>>Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: Registered 'ISA main adapter' as minor 0
>>Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: Registered 'IPMI adapter' as minor 1
>>Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: Registered 'SMBus AMD756 adapter at 80e0' as minor 2
>>Sep  6 03:54:50 compute-0-0 kernel: bmcsensors.o sleeping a while
>>Sep  6 03:54:52 compute-0-0 kernel: bmcsensors.o sleeping again
>>Sep  6 03:54:54 compute-0-0 kernel: bmcsensors.o i2c cleanup
>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o version 2.8.7 (20040611)
>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter...
>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter, expected 0xb0000, got 0x50000
>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter...
>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: Registered client, scanning for sensors...
>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: reserve_sdr...
>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter...
>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter, expected 0xb0000, got 0x40000
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: all sensors detected
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: building proc table
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 0: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp1 "TMP_S1"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 1: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp2 "TMP_S2"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 2: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp3 "TMP_P1"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 3: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp4 "TMP_P0"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 4: (type 0x02) (fmt=0; mc; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in1 "VLT12"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 5: (type 0x02) (fmt=0; m\x12; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in2 "P1Vcpp"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 6: (type 0x02) (fmt=0; m\x13; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in3 "P1V2.5"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 7: (type 0x02) (fmt=0; m&; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in4 "VSB5.0"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 8: (type 0x02) (fmt=0; m\x12; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in5 "P0Vcpp"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 9: (type 0x02) (fmt=0; m\x13; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in6 "P0V2.5"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 10: (type 0x02) (fmt=0; m&; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in7 "VLT5.0"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 11: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan1 "FAN_S2"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 11: nonlinear function 0x07 unsupported, expect bad results
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 12: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan2 "FAN_S4"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 12: nonlinear function 0x07 unsupported, expect bad results
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 13: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan3 "FAN_S1"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 13: nonlinear function 0x07 unsupported, expect bad results
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 14: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan4 "FAN_S3"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 14: nonlinear function 0x07 unsupported, expect bad results
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 15: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan5 "FAN_S5"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 15: nonlinear function 0x07 unsupported, expect bad results
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: 0 reservations cancelled
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registered 4 temp, 7 volt, 0 current, 5 fan sensors
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: bmcsensor thread done
>>
> 
> 
> 
> 
> 
> 

^ permalink raw reply	[flat|nested] 16+ messages in thread

* bmcsensors and strange sensor values.
  2005-05-19  6:25 bmcsensors and strange sensor values Peter Wilsmore
                   ` (2 preceding siblings ...)
  2005-05-19  6:25 ` Peter Wilsmore
@ 2005-05-19  6:25 ` Peter Wilsmore
  2005-05-19  6:25 ` Peter Wilsmore
                   ` (10 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Peter Wilsmore @ 2005-05-19  6:25 UTC (permalink / raw)
  To: lm-sensors

Thanks again, I will get rid of the floating point stuff, as to the limits, after reading parts of the IPMI spec I found that I need to use the 'upper' limit (upper and lower limits are flipped because of the 1/x conversion), however to the actual fan speeds still seem a little high (8000+ RPM). I have a suspicion that my fan is reporting 2 ticks per rotation, however from my limited understanding of IPMI the m factor should cater for that sort of thing. Have I misunderstood the spec or is my M/B behaving weirdly?

Thanks,

Peter Wilsmore
 
ASI SOLUTIONS
Direct: 1300130 837
-----Original Message-----
From: Mark Studebaker [mailto:mds4@verizon.net] 
Sent: Thursday, 9 September 2004 10:22 AM
To: Peter Wilsmore
Cc: lm78@Stimpy.netroedge.com
Subject: Re: bmcsensors and strange sensor values.

your code looks functionally correct
since from your previous dmesg output we know m) and k2=9 (i.e. k2=-7 signed)
a raw limit reading of 1 yields a limit of 1/((29 * 1 * 10**-7) = 344827.

The fan readings look too high by a factor of 2 but that again could be a mistake in the BMC SDR.

So again, as with the voltage limits, I don't think the limits are set correctly in the BMC.
Perhaps other limits (non-critical?) are set correctly. You may want to try one of the SDR dumper tools out there,
or add more printk's to the driver to see what they are.
I think the IPMI site may have some pointers to tools.

For coding style, you'll of course want to get rid of the duplicate code.
Floating point is also not allowed in the kernel.
As a way around it, when the function is 1/x, it may be safe to assume that 10**k2 is a very small number
and do 1/x of it separately by flipping the exponent (k2 = 16- k2).

If you're quite ambitious you could try implement limit setting, if of course your BMC supports it.

mds




Peter Wilsmore wrote:
> Thanks for the suggestions. I am trying to hack the changes into bmcsensors as you suggested:
>  
>  
> static long conv_val(int value, struct sdrdata *sd)
> {
>         u8 k1, k2;
>         long r;
>         float temp;
>         r = value * sd->m;
>         k1 = sd->k & 0x0f;
>         k2 = sd->k >> 4;
>         if(k1 < 8)
>                 r += sd->b * exps[k1];
>         else
>                 r += sd->b / exps[16 - k1];
>         r *= exps[decplaces(sd)];
>         if(k2 < 8)
>                 r *= exps[k2];
>         else
>                 r /= exps[16 - k2];
>         if(sd->linear = 7) {
>                 temp = value * sd->m;
>                 k1 = sd->k & 0x0f;
>                 k2 = sd->k >> 4;
>                 if(k1 < 8)
>                         temp += sd->b * exps[k1];
>                 else
>                         temp += sd->b / exps[16 - k1];
>                 temp *= exps[decplaces(sd)];
>                 if(k2 < 8)
>                         temp *= exps[k2];
>                 else
>                         temp /= exps[16 - k2];
>                 r = 1 / temp;
>         }
>         return r;
> }
>  
> The temp variable probibly isn't necessary but I didn't want to have any acuracy loss from using float and coverting to int on the other sensors. After these changes though, I still seem to be getting odd results on the fan speed (at least I am getting something now though)
>  
> output from sensors (the rest is irrelivent - its all working properly from the looks of it.):
>  
> fan1:     9852 RPM  (min = 344827 RPM)
> fan2:     11494 RPM  (min = 344827 RPM)
> fan3:     6896 RPM  (min = 344827 RPM)
> fan4:     11494 RPM  (min = 344827 RPM)
> fan5:     11123 RPM  (min = 344827 RPM)
>  
> Slap me with a wet fish and call me stupid, but I don't think 344627 RPM is the minumium speed for the fans ;P, the chassis would take off if they were running at that speed. Not to mention the actual reading seem a little high (half that maybe?). Am I missing something here? From what I have been able to understand of my reading of the APMI spec fans do sometimes use an upper and lower threshold but the bmcsensors code seems to ingore that. Could that be what is going wrong?
>  
> thanks,
>   Peter
> 
>  
> ________________________________
> 
> From: Mark Studebaker [mailto:mds4@verizon.net]
> Sent: Wed 8/09/2004 9:38 AM
> To: Peter Wilsmore
> Cc: lm78@Stimpy.netroedge.com
> Subject: Re: bmcsensors and strange sensor values.
> 
> 
> 
> your modules are fine.
> 
> Non-linear function 7 is 1/x, according to the IPMI spec, which can be handled without floating point, so
> support could be added. Feel free to send a patch. You'll need the IPMI spec for reference.
> You're the first to report this.
> 
> The voltages look fine. the voltage limits are too far away from the nominal to be useful but that
> may just be the way the BMC is programmed. Perhaps the 'non-critical thresholds' would be better for you.
> That would take a bmcsensors.c mod.
> 
> The temp. hysteresis value isn't present, I don't think (the module looks for this first), so the module is using the lower temperature limit,
> but the 'sensors' program is reporting it as a hysteresis (it assumes the vaule will be a hysteresis value).
> You'll have to change 'sensors' to report it correctly.
> 
> mds
> 
> 
> Peter Wilsmore wrote:
> 
>>Hi,
>>
>>I have been struggling with patching RHEL kernel 2.4.21 with lm-sensors so I can read the temperature/fan/voltage readings from a MSI-9549 M/B which according to a spec sheet from MSI uses IPMI1.5 with a bmc chip with all the standard values. I have finnally managed to get lm-sensors to compile against 2.4.21-EL. I have loaded all the drivers that are recommended from sensors-detect and a few others that I have read are required for the bmcsensors module to work:-
>>
>>The relivent bits from sensors-detect are:
>>
>>Driver `bmcsensors' (should be inserted):
>>  Detects correctly:
>>  * ISA bus address 0x0ca0 (Busdriver `i2c-isa')
>>    Chip `IPMI BMC KCS' (confidence: 4)
>>
>>#----cut here----
>># I2C adapter drivers
>>modprobe i2c-amd756
>>modprobe i2c-isa
>># I2C chip drivers
>>modprobe eeprom
>>modprobe bmcsensors
>># sleep 2 # optional
>>/usr/local/bin/sensors -s # recommended
>>
>>So I have loaded the following modules:
>>
>>bmcsensors
>>i2c-proc
>>ipmi_kcs_drv
>>i2c-isa
>>i2c-ipmi
>>ipmi_msghandler
>>i2c-dev
>>i2c-amd756
>>i2c-core
>>
>>but /var/log/messages reports:
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 14: nonlinear function 0x07 unsupported, expect bad results
>>
>>for all the fan sensors, and comes back with strange results for most of the rest of the values:
>>
>>bmc-ipmi-0000
>>Adapter: Dummy adapter
>>in1:       +8.00 V  (min =  +2.02 V, max = +14.11 V)
>>in2:       +1.52 V  (min =  +0.38 V, max =  +2.69 V)
>>in3:       +1.65 V  (min =  +0.42 V, max =  +2.91 V)
>>in4:       +3.30 V  (min =  +0.83 V, max =  +5.82 V)
>>in5:       +1.52 V  (min =  +0.38 V, max =  +2.69 V)
>>in6:       +2.57 V  (min =  +0.42 V, max =  +2.91 V)
>>in7:       +5.07 V  (min =  +0.83 V, max =  +5.82 V)
>>fan1:        0 RPM  (min =    0 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:      +0.0?C  (high =   +48?C, hyst =    +5?C)
>>temp2:     +20.0?C  (high =   +48?C, hyst =    +5?C)
>>temp3:     +46.0?C  (high =   +97?C, hyst =    +5?C)
>>temp4:     +49.0?C  (high =   +97?C, hyst =    +5?C)
>>
>>I have tried both lm-sensors 2.8.7 and the cvs version from the web site.
>>
>>I am wondering if anyone can suggest how I can get lm-sensors to properly detect the values. Is there a module I am missing or some way of reading the values using the i2c-ipmb module? The sensors.conf file says that I don't need compute lines for bmcsensors, but do I need to add them? Can I include support for nonlinear functions on the bmcsensors modules easily? I have a pdf called MSI9549_IPMI_Spec from MSI if that might help, but it doesn't seem to have any details about the sensor values and it's 78 pages and a few meg so I haven't attached it..
>>
>>Any suggestions would be greatly appreciated.
>>
>>thanks,
>>
>>Peter
>>
>>
>>------------------------------------------------------------------------
>>
>>Sep  6 03:51:43 compute-0-0 kernel: i2c-amd756.o version 2.8.7 (20040611)
>>Sep  6 03:51:43 compute-0-0 kernel: bmcsensors.o: attach_adapter...
>>Sep  6 03:51:43 compute-0-0 kernel: bmcsensors.o: attach_adapter, expected 0xb0000, got 0x40000
>>Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: i2c /dev entries driver module version 2.8.7 (20040611)
>>Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: Registered 'ISA main adapter' as minor 0
>>Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: Registered 'IPMI adapter' as minor 1
>>Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: Registered 'SMBus AMD756 adapter at 80e0' as minor 2
>>Sep  6 03:54:50 compute-0-0 kernel: bmcsensors.o sleeping a while
>>Sep  6 03:54:52 compute-0-0 kernel: bmcsensors.o sleeping again
>>Sep  6 03:54:54 compute-0-0 kernel: bmcsensors.o i2c cleanup
>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o version 2.8.7 (20040611)
>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter...
>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter, expected 0xb0000, got 0x50000
>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter...
>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: Registered client, scanning for sensors...
>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: reserve_sdr...
>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter...
>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter, expected 0xb0000, got 0x40000
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: all sensors detected
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: building proc table
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 0: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp1 "TMP_S1"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 1: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp2 "TMP_S2"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 2: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp3 "TMP_P1"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 3: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp4 "TMP_P0"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 4: (type 0x02) (fmt=0; mc; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in1 "VLT12"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 5: (type 0x02) (fmt=0; m\x12; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in2 "P1Vcpp"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 6: (type 0x02) (fmt=0; m\x13; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in3 "P1V2.5"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 7: (type 0x02) (fmt=0; m&; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in4 "VSB5.0"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 8: (type 0x02) (fmt=0; m\x12; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in5 "P0Vcpp"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 9: (type 0x02) (fmt=0; m\x13; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in6 "P0V2.5"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 10: (type 0x02) (fmt=0; m&; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in7 "VLT5.0"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 11: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan1 "FAN_S2"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 11: nonlinear function 0x07 unsupported, expect bad results
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 12: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan2 "FAN_S4"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 12: nonlinear function 0x07 unsupported, expect bad results
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 13: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan3 "FAN_S1"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 13: nonlinear function 0x07 unsupported, expect bad results
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 14: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan4 "FAN_S3"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 14: nonlinear function 0x07 unsupported, expect bad results
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 15: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan5 "FAN_S5"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 15: nonlinear function 0x07 unsupported, expect bad results
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: 0 reservations cancelled
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registered 4 temp, 7 volt, 0 current, 5 fan sensors
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: bmcsensor thread done
>>
> 
> 
> 
> 
> 
> 


^ permalink raw reply	[flat|nested] 16+ messages in thread

* bmcsensors and strange sensor values.
  2005-05-19  6:25 bmcsensors and strange sensor values Peter Wilsmore
  2005-05-19  6:25 ` Mark Studebaker
@ 2005-05-19  6:25 ` Peter Wilsmore
  2005-05-19  6:25 ` Peter Wilsmore
                   ` (12 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Peter Wilsmore @ 2005-05-19  6:25 UTC (permalink / raw)
  To: lm-sensors

OK, I have got rid of the float stuff - it makes it much more elegant. I have also used the 'upper' limit for the lower limit and have some comments in regarding the odd values and * 2 factor that I seem to have on my M/B. Unfortunately I am on a deadline, so I haven't done any limit stuff.

Thanks for all the help.

Peter Wilsmore
 
ASI SOLUTIONS
Direct: 1300130 837

-----Original Message-----
From: Mark Studebaker [mailto:mds4@verizon.net] 
Sent: Thursday, 9 September 2004 10:22 AM
To: Peter Wilsmore
Cc: lm78@Stimpy.netroedge.com
Subject: Re: bmcsensors and strange sensor values.

your code looks functionally correct
since from your previous dmesg output we know m) and k2=9 (i.e. k2=-7 signed)
a raw limit reading of 1 yields a limit of 1/((29 * 1 * 10**-7) = 344827.

The fan readings look too high by a factor of 2 but that again could be a mistake in the BMC SDR.

So again, as with the voltage limits, I don't think the limits are set correctly in the BMC.
Perhaps other limits (non-critical?) are set correctly. You may want to try one of the SDR dumper tools out there,
or add more printk's to the driver to see what they are.
I think the IPMI site may have some pointers to tools.

For coding style, you'll of course want to get rid of the duplicate code.
Floating point is also not allowed in the kernel.
As a way around it, when the function is 1/x, it may be safe to assume that 10**k2 is a very small number
and do 1/x of it separately by flipping the exponent (k2 = 16- k2).

If you're quite ambitious you could try implement limit setting, if of course your BMC supports it.

mds




Peter Wilsmore wrote:
> Thanks for the suggestions. I am trying to hack the changes into bmcsensors as you suggested:
>  
>  
> static long conv_val(int value, struct sdrdata *sd)
> {
>         u8 k1, k2;
>         long r;
>         float temp;
>         r = value * sd->m;
>         k1 = sd->k & 0x0f;
>         k2 = sd->k >> 4;
>         if(k1 < 8)
>                 r += sd->b * exps[k1];
>         else
>                 r += sd->b / exps[16 - k1];
>         r *= exps[decplaces(sd)];
>         if(k2 < 8)
>                 r *= exps[k2];
>         else
>                 r /= exps[16 - k2];
>         if(sd->linear = 7) {
>                 temp = value * sd->m;
>                 k1 = sd->k & 0x0f;
>                 k2 = sd->k >> 4;
>                 if(k1 < 8)
>                         temp += sd->b * exps[k1];
>                 else
>                         temp += sd->b / exps[16 - k1];
>                 temp *= exps[decplaces(sd)];
>                 if(k2 < 8)
>                         temp *= exps[k2];
>                 else
>                         temp /= exps[16 - k2];
>                 r = 1 / temp;
>         }
>         return r;
> }
>  
> The temp variable probibly isn't necessary but I didn't want to have any acuracy loss from using float and coverting to int on the other sensors. After these changes though, I still seem to be getting odd results on the fan speed (at least I am getting something now though)
>  
> output from sensors (the rest is irrelivent - its all working properly from the looks of it.):
>  
> fan1:     9852 RPM  (min = 344827 RPM)
> fan2:     11494 RPM  (min = 344827 RPM)
> fan3:     6896 RPM  (min = 344827 RPM)
> fan4:     11494 RPM  (min = 344827 RPM)
> fan5:     11123 RPM  (min = 344827 RPM)
>  
> Slap me with a wet fish and call me stupid, but I don't think 344627 RPM is the minumium speed for the fans ;P, the chassis would take off if they were running at that speed. Not to mention the actual reading seem a little high (half that maybe?). Am I missing something here? From what I have been able to understand of my reading of the APMI spec fans do sometimes use an upper and lower threshold but the bmcsensors code seems to ingore that. Could that be what is going wrong?
>  
> thanks,
>   Peter
> 
>  
> ________________________________
> 
> From: Mark Studebaker [mailto:mds4@verizon.net]
> Sent: Wed 8/09/2004 9:38 AM
> To: Peter Wilsmore
> Cc: lm78@Stimpy.netroedge.com
> Subject: Re: bmcsensors and strange sensor values.
> 
> 
> 
> your modules are fine.
> 
> Non-linear function 7 is 1/x, according to the IPMI spec, which can be handled without floating point, so
> support could be added. Feel free to send a patch. You'll need the IPMI spec for reference.
> You're the first to report this.
> 
> The voltages look fine. the voltage limits are too far away from the nominal to be useful but that
> may just be the way the BMC is programmed. Perhaps the 'non-critical thresholds' would be better for you.
> That would take a bmcsensors.c mod.
> 
> The temp. hysteresis value isn't present, I don't think (the module looks for this first), so the module is using the lower temperature limit,
> but the 'sensors' program is reporting it as a hysteresis (it assumes the vaule will be a hysteresis value).
> You'll have to change 'sensors' to report it correctly.
> 
> mds
> 
> 
> Peter Wilsmore wrote:
> 
>>Hi,
>>
>>I have been struggling with patching RHEL kernel 2.4.21 with lm-sensors so I can read the temperature/fan/voltage readings from a MSI-9549 M/B which according to a spec sheet from MSI uses IPMI1.5 with a bmc chip with all the standard values. I have finnally managed to get lm-sensors to compile against 2.4.21-EL. I have loaded all the drivers that are recommended from sensors-detect and a few others that I have read are required for the bmcsensors module to work:-
>>
>>The relivent bits from sensors-detect are:
>>
>>Driver `bmcsensors' (should be inserted):
>>  Detects correctly:
>>  * ISA bus address 0x0ca0 (Busdriver `i2c-isa')
>>    Chip `IPMI BMC KCS' (confidence: 4)
>>
>>#----cut here----
>># I2C adapter drivers
>>modprobe i2c-amd756
>>modprobe i2c-isa
>># I2C chip drivers
>>modprobe eeprom
>>modprobe bmcsensors
>># sleep 2 # optional
>>/usr/local/bin/sensors -s # recommended
>>
>>So I have loaded the following modules:
>>
>>bmcsensors
>>i2c-proc
>>ipmi_kcs_drv
>>i2c-isa
>>i2c-ipmi
>>ipmi_msghandler
>>i2c-dev
>>i2c-amd756
>>i2c-core
>>
>>but /var/log/messages reports:
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 14: nonlinear function 0x07 unsupported, expect bad results
>>
>>for all the fan sensors, and comes back with strange results for most of the rest of the values:
>>
>>bmc-ipmi-0000
>>Adapter: Dummy adapter
>>in1:       +8.00 V  (min =  +2.02 V, max = +14.11 V)
>>in2:       +1.52 V  (min =  +0.38 V, max =  +2.69 V)
>>in3:       +1.65 V  (min =  +0.42 V, max =  +2.91 V)
>>in4:       +3.30 V  (min =  +0.83 V, max =  +5.82 V)
>>in5:       +1.52 V  (min =  +0.38 V, max =  +2.69 V)
>>in6:       +2.57 V  (min =  +0.42 V, max =  +2.91 V)
>>in7:       +5.07 V  (min =  +0.83 V, max =  +5.82 V)
>>fan1:        0 RPM  (min =    0 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:      +0.0?C  (high =   +48?C, hyst =    +5?C)
>>temp2:     +20.0?C  (high =   +48?C, hyst =    +5?C)
>>temp3:     +46.0?C  (high =   +97?C, hyst =    +5?C)
>>temp4:     +49.0?C  (high =   +97?C, hyst =    +5?C)
>>
>>I have tried both lm-sensors 2.8.7 and the cvs version from the web site.
>>
>>I am wondering if anyone can suggest how I can get lm-sensors to properly detect the values. Is there a module I am missing or some way of reading the values using the i2c-ipmb module? The sensors.conf file says that I don't need compute lines for bmcsensors, but do I need to add them? Can I include support for nonlinear functions on the bmcsensors modules easily? I have a pdf called MSI9549_IPMI_Spec from MSI if that might help, but it doesn't seem to have any details about the sensor values and it's 78 pages and a few meg so I haven't attached it..
>>
>>Any suggestions would be greatly appreciated.
>>
>>thanks,
>>
>>Peter
>>
>>
>>------------------------------------------------------------------------
>>
>>Sep  6 03:51:43 compute-0-0 kernel: i2c-amd756.o version 2.8.7 (20040611)
>>Sep  6 03:51:43 compute-0-0 kernel: bmcsensors.o: attach_adapter...
>>Sep  6 03:51:43 compute-0-0 kernel: bmcsensors.o: attach_adapter, expected 0xb0000, got 0x40000
>>Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: i2c /dev entries driver module version 2.8.7 (20040611)
>>Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: Registered 'ISA main adapter' as minor 0
>>Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: Registered 'IPMI adapter' as minor 1
>>Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: Registered 'SMBus AMD756 adapter at 80e0' as minor 2
>>Sep  6 03:54:50 compute-0-0 kernel: bmcsensors.o sleeping a while
>>Sep  6 03:54:52 compute-0-0 kernel: bmcsensors.o sleeping again
>>Sep  6 03:54:54 compute-0-0 kernel: bmcsensors.o i2c cleanup
>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o version 2.8.7 (20040611)
>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter...
>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter, expected 0xb0000, got 0x50000
>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter...
>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: Registered client, scanning for sensors...
>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: reserve_sdr...
>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter...
>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter, expected 0xb0000, got 0x40000
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: all sensors detected
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: building proc table
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 0: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp1 "TMP_S1"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 1: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp2 "TMP_S2"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 2: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp3 "TMP_P1"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 3: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp4 "TMP_P0"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 4: (type 0x02) (fmt=0; mc; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in1 "VLT12"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 5: (type 0x02) (fmt=0; m\x12; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in2 "P1Vcpp"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 6: (type 0x02) (fmt=0; m\x13; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in3 "P1V2.5"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 7: (type 0x02) (fmt=0; m&; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in4 "VSB5.0"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 8: (type 0x02) (fmt=0; m\x12; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in5 "P0Vcpp"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 9: (type 0x02) (fmt=0; m\x13; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in6 "P0V2.5"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 10: (type 0x02) (fmt=0; m&; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in7 "VLT5.0"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 11: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan1 "FAN_S2"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 11: nonlinear function 0x07 unsupported, expect bad results
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 12: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan2 "FAN_S4"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 12: nonlinear function 0x07 unsupported, expect bad results
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 13: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan3 "FAN_S1"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 13: nonlinear function 0x07 unsupported, expect bad results
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 14: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan4 "FAN_S3"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 14: nonlinear function 0x07 unsupported, expect bad results
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 15: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan5 "FAN_S5"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 15: nonlinear function 0x07 unsupported, expect bad results
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: 0 reservations cancelled
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registered 4 temp, 7 volt, 0 current, 5 fan sensors
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: bmcsensor thread done
>>
> 
> 
> 
> 
> 
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: bmcsensors.patch
Type: application/octet-stream
Size: 951 bytes
Desc: bmcsensors.patch
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040909/60a30229/bmcsensors.obj

^ permalink raw reply	[flat|nested] 16+ messages in thread

* bmcsensors and strange sensor values.
  2005-05-19  6:25 bmcsensors and strange sensor values Peter Wilsmore
                   ` (3 preceding siblings ...)
  2005-05-19  6:25 ` Peter Wilsmore
@ 2005-05-19  6:25 ` Peter Wilsmore
  2005-05-19  6:25 ` Mark Studebaker
                   ` (9 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Peter Wilsmore @ 2005-05-19  6:25 UTC (permalink / raw)
  To: lm-sensors

Sorry, I forgot to include the bit to get rid of the warning that nonlinear function 7 is not support.

Thanks,

Peter Wilsmore
 
ASI SOLUTIONS
Direct: 1300130 837

-----Original Message-----
From: Peter Wilsmore 
Sent: Thursday, 9 September 2004 11:21 AM
To: 'Mark Studebaker'
Cc: lm78@Stimpy.netroedge.com
Subject: RE: bmcsensors and strange sensor values.

OK, I have got rid of the float stuff - it makes it much more elegant. I have also used the 'upper' limit for the lower limit and have some comments in regarding the odd values and * 2 factor that I seem to have on my M/B. Unfortunately I am on a deadline, so I haven't done any limit stuff.

Thanks for all the help.

Peter Wilsmore
 
ASI SOLUTIONS
Direct: 1300130 837

-----Original Message-----
From: Mark Studebaker [mailto:mds4@verizon.net] 
Sent: Thursday, 9 September 2004 10:22 AM
To: Peter Wilsmore
Cc: lm78@Stimpy.netroedge.com
Subject: Re: bmcsensors and strange sensor values.

your code looks functionally correct
since from your previous dmesg output we know m) and k2=9 (i.e. k2=-7 signed)
a raw limit reading of 1 yields a limit of 1/((29 * 1 * 10**-7) = 344827.

The fan readings look too high by a factor of 2 but that again could be a mistake in the BMC SDR.

So again, as with the voltage limits, I don't think the limits are set correctly in the BMC.
Perhaps other limits (non-critical?) are set correctly. You may want to try one of the SDR dumper tools out there,
or add more printk's to the driver to see what they are.
I think the IPMI site may have some pointers to tools.

For coding style, you'll of course want to get rid of the duplicate code.
Floating point is also not allowed in the kernel.
As a way around it, when the function is 1/x, it may be safe to assume that 10**k2 is a very small number
and do 1/x of it separately by flipping the exponent (k2 = 16- k2).

If you're quite ambitious you could try implement limit setting, if of course your BMC supports it.

mds




Peter Wilsmore wrote:
> Thanks for the suggestions. I am trying to hack the changes into bmcsensors as you suggested:
>  
>  
> static long conv_val(int value, struct sdrdata *sd)
> {
>         u8 k1, k2;
>         long r;
>         float temp;
>         r = value * sd->m;
>         k1 = sd->k & 0x0f;
>         k2 = sd->k >> 4;
>         if(k1 < 8)
>                 r += sd->b * exps[k1];
>         else
>                 r += sd->b / exps[16 - k1];
>         r *= exps[decplaces(sd)];
>         if(k2 < 8)
>                 r *= exps[k2];
>         else
>                 r /= exps[16 - k2];
>         if(sd->linear = 7) {
>                 temp = value * sd->m;
>                 k1 = sd->k & 0x0f;
>                 k2 = sd->k >> 4;
>                 if(k1 < 8)
>                         temp += sd->b * exps[k1];
>                 else
>                         temp += sd->b / exps[16 - k1];
>                 temp *= exps[decplaces(sd)];
>                 if(k2 < 8)
>                         temp *= exps[k2];
>                 else
>                         temp /= exps[16 - k2];
>                 r = 1 / temp;
>         }
>         return r;
> }
>  
> The temp variable probibly isn't necessary but I didn't want to have any acuracy loss from using float and coverting to int on the other sensors. After these changes though, I still seem to be getting odd results on the fan speed (at least I am getting something now though)
>  
> output from sensors (the rest is irrelivent - its all working properly from the looks of it.):
>  
> fan1:     9852 RPM  (min = 344827 RPM)
> fan2:     11494 RPM  (min = 344827 RPM)
> fan3:     6896 RPM  (min = 344827 RPM)
> fan4:     11494 RPM  (min = 344827 RPM)
> fan5:     11123 RPM  (min = 344827 RPM)
>  
> Slap me with a wet fish and call me stupid, but I don't think 344627 RPM is the minumium speed for the fans ;P, the chassis would take off if they were running at that speed. Not to mention the actual reading seem a little high (half that maybe?). Am I missing something here? From what I have been able to understand of my reading of the APMI spec fans do sometimes use an upper and lower threshold but the bmcsensors code seems to ingore that. Could that be what is going wrong?
>  
> thanks,
>   Peter
> 
>  
> ________________________________
> 
> From: Mark Studebaker [mailto:mds4@verizon.net]
> Sent: Wed 8/09/2004 9:38 AM
> To: Peter Wilsmore
> Cc: lm78@Stimpy.netroedge.com
> Subject: Re: bmcsensors and strange sensor values.
> 
> 
> 
> your modules are fine.
> 
> Non-linear function 7 is 1/x, according to the IPMI spec, which can be handled without floating point, so
> support could be added. Feel free to send a patch. You'll need the IPMI spec for reference.
> You're the first to report this.
> 
> The voltages look fine. the voltage limits are too far away from the nominal to be useful but that
> may just be the way the BMC is programmed. Perhaps the 'non-critical thresholds' would be better for you.
> That would take a bmcsensors.c mod.
> 
> The temp. hysteresis value isn't present, I don't think (the module looks for this first), so the module is using the lower temperature limit,
> but the 'sensors' program is reporting it as a hysteresis (it assumes the vaule will be a hysteresis value).
> You'll have to change 'sensors' to report it correctly.
> 
> mds
> 
> 
> Peter Wilsmore wrote:
> 
>>Hi,
>>
>>I have been struggling with patching RHEL kernel 2.4.21 with lm-sensors so I can read the temperature/fan/voltage readings from a MSI-9549 M/B which according to a spec sheet from MSI uses IPMI1.5 with a bmc chip with all the standard values. I have finnally managed to get lm-sensors to compile against 2.4.21-EL. I have loaded all the drivers that are recommended from sensors-detect and a few others that I have read are required for the bmcsensors module to work:-
>>
>>The relivent bits from sensors-detect are:
>>
>>Driver `bmcsensors' (should be inserted):
>>  Detects correctly:
>>  * ISA bus address 0x0ca0 (Busdriver `i2c-isa')
>>    Chip `IPMI BMC KCS' (confidence: 4)
>>
>>#----cut here----
>># I2C adapter drivers
>>modprobe i2c-amd756
>>modprobe i2c-isa
>># I2C chip drivers
>>modprobe eeprom
>>modprobe bmcsensors
>># sleep 2 # optional
>>/usr/local/bin/sensors -s # recommended
>>
>>So I have loaded the following modules:
>>
>>bmcsensors
>>i2c-proc
>>ipmi_kcs_drv
>>i2c-isa
>>i2c-ipmi
>>ipmi_msghandler
>>i2c-dev
>>i2c-amd756
>>i2c-core
>>
>>but /var/log/messages reports:
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 14: nonlinear function 0x07 unsupported, expect bad results
>>
>>for all the fan sensors, and comes back with strange results for most of the rest of the values:
>>
>>bmc-ipmi-0000
>>Adapter: Dummy adapter
>>in1:       +8.00 V  (min =  +2.02 V, max = +14.11 V)
>>in2:       +1.52 V  (min =  +0.38 V, max =  +2.69 V)
>>in3:       +1.65 V  (min =  +0.42 V, max =  +2.91 V)
>>in4:       +3.30 V  (min =  +0.83 V, max =  +5.82 V)
>>in5:       +1.52 V  (min =  +0.38 V, max =  +2.69 V)
>>in6:       +2.57 V  (min =  +0.42 V, max =  +2.91 V)
>>in7:       +5.07 V  (min =  +0.83 V, max =  +5.82 V)
>>fan1:        0 RPM  (min =    0 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:      +0.0?C  (high =   +48?C, hyst =    +5?C)
>>temp2:     +20.0?C  (high =   +48?C, hyst =    +5?C)
>>temp3:     +46.0?C  (high =   +97?C, hyst =    +5?C)
>>temp4:     +49.0?C  (high =   +97?C, hyst =    +5?C)
>>
>>I have tried both lm-sensors 2.8.7 and the cvs version from the web site.
>>
>>I am wondering if anyone can suggest how I can get lm-sensors to properly detect the values. Is there a module I am missing or some way of reading the values using the i2c-ipmb module? The sensors.conf file says that I don't need compute lines for bmcsensors, but do I need to add them? Can I include support for nonlinear functions on the bmcsensors modules easily? I have a pdf called MSI9549_IPMI_Spec from MSI if that might help, but it doesn't seem to have any details about the sensor values and it's 78 pages and a few meg so I haven't attached it..
>>
>>Any suggestions would be greatly appreciated.
>>
>>thanks,
>>
>>Peter
>>
>>
>>------------------------------------------------------------------------
>>
>>Sep  6 03:51:43 compute-0-0 kernel: i2c-amd756.o version 2.8.7 (20040611)
>>Sep  6 03:51:43 compute-0-0 kernel: bmcsensors.o: attach_adapter...
>>Sep  6 03:51:43 compute-0-0 kernel: bmcsensors.o: attach_adapter, expected 0xb0000, got 0x40000
>>Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: i2c /dev entries driver module version 2.8.7 (20040611)
>>Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: Registered 'ISA main adapter' as minor 0
>>Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: Registered 'IPMI adapter' as minor 1
>>Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: Registered 'SMBus AMD756 adapter at 80e0' as minor 2
>>Sep  6 03:54:50 compute-0-0 kernel: bmcsensors.o sleeping a while
>>Sep  6 03:54:52 compute-0-0 kernel: bmcsensors.o sleeping again
>>Sep  6 03:54:54 compute-0-0 kernel: bmcsensors.o i2c cleanup
>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o version 2.8.7 (20040611)
>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter...
>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter, expected 0xb0000, got 0x50000
>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter...
>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: Registered client, scanning for sensors...
>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: reserve_sdr...
>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter...
>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter, expected 0xb0000, got 0x40000
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: all sensors detected
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: building proc table
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 0: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp1 "TMP_S1"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 1: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp2 "TMP_S2"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 2: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp3 "TMP_P1"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 3: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp4 "TMP_P0"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 4: (type 0x02) (fmt=0; mc; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in1 "VLT12"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 5: (type 0x02) (fmt=0; m\x12; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in2 "P1Vcpp"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 6: (type 0x02) (fmt=0; m\x13; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in3 "P1V2.5"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 7: (type 0x02) (fmt=0; m&; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in4 "VSB5.0"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 8: (type 0x02) (fmt=0; m\x12; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in5 "P0Vcpp"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 9: (type 0x02) (fmt=0; m\x13; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in6 "P0V2.5"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 10: (type 0x02) (fmt=0; m&; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in7 "VLT5.0"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 11: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan1 "FAN_S2"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 11: nonlinear function 0x07 unsupported, expect bad results
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 12: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan2 "FAN_S4"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 12: nonlinear function 0x07 unsupported, expect bad results
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 13: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan3 "FAN_S1"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 13: nonlinear function 0x07 unsupported, expect bad results
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 14: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan4 "FAN_S3"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 14: nonlinear function 0x07 unsupported, expect bad results
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 15: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan5 "FAN_S5"
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 15: nonlinear function 0x07 unsupported, expect bad results
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: 0 reservations cancelled
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registered 4 temp, 7 volt, 0 current, 5 fan sensors
>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: bmcsensor thread done
>>
> 
> 
> 
> 
> 
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: bmcsensors.patch
Type: application/octet-stream
Size: 1295 bytes
Desc: bmcsensors.patch
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040909/05f9abec/bmcsensors.obj

^ permalink raw reply	[flat|nested] 16+ messages in thread

* bmcsensors and strange sensor values.
  2005-05-19  6:25 bmcsensors and strange sensor values Peter Wilsmore
                   ` (6 preceding siblings ...)
  2005-05-19  6:25 ` Mark Studebaker
@ 2005-05-19  6:25 ` Mark Studebaker
  2005-05-19  6:25 ` Peter Wilsmore
                   ` (6 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Mark Studebaker @ 2005-05-19  6:25 UTC (permalink / raw)
  To: lm-sensors

good catch about switching the limits. Hopefully you will get better limits when you switch.

it does seem that your fan readings are 2x too high. Yes that should be accounted for with the 'm' value.
Almost all fans are 2 ticks per rotation.
So it looks like a mistake in the fan SDRs.

mds



Peter Wilsmore wrote:
> Thanks again, I will get rid of the floating point stuff, as to the limits, after reading parts of the IPMI spec I found that I need to use the 'upper' limit (upper and lower limits are flipped because of the 1/x conversion), however to the actual fan speeds still seem a little high (8000+ RPM). I have a suspicion that my fan is reporting 2 ticks per rotation, however from my limited understanding of IPMI the m factor should cater for that sort of thing. Have I misunderstood the spec or is my M/B behaving weirdly?
> 
> Thanks,
> 
> Peter Wilsmore
>  
> ASI SOLUTIONS
> Direct: 1300130 837
> -----Original Message-----
> From: Mark Studebaker [mailto:mds4@verizon.net] 
> Sent: Thursday, 9 September 2004 10:22 AM
> To: Peter Wilsmore
> Cc: lm78@Stimpy.netroedge.com
> Subject: Re: bmcsensors and strange sensor values.
> 
> your code looks functionally correct
> since from your previous dmesg output we know m) and k2=9 (i.e. k2=-7 signed)
> a raw limit reading of 1 yields a limit of 1/((29 * 1 * 10**-7) = 344827.
> 
> The fan readings look too high by a factor of 2 but that again could be a mistake in the BMC SDR.
> 
> So again, as with the voltage limits, I don't think the limits are set correctly in the BMC.
> Perhaps other limits (non-critical?) are set correctly. You may want to try one of the SDR dumper tools out there,
> or add more printk's to the driver to see what they are.
> I think the IPMI site may have some pointers to tools.
> 
> For coding style, you'll of course want to get rid of the duplicate code.
> Floating point is also not allowed in the kernel.
> As a way around it, when the function is 1/x, it may be safe to assume that 10**k2 is a very small number
> and do 1/x of it separately by flipping the exponent (k2 = 16- k2).
> 
> If you're quite ambitious you could try implement limit setting, if of course your BMC supports it.
> 
> mds
> 
> 
> 
> 
> Peter Wilsmore wrote:
> 
>>Thanks for the suggestions. I am trying to hack the changes into bmcsensors as you suggested:
>> 
>> 
>>static long conv_val(int value, struct sdrdata *sd)
>>{
>>        u8 k1, k2;
>>        long r;
>>        float temp;
>>        r = value * sd->m;
>>        k1 = sd->k & 0x0f;
>>        k2 = sd->k >> 4;
>>        if(k1 < 8)
>>                r += sd->b * exps[k1];
>>        else
>>                r += sd->b / exps[16 - k1];
>>        r *= exps[decplaces(sd)];
>>        if(k2 < 8)
>>                r *= exps[k2];
>>        else
>>                r /= exps[16 - k2];
>>        if(sd->linear = 7) {
>>                temp = value * sd->m;
>>                k1 = sd->k & 0x0f;
>>                k2 = sd->k >> 4;
>>                if(k1 < 8)
>>                        temp += sd->b * exps[k1];
>>                else
>>                        temp += sd->b / exps[16 - k1];
>>                temp *= exps[decplaces(sd)];
>>                if(k2 < 8)
>>                        temp *= exps[k2];
>>                else
>>                        temp /= exps[16 - k2];
>>                r = 1 / temp;
>>        }
>>        return r;
>>}
>> 
>>The temp variable probibly isn't necessary but I didn't want to have any acuracy loss from using float and coverting to int on the other sensors. After these changes though, I still seem to be getting odd results on the fan speed (at least I am getting something now though)
>> 
>>output from sensors (the rest is irrelivent - its all working properly from the looks of it.):
>> 
>>fan1:     9852 RPM  (min = 344827 RPM)
>>fan2:     11494 RPM  (min = 344827 RPM)
>>fan3:     6896 RPM  (min = 344827 RPM)
>>fan4:     11494 RPM  (min = 344827 RPM)
>>fan5:     11123 RPM  (min = 344827 RPM)
>> 
>>Slap me with a wet fish and call me stupid, but I don't think 344627 RPM is the minumium speed for the fans ;P, the chassis would take off if they were running at that speed. Not to mention the actual reading seem a little high (half that maybe?). Am I missing something here? From what I have been able to understand of my reading of the APMI spec fans do sometimes use an upper and lower threshold but the bmcsensors code seems to ingore that. Could that be what is going wrong?
>> 
>>thanks,
>>  Peter
>>
>> 
>>________________________________
>>
>>From: Mark Studebaker [mailto:mds4@verizon.net]
>>Sent: Wed 8/09/2004 9:38 AM
>>To: Peter Wilsmore
>>Cc: lm78@Stimpy.netroedge.com
>>Subject: Re: bmcsensors and strange sensor values.
>>
>>
>>
>>your modules are fine.
>>
>>Non-linear function 7 is 1/x, according to the IPMI spec, which can be handled without floating point, so
>>support could be added. Feel free to send a patch. You'll need the IPMI spec for reference.
>>You're the first to report this.
>>
>>The voltages look fine. the voltage limits are too far away from the nominal to be useful but that
>>may just be the way the BMC is programmed. Perhaps the 'non-critical thresholds' would be better for you.
>>That would take a bmcsensors.c mod.
>>
>>The temp. hysteresis value isn't present, I don't think (the module looks for this first), so the module is using the lower temperature limit,
>>but the 'sensors' program is reporting it as a hysteresis (it assumes the vaule will be a hysteresis value).
>>You'll have to change 'sensors' to report it correctly.
>>
>>mds
>>
>>
>>Peter Wilsmore wrote:
>>
>>
>>>Hi,
>>>
>>>I have been struggling with patching RHEL kernel 2.4.21 with lm-sensors so I can read the temperature/fan/voltage readings from a MSI-9549 M/B which according to a spec sheet from MSI uses IPMI1.5 with a bmc chip with all the standard values. I have finnally managed to get lm-sensors to compile against 2.4.21-EL. I have loaded all the drivers that are recommended from sensors-detect and a few others that I have read are required for the bmcsensors module to work:-
>>>
>>>The relivent bits from sensors-detect are:
>>>
>>>Driver `bmcsensors' (should be inserted):
>>> Detects correctly:
>>> * ISA bus address 0x0ca0 (Busdriver `i2c-isa')
>>>   Chip `IPMI BMC KCS' (confidence: 4)
>>>
>>>#----cut here----
>>># I2C adapter drivers
>>>modprobe i2c-amd756
>>>modprobe i2c-isa
>>># I2C chip drivers
>>>modprobe eeprom
>>>modprobe bmcsensors
>>># sleep 2 # optional
>>>/usr/local/bin/sensors -s # recommended
>>>
>>>So I have loaded the following modules:
>>>
>>>bmcsensors
>>>i2c-proc
>>>ipmi_kcs_drv
>>>i2c-isa
>>>i2c-ipmi
>>>ipmi_msghandler
>>>i2c-dev
>>>i2c-amd756
>>>i2c-core
>>>
>>>but /var/log/messages reports:
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 14: nonlinear function 0x07 unsupported, expect bad results
>>>
>>>for all the fan sensors, and comes back with strange results for most of the rest of the values:
>>>
>>>bmc-ipmi-0000
>>>Adapter: Dummy adapter
>>>in1:       +8.00 V  (min =  +2.02 V, max = +14.11 V)
>>>in2:       +1.52 V  (min =  +0.38 V, max =  +2.69 V)
>>>in3:       +1.65 V  (min =  +0.42 V, max =  +2.91 V)
>>>in4:       +3.30 V  (min =  +0.83 V, max =  +5.82 V)
>>>in5:       +1.52 V  (min =  +0.38 V, max =  +2.69 V)
>>>in6:       +2.57 V  (min =  +0.42 V, max =  +2.91 V)
>>>in7:       +5.07 V  (min =  +0.83 V, max =  +5.82 V)
>>>fan1:        0 RPM  (min =    0 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:      +0.0?C  (high =   +48?C, hyst =    +5?C)
>>>temp2:     +20.0?C  (high =   +48?C, hyst =    +5?C)
>>>temp3:     +46.0?C  (high =   +97?C, hyst =    +5?C)
>>>temp4:     +49.0?C  (high =   +97?C, hyst =    +5?C)
>>>
>>>I have tried both lm-sensors 2.8.7 and the cvs version from the web site.
>>>
>>>I am wondering if anyone can suggest how I can get lm-sensors to properly detect the values. Is there a module I am missing or some way of reading the values using the i2c-ipmb module? The sensors.conf file says that I don't need compute lines for bmcsensors, but do I need to add them? Can I include support for nonlinear functions on the bmcsensors modules easily? I have a pdf called MSI9549_IPMI_Spec from MSI if that might help, but it doesn't seem to have any details about the sensor values and it's 78 pages and a few meg so I haven't attached it..
>>>
>>>Any suggestions would be greatly appreciated.
>>>
>>>thanks,
>>>
>>>Peter
>>>
>>>
>>>------------------------------------------------------------------------
>>>
>>>Sep  6 03:51:43 compute-0-0 kernel: i2c-amd756.o version 2.8.7 (20040611)
>>>Sep  6 03:51:43 compute-0-0 kernel: bmcsensors.o: attach_adapter...
>>>Sep  6 03:51:43 compute-0-0 kernel: bmcsensors.o: attach_adapter, expected 0xb0000, got 0x40000
>>>Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: i2c /dev entries driver module version 2.8.7 (20040611)
>>>Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: Registered 'ISA main adapter' as minor 0
>>>Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: Registered 'IPMI adapter' as minor 1
>>>Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: Registered 'SMBus AMD756 adapter at 80e0' as minor 2
>>>Sep  6 03:54:50 compute-0-0 kernel: bmcsensors.o sleeping a while
>>>Sep  6 03:54:52 compute-0-0 kernel: bmcsensors.o sleeping again
>>>Sep  6 03:54:54 compute-0-0 kernel: bmcsensors.o i2c cleanup
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o version 2.8.7 (20040611)
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter...
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter, expected 0xb0000, got 0x50000
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter...
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: Registered client, scanning for sensors...
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: reserve_sdr...
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter...
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter, expected 0xb0000, got 0x40000
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: all sensors detected
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: building proc table
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 0: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp1 "TMP_S1"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 1: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp2 "TMP_S2"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 2: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp3 "TMP_P1"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 3: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp4 "TMP_P0"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 4: (type 0x02) (fmt=0; mc; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in1 "VLT12"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 5: (type 0x02) (fmt=0; m\x12; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in2 "P1Vcpp"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 6: (type 0x02) (fmt=0; m\x13; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in3 "P1V2.5"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 7: (type 0x02) (fmt=0; m&; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in4 "VSB5.0"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 8: (type 0x02) (fmt=0; m\x12; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in5 "P0Vcpp"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 9: (type 0x02) (fmt=0; m\x13; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in6 "P0V2.5"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 10: (type 0x02) (fmt=0; m&; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in7 "VLT5.0"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 11: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan1 "FAN_S2"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 11: nonlinear function 0x07 unsupported, expect bad results
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 12: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan2 "FAN_S4"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 12: nonlinear function 0x07 unsupported, expect bad results
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 13: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan3 "FAN_S1"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 13: nonlinear function 0x07 unsupported, expect bad results
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 14: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan4 "FAN_S3"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 14: nonlinear function 0x07 unsupported, expect bad results
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 15: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan5 "FAN_S5"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 15: nonlinear function 0x07 unsupported, expect bad results
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: 0 reservations cancelled
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registered 4 temp, 7 volt, 0 current, 5 fan sensors
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: bmcsensor thread done
>>>
>>
>>
>>
>>
>>
>>
> 
> 

^ permalink raw reply	[flat|nested] 16+ messages in thread

* bmcsensors and strange sensor values.
  2005-05-19  6:25 bmcsensors and strange sensor values Peter Wilsmore
                   ` (5 preceding siblings ...)
  2005-05-19  6:25 ` Mark Studebaker
@ 2005-05-19  6:25 ` Mark Studebaker
  2005-05-19  6:25 ` Mark Studebaker
                   ` (7 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Mark Studebaker @ 2005-05-19  6:25 UTC (permalink / raw)
  To: lm-sensors

a better place to swap the limits is in bmcsensors_select_thresholds()
(search for the "fixme" note I put in long ago...)

what fan limit results did you get?



Peter Wilsmore wrote:
> Sorry, I forgot to include the bit to get rid of the warning that nonlinear function 7 is not support.
> 
> Thanks,
> 
> Peter Wilsmore
>  
> ASI SOLUTIONS
> Direct: 1300130 837
> 
> -----Original Message-----
> From: Peter Wilsmore 
> Sent: Thursday, 9 September 2004 11:21 AM
> To: 'Mark Studebaker'
> Cc: lm78@Stimpy.netroedge.com
> Subject: RE: bmcsensors and strange sensor values.
> 
> OK, I have got rid of the float stuff - it makes it much more elegant. I have also used the 'upper' limit for the lower limit and have some comments in regarding the odd values and * 2 factor that I seem to have on my M/B. Unfortunately I am on a deadline, so I haven't done any limit stuff.
> 
> Thanks for all the help.
> 
> Peter Wilsmore
>  
> ASI SOLUTIONS
> Direct: 1300130 837
> 
> -----Original Message-----
> From: Mark Studebaker [mailto:mds4@verizon.net] 
> Sent: Thursday, 9 September 2004 10:22 AM
> To: Peter Wilsmore
> Cc: lm78@Stimpy.netroedge.com
> Subject: Re: bmcsensors and strange sensor values.
> 
> your code looks functionally correct
> since from your previous dmesg output we know m) and k2=9 (i.e. k2=-7 signed)
> a raw limit reading of 1 yields a limit of 1/((29 * 1 * 10**-7) = 344827.
> 
> The fan readings look too high by a factor of 2 but that again could be a mistake in the BMC SDR.
> 
> So again, as with the voltage limits, I don't think the limits are set correctly in the BMC.
> Perhaps other limits (non-critical?) are set correctly. You may want to try one of the SDR dumper tools out there,
> or add more printk's to the driver to see what they are.
> I think the IPMI site may have some pointers to tools.
> 
> For coding style, you'll of course want to get rid of the duplicate code.
> Floating point is also not allowed in the kernel.
> As a way around it, when the function is 1/x, it may be safe to assume that 10**k2 is a very small number
> and do 1/x of it separately by flipping the exponent (k2 = 16- k2).
> 
> If you're quite ambitious you could try implement limit setting, if of course your BMC supports it.
> 
> mds
> 
> 
> 
> 
> Peter Wilsmore wrote:
> 
>>Thanks for the suggestions. I am trying to hack the changes into bmcsensors as you suggested:
>> 
>> 
>>static long conv_val(int value, struct sdrdata *sd)
>>{
>>        u8 k1, k2;
>>        long r;
>>        float temp;
>>        r = value * sd->m;
>>        k1 = sd->k & 0x0f;
>>        k2 = sd->k >> 4;
>>        if(k1 < 8)
>>                r += sd->b * exps[k1];
>>        else
>>                r += sd->b / exps[16 - k1];
>>        r *= exps[decplaces(sd)];
>>        if(k2 < 8)
>>                r *= exps[k2];
>>        else
>>                r /= exps[16 - k2];
>>        if(sd->linear = 7) {
>>                temp = value * sd->m;
>>                k1 = sd->k & 0x0f;
>>                k2 = sd->k >> 4;
>>                if(k1 < 8)
>>                        temp += sd->b * exps[k1];
>>                else
>>                        temp += sd->b / exps[16 - k1];
>>                temp *= exps[decplaces(sd)];
>>                if(k2 < 8)
>>                        temp *= exps[k2];
>>                else
>>                        temp /= exps[16 - k2];
>>                r = 1 / temp;
>>        }
>>        return r;
>>}
>> 
>>The temp variable probibly isn't necessary but I didn't want to have any acuracy loss from using float and coverting to int on the other sensors. After these changes though, I still seem to be getting odd results on the fan speed (at least I am getting something now though)
>> 
>>output from sensors (the rest is irrelivent - its all working properly from the looks of it.):
>> 
>>fan1:     9852 RPM  (min = 344827 RPM)
>>fan2:     11494 RPM  (min = 344827 RPM)
>>fan3:     6896 RPM  (min = 344827 RPM)
>>fan4:     11494 RPM  (min = 344827 RPM)
>>fan5:     11123 RPM  (min = 344827 RPM)
>> 
>>Slap me with a wet fish and call me stupid, but I don't think 344627 RPM is the minumium speed for the fans ;P, the chassis would take off if they were running at that speed. Not to mention the actual reading seem a little high (half that maybe?). Am I missing something here? From what I have been able to understand of my reading of the APMI spec fans do sometimes use an upper and lower threshold but the bmcsensors code seems to ingore that. Could that be what is going wrong?
>> 
>>thanks,
>>  Peter
>>
>> 
>>________________________________
>>
>>From: Mark Studebaker [mailto:mds4@verizon.net]
>>Sent: Wed 8/09/2004 9:38 AM
>>To: Peter Wilsmore
>>Cc: lm78@Stimpy.netroedge.com
>>Subject: Re: bmcsensors and strange sensor values.
>>
>>
>>
>>your modules are fine.
>>
>>Non-linear function 7 is 1/x, according to the IPMI spec, which can be handled without floating point, so
>>support could be added. Feel free to send a patch. You'll need the IPMI spec for reference.
>>You're the first to report this.
>>
>>The voltages look fine. the voltage limits are too far away from the nominal to be useful but that
>>may just be the way the BMC is programmed. Perhaps the 'non-critical thresholds' would be better for you.
>>That would take a bmcsensors.c mod.
>>
>>The temp. hysteresis value isn't present, I don't think (the module looks for this first), so the module is using the lower temperature limit,
>>but the 'sensors' program is reporting it as a hysteresis (it assumes the vaule will be a hysteresis value).
>>You'll have to change 'sensors' to report it correctly.
>>
>>mds
>>
>>
>>Peter Wilsmore wrote:
>>
>>
>>>Hi,
>>>
>>>I have been struggling with patching RHEL kernel 2.4.21 with lm-sensors so I can read the temperature/fan/voltage readings from a MSI-9549 M/B which according to a spec sheet from MSI uses IPMI1.5 with a bmc chip with all the standard values. I have finnally managed to get lm-sensors to compile against 2.4.21-EL. I have loaded all the drivers that are recommended from sensors-detect and a few others that I have read are required for the bmcsensors module to work:-
>>>
>>>The relivent bits from sensors-detect are:
>>>
>>>Driver `bmcsensors' (should be inserted):
>>> Detects correctly:
>>> * ISA bus address 0x0ca0 (Busdriver `i2c-isa')
>>>   Chip `IPMI BMC KCS' (confidence: 4)
>>>
>>>#----cut here----
>>># I2C adapter drivers
>>>modprobe i2c-amd756
>>>modprobe i2c-isa
>>># I2C chip drivers
>>>modprobe eeprom
>>>modprobe bmcsensors
>>># sleep 2 # optional
>>>/usr/local/bin/sensors -s # recommended
>>>
>>>So I have loaded the following modules:
>>>
>>>bmcsensors
>>>i2c-proc
>>>ipmi_kcs_drv
>>>i2c-isa
>>>i2c-ipmi
>>>ipmi_msghandler
>>>i2c-dev
>>>i2c-amd756
>>>i2c-core
>>>
>>>but /var/log/messages reports:
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 14: nonlinear function 0x07 unsupported, expect bad results
>>>
>>>for all the fan sensors, and comes back with strange results for most of the rest of the values:
>>>
>>>bmc-ipmi-0000
>>>Adapter: Dummy adapter
>>>in1:       +8.00 V  (min =  +2.02 V, max = +14.11 V)
>>>in2:       +1.52 V  (min =  +0.38 V, max =  +2.69 V)
>>>in3:       +1.65 V  (min =  +0.42 V, max =  +2.91 V)
>>>in4:       +3.30 V  (min =  +0.83 V, max =  +5.82 V)
>>>in5:       +1.52 V  (min =  +0.38 V, max =  +2.69 V)
>>>in6:       +2.57 V  (min =  +0.42 V, max =  +2.91 V)
>>>in7:       +5.07 V  (min =  +0.83 V, max =  +5.82 V)
>>>fan1:        0 RPM  (min =    0 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:      +0.0?C  (high =   +48?C, hyst =    +5?C)
>>>temp2:     +20.0?C  (high =   +48?C, hyst =    +5?C)
>>>temp3:     +46.0?C  (high =   +97?C, hyst =    +5?C)
>>>temp4:     +49.0?C  (high =   +97?C, hyst =    +5?C)
>>>
>>>I have tried both lm-sensors 2.8.7 and the cvs version from the web site.
>>>
>>>I am wondering if anyone can suggest how I can get lm-sensors to properly detect the values. Is there a module I am missing or some way of reading the values using the i2c-ipmb module? The sensors.conf file says that I don't need compute lines for bmcsensors, but do I need to add them? Can I include support for nonlinear functions on the bmcsensors modules easily? I have a pdf called MSI9549_IPMI_Spec from MSI if that might help, but it doesn't seem to have any details about the sensor values and it's 78 pages and a few meg so I haven't attached it..
>>>
>>>Any suggestions would be greatly appreciated.
>>>
>>>thanks,
>>>
>>>Peter
>>>
>>>
>>>------------------------------------------------------------------------
>>>
>>>Sep  6 03:51:43 compute-0-0 kernel: i2c-amd756.o version 2.8.7 (20040611)
>>>Sep  6 03:51:43 compute-0-0 kernel: bmcsensors.o: attach_adapter...
>>>Sep  6 03:51:43 compute-0-0 kernel: bmcsensors.o: attach_adapter, expected 0xb0000, got 0x40000
>>>Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: i2c /dev entries driver module version 2.8.7 (20040611)
>>>Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: Registered 'ISA main adapter' as minor 0
>>>Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: Registered 'IPMI adapter' as minor 1
>>>Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: Registered 'SMBus AMD756 adapter at 80e0' as minor 2
>>>Sep  6 03:54:50 compute-0-0 kernel: bmcsensors.o sleeping a while
>>>Sep  6 03:54:52 compute-0-0 kernel: bmcsensors.o sleeping again
>>>Sep  6 03:54:54 compute-0-0 kernel: bmcsensors.o i2c cleanup
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o version 2.8.7 (20040611)
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter...
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter, expected 0xb0000, got 0x50000
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter...
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: Registered client, scanning for sensors...
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: reserve_sdr...
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter...
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter, expected 0xb0000, got 0x40000
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: all sensors detected
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: building proc table
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 0: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp1 "TMP_S1"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 1: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp2 "TMP_S2"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 2: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp3 "TMP_P1"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 3: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp4 "TMP_P0"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 4: (type 0x02) (fmt=0; mc; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in1 "VLT12"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 5: (type 0x02) (fmt=0; m\x12; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in2 "P1Vcpp"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 6: (type 0x02) (fmt=0; m\x13; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in3 "P1V2.5"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 7: (type 0x02) (fmt=0; m&; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in4 "VSB5.0"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 8: (type 0x02) (fmt=0; m\x12; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in5 "P0Vcpp"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 9: (type 0x02) (fmt=0; m\x13; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in6 "P0V2.5"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 10: (type 0x02) (fmt=0; m&; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in7 "VLT5.0"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 11: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan1 "FAN_S2"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 11: nonlinear function 0x07 unsupported, expect bad results
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 12: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan2 "FAN_S4"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 12: nonlinear function 0x07 unsupported, expect bad results
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 13: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan3 "FAN_S1"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 13: nonlinear function 0x07 unsupported, expect bad results
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 14: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan4 "FAN_S3"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 14: nonlinear function 0x07 unsupported, expect bad results
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 15: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan5 "FAN_S5"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 15: nonlinear function 0x07 unsupported, expect bad results
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: 0 reservations cancelled
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registered 4 temp, 7 volt, 0 current, 5 fan sensors
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: bmcsensor thread done
>>>
>>
>>
>>
>>
>>
> 
> 

^ permalink raw reply	[flat|nested] 16+ messages in thread

* bmcsensors and strange sensor values.
  2005-05-19  6:25 bmcsensors and strange sensor values Peter Wilsmore
                   ` (7 preceding siblings ...)
  2005-05-19  6:25 ` Mark Studebaker
@ 2005-05-19  6:25 ` Peter Wilsmore
  2005-05-19  6:25 ` Philip Pokorny
                   ` (5 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Peter Wilsmore @ 2005-05-19  6:25 UTC (permalink / raw)
  To: lm-sensors

Very low, after the * 2 to correct the for the suspect speeds, 703. I have a suspicion that the selected thresholds are the 'nonrecoverable' thresholds. I am not particularly concerned about the threshold values ATM and need to ship the stuff I am working on by tomorrow. We will be keeping a demo of the system so I will look at it again after that.

Thanks,

Peter Wilsmore
 
ASI SOLUTIONS
Direct: 1300130 837

-----Original Message-----
From: Mark Studebaker [mailto:mds4@verizon.net] 
Sent: Thursday, 9 September 2004 11:50 AM
To: Peter Wilsmore
Cc: lm78@Stimpy.netroedge.com
Subject: Re: bmcsensors and strange sensor values.

a better place to swap the limits is in bmcsensors_select_thresholds()
(search for the "fixme" note I put in long ago...)

what fan limit results did you get?



Peter Wilsmore wrote:
> Sorry, I forgot to include the bit to get rid of the warning that nonlinear function 7 is not support.
> 
> Thanks,
> 
> Peter Wilsmore
>  
> ASI SOLUTIONS
> Direct: 1300130 837
> 
> -----Original Message-----
> From: Peter Wilsmore 
> Sent: Thursday, 9 September 2004 11:21 AM
> To: 'Mark Studebaker'
> Cc: lm78@Stimpy.netroedge.com
> Subject: RE: bmcsensors and strange sensor values.
> 
> OK, I have got rid of the float stuff - it makes it much more elegant. I have also used the 'upper' limit for the lower limit and have some comments in regarding the odd values and * 2 factor that I seem to have on my M/B. Unfortunately I am on a deadline, so I haven't done any limit stuff.
> 
> Thanks for all the help.
> 
> Peter Wilsmore
>  
> ASI SOLUTIONS
> Direct: 1300130 837
> 
> -----Original Message-----
> From: Mark Studebaker [mailto:mds4@verizon.net] 
> Sent: Thursday, 9 September 2004 10:22 AM
> To: Peter Wilsmore
> Cc: lm78@Stimpy.netroedge.com
> Subject: Re: bmcsensors and strange sensor values.
> 
> your code looks functionally correct
> since from your previous dmesg output we know m) and k2=9 (i.e. k2=-7 signed)
> a raw limit reading of 1 yields a limit of 1/((29 * 1 * 10**-7) = 344827.
> 
> The fan readings look too high by a factor of 2 but that again could be a mistake in the BMC SDR.
> 
> So again, as with the voltage limits, I don't think the limits are set correctly in the BMC.
> Perhaps other limits (non-critical?) are set correctly. You may want to try one of the SDR dumper tools out there,
> or add more printk's to the driver to see what they are.
> I think the IPMI site may have some pointers to tools.
> 
> For coding style, you'll of course want to get rid of the duplicate code.
> Floating point is also not allowed in the kernel.
> As a way around it, when the function is 1/x, it may be safe to assume that 10**k2 is a very small number
> and do 1/x of it separately by flipping the exponent (k2 = 16- k2).
> 
> If you're quite ambitious you could try implement limit setting, if of course your BMC supports it.
> 
> mds
> 
> 
> 
> 
> Peter Wilsmore wrote:
> 
>>Thanks for the suggestions. I am trying to hack the changes into bmcsensors as you suggested:
>> 
>> 
>>static long conv_val(int value, struct sdrdata *sd)
>>{
>>        u8 k1, k2;
>>        long r;
>>        float temp;
>>        r = value * sd->m;
>>        k1 = sd->k & 0x0f;
>>        k2 = sd->k >> 4;
>>        if(k1 < 8)
>>                r += sd->b * exps[k1];
>>        else
>>                r += sd->b / exps[16 - k1];
>>        r *= exps[decplaces(sd)];
>>        if(k2 < 8)
>>                r *= exps[k2];
>>        else
>>                r /= exps[16 - k2];
>>        if(sd->linear = 7) {
>>                temp = value * sd->m;
>>                k1 = sd->k & 0x0f;
>>                k2 = sd->k >> 4;
>>                if(k1 < 8)
>>                        temp += sd->b * exps[k1];
>>                else
>>                        temp += sd->b / exps[16 - k1];
>>                temp *= exps[decplaces(sd)];
>>                if(k2 < 8)
>>                        temp *= exps[k2];
>>                else
>>                        temp /= exps[16 - k2];
>>                r = 1 / temp;
>>        }
>>        return r;
>>}
>> 
>>The temp variable probibly isn't necessary but I didn't want to have any acuracy loss from using float and coverting to int on the other sensors. After these changes though, I still seem to be getting odd results on the fan speed (at least I am getting something now though)
>> 
>>output from sensors (the rest is irrelivent - its all working properly from the looks of it.):
>> 
>>fan1:     9852 RPM  (min = 344827 RPM)
>>fan2:     11494 RPM  (min = 344827 RPM)
>>fan3:     6896 RPM  (min = 344827 RPM)
>>fan4:     11494 RPM  (min = 344827 RPM)
>>fan5:     11123 RPM  (min = 344827 RPM)
>> 
>>Slap me with a wet fish and call me stupid, but I don't think 344627 RPM is the minumium speed for the fans ;P, the chassis would take off if they were running at that speed. Not to mention the actual reading seem a little high (half that maybe?). Am I missing something here? From what I have been able to understand of my reading of the APMI spec fans do sometimes use an upper and lower threshold but the bmcsensors code seems to ingore that. Could that be what is going wrong?
>> 
>>thanks,
>>  Peter
>>
>> 
>>________________________________
>>
>>From: Mark Studebaker [mailto:mds4@verizon.net]
>>Sent: Wed 8/09/2004 9:38 AM
>>To: Peter Wilsmore
>>Cc: lm78@Stimpy.netroedge.com
>>Subject: Re: bmcsensors and strange sensor values.
>>
>>
>>
>>your modules are fine.
>>
>>Non-linear function 7 is 1/x, according to the IPMI spec, which can be handled without floating point, so
>>support could be added. Feel free to send a patch. You'll need the IPMI spec for reference.
>>You're the first to report this.
>>
>>The voltages look fine. the voltage limits are too far away from the nominal to be useful but that
>>may just be the way the BMC is programmed. Perhaps the 'non-critical thresholds' would be better for you.
>>That would take a bmcsensors.c mod.
>>
>>The temp. hysteresis value isn't present, I don't think (the module looks for this first), so the module is using the lower temperature limit,
>>but the 'sensors' program is reporting it as a hysteresis (it assumes the vaule will be a hysteresis value).
>>You'll have to change 'sensors' to report it correctly.
>>
>>mds
>>
>>
>>Peter Wilsmore wrote:
>>
>>
>>>Hi,
>>>
>>>I have been struggling with patching RHEL kernel 2.4.21 with lm-sensors so I can read the temperature/fan/voltage readings from a MSI-9549 M/B which according to a spec sheet from MSI uses IPMI1.5 with a bmc chip with all the standard values. I have finnally managed to get lm-sensors to compile against 2.4.21-EL. I have loaded all the drivers that are recommended from sensors-detect and a few others that I have read are required for the bmcsensors module to work:-
>>>
>>>The relivent bits from sensors-detect are:
>>>
>>>Driver `bmcsensors' (should be inserted):
>>> Detects correctly:
>>> * ISA bus address 0x0ca0 (Busdriver `i2c-isa')
>>>   Chip `IPMI BMC KCS' (confidence: 4)
>>>
>>>#----cut here----
>>># I2C adapter drivers
>>>modprobe i2c-amd756
>>>modprobe i2c-isa
>>># I2C chip drivers
>>>modprobe eeprom
>>>modprobe bmcsensors
>>># sleep 2 # optional
>>>/usr/local/bin/sensors -s # recommended
>>>
>>>So I have loaded the following modules:
>>>
>>>bmcsensors
>>>i2c-proc
>>>ipmi_kcs_drv
>>>i2c-isa
>>>i2c-ipmi
>>>ipmi_msghandler
>>>i2c-dev
>>>i2c-amd756
>>>i2c-core
>>>
>>>but /var/log/messages reports:
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 14: nonlinear function 0x07 unsupported, expect bad results
>>>
>>>for all the fan sensors, and comes back with strange results for most of the rest of the values:
>>>
>>>bmc-ipmi-0000
>>>Adapter: Dummy adapter
>>>in1:       +8.00 V  (min =  +2.02 V, max = +14.11 V)
>>>in2:       +1.52 V  (min =  +0.38 V, max =  +2.69 V)
>>>in3:       +1.65 V  (min =  +0.42 V, max =  +2.91 V)
>>>in4:       +3.30 V  (min =  +0.83 V, max =  +5.82 V)
>>>in5:       +1.52 V  (min =  +0.38 V, max =  +2.69 V)
>>>in6:       +2.57 V  (min =  +0.42 V, max =  +2.91 V)
>>>in7:       +5.07 V  (min =  +0.83 V, max =  +5.82 V)
>>>fan1:        0 RPM  (min =    0 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:      +0.0?C  (high =   +48?C, hyst =    +5?C)
>>>temp2:     +20.0?C  (high =   +48?C, hyst =    +5?C)
>>>temp3:     +46.0?C  (high =   +97?C, hyst =    +5?C)
>>>temp4:     +49.0?C  (high =   +97?C, hyst =    +5?C)
>>>
>>>I have tried both lm-sensors 2.8.7 and the cvs version from the web site.
>>>
>>>I am wondering if anyone can suggest how I can get lm-sensors to properly detect the values. Is there a module I am missing or some way of reading the values using the i2c-ipmb module? The sensors.conf file says that I don't need compute lines for bmcsensors, but do I need to add them? Can I include support for nonlinear functions on the bmcsensors modules easily? I have a pdf called MSI9549_IPMI_Spec from MSI if that might help, but it doesn't seem to have any details about the sensor values and it's 78 pages and a few meg so I haven't attached it..
>>>
>>>Any suggestions would be greatly appreciated.
>>>
>>>thanks,
>>>
>>>Peter
>>>
>>>
>>>------------------------------------------------------------------------
>>>
>>>Sep  6 03:51:43 compute-0-0 kernel: i2c-amd756.o version 2.8.7 (20040611)
>>>Sep  6 03:51:43 compute-0-0 kernel: bmcsensors.o: attach_adapter...
>>>Sep  6 03:51:43 compute-0-0 kernel: bmcsensors.o: attach_adapter, expected 0xb0000, got 0x40000
>>>Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: i2c /dev entries driver module version 2.8.7 (20040611)
>>>Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: Registered 'ISA main adapter' as minor 0
>>>Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: Registered 'IPMI adapter' as minor 1
>>>Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: Registered 'SMBus AMD756 adapter at 80e0' as minor 2
>>>Sep  6 03:54:50 compute-0-0 kernel: bmcsensors.o sleeping a while
>>>Sep  6 03:54:52 compute-0-0 kernel: bmcsensors.o sleeping again
>>>Sep  6 03:54:54 compute-0-0 kernel: bmcsensors.o i2c cleanup
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o version 2.8.7 (20040611)
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter...
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter, expected 0xb0000, got 0x50000
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter...
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: Registered client, scanning for sensors...
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: reserve_sdr...
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter...
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter, expected 0xb0000, got 0x40000
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: all sensors detected
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: building proc table
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 0: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp1 "TMP_S1"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 1: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp2 "TMP_S2"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 2: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp3 "TMP_P1"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 3: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp4 "TMP_P0"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 4: (type 0x02) (fmt=0; mc; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in1 "VLT12"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 5: (type 0x02) (fmt=0; m\x12; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in2 "P1Vcpp"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 6: (type 0x02) (fmt=0; m\x13; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in3 "P1V2.5"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 7: (type 0x02) (fmt=0; m&; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in4 "VSB5.0"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 8: (type 0x02) (fmt=0; m\x12; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in5 "P0Vcpp"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 9: (type 0x02) (fmt=0; m\x13; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in6 "P0V2.5"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 10: (type 0x02) (fmt=0; m&; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in7 "VLT5.0"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 11: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan1 "FAN_S2"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 11: nonlinear function 0x07 unsupported, expect bad results
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 12: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan2 "FAN_S4"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 12: nonlinear function 0x07 unsupported, expect bad results
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 13: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan3 "FAN_S1"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 13: nonlinear function 0x07 unsupported, expect bad results
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 14: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan4 "FAN_S3"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 14: nonlinear function 0x07 unsupported, expect bad results
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 15: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan5 "FAN_S5"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 15: nonlinear function 0x07 unsupported, expect bad results
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: 0 reservations cancelled
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registered 4 temp, 7 volt, 0 current, 5 fan sensors
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: bmcsensor thread done
>>>
>>
>>
>>
>>
>>
> 
> 


^ permalink raw reply	[flat|nested] 16+ messages in thread

* bmcsensors and strange sensor values.
  2005-05-19  6:25 bmcsensors and strange sensor values Peter Wilsmore
                   ` (9 preceding siblings ...)
  2005-05-19  6:25 ` Philip Pokorny
@ 2005-05-19  6:25 ` Peter Wilsmore
  2005-05-19  6:25 ` Philip Pokorny
                   ` (3 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Peter Wilsmore @ 2005-05-19  6:25 UTC (permalink / raw)
  To: lm-sensors

Hi,
I'm still having problems with this bmcsensors module, only this time I get the right readings - when it works. I found from MSI whilst my values seemed high they were correct, so I now have conv_val looking like:

static long conv_val(int value, struct sdrdata *sd)
{
        u8 k1, k2;
        long r;
        long temp;

        r = value * sd->m;
        k1 = sd->k & 0x0f;
        k2 = sd->k >> 4;
        if(k1 < 8)
                r += sd->b * exps[k1];
        else
                r += sd->b / exps[16 - k1];
        r *= exps[decplaces(sd)];
        if(k2 < 8)
                r *= exps[k2];
        else
                if(sd->linear != 7)
                        r /= exps[16 - k2];
                else
                {
                        // 1 / x * 10 ** (-m) = 10 ** m / x
                        temp = exps[16 - k2] / r;
                        r = temp;
                }
        return r;
}

However if I have the stuff added for the nonlinear conversion then it will intermittently crash with:

Call Trace: [<ffffffffa009c2f0>]{:bmcsensors:conv_val+112}
       [<ffffffffa009ea70>]{:bmcsensors:sdrd+720} [<ffffffffa009e640>]{:bmcsensors:bmc_client+0}
       [<ffffffffa009c41d>]{:bmcsensors:bmcsensors_all+173}
       [<ffffffffa008f8b7>]{:i2c-proc:i2c_sysctl_real_Rsmp_86c8b883+151}
       [<ffffffffa009e640>]{:bmcsensors:bmc_client+0} [<ffffffffa009c370>]{:bmcsensors:bmcsensors_all+0}
       [<ffffffff801e88d6>]{do_con_trol+422} [<ffffffff801e9c65>]{do_con_write+1589}
       [<ffffffff801ea270>]{con_write+32} [<ffffffff8012b760>]{do_sysctl_strategy+144}
       [<ffffffff8012b44c>]{do_sysctl+140} [<ffffffff8012b4f3>]{sys_sysctl+90}
       [<ffffffff80110177>]{system_call+119}

Code:  48 f7 fb 48 89 c3 48 83 c4 08 48 89 d8 5b 5d 41 5d c3

Kernel panic: Fatal exception

The annoying thing is it will not happen every time, and if it works for the first few times after a reboot I can run the sensors command indefinitely without a crash, however if I restart the computer might crash the first time I run it. Anyone have any idea what I have stuffed up? I can send my ksym files if it will help.

Thanks,

Peter Wilsmore
 
ASI SOLUTIONS
Direct: 1300130 837

-----Original Message-----
From: Peter Wilsmore 
Sent: Thursday, 9 September 2004 12:47 PM
To: 'Mark Studebaker'
Cc: lm78@Stimpy.netroedge.com
Subject: RE: bmcsensors and strange sensor values.

Very low, after the * 2 to correct the for the suspect speeds, 703. I have a suspicion that the selected thresholds are the 'nonrecoverable' thresholds. I am not particularly concerned about the threshold values ATM and need to ship the stuff I am working on by tomorrow. We will be keeping a demo of the system so I will look at it again after that.

Thanks,

Peter Wilsmore
 
ASI SOLUTIONS
Direct: 1300130 837

-----Original Message-----
From: Mark Studebaker [mailto:mds4@verizon.net] 
Sent: Thursday, 9 September 2004 11:50 AM
To: Peter Wilsmore
Cc: lm78@Stimpy.netroedge.com
Subject: Re: bmcsensors and strange sensor values.

a better place to swap the limits is in bmcsensors_select_thresholds()
(search for the "fixme" note I put in long ago...)

what fan limit results did you get?



Peter Wilsmore wrote:
> Sorry, I forgot to include the bit to get rid of the warning that nonlinear function 7 is not support.
> 
> Thanks,
> 
> Peter Wilsmore
>  
> ASI SOLUTIONS
> Direct: 1300130 837
> 
> -----Original Message-----
> From: Peter Wilsmore 
> Sent: Thursday, 9 September 2004 11:21 AM
> To: 'Mark Studebaker'
> Cc: lm78@Stimpy.netroedge.com
> Subject: RE: bmcsensors and strange sensor values.
> 
> OK, I have got rid of the float stuff - it makes it much more elegant. I have also used the 'upper' limit for the lower limit and have some comments in regarding the odd values and * 2 factor that I seem to have on my M/B. Unfortunately I am on a deadline, so I haven't done any limit stuff.
> 
> Thanks for all the help.
> 
> Peter Wilsmore
>  
> ASI SOLUTIONS
> Direct: 1300130 837
> 
> -----Original Message-----
> From: Mark Studebaker [mailto:mds4@verizon.net] 
> Sent: Thursday, 9 September 2004 10:22 AM
> To: Peter Wilsmore
> Cc: lm78@Stimpy.netroedge.com
> Subject: Re: bmcsensors and strange sensor values.
> 
> your code looks functionally correct
> since from your previous dmesg output we know m) and k2=9 (i.e. k2=-7 signed)
> a raw limit reading of 1 yields a limit of 1/((29 * 1 * 10**-7) = 344827.
> 
> The fan readings look too high by a factor of 2 but that again could be a mistake in the BMC SDR.
> 
> So again, as with the voltage limits, I don't think the limits are set correctly in the BMC.
> Perhaps other limits (non-critical?) are set correctly. You may want to try one of the SDR dumper tools out there,
> or add more printk's to the driver to see what they are.
> I think the IPMI site may have some pointers to tools.
> 
> For coding style, you'll of course want to get rid of the duplicate code.
> Floating point is also not allowed in the kernel.
> As a way around it, when the function is 1/x, it may be safe to assume that 10**k2 is a very small number
> and do 1/x of it separately by flipping the exponent (k2 = 16- k2).
> 
> If you're quite ambitious you could try implement limit setting, if of course your BMC supports it.
> 
> mds
> 
> 
> 
> 
> Peter Wilsmore wrote:
> 
>>Thanks for the suggestions. I am trying to hack the changes into bmcsensors as you suggested:
>> 
>> 
>>static long conv_val(int value, struct sdrdata *sd)
>>{
>>        u8 k1, k2;
>>        long r;
>>        float temp;
>>        r = value * sd->m;
>>        k1 = sd->k & 0x0f;
>>        k2 = sd->k >> 4;
>>        if(k1 < 8)
>>                r += sd->b * exps[k1];
>>        else
>>                r += sd->b / exps[16 - k1];
>>        r *= exps[decplaces(sd)];
>>        if(k2 < 8)
>>                r *= exps[k2];
>>        else
>>                r /= exps[16 - k2];
>>        if(sd->linear = 7) {
>>                temp = value * sd->m;
>>                k1 = sd->k & 0x0f;
>>                k2 = sd->k >> 4;
>>                if(k1 < 8)
>>                        temp += sd->b * exps[k1];
>>                else
>>                        temp += sd->b / exps[16 - k1];
>>                temp *= exps[decplaces(sd)];
>>                if(k2 < 8)
>>                        temp *= exps[k2];
>>                else
>>                        temp /= exps[16 - k2];
>>                r = 1 / temp;
>>        }
>>        return r;
>>}
>> 
>>The temp variable probibly isn't necessary but I didn't want to have any acuracy loss from using float and coverting to int on the other sensors. After these changes though, I still seem to be getting odd results on the fan speed (at least I am getting something now though)
>> 
>>output from sensors (the rest is irrelivent - its all working properly from the looks of it.):
>> 
>>fan1:     9852 RPM  (min = 344827 RPM)
>>fan2:     11494 RPM  (min = 344827 RPM)
>>fan3:     6896 RPM  (min = 344827 RPM)
>>fan4:     11494 RPM  (min = 344827 RPM)
>>fan5:     11123 RPM  (min = 344827 RPM)
>> 
>>Slap me with a wet fish and call me stupid, but I don't think 344627 RPM is the minumium speed for the fans ;P, the chassis would take off if they were running at that speed. Not to mention the actual reading seem a little high (half that maybe?). Am I missing something here? From what I have been able to understand of my reading of the APMI spec fans do sometimes use an upper and lower threshold but the bmcsensors code seems to ingore that. Could that be what is going wrong?
>> 
>>thanks,
>>  Peter
>>
>> 
>>________________________________
>>
>>From: Mark Studebaker [mailto:mds4@verizon.net]
>>Sent: Wed 8/09/2004 9:38 AM
>>To: Peter Wilsmore
>>Cc: lm78@Stimpy.netroedge.com
>>Subject: Re: bmcsensors and strange sensor values.
>>
>>
>>
>>your modules are fine.
>>
>>Non-linear function 7 is 1/x, according to the IPMI spec, which can be handled without floating point, so
>>support could be added. Feel free to send a patch. You'll need the IPMI spec for reference.
>>You're the first to report this.
>>
>>The voltages look fine. the voltage limits are too far away from the nominal to be useful but that
>>may just be the way the BMC is programmed. Perhaps the 'non-critical thresholds' would be better for you.
>>That would take a bmcsensors.c mod.
>>
>>The temp. hysteresis value isn't present, I don't think (the module looks for this first), so the module is using the lower temperature limit,
>>but the 'sensors' program is reporting it as a hysteresis (it assumes the vaule will be a hysteresis value).
>>You'll have to change 'sensors' to report it correctly.
>>
>>mds
>>
>>
>>Peter Wilsmore wrote:
>>
>>
>>>Hi,
>>>
>>>I have been struggling with patching RHEL kernel 2.4.21 with lm-sensors so I can read the temperature/fan/voltage readings from a MSI-9549 M/B which according to a spec sheet from MSI uses IPMI1.5 with a bmc chip with all the standard values. I have finnally managed to get lm-sensors to compile against 2.4.21-EL. I have loaded all the drivers that are recommended from sensors-detect and a few others that I have read are required for the bmcsensors module to work:-
>>>
>>>The relivent bits from sensors-detect are:
>>>
>>>Driver `bmcsensors' (should be inserted):
>>> Detects correctly:
>>> * ISA bus address 0x0ca0 (Busdriver `i2c-isa')
>>>   Chip `IPMI BMC KCS' (confidence: 4)
>>>
>>>#----cut here----
>>># I2C adapter drivers
>>>modprobe i2c-amd756
>>>modprobe i2c-isa
>>># I2C chip drivers
>>>modprobe eeprom
>>>modprobe bmcsensors
>>># sleep 2 # optional
>>>/usr/local/bin/sensors -s # recommended
>>>
>>>So I have loaded the following modules:
>>>
>>>bmcsensors
>>>i2c-proc
>>>ipmi_kcs_drv
>>>i2c-isa
>>>i2c-ipmi
>>>ipmi_msghandler
>>>i2c-dev
>>>i2c-amd756
>>>i2c-core
>>>
>>>but /var/log/messages reports:
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 14: nonlinear function 0x07 unsupported, expect bad results
>>>
>>>for all the fan sensors, and comes back with strange results for most of the rest of the values:
>>>
>>>bmc-ipmi-0000
>>>Adapter: Dummy adapter
>>>in1:       +8.00 V  (min =  +2.02 V, max = +14.11 V)
>>>in2:       +1.52 V  (min =  +0.38 V, max =  +2.69 V)
>>>in3:       +1.65 V  (min =  +0.42 V, max =  +2.91 V)
>>>in4:       +3.30 V  (min =  +0.83 V, max =  +5.82 V)
>>>in5:       +1.52 V  (min =  +0.38 V, max =  +2.69 V)
>>>in6:       +2.57 V  (min =  +0.42 V, max =  +2.91 V)
>>>in7:       +5.07 V  (min =  +0.83 V, max =  +5.82 V)
>>>fan1:        0 RPM  (min =    0 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:      +0.0?C  (high =   +48?C, hyst =    +5?C)
>>>temp2:     +20.0?C  (high =   +48?C, hyst =    +5?C)
>>>temp3:     +46.0?C  (high =   +97?C, hyst =    +5?C)
>>>temp4:     +49.0?C  (high =   +97?C, hyst =    +5?C)
>>>
>>>I have tried both lm-sensors 2.8.7 and the cvs version from the web site.
>>>
>>>I am wondering if anyone can suggest how I can get lm-sensors to properly detect the values. Is there a module I am missing or some way of reading the values using the i2c-ipmb module? The sensors.conf file says that I don't need compute lines for bmcsensors, but do I need to add them? Can I include support for nonlinear functions on the bmcsensors modules easily? I have a pdf called MSI9549_IPMI_Spec from MSI if that might help, but it doesn't seem to have any details about the sensor values and it's 78 pages and a few meg so I haven't attached it..
>>>
>>>Any suggestions would be greatly appreciated.
>>>
>>>thanks,
>>>
>>>Peter
>>>
>>>
>>>------------------------------------------------------------------------
>>>
>>>Sep  6 03:51:43 compute-0-0 kernel: i2c-amd756.o version 2.8.7 (20040611)
>>>Sep  6 03:51:43 compute-0-0 kernel: bmcsensors.o: attach_adapter...
>>>Sep  6 03:51:43 compute-0-0 kernel: bmcsensors.o: attach_adapter, expected 0xb0000, got 0x40000
>>>Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: i2c /dev entries driver module version 2.8.7 (20040611)
>>>Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: Registered 'ISA main adapter' as minor 0
>>>Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: Registered 'IPMI adapter' as minor 1
>>>Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: Registered 'SMBus AMD756 adapter at 80e0' as minor 2
>>>Sep  6 03:54:50 compute-0-0 kernel: bmcsensors.o sleeping a while
>>>Sep  6 03:54:52 compute-0-0 kernel: bmcsensors.o sleeping again
>>>Sep  6 03:54:54 compute-0-0 kernel: bmcsensors.o i2c cleanup
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o version 2.8.7 (20040611)
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter...
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter, expected 0xb0000, got 0x50000
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter...
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: Registered client, scanning for sensors...
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: reserve_sdr...
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter...
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter, expected 0xb0000, got 0x40000
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: all sensors detected
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: building proc table
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 0: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp1 "TMP_S1"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 1: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp2 "TMP_S2"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 2: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp3 "TMP_P1"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 3: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp4 "TMP_P0"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 4: (type 0x02) (fmt=0; mc; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in1 "VLT12"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 5: (type 0x02) (fmt=0; m\x12; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in2 "P1Vcpp"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 6: (type 0x02) (fmt=0; m\x13; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in3 "P1V2.5"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 7: (type 0x02) (fmt=0; m&; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in4 "VSB5.0"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 8: (type 0x02) (fmt=0; m\x12; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in5 "P0Vcpp"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 9: (type 0x02) (fmt=0; m\x13; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in6 "P0V2.5"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 10: (type 0x02) (fmt=0; m&; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in7 "VLT5.0"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 11: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan1 "FAN_S2"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 11: nonlinear function 0x07 unsupported, expect bad results
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 12: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan2 "FAN_S4"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 12: nonlinear function 0x07 unsupported, expect bad results
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 13: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan3 "FAN_S1"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 13: nonlinear function 0x07 unsupported, expect bad results
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 14: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan4 "FAN_S3"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 14: nonlinear function 0x07 unsupported, expect bad results
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 15: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan5 "FAN_S5"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 15: nonlinear function 0x07 unsupported, expect bad results
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: 0 reservations cancelled
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registered 4 temp, 7 volt, 0 current, 5 fan sensors
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: bmcsensor thread done
>>>
>>
>>
>>
>>
>>
> 
> 


^ permalink raw reply	[flat|nested] 16+ messages in thread

* bmcsensors and strange sensor values.
  2005-05-19  6:25 bmcsensors and strange sensor values Peter Wilsmore
                   ` (13 preceding siblings ...)
  2005-05-19  6:25 ` Peter Wilsmore
@ 2005-05-19  6:25 ` Peter Wilsmore
  14 siblings, 0 replies; 16+ messages in thread
From: Peter Wilsmore @ 2005-05-19  6:25 UTC (permalink / raw)
  To: lm-sensors

I think I may have worked out _what_ is happening, just not _why_. Whenever there is a warning light on the front on the chassis the sensors program will crash as described in the previous email, otherwise it seems to run ok. Any suggestions on what I can do to fix this? Is there something that the the IPMI interface is returning that the bmcsensors module has not been setup to handle?

Thanks,

Peter Wilsmore
 
ASI SOLUTIONS
Direct: 1300130 837

-----Original Message-----
From: Peter Wilsmore 
Sent: Wednesday, 15 September 2004 5:52 PM
To: 'Mark Studebaker'
Cc: 'lm78@Stimpy.netroedge.com'
Subject: RE: bmcsensors and strange sensor values.

Hi,
I'm still having problems with this bmcsensors module, only this time I get the right readings - when it works. I found from MSI whilst my values seemed high they were correct, so I now have conv_val looking like:

static long conv_val(int value, struct sdrdata *sd)
{
        u8 k1, k2;
        long r;
        long temp;

        r = value * sd->m;
        k1 = sd->k & 0x0f;
        k2 = sd->k >> 4;
        if(k1 < 8)
                r += sd->b * exps[k1];
        else
                r += sd->b / exps[16 - k1];
        r *= exps[decplaces(sd)];
        if(k2 < 8)
                r *= exps[k2];
        else
                if(sd->linear != 7)
                        r /= exps[16 - k2];
                else
                {
                        // 1 / x * 10 ** (-m) = 10 ** m / x
                        temp = exps[16 - k2] / r;
                        r = temp;
                }
        return r;
}

However if I have the stuff added for the nonlinear conversion then it will intermittently crash with:

Call Trace: [<ffffffffa009c2f0>]{:bmcsensors:conv_val+112}
       [<ffffffffa009ea70>]{:bmcsensors:sdrd+720} [<ffffffffa009e640>]{:bmcsensors:bmc_client+0}
       [<ffffffffa009c41d>]{:bmcsensors:bmcsensors_all+173}
       [<ffffffffa008f8b7>]{:i2c-proc:i2c_sysctl_real_Rsmp_86c8b883+151}
       [<ffffffffa009e640>]{:bmcsensors:bmc_client+0} [<ffffffffa009c370>]{:bmcsensors:bmcsensors_all+0}
       [<ffffffff801e88d6>]{do_con_trol+422} [<ffffffff801e9c65>]{do_con_write+1589}
       [<ffffffff801ea270>]{con_write+32} [<ffffffff8012b760>]{do_sysctl_strategy+144}
       [<ffffffff8012b44c>]{do_sysctl+140} [<ffffffff8012b4f3>]{sys_sysctl+90}
       [<ffffffff80110177>]{system_call+119}

Code:  48 f7 fb 48 89 c3 48 83 c4 08 48 89 d8 5b 5d 41 5d c3

Kernel panic: Fatal exception

The annoying thing is it will not happen every time, and if it works for the first few times after a reboot I can run the sensors command indefinitely without a crash, however if I restart the computer might crash the first time I run it. Anyone have any idea what I have stuffed up? I can send my ksym files if it will help.

Thanks,

Peter Wilsmore
 
ASI SOLUTIONS
Direct: 1300130 837

-----Original Message-----
From: Peter Wilsmore 
Sent: Thursday, 9 September 2004 12:47 PM
To: 'Mark Studebaker'
Cc: lm78@Stimpy.netroedge.com
Subject: RE: bmcsensors and strange sensor values.

Very low, after the * 2 to correct the for the suspect speeds, 703. I have a suspicion that the selected thresholds are the 'nonrecoverable' thresholds. I am not particularly concerned about the threshold values ATM and need to ship the stuff I am working on by tomorrow. We will be keeping a demo of the system so I will look at it again after that.

Thanks,

Peter Wilsmore
 
ASI SOLUTIONS
Direct: 1300130 837

-----Original Message-----
From: Mark Studebaker [mailto:mds4@verizon.net] 
Sent: Thursday, 9 September 2004 11:50 AM
To: Peter Wilsmore
Cc: lm78@Stimpy.netroedge.com
Subject: Re: bmcsensors and strange sensor values.

a better place to swap the limits is in bmcsensors_select_thresholds()
(search for the "fixme" note I put in long ago...)

what fan limit results did you get?



Peter Wilsmore wrote:
> Sorry, I forgot to include the bit to get rid of the warning that nonlinear function 7 is not support.
> 
> Thanks,
> 
> Peter Wilsmore
>  
> ASI SOLUTIONS
> Direct: 1300130 837
> 
> -----Original Message-----
> From: Peter Wilsmore 
> Sent: Thursday, 9 September 2004 11:21 AM
> To: 'Mark Studebaker'
> Cc: lm78@Stimpy.netroedge.com
> Subject: RE: bmcsensors and strange sensor values.
> 
> OK, I have got rid of the float stuff - it makes it much more elegant. I have also used the 'upper' limit for the lower limit and have some comments in regarding the odd values and * 2 factor that I seem to have on my M/B. Unfortunately I am on a deadline, so I haven't done any limit stuff.
> 
> Thanks for all the help.
> 
> Peter Wilsmore
>  
> ASI SOLUTIONS
> Direct: 1300130 837
> 
> -----Original Message-----
> From: Mark Studebaker [mailto:mds4@verizon.net] 
> Sent: Thursday, 9 September 2004 10:22 AM
> To: Peter Wilsmore
> Cc: lm78@Stimpy.netroedge.com
> Subject: Re: bmcsensors and strange sensor values.
> 
> your code looks functionally correct
> since from your previous dmesg output we know m) and k2=9 (i.e. k2=-7 signed)
> a raw limit reading of 1 yields a limit of 1/((29 * 1 * 10**-7) = 344827.
> 
> The fan readings look too high by a factor of 2 but that again could be a mistake in the BMC SDR.
> 
> So again, as with the voltage limits, I don't think the limits are set correctly in the BMC.
> Perhaps other limits (non-critical?) are set correctly. You may want to try one of the SDR dumper tools out there,
> or add more printk's to the driver to see what they are.
> I think the IPMI site may have some pointers to tools.
> 
> For coding style, you'll of course want to get rid of the duplicate code.
> Floating point is also not allowed in the kernel.
> As a way around it, when the function is 1/x, it may be safe to assume that 10**k2 is a very small number
> and do 1/x of it separately by flipping the exponent (k2 = 16- k2).
> 
> If you're quite ambitious you could try implement limit setting, if of course your BMC supports it.
> 
> mds
> 
> 
> 
> 
> Peter Wilsmore wrote:
> 
>>Thanks for the suggestions. I am trying to hack the changes into bmcsensors as you suggested:
>> 
>> 
>>static long conv_val(int value, struct sdrdata *sd)
>>{
>>        u8 k1, k2;
>>        long r;
>>        float temp;
>>        r = value * sd->m;
>>        k1 = sd->k & 0x0f;
>>        k2 = sd->k >> 4;
>>        if(k1 < 8)
>>                r += sd->b * exps[k1];
>>        else
>>                r += sd->b / exps[16 - k1];
>>        r *= exps[decplaces(sd)];
>>        if(k2 < 8)
>>                r *= exps[k2];
>>        else
>>                r /= exps[16 - k2];
>>        if(sd->linear = 7) {
>>                temp = value * sd->m;
>>                k1 = sd->k & 0x0f;
>>                k2 = sd->k >> 4;
>>                if(k1 < 8)
>>                        temp += sd->b * exps[k1];
>>                else
>>                        temp += sd->b / exps[16 - k1];
>>                temp *= exps[decplaces(sd)];
>>                if(k2 < 8)
>>                        temp *= exps[k2];
>>                else
>>                        temp /= exps[16 - k2];
>>                r = 1 / temp;
>>        }
>>        return r;
>>}
>> 
>>The temp variable probibly isn't necessary but I didn't want to have any acuracy loss from using float and coverting to int on the other sensors. After these changes though, I still seem to be getting odd results on the fan speed (at least I am getting something now though)
>> 
>>output from sensors (the rest is irrelivent - its all working properly from the looks of it.):
>> 
>>fan1:     9852 RPM  (min = 344827 RPM)
>>fan2:     11494 RPM  (min = 344827 RPM)
>>fan3:     6896 RPM  (min = 344827 RPM)
>>fan4:     11494 RPM  (min = 344827 RPM)
>>fan5:     11123 RPM  (min = 344827 RPM)
>> 
>>Slap me with a wet fish and call me stupid, but I don't think 344627 RPM is the minumium speed for the fans ;P, the chassis would take off if they were running at that speed. Not to mention the actual reading seem a little high (half that maybe?). Am I missing something here? From what I have been able to understand of my reading of the APMI spec fans do sometimes use an upper and lower threshold but the bmcsensors code seems to ingore that. Could that be what is going wrong?
>> 
>>thanks,
>>  Peter
>>
>> 
>>________________________________
>>
>>From: Mark Studebaker [mailto:mds4@verizon.net]
>>Sent: Wed 8/09/2004 9:38 AM
>>To: Peter Wilsmore
>>Cc: lm78@Stimpy.netroedge.com
>>Subject: Re: bmcsensors and strange sensor values.
>>
>>
>>
>>your modules are fine.
>>
>>Non-linear function 7 is 1/x, according to the IPMI spec, which can be handled without floating point, so
>>support could be added. Feel free to send a patch. You'll need the IPMI spec for reference.
>>You're the first to report this.
>>
>>The voltages look fine. the voltage limits are too far away from the nominal to be useful but that
>>may just be the way the BMC is programmed. Perhaps the 'non-critical thresholds' would be better for you.
>>That would take a bmcsensors.c mod.
>>
>>The temp. hysteresis value isn't present, I don't think (the module looks for this first), so the module is using the lower temperature limit,
>>but the 'sensors' program is reporting it as a hysteresis (it assumes the vaule will be a hysteresis value).
>>You'll have to change 'sensors' to report it correctly.
>>
>>mds
>>
>>
>>Peter Wilsmore wrote:
>>
>>
>>>Hi,
>>>
>>>I have been struggling with patching RHEL kernel 2.4.21 with lm-sensors so I can read the temperature/fan/voltage readings from a MSI-9549 M/B which according to a spec sheet from MSI uses IPMI1.5 with a bmc chip with all the standard values. I have finnally managed to get lm-sensors to compile against 2.4.21-EL. I have loaded all the drivers that are recommended from sensors-detect and a few others that I have read are required for the bmcsensors module to work:-
>>>
>>>The relivent bits from sensors-detect are:
>>>
>>>Driver `bmcsensors' (should be inserted):
>>> Detects correctly:
>>> * ISA bus address 0x0ca0 (Busdriver `i2c-isa')
>>>   Chip `IPMI BMC KCS' (confidence: 4)
>>>
>>>#----cut here----
>>># I2C adapter drivers
>>>modprobe i2c-amd756
>>>modprobe i2c-isa
>>># I2C chip drivers
>>>modprobe eeprom
>>>modprobe bmcsensors
>>># sleep 2 # optional
>>>/usr/local/bin/sensors -s # recommended
>>>
>>>So I have loaded the following modules:
>>>
>>>bmcsensors
>>>i2c-proc
>>>ipmi_kcs_drv
>>>i2c-isa
>>>i2c-ipmi
>>>ipmi_msghandler
>>>i2c-dev
>>>i2c-amd756
>>>i2c-core
>>>
>>>but /var/log/messages reports:
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 14: nonlinear function 0x07 unsupported, expect bad results
>>>
>>>for all the fan sensors, and comes back with strange results for most of the rest of the values:
>>>
>>>bmc-ipmi-0000
>>>Adapter: Dummy adapter
>>>in1:       +8.00 V  (min =  +2.02 V, max = +14.11 V)
>>>in2:       +1.52 V  (min =  +0.38 V, max =  +2.69 V)
>>>in3:       +1.65 V  (min =  +0.42 V, max =  +2.91 V)
>>>in4:       +3.30 V  (min =  +0.83 V, max =  +5.82 V)
>>>in5:       +1.52 V  (min =  +0.38 V, max =  +2.69 V)
>>>in6:       +2.57 V  (min =  +0.42 V, max =  +2.91 V)
>>>in7:       +5.07 V  (min =  +0.83 V, max =  +5.82 V)
>>>fan1:        0 RPM  (min =    0 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:      +0.0?C  (high =   +48?C, hyst =    +5?C)
>>>temp2:     +20.0?C  (high =   +48?C, hyst =    +5?C)
>>>temp3:     +46.0?C  (high =   +97?C, hyst =    +5?C)
>>>temp4:     +49.0?C  (high =   +97?C, hyst =    +5?C)
>>>
>>>I have tried both lm-sensors 2.8.7 and the cvs version from the web site.
>>>
>>>I am wondering if anyone can suggest how I can get lm-sensors to properly detect the values. Is there a module I am missing or some way of reading the values using the i2c-ipmb module? The sensors.conf file says that I don't need compute lines for bmcsensors, but do I need to add them? Can I include support for nonlinear functions on the bmcsensors modules easily? I have a pdf called MSI9549_IPMI_Spec from MSI if that might help, but it doesn't seem to have any details about the sensor values and it's 78 pages and a few meg so I haven't attached it..
>>>
>>>Any suggestions would be greatly appreciated.
>>>
>>>thanks,
>>>
>>>Peter
>>>
>>>
>>>------------------------------------------------------------------------
>>>
>>>Sep  6 03:51:43 compute-0-0 kernel: i2c-amd756.o version 2.8.7 (20040611)
>>>Sep  6 03:51:43 compute-0-0 kernel: bmcsensors.o: attach_adapter...
>>>Sep  6 03:51:43 compute-0-0 kernel: bmcsensors.o: attach_adapter, expected 0xb0000, got 0x40000
>>>Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: i2c /dev entries driver module version 2.8.7 (20040611)
>>>Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: Registered 'ISA main adapter' as minor 0
>>>Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: Registered 'IPMI adapter' as minor 1
>>>Sep  6 03:51:43 compute-0-0 kernel: i2c-dev.o: Registered 'SMBus AMD756 adapter at 80e0' as minor 2
>>>Sep  6 03:54:50 compute-0-0 kernel: bmcsensors.o sleeping a while
>>>Sep  6 03:54:52 compute-0-0 kernel: bmcsensors.o sleeping again
>>>Sep  6 03:54:54 compute-0-0 kernel: bmcsensors.o i2c cleanup
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o version 2.8.7 (20040611)
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter...
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter, expected 0xb0000, got 0x50000
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter...
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: Registered client, scanning for sensors...
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: reserve_sdr...
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter...
>>>Sep  6 03:55:12 compute-0-0 kernel: bmcsensors.o: attach_adapter, expected 0xb0000, got 0x40000
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: all sensors detected
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: building proc table
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 0: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp1 "TMP_S1"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 1: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp2 "TMP_S2"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 2: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp3 "TMP_P1"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 3: (type 0x01) (fmt=0; m=1; b=0; k1=0; k2=0; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label temp4 "TMP_P0"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 4: (type 0x02) (fmt=0; mc; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in1 "VLT12"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 5: (type 0x02) (fmt=0; m\x12; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in2 "P1Vcpp"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 6: (type 0x02) (fmt=0; m\x13; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in3 "P1V2.5"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 7: (type 0x02) (fmt=0; m&; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in4 "VSB5.0"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 8: (type 0x02) (fmt=0; m\x12; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in5 "P0Vcpp"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 9: (type 0x02) (fmt=0; m\x13; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in6 "P0V2.5"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 10: (type 0x02) (fmt=0; m&; b=0; k1=0; k2\x13; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label in7 "VLT5.0"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 11: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan1 "FAN_S2"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 11: nonlinear function 0x07 unsupported, expect bad results
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 12: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan2 "FAN_S4"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 12: nonlinear function 0x07 unsupported, expect bad results
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 13: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan3 "FAN_S1"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 13: nonlinear function 0x07 unsupported, expect bad results
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 14: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan4 "FAN_S3"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 14: nonlinear function 0x07 unsupported, expect bad results
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registering sensor 15: (type 0x04) (fmt=0; m); b=0; k1=0; k2=9; cap=0x76; mask=0xffff)
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensors.conf: label fan5 "FAN_S5"
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using upper critical threshold for upper limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: using lower critical threshold for lower limit
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: sensor 15: nonlinear function 0x07 unsupported, expect bad results
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: 0 reservations cancelled
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: registered 4 temp, 7 volt, 0 current, 5 fan sensors
>>>Sep  6 03:55:37 compute-0-0 kernel: bmcsensors.o: bmcsensor thread done
>>>
>>
>>
>>
>>
>>
> 
> 


^ permalink raw reply	[flat|nested] 16+ messages in thread

* bmcsensors and strange sensor values.
  2005-05-19  6:25 bmcsensors and strange sensor values Peter Wilsmore
                   ` (11 preceding siblings ...)
  2005-05-19  6:25 ` Philip Pokorny
@ 2005-05-19  6:25 ` Jean Delvare
  2005-05-19  6:25 ` Peter Wilsmore
  2005-05-19  6:25 ` Peter Wilsmore
  14 siblings, 0 replies; 16+ messages in thread
From: Jean Delvare @ 2005-05-19  6:25 UTC (permalink / raw)
  To: lm-sensors

On Wed, 15 Sep 2004 18:11:55 +1000, Peter Wilsmore wrote
> I think I may have worked out _what_ is happening, just not _why_. 
> Whenever there is a warning light on the front on the chassis the 
> sensors program will crash as described in the previous email, 
> otherwise it seems to run ok. Any suggestions on what I can do to 
> fix this? Is there something that the the IPMI interface is 
> returning that the bmcsensors module has not been setup to handle?

Hi Peter,

Could you please avoid including the whole thread in each mail you post to the
list? A 23k post for just 6 new lines is quite a high price to pay.

As for your BMC problems, I don't know anything about that topic and driver so
I cannot help you, sorry.

Thanks.

NB: I am back to a standard 56K modem connection to the Internet these days,
for another couple weeks (I hope not more) and that's a good way to determine
where bandwidth can easily be spared ;)

-- 
Jean Delvare
http://khali.linux-fr.org/

^ permalink raw reply	[flat|nested] 16+ messages in thread

* bmcsensors and strange sensor values.
  2005-05-19  6:25 bmcsensors and strange sensor values Peter Wilsmore
                   ` (10 preceding siblings ...)
  2005-05-19  6:25 ` Peter Wilsmore
@ 2005-05-19  6:25 ` Philip Pokorny
  2005-05-19  6:25 ` Jean Delvare
                   ` (2 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Philip Pokorny @ 2005-05-19  6:25 UTC (permalink / raw)
  To: lm-sensors

Peter Wilsmore wrote:

>Hi,
>I'm still having problems with this bmcsensors module, only this time I get the right readings - when it works. I found from MSI whilst my values seemed high they were correct, so I now have conv_val looking like:
>
>static long conv_val(int value, struct sdrdata *sd)
>{
>  
>
>[snip]
>                if(sd->linear != 7)
>                        r /= exps[16 - k2];
>                else
>                {
>                        // 1 / x * 10 ** (-m) = 10 ** m / x
>                        temp = exps[16 - k2] / r;
>                        r = temp;
>                }
>        return r;
>}
>
>However if I have the stuff added for the nonlinear conversion then it will intermittently crash with:
>
>Call Trace: [<ffffffffa009c2f0>]{:bmcsensors:conv_val+112}
>       [<ffffffffa009ea70>]{:bmcsensors:sdrd+720} [<ffffffffa009e640>]{:bmcsensors:bmc_client+0}
>       [<ffffffffa009c41d>]{:bmcsensors:bmcsensors_all+173}
>       [<ffffffffa008f8b7>]{:i2c-proc:i2c_sysctl_real_Rsmp_86c8b883+151}
>       [<ffffffffa009e640>]{:bmcsensors:bmc_client+0} [<ffffffffa009c370>]{:bmcsensors:bmcsensors_all+0}
>       [<ffffffff801e88d6>]{do_con_trol+422} [<ffffffff801e9c65>]{do_con_write+1589}
>       [<ffffffff801ea270>]{con_write+32} [<ffffffff8012b760>]{do_sysctl_strategy+144}
>       [<ffffffff8012b44c>]{do_sysctl+140} [<ffffffff8012b4f3>]{sys_sysctl+90}
>       [<ffffffff80110177>]{system_call+119}
>
>Code:  48 f7 fb 48 89 c3 48 83 c4 08 48 89 d8 5b 5d 41 5d c3
>
>Kernel panic: Fatal exception
>
>The annoying thing is it will not happen every time, and if it works for the first few times after a reboot I can run the sensors command indefinitely without a crash, however if I restart the computer might crash the first time I run it. Anyone have any idea what I have stuffed up? I can send my ksym files if it will help.
>
>  
>

Could it be that you're dividing by zero?  You don't check the value of 
'r' before the division to be sure that it's not zero.  If there is a 
fan failure and the current fan speed is 0, then perhaps r is returned 
as 0 instead of it's max value.

:v)

-- 
Philip Pokorny, Director of Engineering
Tel: 415-954-2823   Fax: 415-954-2899   Toll Free: 888-PENGUIN
PENGUIN COMPUTING, INC.
www.penguincomputing.com

^ permalink raw reply	[flat|nested] 16+ messages in thread

* bmcsensors and strange sensor values.
  2005-05-19  6:25 bmcsensors and strange sensor values Peter Wilsmore
                   ` (12 preceding siblings ...)
  2005-05-19  6:25 ` Jean Delvare
@ 2005-05-19  6:25 ` Peter Wilsmore
  2005-05-19  6:25 ` Peter Wilsmore
  14 siblings, 0 replies; 16+ messages in thread
From: Peter Wilsmore @ 2005-05-19  6:25 UTC (permalink / raw)
  To: lm-sensors

Doh! Yeah your right, I didn't think the r value would ever be zero, but
it would have been right to check anyway and saved me a lot of time.
Just has a philosophical question, if I do get a value of 0 returned
should I be setting the fan speed to 0 (which reflects what happens when
the fan stops spinning) or to max value (which reflects what is
happening when the interval between pulses is smaller than the unit
measured)? In my case it seems the fan is spinning very, very fast so
the interval between pulses is smaller than the units they are measuring
so setting the fan speed to 0 does not reflect what is actually
happening in the chassis.
 
Thanks,

Peter Wilsmore
 
ASI SOLUTIONS
Direct: 1300130 837

> -----Original Message-----
> From: Philip Pokorny [mailto:ppokorny@penguincomputing.com]
> 
> Could it be that you're dividing by zero?  You don't check the value
of
> 'r' before the division to be sure that it's not zero.  If there is a
> fan failure and the current fan speed is 0, then perhaps r is returned
> as 0 instead of it's max value.
> 
> :v)
> 
> --
> Philip Pokorny, Director of Engineering
> Tel: 415-954-2823   Fax: 415-954-2899   Toll Free: 888-PENGUIN
> PENGUIN COMPUTING, INC.
> www.penguincomputing.com


^ permalink raw reply	[flat|nested] 16+ messages in thread

* bmcsensors and strange sensor values.
  2005-05-19  6:25 bmcsensors and strange sensor values Peter Wilsmore
                   ` (8 preceding siblings ...)
  2005-05-19  6:25 ` Peter Wilsmore
@ 2005-05-19  6:25 ` Philip Pokorny
  2005-05-19  6:25 ` Peter Wilsmore
                   ` (4 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Philip Pokorny @ 2005-05-19  6:25 UTC (permalink / raw)
  To: lm-sensors

In the LM85 driver, I did the following:

   Reading   Indicated Speed
     0         -1
     1         max speed
    ...         ...
    254        min speed
    255         0


:v)

Peter Wilsmore wrote:

>Doh! Yeah your right, I didn't think the r value would ever be zero, but
>it would have been right to check anyway and saved me a lot of time.
>Just has a philosophical question, if I do get a value of 0 returned
>should I be setting the fan speed to 0 (which reflects what happens when
>the fan stops spinning) or to max value (which reflects what is
>happening when the interval between pulses is smaller than the unit
>measured)? In my case it seems the fan is spinning very, very fast so
>the interval between pulses is smaller than the units they are measuring
>so setting the fan speed to 0 does not reflect what is actually
>happening in the chassis.
> 
>Thanks,
>
>Peter Wilsmore
> 
>ASI SOLUTIONS
>Direct: 1300130 837
>
>  
>
>>-----Original Message-----
>>From: Philip Pokorny [mailto:ppokorny@penguincomputing.com]
>>
>>Could it be that you're dividing by zero?  You don't check the value
>>    
>>
>of
>  
>
>>'r' before the division to be sure that it's not zero.  If there is a
>>fan failure and the current fan speed is 0, then perhaps r is returned
>>as 0 instead of it's max value.
>>
>>:v)
>>
>>--
>>Philip Pokorny, Director of Engineering
>>Tel: 415-954-2823   Fax: 415-954-2899   Toll Free: 888-PENGUIN
>>PENGUIN COMPUTING, INC.
>>www.penguincomputing.com
>>
>
>
>  
>

-- 
Philip Pokorny, Director of Engineering
Tel: 415-954-2823   Fax: 415-954-2899   Toll Free: 888-PENGUIN
PENGUIN COMPUTING, INC.
www.penguincomputing.com

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2005-05-19  6:25 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-19  6:25 bmcsensors and strange sensor values Peter Wilsmore
2005-05-19  6:25 ` Mark Studebaker
2005-05-19  6:25 ` Peter Wilsmore
2005-05-19  6:25 ` Peter Wilsmore
2005-05-19  6:25 ` Peter Wilsmore
2005-05-19  6:25 ` Peter Wilsmore
2005-05-19  6:25 ` Mark Studebaker
2005-05-19  6:25 ` Mark Studebaker
2005-05-19  6:25 ` Mark Studebaker
2005-05-19  6:25 ` Peter Wilsmore
2005-05-19  6:25 ` Philip Pokorny
2005-05-19  6:25 ` Peter Wilsmore
2005-05-19  6:25 ` Philip Pokorny
2005-05-19  6:25 ` Jean Delvare
2005-05-19  6:25 ` Peter Wilsmore
2005-05-19  6:25 ` Peter Wilsmore

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.