Skip to contentSkip to conversation

IPMI and ipmisensors on an

lm-sensors Stian Jordet 3 participants 8 messages Oct 2, 2007 – Oct 3, 2007 IPMI

lore
Share & tools
lore
#0 lore raw

Andrew,

first, I'm sorry I am not replying to you email, I accidentally deleted it :(

Now we're getting somewhere:

root@buick:~# ipmiutil health -x
ipmiutil ver 2.0
bmchealth ver 1.15
ipmi_open: driver type = unknown
ipmi_open_mv: cannot open /dev/ipmi/0
ipmi_open_mv: cannot open /dev/ipmi0
ipmi_open_mv: cannot open /dev/ipmidev0
ipmi_open_mv: cannot open /dev/ipmidev/0
imbapi.c ipmi_open_ia: open(/dev/imb) failed: No such file or directory
ipmi_open_va: cannot open /dev/ipmikcs
ipmi_open_va: cannot open /dev/ipmi/kcs
SMBIOS Table is present at Physical Address 0x000eee60 ...
No IPMI Data Structure Found in SMBIOS Table,
 Continuing with KCS on Default Port 0x0ca2
BMC Initialized.
ipmidir Cmd NetFn Lun Sa  Data(0):
wait_for_OBF_set: max loop 5001
ipmidir Resp: status=0 cc Data(6): 05 01 00 35 10 1f
open_direct: status=0, KCS drv, ipmi=0
ipmi_open rc = 0 type = kcs
Driver type kcs, open rc = 0
ipmidir Cmd NetFn Lun Sa  Data(0):
wait_for_OBF_set: max loop 5001
ipmidir Resp: status=0 cc Data(6): 05 01 00 35 10 1f
BMC version 0.35, IPMI version 0.1
BMC manufacturer = ca0000 , product = 0493
ipmidir Cmd NetFn Lun Sa  Data(0):
wait_for_OBF_set: max loop 5001
ipmidir Resp: status=0 ccÁ Data(0):
ccode c1: Invalid Command
Cannot do ipmi_getpowerstate, ret = 193

Altough there still is something it doesn't like about my system, I at least get some output :P But IPMI Version 0.1? Is that a typo for 1.0? :)

root@buick:~# ipmiutil sel
ipmiutil ver 2.0
showsel: version 1.54
-- BMC version 0.35, IPMI version 0.1
SEL Ver 10 Support 2, Size = 488 records, Free space = 482 records
RecId Date/Time_______ Source_ Evt_Type SensNum Evt_detail - Trig [Evt_data]
8001 01/01/70 01:00:07 BMC  05 Platform Security #33 - 03 [01 ff ff]
9001 09/30/07 22:54:23 0011 12 System Event #ef - e7 [01 ff ff]
a001 01/01/70 01:00:07 BMC  05 Platform Security #33 - 03 [01 ff ff]
b001 10/01/07 17:22:54 0011 12 System Event #ef - e7 [01 ff ff]
c001 01/01/70 01:00:07 BMC  05 Platform Security #33 - 03 [01 ff ff]
d001 10/01/07 17:35:21 0011 12 System Event #ef - e7 [01 ff ff]
showsel: completed successfully
root@buick:~# ipmiutil sensor
ipmiutil ver 2.0
sensor: version 1.59
-- BMC version 0.35, IPMI version 0.1
_ID_ SDR_Type_xx Sz Own Typ S_Num Sens_Description   Hex & Interp Reading
0020 SDR Full 01 39 20 a f8 snum 04 Baseboard -12V   = 6a OK*  
2520000212.00 unspecified
4020 SDR Full 01 3b 20 a f8 snum 14 Basebrd PCI Temp = 9c OK*  
2360080184.00 unspecified
8020 SDR Full 01 3b 20 a f8 snum 15 Basebrd PXB Temp = a0 OK*  
2360082240.00 unspecified
c020 SDR Full 01 3b 20 a f8 snum 16 Processor 1 Temp = 9a OK*  
2360079156.00 unspecified
0021 SDR Full 01 3b 20 a f8 snum 17 Processor 2 Temp = 9b OK*  
2360079670.00 unspecified
4021 SDR Full 01 3b 20 a f8 snum 18 Processor 3 Temp = 9d OK*  
2360080698.00 unspecified
8021 SDR Full 01 3b 20 a f8 snum 19 Processor 4 Temp = 9c OK*  
2360080184.00 unspecified
c021 SDR Full 01 37 20 a f8 snum 01 Baseboard 5V     = bd OK*  
440012474.00 unspecified
0022 SDR Full 01 38 20 a f8 snum 02 Baseboard 12V    = aa OK*  
440000340.00 unspecified
4022 SDR Full 01 39 20 a f8 snum 03 Baseboard 3.3V   = df OK*  
440000446.00 unspecified
8022 SDR Full 01 39 20 a f8 snum 0c Baseboard 2.5V   = cb OK*  
440000406.00 unspecified
c022 SDR Full 01 39 20 a f8 snum 0b Baseboard 1.5V   = 9b OK*  
440000310.00 unspecified
0023 SDR Full 01 36 20 a f8 snum 13 SCSI-N Volt      = ca OK*  
440000404.00 unspecified
4023 SDR Full 01 3a 20 a f8 snum 1a Baseboard Fan 2  = 5e OK*  
80000188.00 unspecified
8023 SDR Full 01 3a 20 a f8 snum 1b Baseboard Fan 1  = 63 OK*  
80000198.00 unspecified
c023 SDR Full 01 3a 20 a f8 snum 1c Baseboard Fan 4  = 5b OK*  
80000182.00 unspecified
0024 SDR Full 01 3a 20 a f8 snum 1d Baseboard Fan 3  = 64 OK*  
80000200.00 unspecified
4024 SDR Full 01 3a 20 a f8 snum 1e Baseboard Fan 5  = 5a OK*  
80000180.00 unspecified
8024 SDR Full 01 3a 20 a f8 snum 1f Baseboard Fan 8  = 5c OK*  
80000184.00 unspecified
c024 SDR Full 01 3a 20 a f8 snum 20 Baseboard Fan 7  = 5f OK*  
80000190.00 unspecified
0025 SDR Full 01 3a 20 a f8 snum 21 Baseboard Fan 6  = 5a OK*  
80000180.00 unspecified
4025 SDR Full 01 39 20 a f8 snum 22 PwrShare Fan 1   = 57 OK*  
80000174.00 unspecified
8025 SDR Full 01 39 20 a f8 snum 23 PwrShare Fan 2   = 55 OK*  
80000170.00 unspecified
c025 SDR Full 01 39 20 a f8 snum 24 PwrShare Fan 3   = 56 OK*  
80000172.00 unspecified
0026 SDR Full 01 38 20 a f8 snum 2d PwrShare Temp    = 9f OK*  
2360081726.00 unspecified
4026 SDR Comp 02 25 20 a 49 snum 2c 3-4 L2 VID       = c0 c0 fb b7 Deassert
7026 SDR Comp 02 25 20 a 49 snum 2b 1-2 L2 VID       = c0 00 00 00 OK
a026 SDR Comp 02 22 20 a 49 snum 31 oc Term          = c0 00 00 00 OK
d026 SDR Comp 02 26 20 a 09 snum 27 ssor 1 Stat      = 80 80 00 00 Enabled
0027 SDR Comp 02 26 20 a 09 snum 28 ssor 2 Stat      = 80 80 00 00 Enabled
3027 SDR Comp 02 26 20 a 09 snum 29 ssor 3 Stat      = 80 80 00 00 Enabled
6027 SDR Comp 02 26 20 a 09 snum 2a ssor 4 Stat      = 80 80 00 00 Enabled
9027 SDR Comp 02 25 20 a 49 snum 25 edund Lost       = 00 80 00 00 OK
c027 SDR Comp 02 20 20 a 09 snum 26  Unit            = 00 00 00 00 
NotAvailable
f027 SDR Comp 02 24 20 a 49 snum 32 Post Code        = 00 00 00 00 
NotAvailable
2028 SDR Comp 02 26 20 a 49 snum 41 MP Password      = c0 00 00 00 OK
5028 SDR Comp 02 26 20 a 49 snum 33 ntrusion ID      = c1 00 00 00 OK
8028 SDR Comp 02 24 20 a 49 snum 36 rtPnl NMI        = 00 80 00 00 OK
b028 SDR Comp 02 22 20 a 49 snum 37 atchdog          = 00 80 00 00 OK
e028 SDR Comp 02 25 20 a 49 snum 34  Violation       = c0 00 00 00 OK
1029 SDR Comp 02 1f 20 a 43 snum 35 tate             = c0 00 00 00 OK
4029 SDR Comp 02 24 20 a 49 snum 2e are Sup 1        = 01 80 00 00 OK
7029 SDR Comp 02 24 20 a 49 snum 2f are Sup 2        = 01 80 00 00 OK
a029 SDR Comp 02 24 20 a 49 snum 30 are Sup 3        = 01 80 00 00 OK
d029 SDR Comp 02 1f 20 a 49 snum 38 tate             = c0 00 00 00 OK
002a SDR Comp 02 26 20 a 49 snum 0d Term Vlt A1      = c0 00 00 00 OK
302a SDR Comp 02 26 20 a 49 snum 0e Term Vlt A2      = c0 00 00 00 OK
602a SDR Comp 02 26 20 a 49 snum 0f Term Vlt A3      = c0 00 00 00 OK
902a SDR Comp 02 26 20 a 49 snum 10 Term Vlt B1      = c0 00 00 00 OK
c02a SDR Comp 02 26 20 a 49 snum 11 Term Vlt B2      = c0 00 00 00 OK
f02a SDR Comp 02 26 20 a 49 snum 12 Term Vlt B3      = c0 00 00 00 OK
202b SDR Comp 02 24 c0 a 49 snum 01 rv Status        = bd c0 00 00 OK
502b SDR Comp 02 26 c0 a 49 snum 07 rv Presence      = 00 00 00 00 
NotAvailable
802b SDR DLoc 10 1b dev: 20 00 00 05 00 bd Basbrd Mgmt Ctlr
a02b SDR DLoc 10 1a dev: ae 50 00 20 08 00 Processor 1 FRU
c02b SDR DLoc 10 1a dev: aa 50 00 20 08 00 Processor 2 FRU
e02b SDR DLoc 10 1a dev: a6 50 00 20 08 00 Processor 3 FRU
002c SDR DLoc 10 1a dev: a2 50 00 20 08 00 Processor 4 FRU
202c SDR DLoc 10 17 dev: d0 40 00 20 09 02 PwrShare FRU
402c SDR DLoc 10 18 dev: c0 00 00 02 00 85 Hot Swap Ctlr
602c SDR DLoc 10 1b dev: aa 40 00 20 09 02 Memory Board FRU
802c SDR DLoc 10 1b dev: d2 40 00 20 09 02 Pwr Supply 1 FRU
a02c SDR DLoc 10 1b dev: d4 40 00 20 09 02 Pwr Supply 2 FRU
c02c SDR DLoc 10 1b dev: d6 40 00 20 09 02 Pwr Supply 3 FRU
e02c SDR OEM  c0 10 manufS91443: 20 56 65 72 73 69 6f 6e 20 31 2e 33 37
sensor: completed successfully

