On 02/05/2010 04:08 PM, Corey Minyard wrote:
> Jan Safranek wrote:
>> On 02/04/2010 09:06 PM, Corey Minyard wrote:
>>> Jan Safranek wrote:
>>>> On 02/04/2010 03:41 PM, Corey Minyard wrote:
>>>>> IIRC, the address in question is 0xc2, and the from below the
>>>>> address of
>>>>> the local card is 0xc2. So if the SDR has the wrong address, it's not
>>>>> going to work.
>>>>
>>>> It could work if ipmitool knows the local address. My question is, how
>>>> to get it from /dev/ipmi? Both IPMICTL_GET_MY_ADDRESS_CMD and
>>>> IPMICTL_GET_MY_CHANNEL_ADDRESS_CMD (with channel 0xf) return 0x20. I
>>>> want 0xc2... Do I really have to parse /dev/ipmi/*/params?
>>> You need to use channel 0, not channel 0xf. a slave address is
>>> meaningless with channel 0xf. I just tested it and it works fine for me
>>> with IPMICTL_GET_MY_ADDRESS_CMD and IPMICTL_GET_MY_CHANNEL_ADDRESS with
>>> channel 0.
>>
>> IPMICTL_GET_MY_CHANNEL_ADDRESS_CMD with channel 0 returns 0, not 0xc2
>> :(. For various channels I get the same values as in /proc/ipmi/0/ipmb:
>> 0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
>>
>> Any idea what can be wrong/how to debug it? Can it be a bug in kernel?
>> Thanks in advance!
>>
>> Jan
>>
> But /dev/ipmi/0/params says 0xc2 as the address? That is bizarre.
>
> The slave address value from /proc/ipmi/*/params is what is passed
> directly in the ipmi_register_smi(), which is directly set as the slave
> address for channel 0. So unless something calls the set address ioctl,
> I don't see how that could be broken. Is it possible to boot and not run
> any IPMI programs? Or, probably easier, the add/remove hotmod interface
> I described in an earlier email could be used to remove then re-add the
> interface. Is it still wrong then?
>
> Also, what kernel are you using? Is it unmodified from k.org?

No, as I wrote, it's RHEL 5.4 - 2.6.18 + lot of patches. Today I've 
tested Fedora 12 flavor of 2.6.31.5 and I get correct data with 
IPMICTL_GET_MY_ADDRESS_CMD. That means there must something wrong in 
RHEL kernel... I'll pass it to appropriate guys.

Thanks a lot for your help!

Jan

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Ipmitool-devel mailing list
Ipmitool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipmitool-devel

Reply via email to