Skip to contentSkip to conversation

lm_sensors ticket #1287

DISCUSSION Richard Au 2 participants 3 messages May 19, 2005

lore
Share & tools
lore

Richard Au

author
#0 lore raw

Hi,

As you requested, I changed "0xca" to "0xc9" at line 668 in bmcsensors.c (while leaving in #define DEBUG 1). The relevant output of dmesg is now:

###############################################################
i2c-core.o: i2c core module version 2.7.0 (20021208) i2c-i801.o version 2.7.0 (20021208)
i2c-i801.o: I801 bus detected and initialized i2c-dev.o: i2c /dev entries driver module version 2.7.0 (20021208) i2c-dev.o: Registered 'SMBus I801 adapter at 1100' as minor 0 i2c-proc.o version 2.7.0 (20021208)
ipmi: message handler initialized
ipmi_kcs: Acquiring BMC @ port=0xca2
i2c-isa.o version 2.7.0 (20021208)
i2c-dev.o: Registered 'ISA main adapter' as minor 1 i2c-isa.o: ISA bus access for i2c modules initialized. i2c-proc.o version 2.7.0 (20021208)
eeprom.o version 2.7.0 (20021208)
i2c-ipmi.o version 2.7.0 (20021208)
i2c-dev.o: Registered 'IPMI adapter' as minor 2 i2c-ipmi.o: Registered IPMI interface 0 with version 1.0 i2c-ipmi.o: BMC access for i2c modules initialized. bmcsensors.o version 2.7.0 (20021208)
bmcsensors.o: Registered client, scanning for sensors... bmcsensors.o: Send BMC msg, cmd: 0x22
bmcsensors.o: Got first resid 0x0001
bmcsensors.o: Get SDR 0x0 0x0 0x0
bmcsensors.o: Send BMC msg, cmd: 0x23
bmcsensors.o: Reducing SDR request size to 33 bmcsensors.o: Get SDR 0x0 0x0 0x0
bmcsensors.o: Send BMC msg, cmd: 0x23
bmcsensors.o: Reducing SDR request size to 16 bmcsensors.o: Get SDR 0x0 0x0 0x0
bmcsensors.o: Send BMC msg, cmd: 0x23
bmcsensors.o: Reducing SDR request size to 8 bmcsensors.o: Get SDR 0x0 0x0 0x0
bmcsensors.o: Send BMC msg, cmd: 0x23
bmcsensors.o: IPMI buffers too small, giving up
###############################################################

Four your reference, here is the original dmesg output:

###############################################################
ipmi: message handler initialized
ipmi_kcs: Acquiring BMC @ port=0xca2
i2c-isa.o version 2.6.5 (20020915)
i2c-dev.o: Registered ?ISA main adapter? as minor 1 i2c-isa.o: ISA bus access for i2c modules initialized. i2c-proc.o version 2.7.0 (20021208)
eeprom.o version 2.6.5 (20020915)
i2c-ipmi.o version 2.7.0 (20021208)
i2c-dev.o: Registered ?IPMI adapter? as minor 2 i2c-ipmi.o: Registered IPMI interface 0 with version 1.0 i2c-ipmi.o: BMC access for i2c modules initialized. bmcsensors.o version 2.7.0 (20021208)
bmcsensors.o: Registered client, scanning for sensors... bmcsensors.o: Send BMC msg, cmd: 0x22
bmcsensors.o: Got first resid 0x0001
bmcsensors.o: Get SDR 0x0 0x0 0x0
bmcsensors.o: Send BMC msg, cmd: 0x23
bmcsensors.o: Error 0xc9 on cmd 0xa/0x23; state = 2; probably fatal.
###############################################################

Regards,
Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20030616/7de45177/attachment.html

#1 lore raw

that's not good.
I'm stumped.
I'll email Corey Minyard and ask if he knows anything about the Winbond BMC.

Quoted 67 lines · Richard Au

Hi,

As you requested, I changed "0xca" to "0xc9" at line 668 in bmcsensors.c (while leaving in #define DEBUG 1). The relevant output of dmesg is now:

###############################################################
i2c-core.o: i2c core module version 2.7.0 (20021208) i2c-i801.o version 2.7.0 (20021208)
i2c-i801.o: I801 bus detected and initialized i2c-dev.o: i2c /dev entries driver module version 2.7.0 (20021208) i2c-dev.o: Registered 'SMBus I801 adapter at 1100' as minor 0 i2c-proc.o version 2.7.0 (20021208)
ipmi: message handler initialized
ipmi_kcs: Acquiring BMC @ port=0xca2
i2c-isa.o version 2.7.0 (20021208)
i2c-dev.o: Registered 'ISA main adapter' as minor 1 i2c-isa.o: ISA bus access for i2c modules initialized. i2c-proc.o version 2.7.0 (20021208)
eeprom.o version 2.7.0 (20021208)
i2c-ipmi.o version 2.7.0 (20021208)
i2c-dev.o: Registered 'IPMI adapter' as minor 2 i2c-ipmi.o: Registered IPMI interface 0 with version 1.0 i2c-ipmi.o: BMC access for i2c modules initialized. bmcsensors.o version 2.7.0 (20021208)
bmcsensors.o: Registered client, scanning for sensors... bmcsensors.o: Send BMC msg, cmd: 0x22
bmcsensors.o: Got first resid 0x0001
bmcsensors.o: Get SDR 0x0 0x0 0x0
bmcsensors.o: Send BMC msg, cmd: 0x23
bmcsensors.o: Reducing SDR request size to 33 bmcsensors.o: Get SDR 0x0 0x0 0x0
bmcsensors.o: Send BMC msg, cmd: 0x23
bmcsensors.o: Reducing SDR request size to 16 bmcsensors.o: Get SDR 0x0 0x0 0x0
bmcsensors.o: Send BMC msg, cmd: 0x23
bmcsensors.o: Reducing SDR request size to 8 bmcsensors.o: Get SDR 0x0 0x0 0x0
bmcsensors.o: Send BMC msg, cmd: 0x23
bmcsensors.o: IPMI buffers too small, giving up
###############################################################

Four your reference, here is the original dmesg output:

###############################################################
ipmi: message handler initialized
ipmi_kcs: Acquiring BMC @ port=0xca2
i2c-isa.o version 2.6.5 (20020915)
i2c-dev.o: Registered ?ISA main adapter? as minor 1 i2c-isa.o: ISA bus access for i2c modules initialized. i2c-proc.o version 2.7.0 (20021208)
eeprom.o version 2.6.5 (20020915)
i2c-ipmi.o version 2.7.0 (20021208)
i2c-dev.o: Registered ?IPMI adapter? as minor 2 i2c-ipmi.o: Registered IPMI interface 0 with version 1.0 i2c-ipmi.o: BMC access for i2c modules initialized. bmcsensors.o version 2.7.0 (20021208)
bmcsensors.o: Registered client, scanning for sensors... bmcsensors.o: Send BMC msg, cmd: 0x22
bmcsensors.o: Got first resid 0x0001
bmcsensors.o: Get SDR 0x0 0x0 0x0
bmcsensors.o: Send BMC msg, cmd: 0x23
bmcsensors.o: Error 0xc9 on cmd 0xa/0x23; state = 2; probably fatal.
###############################################################

Regards,
Richard

#2 lore raw
In reply to Richard Au

As far as I know there is no SMIC driver in Open IPMI yet. You may wish to ask Corey Minyard if there is one coming soon. Without it you are stuck.

Quoted 109 lines · Tum Au

Hi Mark,

I noticed that when running sensors-detect, I get a message detecting IPMI BMC SMIC:

Probing for `IPMI BMC KCS'
Trying address 0x0ca0... Success!
Probing for `IPMI BMC SMIC'
Trying address 0x0ca8... Success!

I found out that the firmware I have for the Winbond BMC may not fully support KCS, and the preferred means of accessing the BMC are via SMIC. Is this a possible workaround to my problem below (previous emails attached)? If so, how can I go about testing it?

Thank you!

Regards,
Richard Au

----- Original Message -----
From: "Mark D. Studebaker " <[email protected]>
To: "Richard Au" <[email protected]>
Cc: <[email protected]>
Sent: Monday, June 16, 2003 7:05 PM
Subject: Re: lm_sensors ticket #1287

Quoted 3 lines

that's not good.
I'm stumped.
I'll email Corey Minyard and ask if he knows anything about the Winbond

BMC.

Quoted 7 lines
Quoted 4 lines · Richard Au

Hi,

As you requested, I changed "0xca" to "0xc9" at line 668 in bmcsensors.c (while leaving in #define DEBUG 1). The relevant output of dmesg is

now:

Quoted 63 lines
Quoted 61 lines

###############################################################
i2c-core.o: i2c core module version 2.7.0 (20021208) i2c-i801.o version 2.7.0 (20021208)
i2c-i801.o: I801 bus detected and initialized i2c-dev.o: i2c /dev entries driver module version 2.7.0 (20021208) i2c-dev.o: Registered 'SMBus I801 adapter at 1100' as minor 0 i2c-proc.o version 2.7.0 (20021208)
ipmi: message handler initialized
ipmi_kcs: Acquiring BMC @ port=0xca2
i2c-isa.o version 2.7.0 (20021208)
i2c-dev.o: Registered 'ISA main adapter' as minor 1 i2c-isa.o: ISA bus access for i2c modules initialized. i2c-proc.o version 2.7.0 (20021208)
eeprom.o version 2.7.0 (20021208)
i2c-ipmi.o version 2.7.0 (20021208)
i2c-dev.o: Registered 'IPMI adapter' as minor 2 i2c-ipmi.o: Registered IPMI interface 0 with version 1.0 i2c-ipmi.o: BMC access for i2c modules initialized. bmcsensors.o version 2.7.0 (20021208)
bmcsensors.o: Registered client, scanning for sensors... bmcsensors.o: Send BMC msg, cmd: 0x22
bmcsensors.o: Got first resid 0x0001
bmcsensors.o: Get SDR 0x0 0x0 0x0
bmcsensors.o: Send BMC msg, cmd: 0x23
bmcsensors.o: Reducing SDR request size to 33 bmcsensors.o: Get SDR 0x0 0x0 0x0
bmcsensors.o: Send BMC msg, cmd: 0x23
bmcsensors.o: Reducing SDR request size to 16 bmcsensors.o: Get SDR 0x0 0x0 0x0
bmcsensors.o: Send BMC msg, cmd: 0x23
bmcsensors.o: Reducing SDR request size to 8 bmcsensors.o: Get SDR 0x0 0x0 0x0
bmcsensors.o: Send BMC msg, cmd: 0x23
bmcsensors.o: IPMI buffers too small, giving up
###############################################################

Four your reference, here is the original dmesg output:

###############################################################
ipmi: message handler initialized
ipmi_kcs: Acquiring BMC @ port=0xca2
i2c-isa.o version 2.6.5 (20020915)
i2c-dev.o: Registered ?ISA main adapter? as minor 1 i2c-isa.o: ISA bus access for i2c modules initialized. i2c-proc.o version 2.7.0 (20021208)
eeprom.o version 2.6.5 (20020915)
i2c-ipmi.o version 2.7.0 (20021208)
i2c-dev.o: Registered ?IPMI adapter? as minor 2 i2c-ipmi.o: Registered IPMI interface 0 with version 1.0 i2c-ipmi.o: BMC access for i2c modules initialized. bmcsensors.o version 2.7.0 (20021208)
bmcsensors.o: Registered client, scanning for sensors... bmcsensors.o: Send BMC msg, cmd: 0x22
bmcsensors.o: Got first resid 0x0001
bmcsensors.o: Get SDR 0x0 0x0 0x0
bmcsensors.o: Send BMC msg, cmd: 0x23
bmcsensors.o: Error 0xc9 on cmd 0xa/0x23; state = 2; probably fatal.
###############################################################

Regards,
Richard