Is there anything that can be done, so that the ipmi_si module will work on this system? (And by extension, hopefully the ipmisensors module).

Last, the fan and temperature readings, aren't they supposed to be human readable?

Thanks for your great help, all of you! Much appreciated!

Regards,
Stian

Quoted 151 lines · Stian Jordet
Quoted 9 lines · Andrew R

Stian,

I believe the port should be 0xCA2, not 0xCA0.
According to the docs, it does have IPMI support, but it would be only local (no IPMI LAN).

Try modprobe ipmi_si type="kcs" addrs="0xca0"
or just modprobe ipmi_si

Unfortunately, neither of this works. I've tried

root@buick:~# modprobe ipmi_si
FATAL: Error inserting ipmi_si (/lib/modules/2.6.21/kernel/drivers/char/ipmi/ipmi_si.ko): No such device
root@buick:~# modprobe ipmi_si type="kcs" ports="0xca0"
FATAL: Error inserting ipmi_si (/lib/modules/2.6.21/kernel/drivers/char/ipmi/ipmi_si.ko): No such device
root@buick:~# modprobe ipmi_si type="kcs" ports="0xca2"
FATAL: Error inserting ipmi_si (/lib/modules/2.6.21/kernel/drivers/char/ipmi/ipmi_si.ko): No such device

I don't really know if there is more to try. But as you say, the board should support IPMI, so I don't really know why it doesn't seem to. Hmm.

I guess it was worth a try :)

Thanks to everyone who replied :)

Regards,
Stian

Quoted 107 lines

-----Original Message-----
From: Stian Jordet [mailto:[email protected]]
Sent: Monday, October 01, 2007 3:58 AM
To: [email protected]
Cc: [email protected]; Cress, Andrew R; [email protected]
Subject: IPMI and ipmisensors on an Intel SC450NX

Hi,

Sorry, this is going to be long and probably cross-posted too many places, but it isn't easy to know where to direct this! The persons in the CC-field I have found after searching on the net, hoping any of them have some bright ideas!

I've used the weekend (again!) trying to get sensors working on my good old Intel SC450NX server, with no luck.

First of all, I'm not even sure what IPMI version this system has. I found this mail:

http://sourceforge.net/mailarchive/message.php?msg_idtA9A71929931E4096
7CA9F27B1D7396014D46A2%40hdsmsx401.amr.corp.intel.com

where an Intel employee thinks it is IPMI 1.0, and either way it should work with the ipmi_imb emulation driver, which supposedly uses the same interface as the original Intel Server Manager uses. I'm still afraid it is IPMI 0.9 I have.

I have updated both BIOS, BMC and FRUSDR (whatever that is) to the latest available versions. dmidecode doesn't have any traces of ipmi. But lm-sensors sensors-detect reports this:

[...]
Probing for `IPMI BMC KCS' at 0xca0... Success!
(confidence 4, driver `ipmisensors')
Probing for `IPMI BMC SMIC' at 0xca8... No
[...]

which at least gave me some hope. The ipmisensors page says I need to use ipmi_si before loading the ipmisensors-module. I then tried loading some modules...

root@buick:~# modprobe ipmi_si
IPMI System Interface driver.
ipmi_si: Unable to find any System Interface(s)
FATAL: Error inserting ipmi_si
(/lib/modules/2.6.21/kernel/drivers/char/ipmi/ipmi_si.ko): No such
device
root@buick:~# modprobe ipmi_si type="kcs" addrs="0xca0"
IPMI System Interface driver.
ipmi_si: Trying hardcoded-specified kcs state machine at mem address
0xca0, slave address 0x0, irq 0
Could not set up I/O space
ipmi_si: Unable to find any System Interface(s)
FATAL: Error inserting ipmi_si
(/lib/modules/2.6.21/kernel/drivers/char/ipmi/ipmi_si.ko): No such
device

After applying ipmi_emu.diff from http://openipmi.sf.net, I tried the earlier promised ipmi_imb driver:

root@buick:~# modprobe ipmi_imb
ipmi: can't create user -22
FATAL: Error inserting ipmi_imb
(/lib/modules/2.6.21/kernel/drivers/char/ipmi/ipmi_imb.ko): Invalid
argument

Not looking that good... What does "can't create user -22" mean? I found this in my dmesg:

pnp: 00:01: ioport range 0xca0-0xca7 has been reserved

Which gave me hope that pnp was "locking" the ipmi addresses. Booted with pnpbios=no and pnpacpi=off and even acpi=off, no difference.

I ran the FRUSDR utility from a boot disk, and got this output:

a:\>frusdr /p /d fru

FRU & SDR Load Utility Version 3.4

FRU IMBDEVICE on bus FFh, IMB address 20h, LUN 00

Display Header Area
Common Header Area (Version 1, Length 8)

    Internal Area Offset    = 01h
    Chassis Area Offset     = 1Ah
    Board Area Offset       = 1Eh
    Product Area Offset     = 26h

Multirecord Area Offset = 00h
PAD = 00h
CHECKSUM = A0h

Don't know what any of this means, except it kinda says it does have a "imbdevice" (Which I had some hopes the ipmi_imb driver would support...)

Ok, I found this http://bubble.nsys.by/projects/ipmi/ and this
http://archives.andrew.net.au/lm-sensors/msg29983.html on the web, showing at least two attempts trying to get bmcsensors working with IPMI 0.9 (if that's what my system has), but I haven't found any sign of success or not. I am especially curious as to whether Yani's attempt to make bmcsensors working with IPMI 0.9 will have any effect now that ipmisensors seems to use ipmi_si and OpenIPMI does not suppoert IPMI 0.9...

Quoted 9 lines

Anyone have any bright ideas where to look next? Or am I really out of luck?

Thanks.

Regards,
Stian

Quoted 10 lines

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Openipmi-developer mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openipmi-developer

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

#1 lore raw

Stian,

OK, the GetDeviceID response being short indicates that it is pre-IPMI-1.0, probably IPMI 0.9.
The actual displayed versions from the utilities are being picked out from the IPMI 1.0+ locations, so they are not valid. I don't remember the format of the IPMI 0.9 DeviceID response off-hand, but you do have something that works, mostly.

Also, decoding the sensor readings in IPMI 0.9 must be different, but at least you can get the raw readings.
There is an Intel IMB IPMI driver that does support IPMI 0.9, and there are several things that need to be handled differently in IPMI 0.9 (kcs state machine, GetDeviceID response, SendMessage/GetMessage is different, ...).

Given that the ipmisensors module is probably coded to IPMI 1.0 and greater, using it wouldn't yield any advantage over what you currently get from "ipmiutil sensor", which did try to decode them but with 'unspecified' results.

Decoding the sensor readings from raw form into human-readable form would have to be implemented for IPMI 0.9 in whatever utilities you pick. How big a deal is this?

Andy

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Stian Jordet
Sent: Tuesday, October 02, 2007 2:39 AM
To: Cress, Andrew R
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [Openipmi-developer] IPMI and ipmisensors on an Intel SC450NX

Andrew,

first, I'm sorry I am not replying to you email, I accidentally deleted

it :(

Now we're getting somewhere:

root@buick:~# ipmiutil health -x
ipmiutil ver 2.0
bmchealth ver 1.15
ipmi_open: driver type = unknown
ipmi_open_mv: cannot open /dev/ipmi/0
ipmi_open_mv: cannot open /dev/ipmi0
ipmi_open_mv: cannot open /dev/ipmidev0
ipmi_open_mv: cannot open /dev/ipmidev/0
imbapi.c ipmi_open_ia: open(/dev/imb) failed: No such file or directory
ipmi_open_va: cannot open /dev/ipmikcs
ipmi_open_va: cannot open /dev/ipmi/kcs
SMBIOS Table is present at Physical Address 0x000eee60 ...
No IPMI Data Structure Found in SMBIOS Table,
 Continuing with KCS on Default Port 0x0ca2
BMC Initialized.
ipmidir Cmd NetFn Lun Sa  Data(0):
wait_for_OBF_set: max loop 5001
ipmidir Resp: status=0 cc Data(6): 05 01 00 35 10 1f
open_direct: status=0, KCS drv, ipmi=0
ipmi_open rc = 0 type = kcs
Driver type kcs, open rc = 0
ipmidir Cmd NetFn Lun Sa  Data(0):
wait_for_OBF_set: max loop 5001
ipmidir Resp: status=0 cc Data(6): 05 01 00 35 10 1f
BMC version 0.35, IPMI version 0.1
BMC manufacturer = ca0000 , product = 0493
ipmidir Cmd NetFn Lun Sa  Data(0):
wait_for_OBF_set: max loop 5001
ipmidir Resp: status=0 ccÁ Data(0):
ccode c1: Invalid Command
Cannot do ipmi_getpowerstate, ret = 193

Altough there still is something it doesn't like about my system, I at least get some output :P But IPMI Version 0.1? Is that a typo for 1.0? :)

root@buick:~# ipmiutil sel
ipmiutil ver 2.0
showsel: version 1.54
-- BMC version 0.35, IPMI version 0.1
SEL Ver 10 Support 2, Size = 488 records, Free space = 482 records
RecId Date/Time_______ Source_ Evt_Type SensNum Evt_detail - Trig
[Evt_data]
8001 01/01/70 01:00:07 BMC  05 Platform Security #33 - 03 [01 ff ff]
9001 09/30/07 22:54:23 0011 12 System Event #ef - e7 [01 ff ff]
a001 01/01/70 01:00:07 BMC  05 Platform Security #33 - 03 [01 ff ff]
b001 10/01/07 17:22:54 0011 12 System Event #ef - e7 [01 ff ff]
c001 01/01/70 01:00:07 BMC  05 Platform Security #33 - 03 [01 ff ff]
d001 10/01/07 17:35:21 0011 12 System Event #ef - e7 [01 ff ff]
showsel: completed successfully
root@buick:~# ipmiutil sensor
ipmiutil ver 2.0
sensor: version 1.59
-- BMC version 0.35, IPMI version 0.1
_ID_ SDR_Type_xx Sz Own Typ S_Num Sens_Description   Hex & Interp
Reading
0020 SDR Full 01 39 20 a f8 snum 04 Baseboard -12V   = 6a OK*  
2520000212.00 unspecified
4020 SDR Full 01 3b 20 a f8 snum 14 Basebrd PCI Temp = 9c OK*  
2360080184.00 unspecified
8020 SDR Full 01 3b 20 a f8 snum 15 Basebrd PXB Temp = a0 OK*  
2360082240.00 unspecified
c020 SDR Full 01 3b 20 a f8 snum 16 Processor 1 Temp = 9a OK*  
2360079156.00 unspecified
0021 SDR Full 01 3b 20 a f8 snum 17 Processor 2 Temp = 9b OK*  
2360079670.00 unspecified
4021 SDR Full 01 3b 20 a f8 snum 18 Processor 3 Temp = 9d OK*  
2360080698.00 unspecified
8021 SDR Full 01 3b 20 a f8 snum 19 Processor 4 Temp = 9c OK*  
2360080184.00 unspecified
c021 SDR Full 01 37 20 a f8 snum 01 Baseboard 5V     = bd OK*  
440012474.00 unspecified
0022 SDR Full 01 38 20 a f8 snum 02 Baseboard 12V    = aa OK*  
440000340.00 unspecified
4022 SDR Full 01 39 20 a f8 snum 03 Baseboard 3.3V   = df OK*  
440000446.00 unspecified
8022 SDR Full 01 39 20 a f8 snum 0c Baseboard 2.5V   = cb OK*  
440000406.00 unspecified
c022 SDR Full 01 39 20 a f8 snum 0b Baseboard 1.5V   = 9b OK*  
440000310.00 unspecified
0023 SDR Full 01 36 20 a f8 snum 13 SCSI-N Volt      = ca OK*  
440000404.00 unspecified
4023 SDR Full 01 3a 20 a f8 snum 1a Baseboard Fan 2  = 5e OK*  
80000188.00 unspecified
8023 SDR Full 01 3a 20 a f8 snum 1b Baseboard Fan 1  = 63 OK*  
80000198.00 unspecified
c023 SDR Full 01 3a 20 a f8 snum 1c Baseboard Fan 4  = 5b OK*  
80000182.00 unspecified
0024 SDR Full 01 3a 20 a f8 snum 1d Baseboard Fan 3  = 64 OK*  
80000200.00 unspecified
4024 SDR Full 01 3a 20 a f8 snum 1e Baseboard Fan 5  = 5a OK*  
80000180.00 unspecified
8024 SDR Full 01 3a 20 a f8 snum 1f Baseboard Fan 8  = 5c OK*  
80000184.00 unspecified
c024 SDR Full 01 3a 20 a f8 snum 20 Baseboard Fan 7  = 5f OK*  
80000190.00 unspecified
0025 SDR Full 01 3a 20 a f8 snum 21 Baseboard Fan 6  = 5a OK*  
80000180.00 unspecified
4025 SDR Full 01 39 20 a f8 snum 22 PwrShare Fan 1   = 57 OK*  
80000174.00 unspecified
8025 SDR Full 01 39 20 a f8 snum 23 PwrShare Fan 2   = 55 OK*  
80000170.00 unspecified
c025 SDR Full 01 39 20 a f8 snum 24 PwrShare Fan 3   = 56 OK*  
80000172.00 unspecified
0026 SDR Full 01 38 20 a f8 snum 2d PwrShare Temp    = 9f OK*  
2360081726.00 unspecified
4026 SDR Comp 02 25 20 a 49 snum 2c 3-4 L2 VID       = c0 c0 fb b7
Deassert
7026 SDR Comp 02 25 20 a 49 snum 2b 1-2 L2 VID       = c0 00 00 00 OK
a026 SDR Comp 02 22 20 a 49 snum 31 oc Term          = c0 00 00 00 OK
d026 SDR Comp 02 26 20 a 09 snum 27 ssor 1 Stat      = 80 80 00 00
Enabled
0027 SDR Comp 02 26 20 a 09 snum 28 ssor 2 Stat      = 80 80 00 00
Enabled
3027 SDR Comp 02 26 20 a 09 snum 29 ssor 3 Stat      = 80 80 00 00
Enabled
6027 SDR Comp 02 26 20 a 09 snum 2a ssor 4 Stat      = 80 80 00 00
Enabled
9027 SDR Comp 02 25 20 a 49 snum 25 edund Lost       = 00 80 00 00 OK
c027 SDR Comp 02 20 20 a 09 snum 26  Unit            = 00 00 00 00 
NotAvailable
f027 SDR Comp 02 24 20 a 49 snum 32 Post Code        = 00 00 00 00 
NotAvailable
2028 SDR Comp 02 26 20 a 49 snum 41 MP Password      = c0 00 00 00 OK
5028 SDR Comp 02 26 20 a 49 snum 33 ntrusion ID      = c1 00 00 00 OK
8028 SDR Comp 02 24 20 a 49 snum 36 rtPnl NMI        = 00 80 00 00 OK
b028 SDR Comp 02 22 20 a 49 snum 37 atchdog          = 00 80 00 00 OK
e028 SDR Comp 02 25 20 a 49 snum 34  Violation       = c0 00 00 00 OK
1029 SDR Comp 02 1f 20 a 43 snum 35 tate             = c0 00 00 00 OK
4029 SDR Comp 02 24 20 a 49 snum 2e are Sup 1        = 01 80 00 00 OK
7029 SDR Comp 02 24 20 a 49 snum 2f are Sup 2        = 01 80 00 00 OK
a029 SDR Comp 02 24 20 a 49 snum 30 are Sup 3        = 01 80 00 00 OK
d029 SDR Comp 02 1f 20 a 49 snum 38 tate             = c0 00 00 00 OK
002a SDR Comp 02 26 20 a 49 snum 0d Term Vlt A1      = c0 00 00 00 OK
302a SDR Comp 02 26 20 a 49 snum 0e Term Vlt A2      = c0 00 00 00 OK
602a SDR Comp 02 26 20 a 49 snum 0f Term Vlt A3      = c0 00 00 00 OK
902a SDR Comp 02 26 20 a 49 snum 10 Term Vlt B1      = c0 00 00 00 OK
c02a SDR Comp 02 26 20 a 49 snum 11 Term Vlt B2      = c0 00 00 00 OK
f02a SDR Comp 02 26 20 a 49 snum 12 Term Vlt B3      = c0 00 00 00 OK
202b SDR Comp 02 24 c0 a 49 snum 01 rv Status        = bd c0 00 00 OK
502b SDR Comp 02 26 c0 a 49 snum 07 rv Presence      = 00 00 00 00 
NotAvailable
802b SDR DLoc 10 1b dev: 20 00 00 05 00 bd Basbrd Mgmt Ctlr
a02b SDR DLoc 10 1a dev: ae 50 00 20 08 00 Processor 1 FRU
c02b SDR DLoc 10 1a dev: aa 50 00 20 08 00 Processor 2 FRU
e02b SDR DLoc 10 1a dev: a6 50 00 20 08 00 Processor 3 FRU
002c SDR DLoc 10 1a dev: a2 50 00 20 08 00 Processor 4 FRU
202c SDR DLoc 10 17 dev: d0 40 00 20 09 02 PwrShare FRU
402c SDR DLoc 10 18 dev: c0 00 00 02 00 85 Hot Swap Ctlr
602c SDR DLoc 10 1b dev: aa 40 00 20 09 02 Memory Board FRU
802c SDR DLoc 10 1b dev: d2 40 00 20 09 02 Pwr Supply 1 FRU
a02c SDR DLoc 10 1b dev: d4 40 00 20 09 02 Pwr Supply 2 FRU
c02c SDR DLoc 10 1b dev: d6 40 00 20 09 02 Pwr Supply 3 FRU
e02c SDR OEM  c0 10 manufS91443: 20 56 65 72 73 69 6f 6e 20 31 2e 33
37
sensor: completed successfully

Is there anything that can be done, so that the ipmi_si module will work

on this system? (And by extension, hopefully the ipmisensors module).

Last, the fan and temperature readings, aren't they supposed to be human

readable?

Thanks for your great help, all of you! Much appreciated!

Regards,
Stian

Quoted 6 lines · Stian Jordet
Quoted 4 lines · Andrew R

Stian,

I believe the port should be 0xCA2, not 0xCA0. According to the docs, it does have IPMI support, but it would be

only

Quoted 10 lines
Quoted 5 lines

local (no IPMI LAN).

Try modprobe ipmi_si type="kcs" addrs="0xca0"
or just modprobe ipmi_si

Unfortunately, neither of this works. I've tried

root@buick:~# modprobe ipmi_si
FATAL: Error inserting ipmi_si

(/lib/modules/2.6.21/kernel/drivers/char/ipmi/ipmi_si.ko): No such device

Quoted 2 lines
root@buick:~# modprobe ipmi_si type="kcs" ports="0xca0"
FATAL: Error inserting ipmi_si

(/lib/modules/2.6.21/kernel/drivers/char/ipmi/ipmi_si.ko): No such device

Quoted 2 lines
root@buick:~# modprobe ipmi_si type="kcs" ports="0xca2"
FATAL: Error inserting ipmi_si

(/lib/modules/2.6.21/kernel/drivers/char/ipmi/ipmi_si.ko): No such device

Quoted 5 lines

I don't really know if there is more to try. But as you say, the board should support IPMI, so I don't really know why it doesn't seem to. Hmm.

Quoted 19 lines

I guess it was worth a try :)

Thanks to everyone who replied :)

Regards,
Stian

Quoted 11 lines

-----Original Message-----
From: Stian Jordet [mailto:[email protected]]
Sent: Monday, October 01, 2007 3:58 AM
To: [email protected]
Cc: [email protected]; Cress, Andrew R; [email protected]
Subject: IPMI and ipmisensors on an Intel SC450NX

Hi,

Sorry, this is going to be long and probably cross-posted too many places, but it isn't easy to know where to direct this! The persons

in

Quoted 1 line
Quoted 1 line

the CC-field I have found after searching on the net, hoping any of

them

Quoted 3 lines
Quoted 3 lines

have some bright ideas!

I've used the weekend (again!) trying to get sensors working on my

good

Quoted 6 lines
Quoted 6 lines

old Intel SC450NX server, with no luck.

First of all, I'm not even sure what IPMI version this system has. I found this mail:

http://sourceforge.net/mailarchive/message.php?msg_idtA9A71929931E4096

Quoted 3 lines
Quoted 3 lines

7CA9F27B1D7396014D46A2%40hdsmsx401.amr.corp.intel.com

where an Intel employee thinks it is IPMI 1.0, and either way it

should

Quoted 1 line
Quoted 1 line

work with the ipmi_imb emulation driver, which supposedly uses the

same

Quoted 1 line
Quoted 1 line

interface as the original Intel Server Manager uses. I'm still afraid

it

Quoted 6 lines
Quoted 6 lines

is IPMI 0.9 I have.

I have updated both BIOS, BMC and FRUSDR (whatever that is) to the latest available versions. dmidecode doesn't have any traces of ipmi. But lm-sensors sensors-detect reports this:

Quoted 8 lines
Quoted 8 lines

[...]
Probing for `IPMI BMC KCS' at 0xca0... Success!
(confidence 4, driver `ipmisensors')
Probing for `IPMI BMC SMIC' at 0xca8... No
[...]

which at least gave me some hope. The ipmisensors page says I need to use ipmi_si before loading the ipmisensors-module. I then tried

loading

Quoted 22 lines
Quoted 22 lines

some modules...

root@buick:~# modprobe ipmi_si
IPMI System Interface driver.
ipmi_si: Unable to find any System Interface(s)
FATAL: Error inserting ipmi_si
(/lib/modules/2.6.21/kernel/drivers/char/ipmi/ipmi_si.ko): No such
device
root@buick:~# modprobe ipmi_si type="kcs" addrs="0xca0"
IPMI System Interface driver.
ipmi_si: Trying hardcoded-specified kcs state machine at mem address
0xca0, slave address 0x0, irq 0
Could not set up I/O space
ipmi_si: Unable to find any System Interface(s)
FATAL: Error inserting ipmi_si
(/lib/modules/2.6.21/kernel/drivers/char/ipmi/ipmi_si.ko): No such
device

After applying ipmi_emu.diff from http://openipmi.sf.net, I tried the earlier promised ipmi_imb driver:

Quoted 7 lines
Quoted 7 lines
root@buick:~# modprobe ipmi_imb
ipmi: can't create user -22
FATAL: Error inserting ipmi_imb
(/lib/modules/2.6.21/kernel/drivers/char/ipmi/ipmi_imb.ko): Invalid
argument

Not looking that good... What does "can't create user -22" mean? I

found

Quoted 25 lines
Quoted 25 lines

this in my dmesg:

pnp: 00:01: ioport range 0xca0-0xca7 has been reserved

Which gave me hope that pnp was "locking" the ipmi addresses. Booted with pnpbios=no and pnpacpi=off and even acpi=off, no difference.

I ran the FRUSDR utility from a boot disk, and got this output:

a:\>frusdr /p /d fru

FRU & SDR Load Utility Version 3.4

FRU IMBDEVICE on bus FFh, IMB address 20h, LUN 00

Display Header Area
Common Header Area (Version 1, Length 8)

    Internal Area Offset    = 01h
    Chassis Area Offset     = 1Ah
    Board Area Offset       = 1Eh
    Product Area Offset     = 26h

Multirecord Area Offset = 00h
PAD = 00h
CHECKSUM = A0h

Quoted 1 line
Quoted 1 line

Don't know what any of this means, except it kinda says it does have

a

Quoted 6 lines
Quoted 6 lines

"imbdevice" (Which I had some hopes the ipmi_imb driver would support...)

Ok, I found this http://bubble.nsys.by/projects/ipmi/ and this
http://archives.andrew.net.au/lm-sensors/msg29983.html on the web, showing at least two attempts trying to get bmcsensors working with

IPMI

Quoted 2 lines
Quoted 2 lines

0.9 (if that's what my system has), but I haven't found any sign of success or not. I am especially curious as to whether Yani's attempt

to

Quoted 5 lines
Quoted 5 lines

make bmcsensors working with IPMI 0.9 will have any effect now that ipmisensors seems to use ipmi_si and OpenIPMI does not suppoert IPMI 0.9...

Anyone have any bright ideas where to look next? Or am I really out

of

Quoted 11 lines
Quoted 8 lines

luck?

Thanks.

Regards,
Stian

------------------------------------------------------------------------
-

Quoted 9 lines

This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Openipmi-developer mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openipmi-developer

------------------------------------------------------------------------
-
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Openipmi-developer mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openipmi-developer

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

#2 lore raw
In reply to Stian Jordet

Andrew,

Thanks for clarifying things a bit. (Or a lot, actually). I really appreciate it :)

Since I'm not able to code the decoding into human readable part my self, it would be much easier to convince someone else to try if you could show me some specifications or some other magic that needs to be done different with IPMI 0.9?

It seems most ipmiutil commands mostly works. I can read (and reset) the System Event Log, I can show the watchdog timer (haven't tried doing anything else with it) and I can get sensor readings (altough not readable...). Although both "fru" and "health" commands quits with an error message.

But, most important for me; getting sensor-readings human readable. In one form or another. So far I have made these observations:

Corey Minyard wrote this:

"It should work, the IPMI driver will work with an IPMI 0.9 system. I looked in the technical specifications for the board, but I didn't see any useful information about port numbers or such."

So, the ipmi_si should work with IPMI 0.9. Why doesn't it? What does ipmiutil do different than the ipmi_si module?

Vladislav Bogdanov ported the original 2.4 kernel bmcsensors to work with IPMI 0.9. http://bubble.nsys.by/projects/ipmi/

Second, Yani Ioannou - the author of the ipmisensors module, has earlier (in 2005) written this:
http://archives.andrew.net.au/lm-sensors/msg29983.html

"As a side note, I'm working on integrating the ipmi 0.9 patch into the 2.6 bmcsensors driver, the original ipmi 0.9 patch was not as significant as its size would lead one to believe (as you so noted), and I'm trying to rework it so it is more maintainable and has less code repetition."

which is also confirmed in the source of the ipmisensors-module
(http://bmcsensors-26.sourceforge.net/ipmisensors/ipmisensors-20070630-1330.diff)

/* If the ipmi version is 0.9 we have to remap some things.
* Yes this is very ugly, but we aren't the ones who
* implemented an incomplete spec!
*/

So it seems both the ipmi_si module, and the ipmisensors-module is supposed to work with IPMI 0.9. The main (and $10 000) question is what is "wrong" with my SC450NX that won't make it recognized?

If someone could figure that out, I'll be eternally grateful. I might even be persuaded to donate some money to the person that makes it happen.

Thanks for your splendid help so far! Really been helpful :)

Regards,
Stian

Quoted 442 lines · Andrew R

Stian,

OK, the GetDeviceID response being short indicates that it is pre-IPMI-1.0, probably IPMI 0.9.
The actual displayed versions from the utilities are being picked out from the IPMI 1.0+ locations, so they are not valid. I don't remember the format of the IPMI 0.9 DeviceID response off-hand, but you do have something that works, mostly.

Also, decoding the sensor readings in IPMI 0.9 must be different, but at least you can get the raw readings.
There is an Intel IMB IPMI driver that does support IPMI 0.9, and there are several things that need to be handled differently in IPMI 0.9 (kcs state machine, GetDeviceID response, SendMessage/GetMessage is different, ...).

Given that the ipmisensors module is probably coded to IPMI 1.0 and greater, using it wouldn't yield any advantage over what you currently get from "ipmiutil sensor", which did try to decode them but with 'unspecified' results.

Decoding the sensor readings from raw form into human-readable form would have to be implemented for IPMI 0.9 in whatever utilities you pick. How big a deal is this?

Andy

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Stian Jordet
Sent: Tuesday, October 02, 2007 2:39 AM
To: Cress, Andrew R
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [Openipmi-developer] IPMI and ipmisensors on an Intel SC450NX

Andrew,

first, I'm sorry I am not replying to you email, I accidentally deleted

it :(

Now we're getting somewhere:

root@buick:~# ipmiutil health -x
ipmiutil ver 2.0
bmchealth ver 1.15
ipmi_open: driver type = unknown
ipmi_open_mv: cannot open /dev/ipmi/0
ipmi_open_mv: cannot open /dev/ipmi0
ipmi_open_mv: cannot open /dev/ipmidev0
ipmi_open_mv: cannot open /dev/ipmidev/0
imbapi.c ipmi_open_ia: open(/dev/imb) failed: No such file or directory
ipmi_open_va: cannot open /dev/ipmikcs
ipmi_open_va: cannot open /dev/ipmi/kcs
SMBIOS Table is present at Physical Address 0x000eee60 ...
No IPMI Data Structure Found in SMBIOS Table,
 Continuing with KCS on Default Port 0x0ca2
BMC Initialized.
ipmidir Cmd NetFn Lun Sa  Data(0):
wait_for_OBF_set: max loop 5001
ipmidir Resp: status=0 cc Data(6): 05 01 00 35 10 1f
open_direct: status=0, KCS drv, ipmi=0
ipmi_open rc = 0 type = kcs
Driver type kcs, open rc = 0
ipmidir Cmd NetFn Lun Sa  Data(0):
wait_for_OBF_set: max loop 5001
ipmidir Resp: status=0 cc Data(6): 05 01 00 35 10 1f
BMC version 0.35, IPMI version 0.1
BMC manufacturer = ca0000 , product = 0493
ipmidir Cmd NetFn Lun Sa  Data(0):
wait_for_OBF_set: max loop 5001
ipmidir Resp: status=0 ccÁ Data(0):
ccode c1: Invalid Command
Cannot do ipmi_getpowerstate, ret = 193

Altough there still is something it doesn't like about my system, I at least get some output :P But IPMI Version 0.1? Is that a typo for 1.0? :)

root@buick:~# ipmiutil sel
ipmiutil ver 2.0
showsel: version 1.54
-- BMC version 0.35, IPMI version 0.1
SEL Ver 10 Support 2, Size = 488 records, Free space = 482 records
RecId Date/Time_______ Source_ Evt_Type SensNum Evt_detail - Trig
[Evt_data]
8001 01/01/70 01:00:07 BMC  05 Platform Security #33 - 03 [01 ff ff]
9001 09/30/07 22:54:23 0011 12 System Event #ef - e7 [01 ff ff]
a001 01/01/70 01:00:07 BMC  05 Platform Security #33 - 03 [01 ff ff]
b001 10/01/07 17:22:54 0011 12 System Event #ef - e7 [01 ff ff]
c001 01/01/70 01:00:07 BMC  05 Platform Security #33 - 03 [01 ff ff]
d001 10/01/07 17:35:21 0011 12 System Event #ef - e7 [01 ff ff]
showsel: completed successfully
root@buick:~# ipmiutil sensor
ipmiutil ver 2.0
sensor: version 1.59
-- BMC version 0.35, IPMI version 0.1
_ID_ SDR_Type_xx Sz Own Typ S_Num Sens_Description   Hex & Interp
Reading
0020 SDR Full 01 39 20 a f8 snum 04 Baseboard -12V   = 6a OK*  
2520000212.00 unspecified
4020 SDR Full 01 3b 20 a f8 snum 14 Basebrd PCI Temp = 9c OK*  
2360080184.00 unspecified
8020 SDR Full 01 3b 20 a f8 snum 15 Basebrd PXB Temp = a0 OK*  
2360082240.00 unspecified
c020 SDR Full 01 3b 20 a f8 snum 16 Processor 1 Temp = 9a OK*  
2360079156.00 unspecified
0021 SDR Full 01 3b 20 a f8 snum 17 Processor 2 Temp = 9b OK*  
2360079670.00 unspecified
4021 SDR Full 01 3b 20 a f8 snum 18 Processor 3 Temp = 9d OK*  
2360080698.00 unspecified
8021 SDR Full 01 3b 20 a f8 snum 19 Processor 4 Temp = 9c OK*  
2360080184.00 unspecified
c021 SDR Full 01 37 20 a f8 snum 01 Baseboard 5V     = bd OK*  
440012474.00 unspecified
0022 SDR Full 01 38 20 a f8 snum 02 Baseboard 12V    = aa OK*  
440000340.00 unspecified
4022 SDR Full 01 39 20 a f8 snum 03 Baseboard 3.3V   = df OK*  
440000446.00 unspecified
8022 SDR Full 01 39 20 a f8 snum 0c Baseboard 2.5V   = cb OK*  
440000406.00 unspecified
c022 SDR Full 01 39 20 a f8 snum 0b Baseboard 1.5V   = 9b OK*  
440000310.00 unspecified
0023 SDR Full 01 36 20 a f8 snum 13 SCSI-N Volt      = ca OK*  
440000404.00 unspecified
4023 SDR Full 01 3a 20 a f8 snum 1a Baseboard Fan 2  = 5e OK*  
80000188.00 unspecified
8023 SDR Full 01 3a 20 a f8 snum 1b Baseboard Fan 1  = 63 OK*  
80000198.00 unspecified
c023 SDR Full 01 3a 20 a f8 snum 1c Baseboard Fan 4  = 5b OK*  
80000182.00 unspecified
0024 SDR Full 01 3a 20 a f8 snum 1d Baseboard Fan 3  = 64 OK*  
80000200.00 unspecified
4024 SDR Full 01 3a 20 a f8 snum 1e Baseboard Fan 5  = 5a OK*  
80000180.00 unspecified
8024 SDR Full 01 3a 20 a f8 snum 1f Baseboard Fan 8  = 5c OK*  
80000184.00 unspecified
c024 SDR Full 01 3a 20 a f8 snum 20 Baseboard Fan 7  = 5f OK*  
80000190.00 unspecified
0025 SDR Full 01 3a 20 a f8 snum 21 Baseboard Fan 6  = 5a OK*  
80000180.00 unspecified
4025 SDR Full 01 39 20 a f8 snum 22 PwrShare Fan 1   = 57 OK*  
80000174.00 unspecified
8025 SDR Full 01 39 20 a f8 snum 23 PwrShare Fan 2   = 55 OK*  
80000170.00 unspecified
c025 SDR Full 01 39 20 a f8 snum 24 PwrShare Fan 3   = 56 OK*  
80000172.00 unspecified
0026 SDR Full 01 38 20 a f8 snum 2d PwrShare Temp    = 9f OK*  
2360081726.00 unspecified
4026 SDR Comp 02 25 20 a 49 snum 2c 3-4 L2 VID       = c0 c0 fb b7
Deassert
7026 SDR Comp 02 25 20 a 49 snum 2b 1-2 L2 VID       = c0 00 00 00 OK
a026 SDR Comp 02 22 20 a 49 snum 31 oc Term          = c0 00 00 00 OK
d026 SDR Comp 02 26 20 a 09 snum 27 ssor 1 Stat      = 80 80 00 00
Enabled
0027 SDR Comp 02 26 20 a 09 snum 28 ssor 2 Stat      = 80 80 00 00
Enabled
3027 SDR Comp 02 26 20 a 09 snum 29 ssor 3 Stat      = 80 80 00 00
Enabled
6027 SDR Comp 02 26 20 a 09 snum 2a ssor 4 Stat      = 80 80 00 00
Enabled
9027 SDR Comp 02 25 20 a 49 snum 25 edund Lost       = 00 80 00 00 OK
c027 SDR Comp 02 20 20 a 09 snum 26  Unit            = 00 00 00 00 
NotAvailable
f027 SDR Comp 02 24 20 a 49 snum 32 Post Code        = 00 00 00 00 
NotAvailable
2028 SDR Comp 02 26 20 a 49 snum 41 MP Password      = c0 00 00 00 OK
5028 SDR Comp 02 26 20 a 49 snum 33 ntrusion ID      = c1 00 00 00 OK
8028 SDR Comp 02 24 20 a 49 snum 36 rtPnl NMI        = 00 80 00 00 OK
b028 SDR Comp 02 22 20 a 49 snum 37 atchdog          = 00 80 00 00 OK
e028 SDR Comp 02 25 20 a 49 snum 34  Violation       = c0 00 00 00 OK
1029 SDR Comp 02 1f 20 a 43 snum 35 tate             = c0 00 00 00 OK
4029 SDR Comp 02 24 20 a 49 snum 2e are Sup 1        = 01 80 00 00 OK
7029 SDR Comp 02 24 20 a 49 snum 2f are Sup 2        = 01 80 00 00 OK
a029 SDR Comp 02 24 20 a 49 snum 30 are Sup 3        = 01 80 00 00 OK
d029 SDR Comp 02 1f 20 a 49 snum 38 tate             = c0 00 00 00 OK
002a SDR Comp 02 26 20 a 49 snum 0d Term Vlt A1      = c0 00 00 00 OK
302a SDR Comp 02 26 20 a 49 snum 0e Term Vlt A2      = c0 00 00 00 OK
602a SDR Comp 02 26 20 a 49 snum 0f Term Vlt A3      = c0 00 00 00 OK
902a SDR Comp 02 26 20 a 49 snum 10 Term Vlt B1      = c0 00 00 00 OK
c02a SDR Comp 02 26 20 a 49 snum 11 Term Vlt B2      = c0 00 00 00 OK
f02a SDR Comp 02 26 20 a 49 snum 12 Term Vlt B3      = c0 00 00 00 OK
202b SDR Comp 02 24 c0 a 49 snum 01 rv Status        = bd c0 00 00 OK
502b SDR Comp 02 26 c0 a 49 snum 07 rv Presence      = 00 00 00 00 
NotAvailable
802b SDR DLoc 10 1b dev: 20 00 00 05 00 bd Basbrd Mgmt Ctlr
a02b SDR DLoc 10 1a dev: ae 50 00 20 08 00 Processor 1 FRU
c02b SDR DLoc 10 1a dev: aa 50 00 20 08 00 Processor 2 FRU
e02b SDR DLoc 10 1a dev: a6 50 00 20 08 00 Processor 3 FRU
002c SDR DLoc 10 1a dev: a2 50 00 20 08 00 Processor 4 FRU
202c SDR DLoc 10 17 dev: d0 40 00 20 09 02 PwrShare FRU
402c SDR DLoc 10 18 dev: c0 00 00 02 00 85 Hot Swap Ctlr
602c SDR DLoc 10 1b dev: aa 40 00 20 09 02 Memory Board FRU
802c SDR DLoc 10 1b dev: d2 40 00 20 09 02 Pwr Supply 1 FRU
a02c SDR DLoc 10 1b dev: d4 40 00 20 09 02 Pwr Supply 2 FRU
c02c SDR DLoc 10 1b dev: d6 40 00 20 09 02 Pwr Supply 3 FRU
e02c SDR OEM  c0 10 manufS91443: 20 56 65 72 73 69 6f 6e 20 31 2e 33
37
sensor: completed successfully

Is there anything that can be done, so that the ipmi_si module will work

on this system? (And by extension, hopefully the ipmisensors module).

Last, the fan and temperature readings, aren't they supposed to be human

readable?

Thanks for your great help, all of you! Much appreciated!

Regards,
Stian

Quoted 8 lines · Stian Jordet
Quoted 5 lines · Andrew R

Stian,

I believe the port should be 0xCA2, not 0xCA0. According to the docs, it does have IPMI support, but it would be

only

Quoted 11 lines
Quoted 6 lines

local (no IPMI LAN).

Try modprobe ipmi_si type="kcs" addrs="0xca0"
or just modprobe ipmi_si

Unfortunately, neither of this works. I've tried

root@buick:~# modprobe ipmi_si
FATAL: Error inserting ipmi_si

(/lib/modules/2.6.21/kernel/drivers/char/ipmi/ipmi_si.ko): No such device

Quoted 3 lines
root@buick:~# modprobe ipmi_si type="kcs" ports="0xca0"
FATAL: Error inserting ipmi_si

(/lib/modules/2.6.21/kernel/drivers/char/ipmi/ipmi_si.ko): No such device

Quoted 3 lines
root@buick:~# modprobe ipmi_si type="kcs" ports="0xca2"
FATAL: Error inserting ipmi_si

(/lib/modules/2.6.21/kernel/drivers/char/ipmi/ipmi_si.ko): No such device

Quoted 4 lines

I don't really know if there is more to try. But as you say, the board should support IPMI, so I don't really know why it doesn't seem to. Hmm.

Quoted 21 lines

I guess it was worth a try :)

Thanks to everyone who replied :)

Regards,
Stian

Quoted 12 lines

-----Original Message-----
From: Stian Jordet [mailto:[email protected]]
Sent: Monday, October 01, 2007 3:58 AM
To: [email protected]
Cc: [email protected]; Cress, Andrew R; [email protected]
Subject: IPMI and ipmisensors on an Intel SC450NX

Hi,

Sorry, this is going to be long and probably cross-posted too many places, but it isn't easy to know where to direct this! The persons

in

Quoted 2 lines
Quoted 2 lines

the CC-field I have found after searching on the net, hoping any of

them

Quoted 4 lines
Quoted 4 lines

have some bright ideas!

I've used the weekend (again!) trying to get sensors working on my

good

Quoted 7 lines
Quoted 7 lines

old Intel SC450NX server, with no luck.

First of all, I'm not even sure what IPMI version this system has. I found this mail:

http://sourceforge.net/mailarchive/message.php?msg_idtA9A71929931E4096

Quoted 4 lines
Quoted 4 lines

7CA9F27B1D7396014D46A2%40hdsmsx401.amr.corp.intel.com

where an Intel employee thinks it is IPMI 1.0, and either way it

should

Quoted 2 lines
Quoted 2 lines

work with the ipmi_imb emulation driver, which supposedly uses the

same

Quoted 2 lines
Quoted 2 lines

interface as the original Intel Server Manager uses. I'm still afraid

it

Quoted 12 lines
Quoted 12 lines

is IPMI 0.9 I have.

I have updated both BIOS, BMC and FRUSDR (whatever that is) to the latest available versions. dmidecode doesn't have any traces of ipmi. But lm-sensors sensors-detect reports this:

[...]
Probing for `IPMI BMC KCS' at 0xca0... Success!
(confidence 4, driver `ipmisensors')
Probing for `IPMI BMC SMIC' at 0xca8... No
[...]

Quoted 3 lines
Quoted 3 lines

which at least gave me some hope. The ipmisensors page says I need to use ipmi_si before loading the ipmisensors-module. I then tried

loading

Quoted 22 lines
Quoted 22 lines

some modules...

root@buick:~# modprobe ipmi_si
IPMI System Interface driver.
ipmi_si: Unable to find any System Interface(s)
FATAL: Error inserting ipmi_si
(/lib/modules/2.6.21/kernel/drivers/char/ipmi/ipmi_si.ko): No such
device
root@buick:~# modprobe ipmi_si type="kcs" addrs="0xca0"
IPMI System Interface driver.
ipmi_si: Trying hardcoded-specified kcs state machine at mem address
0xca0, slave address 0x0, irq 0
Could not set up I/O space
ipmi_si: Unable to find any System Interface(s)
FATAL: Error inserting ipmi_si
(/lib/modules/2.6.21/kernel/drivers/char/ipmi/ipmi_si.ko): No such
device

After applying ipmi_emu.diff from http://openipmi.sf.net, I tried the earlier promised ipmi_imb driver:

Quoted 8 lines
Quoted 8 lines
root@buick:~# modprobe ipmi_imb
ipmi: can't create user -22
FATAL: Error inserting ipmi_imb
(/lib/modules/2.6.21/kernel/drivers/char/ipmi/ipmi_imb.ko): Invalid
argument

Not looking that good... What does "can't create user -22" mean? I

found

Quoted 25 lines
Quoted 25 lines

this in my dmesg:

pnp: 00:01: ioport range 0xca0-0xca7 has been reserved

Which gave me hope that pnp was "locking" the ipmi addresses. Booted with pnpbios=no and pnpacpi=off and even acpi=off, no difference.

I ran the FRUSDR utility from a boot disk, and got this output:

a:\>frusdr /p /d fru

FRU & SDR Load Utility Version 3.4

FRU IMBDEVICE on bus FFh, IMB address 20h, LUN 00

Display Header Area
Common Header Area (Version 1, Length 8)

    Internal Area Offset    = 01h
    Chassis Area Offset     = 1Ah
    Board Area Offset       = 1Eh
    Product Area Offset     = 26h

Multirecord Area Offset = 00h
PAD = 00h
CHECKSUM = A0h

Quoted 2 lines
Quoted 2 lines

Don't know what any of this means, except it kinda says it does have

a

Quoted 7 lines
Quoted 7 lines

"imbdevice" (Which I had some hopes the ipmi_imb driver would support...)

Ok, I found this http://bubble.nsys.by/projects/ipmi/ and this
http://archives.andrew.net.au/lm-sensors/msg29983.html on the web, showing at least two attempts trying to get bmcsensors working with

IPMI

Quoted 3 lines
Quoted 3 lines

0.9 (if that's what my system has), but I haven't found any sign of success or not. I am especially curious as to whether Yani's attempt

to

Quoted 6 lines
Quoted 6 lines

make bmcsensors working with IPMI 0.9 will have any effect now that ipmisensors seems to use ipmi_si and OpenIPMI does not suppoert IPMI 0.9...

Anyone have any bright ideas where to look next? Or am I really out

of

Quoted 11 lines
Quoted 9 lines

luck?

Thanks.

Regards,
Stian

------------------------------------------------------------------------
-

Quoted 10 lines

This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Openipmi-developer mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openipmi-developer

Quoted 11 lines

------------------------------------------------------------------------
-
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Openipmi-developer mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openipmi-developer

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

#3 lore raw
In reply to Stian Jordet

There is a big difference between the driver, which just passes messages around mostly, and the sensor handling, which requires interpretation of SDRs and things like that. The driver should work with a 0.9 system, but the OpenIPMI library will not, for instance.

I'd be willing to work on this (the driver part), but I'll need access to the system.

-corey

Quoted 559 lines · Stian Jordet

Andrew,

Thanks for clarifying things a bit. (Or a lot, actually). I really appreciate it :)

Since I'm not able to code the decoding into human readable part my self, it would be much easier to convince someone else to try if you could show me some specifications or some other magic that needs to be done different with IPMI 0.9?

It seems most ipmiutil commands mostly works. I can read (and reset) the System Event Log, I can show the watchdog timer (haven't tried doing anything else with it) and I can get sensor readings (altough not readable...). Although both "fru" and "health" commands quits with an error message.

But, most important for me; getting sensor-readings human readable. In one form or another. So far I have made these observations:

Corey Minyard wrote this:

"It should work, the IPMI driver will work with an IPMI 0.9 system. I looked in the technical specifications for the board, but I didn't see any useful information about port numbers or such."

So, the ipmi_si should work with IPMI 0.9. Why doesn't it? What does ipmiutil do different than the ipmi_si module?

Vladislav Bogdanov ported the original 2.4 kernel bmcsensors to work with IPMI 0.9. http://bubble.nsys.by/projects/ipmi/

Second, Yani Ioannou - the author of the ipmisensors module, has earlier (in 2005) written this:
http://archives.andrew.net.au/lm-sensors/msg29983.html

"As a side note, I'm working on integrating the ipmi 0.9 patch into the 2.6 bmcsensors driver, the original ipmi 0.9 patch was not as significant as its size would lead one to believe (as you so noted), and I'm trying to rework it so it is more maintainable and has less code repetition."

which is also confirmed in the source of the ipmisensors-module
(http://bmcsensors-26.sourceforge.net/ipmisensors/ipmisensors-20070630-1330.diff)

/* If the ipmi version is 0.9 we have to remap some things.
* Yes this is very ugly, but we aren't the ones who
* implemented an incomplete spec!
*/

So it seems both the ipmi_si module, and the ipmisensors-module is supposed to work with IPMI 0.9. The main (and $10 000) question is what is "wrong" with my SC450NX that won't make it recognized?

If someone could figure that out, I'll be eternally grateful. I might even be persuaded to donate some money to the person that makes it happen.

Thanks for your splendid help so far! Really been helpful :)

Regards,
Stian

Quoted 481 lines · Andrew R

Stian,

OK, the GetDeviceID response being short indicates that it is pre-IPMI-1.0, probably IPMI 0.9.
The actual displayed versions from the utilities are being picked out from the IPMI 1.0+ locations, so they are not valid. I don't remember the format of the IPMI 0.9 DeviceID response off-hand, but you do have something that works, mostly.

Also, decoding the sensor readings in IPMI 0.9 must be different, but at least you can get the raw readings.
There is an Intel IMB IPMI driver that does support IPMI 0.9, and there are several things that need to be handled differently in IPMI 0.9 (kcs state machine, GetDeviceID response, SendMessage/GetMessage is different, ...).

Given that the ipmisensors module is probably coded to IPMI 1.0 and greater, using it wouldn't yield any advantage over what you currently get from "ipmiutil sensor", which did try to decode them but with 'unspecified' results.

Decoding the sensor readings from raw form into human-readable form would have to be implemented for IPMI 0.9 in whatever utilities you pick. How big a deal is this?

Andy

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Stian Jordet
Sent: Tuesday, October 02, 2007 2:39 AM
To: Cress, Andrew R
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [Openipmi-developer] IPMI and ipmisensors on an Intel SC450NX

Andrew,

first, I'm sorry I am not replying to you email, I accidentally deleted

it :(

Now we're getting somewhere:

root@buick:~# ipmiutil health -x
ipmiutil ver 2.0
bmchealth ver 1.15
ipmi_open: driver type = unknown
ipmi_open_mv: cannot open /dev/ipmi/0
ipmi_open_mv: cannot open /dev/ipmi0
ipmi_open_mv: cannot open /dev/ipmidev0
ipmi_open_mv: cannot open /dev/ipmidev/0
imbapi.c ipmi_open_ia: open(/dev/imb) failed: No such file or directory
ipmi_open_va: cannot open /dev/ipmikcs
ipmi_open_va: cannot open /dev/ipmi/kcs
SMBIOS Table is present at Physical Address 0x000eee60 ...
No IPMI Data Structure Found in SMBIOS Table,
 Continuing with KCS on Default Port 0x0ca2
BMC Initialized.
ipmidir Cmd NetFn Lun Sa  Data(0):
wait_for_OBF_set: max loop 5001
ipmidir Resp: status=0 cc Data(6): 05 01 00 35 10 1f
open_direct: status=0, KCS drv, ipmi=0
ipmi_open rc = 0 type = kcs
Driver type kcs, open rc = 0
ipmidir Cmd NetFn Lun Sa  Data(0):
wait_for_OBF_set: max loop 5001
ipmidir Resp: status=0 cc Data(6): 05 01 00 35 10 1f
BMC version 0.35, IPMI version 0.1
BMC manufacturer = ca0000 , product = 0493
ipmidir Cmd NetFn Lun Sa  Data(0):
wait_for_OBF_set: max loop 5001
ipmidir Resp: status=0 ccÁ Data(0):
ccode c1: Invalid Command
Cannot do ipmi_getpowerstate, ret = 193

Altough there still is something it doesn't like about my system, I at least get some output :P But IPMI Version 0.1? Is that a typo for 1.0? :)

root@buick:~# ipmiutil sel
ipmiutil ver 2.0
showsel: version 1.54
-- BMC version 0.35, IPMI version 0.1
SEL Ver 10 Support 2, Size = 488 records, Free space = 482 records
RecId Date/Time_______ Source_ Evt_Type SensNum Evt_detail - Trig
[Evt_data]
8001 01/01/70 01:00:07 BMC  05 Platform Security #33 - 03 [01 ff ff]
9001 09/30/07 22:54:23 0011 12 System Event #ef - e7 [01 ff ff]
a001 01/01/70 01:00:07 BMC  05 Platform Security #33 - 03 [01 ff ff]
b001 10/01/07 17:22:54 0011 12 System Event #ef - e7 [01 ff ff]
c001 01/01/70 01:00:07 BMC  05 Platform Security #33 - 03 [01 ff ff]
d001 10/01/07 17:35:21 0011 12 System Event #ef - e7 [01 ff ff]
showsel: completed successfully
root@buick:~# ipmiutil sensor
ipmiutil ver 2.0
sensor: version 1.59
-- BMC version 0.35, IPMI version 0.1
_ID_ SDR_Type_xx Sz Own Typ S_Num Sens_Description   Hex & Interp
Reading
0020 SDR Full 01 39 20 a f8 snum 04 Baseboard -12V   = 6a OK*  
2520000212.00 unspecified
4020 SDR Full 01 3b 20 a f8 snum 14 Basebrd PCI Temp = 9c OK*  
2360080184.00 unspecified
8020 SDR Full 01 3b 20 a f8 snum 15 Basebrd PXB Temp = a0 OK*  
2360082240.00 unspecified
c020 SDR Full 01 3b 20 a f8 snum 16 Processor 1 Temp = 9a OK*  
2360079156.00 unspecified
0021 SDR Full 01 3b 20 a f8 snum 17 Processor 2 Temp = 9b OK*  
2360079670.00 unspecified
4021 SDR Full 01 3b 20 a f8 snum 18 Processor 3 Temp = 9d OK*  
2360080698.00 unspecified
8021 SDR Full 01 3b 20 a f8 snum 19 Processor 4 Temp = 9c OK*  
2360080184.00 unspecified
c021 SDR Full 01 37 20 a f8 snum 01 Baseboard 5V     = bd OK*  
440012474.00 unspecified
0022 SDR Full 01 38 20 a f8 snum 02 Baseboard 12V    = aa OK*  
440000340.00 unspecified
4022 SDR Full 01 39 20 a f8 snum 03 Baseboard 3.3V   = df OK*  
440000446.00 unspecified
8022 SDR Full 01 39 20 a f8 snum 0c Baseboard 2.5V   = cb OK*  
440000406.00 unspecified
c022 SDR Full 01 39 20 a f8 snum 0b Baseboard 1.5V   = 9b OK*  
440000310.00 unspecified
0023 SDR Full 01 36 20 a f8 snum 13 SCSI-N Volt      = ca OK*  
440000404.00 unspecified
4023 SDR Full 01 3a 20 a f8 snum 1a Baseboard Fan 2  = 5e OK*  
80000188.00 unspecified
8023 SDR Full 01 3a 20 a f8 snum 1b Baseboard Fan 1  = 63 OK*  
80000198.00 unspecified
c023 SDR Full 01 3a 20 a f8 snum 1c Baseboard Fan 4  = 5b OK*  
80000182.00 unspecified
0024 SDR Full 01 3a 20 a f8 snum 1d Baseboard Fan 3  = 64 OK*  
80000200.00 unspecified
4024 SDR Full 01 3a 20 a f8 snum 1e Baseboard Fan 5  = 5a OK*  
80000180.00 unspecified
8024 SDR Full 01 3a 20 a f8 snum 1f Baseboard Fan 8  = 5c OK*  
80000184.00 unspecified
c024 SDR Full 01 3a 20 a f8 snum 20 Baseboard Fan 7  = 5f OK*  
80000190.00 unspecified
0025 SDR Full 01 3a 20 a f8 snum 21 Baseboard Fan 6  = 5a OK*  
80000180.00 unspecified
4025 SDR Full 01 39 20 a f8 snum 22 PwrShare Fan 1   = 57 OK*  
80000174.00 unspecified
8025 SDR Full 01 39 20 a f8 snum 23 PwrShare Fan 2   = 55 OK*  
80000170.00 unspecified
c025 SDR Full 01 39 20 a f8 snum 24 PwrShare Fan 3   = 56 OK*  
80000172.00 unspecified
0026 SDR Full 01 38 20 a f8 snum 2d PwrShare Temp    = 9f OK*  
2360081726.00 unspecified
4026 SDR Comp 02 25 20 a 49 snum 2c 3-4 L2 VID       = c0 c0 fb b7
Deassert
7026 SDR Comp 02 25 20 a 49 snum 2b 1-2 L2 VID       = c0 00 00 00 OK
a026 SDR Comp 02 22 20 a 49 snum 31 oc Term          = c0 00 00 00 OK
d026 SDR Comp 02 26 20 a 09 snum 27 ssor 1 Stat      = 80 80 00 00
Enabled
0027 SDR Comp 02 26 20 a 09 snum 28 ssor 2 Stat      = 80 80 00 00
Enabled
3027 SDR Comp 02 26 20 a 09 snum 29 ssor 3 Stat      = 80 80 00 00
Enabled
6027 SDR Comp 02 26 20 a 09 snum 2a ssor 4 Stat      = 80 80 00 00
Enabled
9027 SDR Comp 02 25 20 a 49 snum 25 edund Lost       = 00 80 00 00 OK
c027 SDR Comp 02 20 20 a 09 snum 26  Unit            = 00 00 00 00 
NotAvailable
f027 SDR Comp 02 24 20 a 49 snum 32 Post Code        = 00 00 00 00 
NotAvailable
2028 SDR Comp 02 26 20 a 49 snum 41 MP Password      = c0 00 00 00 OK
5028 SDR Comp 02 26 20 a 49 snum 33 ntrusion ID      = c1 00 00 00 OK
8028 SDR Comp 02 24 20 a 49 snum 36 rtPnl NMI        = 00 80 00 00 OK
b028 SDR Comp 02 22 20 a 49 snum 37 atchdog          = 00 80 00 00 OK
e028 SDR Comp 02 25 20 a 49 snum 34  Violation       = c0 00 00 00 OK
1029 SDR Comp 02 1f 20 a 43 snum 35 tate             = c0 00 00 00 OK
4029 SDR Comp 02 24 20 a 49 snum 2e are Sup 1        = 01 80 00 00 OK
7029 SDR Comp 02 24 20 a 49 snum 2f are Sup 2        = 01 80 00 00 OK
a029 SDR Comp 02 24 20 a 49 snum 30 are Sup 3        = 01 80 00 00 OK
d029 SDR Comp 02 1f 20 a 49 snum 38 tate             = c0 00 00 00 OK
002a SDR Comp 02 26 20 a 49 snum 0d Term Vlt A1      = c0 00 00 00 OK
302a SDR Comp 02 26 20 a 49 snum 0e Term Vlt A2      = c0 00 00 00 OK
602a SDR Comp 02 26 20 a 49 snum 0f Term Vlt A3      = c0 00 00 00 OK
902a SDR Comp 02 26 20 a 49 snum 10 Term Vlt B1      = c0 00 00 00 OK
c02a SDR Comp 02 26 20 a 49 snum 11 Term Vlt B2      = c0 00 00 00 OK
f02a SDR Comp 02 26 20 a 49 snum 12 Term Vlt B3      = c0 00 00 00 OK
202b SDR Comp 02 24 c0 a 49 snum 01 rv Status        = bd c0 00 00 OK
502b SDR Comp 02 26 c0 a 49 snum 07 rv Presence      = 00 00 00 00 
NotAvailable
802b SDR DLoc 10 1b dev: 20 00 00 05 00 bd Basbrd Mgmt Ctlr
a02b SDR DLoc 10 1a dev: ae 50 00 20 08 00 Processor 1 FRU
c02b SDR DLoc 10 1a dev: aa 50 00 20 08 00 Processor 2 FRU
e02b SDR DLoc 10 1a dev: a6 50 00 20 08 00 Processor 3 FRU
002c SDR DLoc 10 1a dev: a2 50 00 20 08 00 Processor 4 FRU
202c SDR DLoc 10 17 dev: d0 40 00 20 09 02 PwrShare FRU
402c SDR DLoc 10 18 dev: c0 00 00 02 00 85 Hot Swap Ctlr
602c SDR DLoc 10 1b dev: aa 40 00 20 09 02 Memory Board FRU
802c SDR DLoc 10 1b dev: d2 40 00 20 09 02 Pwr Supply 1 FRU
a02c SDR DLoc 10 1b dev: d4 40 00 20 09 02 Pwr Supply 2 FRU
c02c SDR DLoc 10 1b dev: d6 40 00 20 09 02 Pwr Supply 3 FRU
e02c SDR OEM  c0 10 manufS91443: 20 56 65 72 73 69 6f 6e 20 31 2e 33
37
sensor: completed successfully

Is there anything that can be done, so that the ipmi_si module will work

on this system? (And by extension, hopefully the ipmisensors module).

Last, the fan and temperature readings, aren't they supposed to be human

readable?

Thanks for your great help, all of you! Much appreciated!

Regards,
Stian

Quoted 10 lines · Stian Jordet
Quoted 6 lines · Andrew R

Stian,

I believe the port should be 0xCA2, not 0xCA0. According to the docs, it does have IPMI support, but it would be

only

Quoted 7 lines
Quoted 7 lines

local (no IPMI LAN).

Try modprobe ipmi_si type="kcs" addrs="0xca0"
or just modprobe ipmi_si

Quoted 6 lines

Unfortunately, neither of this works. I've tried

root@buick:~# modprobe ipmi_si
FATAL: Error inserting ipmi_si

(/lib/modules/2.6.21/kernel/drivers/char/ipmi/ipmi_si.ko): No such device

Quoted 4 lines
root@buick:~# modprobe ipmi_si type="kcs" ports="0xca0"
FATAL: Error inserting ipmi_si

(/lib/modules/2.6.21/kernel/drivers/char/ipmi/ipmi_si.ko): No such device

Quoted 4 lines
root@buick:~# modprobe ipmi_si type="kcs" ports="0xca2"
FATAL: Error inserting ipmi_si

(/lib/modules/2.6.21/kernel/drivers/char/ipmi/ipmi_si.ko): No such device

Quoted 4 lines

I don't really know if there is more to try. But as you say, the board should support IPMI, so I don't really know why it doesn't seem to. Hmm.

Quoted 23 lines

I guess it was worth a try :)

Thanks to everyone who replied :)

Regards,
Stian

Quoted 13 lines

-----Original Message-----
From: Stian Jordet [mailto:[email protected]]
Sent: Monday, October 01, 2007 3:58 AM
To: [email protected]
Cc: [email protected]; Cress, Andrew R; [email protected]
Subject: IPMI and ipmisensors on an Intel SC450NX

Hi,

Sorry, this is going to be long and probably cross-posted too many places, but it isn't easy to know where to direct this! The persons

in

Quoted 3 lines
Quoted 3 lines

the CC-field I have found after searching on the net, hoping any of

them

Quoted 5 lines
Quoted 5 lines

have some bright ideas!

I've used the weekend (again!) trying to get sensors working on my

good

Quoted 8 lines
Quoted 8 lines

old Intel SC450NX server, with no luck.

First of all, I'm not even sure what IPMI version this system has. I found this mail:

http://sourceforge.net/mailarchive/message.php?msg_idtA9A71929931E4096

Quoted 5 lines
Quoted 5 lines

7CA9F27B1D7396014D46A2%40hdsmsx401.amr.corp.intel.com

where an Intel employee thinks it is IPMI 1.0, and either way it

should

Quoted 3 lines
Quoted 3 lines

work with the ipmi_imb emulation driver, which supposedly uses the

same

Quoted 3 lines
Quoted 3 lines

interface as the original Intel Server Manager uses. I'm still afraid

it

Quoted 12 lines
Quoted 12 lines

is IPMI 0.9 I have.

I have updated both BIOS, BMC and FRUSDR (whatever that is) to the latest available versions. dmidecode doesn't have any traces of ipmi. But lm-sensors sensors-detect reports this:

[...]
Probing for `IPMI BMC KCS' at 0xca0... Success!
(confidence 4, driver `ipmisensors')
Probing for `IPMI BMC SMIC' at 0xca8... No
[...]

Quoted 4 lines
Quoted 4 lines

which at least gave me some hope. The ipmisensors page says I need to use ipmi_si before loading the ipmisensors-module. I then tried

loading

Quoted 28 lines
Quoted 28 lines

some modules...

root@buick:~# modprobe ipmi_si
IPMI System Interface driver.
ipmi_si: Unable to find any System Interface(s)
FATAL: Error inserting ipmi_si
(/lib/modules/2.6.21/kernel/drivers/char/ipmi/ipmi_si.ko): No such
device
root@buick:~# modprobe ipmi_si type="kcs" addrs="0xca0"
IPMI System Interface driver.
ipmi_si: Trying hardcoded-specified kcs state machine at mem address
0xca0, slave address 0x0, irq 0
Could not set up I/O space
ipmi_si: Unable to find any System Interface(s)
FATAL: Error inserting ipmi_si
(/lib/modules/2.6.21/kernel/drivers/char/ipmi/ipmi_si.ko): No such
device

After applying ipmi_emu.diff from http://openipmi.sf.net, I tried the earlier promised ipmi_imb driver:

root@buick:~# modprobe ipmi_imb
ipmi: can't create user -22
FATAL: Error inserting ipmi_imb
(/lib/modules/2.6.21/kernel/drivers/char/ipmi/ipmi_imb.ko): Invalid
argument
Quoted 3 lines
Quoted 3 lines

Not looking that good... What does "can't create user -22" mean? I

found

Quoted 25 lines
Quoted 25 lines

this in my dmesg:

pnp: 00:01: ioport range 0xca0-0xca7 has been reserved

Which gave me hope that pnp was "locking" the ipmi addresses. Booted with pnpbios=no and pnpacpi=off and even acpi=off, no difference.

I ran the FRUSDR utility from a boot disk, and got this output:

a:\>frusdr /p /d fru

FRU & SDR Load Utility Version 3.4

FRU IMBDEVICE on bus FFh, IMB address 20h, LUN 00

Display Header Area
Common Header Area (Version 1, Length 8)

    Internal Area Offset    = 01h
    Chassis Area Offset     = 1Ah
    Board Area Offset       = 1Eh
    Product Area Offset     = 26h

Multirecord Area Offset = 00h
PAD = 00h
CHECKSUM = A0h

Quoted 3 lines
Quoted 3 lines

Don't know what any of this means, except it kinda says it does have

a

Quoted 8 lines
Quoted 8 lines

"imbdevice" (Which I had some hopes the ipmi_imb driver would support...)

Ok, I found this http://bubble.nsys.by/projects/ipmi/ and this
http://archives.andrew.net.au/lm-sensors/msg29983.html on the web, showing at least two attempts trying to get bmcsensors working with

IPMI

Quoted 4 lines
Quoted 4 lines

0.9 (if that's what my system has), but I haven't found any sign of success or not. I am especially curious as to whether Yani's attempt

to

Quoted 7 lines
Quoted 7 lines

make bmcsensors working with IPMI 0.9 will have any effect now that ipmisensors seems to use ipmi_si and OpenIPMI does not suppoert IPMI 0.9...

Anyone have any bright ideas where to look next? Or am I really out

of

Quoted 12 lines
Quoted 10 lines

luck?

Thanks.

Regards,
Stian

------------------------------------------------------------------------
-

Quoted 11 lines

This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Openipmi-developer mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openipmi-developer

Quoted 12 lines

------------------------------------------------------------------------
-
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Openipmi-developer mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openipmi-developer

Quoted 9 lines

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Openipmi-developer mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openipmi-developer

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

#4 lore raw
In reply to Stian Jordet
Quoted 7 lines · Corey Minyard

There is a big difference between the driver, which just passes messages around mostly, and the sensor handling, which requires interpretation of SDRs and things like that. The driver should work with a 0.9 system, but the OpenIPMI library will not, for instance.

I'd be willing to work on this (the driver part), but I'll need access to the system.

That would be truly awesome!

I'll send you the details in a private mail. I have a (small) hope that if ipmi_si loads, perhaps the ipmisensors module will read the sensors in human readable way...

Anyway, I hope I'll find out :)

Thanks again, everyone!

-Stian

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

#5 lore raw
In reply to Stian Jordet

Well, I lied, there was no 0.9 support in the driver, there was one thing that had to be handled a little differently.

However, Stian gave me access to the system, and I added support. Patch is attached, I will work on getting it into the 2.6.24.

Thanks, Stian, for access to the system. Patch is in your sources and currently running, but not installed in /lib/modules.

-corey

Quoted 13 lines · Stian Jordet
Quoted 4 lines · Corey Minyard

There is a big difference between the driver, which just passes messages around mostly, and the sensor handling, which requires interpretation of SDRs and things like that. The driver should work with a 0.9 system, but the OpenIPMI library will not, for instance.

I'd be willing to work on this (the driver part), but I'll need access to the system.

That would be truly awesome!

I'll send you the details in a private mail. I have a (small) hope that if ipmi_si loads, perhaps the ipmisensors module will read the sensors in human readable way...

Quoted 6 lines

Anyway, I hope I'll find out :)

Thanks again, everyone!

-Stian

Add support for IPMI 0.9 systems to the IPMI driver. Just handle a shorter get device ID command with less information.

drivers/char/ipmi/ipmi_si_intf.c +2 -13
Index: linux-2.6.22/drivers/char/ipmi/ipmi_si_intf.c
===================================================================
@@ -2378,20 +2378,9 @@ static int try_get_dev_id(struct smi_inf
 	/* Otherwise, we got some data. */
 	resp_len = smi_info->handlers->get_result(smi_info->si_sm,
 						  resp, IPMI_MAX_MSG_LENGTH);
-	if (resp_len < 14) {
-		/* That's odd, it should be longer. */
-		rv = -EINVAL;
-		goto out;
-	}
-
-	if ((resp[1] != IPMI_GET_DEVICE_ID_CMD) || (resp[2] != 0)) {
-		/* That's odd, it shouldn't be able to fail. */
-		rv = -EINVAL;
-		goto out;
-	}
 
-	/* Record info from the get device id, in case we need it. */
-	ipmi_demangle_device_id(resp+3, resp_len-3, &smi_info->device_id);
+	/* Check and record info from the get device id, in case we need it. */
+	rv = ipmi_demangle_device_id(resp, resp_len, &smi_info->device_id);
 
  out:
 	kfree(resp);
include/linux/ipmi_smi.h +25 -5
Index: linux-2.6.22/include/linux/ipmi_smi.h
===================================================================
@@ -151,23 +151,43 @@ struct ipmi_device_id {
    byte from the get device id response after the completion code.
    The caller is responsible for making sure the length is at least
    11 and the command completed without error. */
-static inline void ipmi_demangle_device_id(const unsigned char *data,
-					   unsigned int  data_len,
-					   struct ipmi_device_id *id)
+static inline int ipmi_demangle_device_id(const unsigned char *data,
+					  unsigned int data_len,
+					  struct ipmi_device_id *id)
 {
+	if (data_len < 9)
+		return -EINVAL;
+	if (data[0] != IPMI_NETFN_APP_RESPONSE << 2 ||
+	    data[1] != IPMI_GET_DEVICE_ID_CMD)
+		/* Strange, didn't get the response we expected. */
+		return -EINVAL;
+	if (data[2] != 0)
+		/* That's odd, it shouldn't be able to fail. */
+		return -EINVAL;
+
+	data += 3;
+	data_len -= 3;
 	id->device_id = data[0];
 	id->device_revision = data[1];
 	id->firmware_revision_1 = data[2];
 	id->firmware_revision_2 = data[3];
 	id->ipmi_version = data[4];
 	id->additional_device_support = data[5];
-	id->manufacturer_id = data[6] | (data[7] << 8) | (data[8] << 16);
-	id->product_id = data[9] | (data[10] << 8);
+	if (data_len >= 6) {
+		id->manufacturer_id = (data[6] | (data[7] << 8) |
+				       (data[8] << 16));
+		id->product_id = data[9] | (data[10] << 8);
+	} else {
+		id->manufacturer_id = 0;
+		id->product_id = 0;
+	}
 	if (data_len >= 15) {
 		memcpy(id->aux_firmware_revision, data+11, 4);
 		id->aux_firmware_revision_set = 1;
 	} else
 		id->aux_firmware_revision_set = 0;
+
+	return 0;
 }
 
 /* Add a low-level interface to the IPMI driver.  Note that if the

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

#6 lore raw
In reply to Stian Jordet
Quoted 8 lines · Corey Minyard

Well, I lied, there was no 0.9 support in the driver, there was one thing that had to be handled a little differently.

However, Stian gave me access to the system, and I added support. Patch is attached, I will work on getting it into the 2.6.24.

Thanks, Stian, for access to the system. Patch is in your sources and currently running, but not installed in /lib/modules.

Great! Thanks Corey, works perfectly. The ipmisensors module does indeed work, although there seems to be some bugs (while 'ipmiutil sensor' seem to get it right, so it should not be impossible!). But I'll take that with the ipmisensors author (if he someday replies to me :)

Unless of course I can persuade you into making OpenIPMI IPMI 0.9 compatible? Just kidding :)

Thanks for superb help and everything! You guys rock!

*impressed*

Regards,
Stian

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

#7 lore raw
In reply to Stian Jordet
Quoted 12 lines · Stian Jordet
Quoted 9 lines · Corey Minyard

Well, I lied, there was no 0.9 support in the driver, there was one thing that had to be handled a little differently.

However, Stian gave me access to the system, and I added support. Patch is attached, I will work on getting it into the 2.6.24.

Thanks, Stian, for access to the system. Patch is in your sources and currently running, but not installed in /lib/modules.

Quoted 8 lines

Great! Thanks Corey, works perfectly. The ipmisensors module does indeed work, although there seems to be some bugs (while 'ipmiutil sensor' seem to get it right, so it should not be impossible!). But I'll take that with the ipmisensors author (if he someday replies to me :)

Unless of course I can persuade you into making OpenIPMI IPMI 0.9 compatible? Just kidding :)

I actually have no idea how hard that would be, but I'd be willing to accept patches :). Glad I could help with this.

-corey

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