Hi Corey,

Thanks for your input. Yeah, the value is always the same: netfn 2b cmd
1c. I tried to dump out the whole buffer,  the next byte isn't 1 but is
the response data (device id) that started with completion code and
follow by correct data. Obviously, the BMC has response the data but
some how the netfn and cmd isn't matched. I tried to put some delay on
it. But seems not help. 

Thanks,
YM 

-----Original Message-----
From: Corey Minyard [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 12, 2006 11:54 PM
To: Goh, Yen Mei
Cc: [email protected]
Subject: Re: [Openipmi-developer] Get intermitent failure for IPMI raw
command

Goh, Yen Mei wrote:
> Oic. Thanks for your information. I think netfn 2b cmd 1c is the
garbage
> as our code didn't have such netfn and cmd returned. Thus, I would
> suspect the timing of the bmc/os/driver didn't match and caused it... 
> BTW, I looked into the mv3.1 driver, it did checked for this incorrect
> response as well, wonder why with the same bmc code but no issue on
> mv3.1. Timing ???  :) 
>   
It may be timing.  The newer drivers will have the kipmid, which will
query the interface a lot faster than before.  But that still doesn't
mean the problem is in the driver.

But is the value always netfn 2b cmd 1c?  Or does it vary?  I'm
suspicious if it doesn't vary because 1c is the value that should be in
the netfn field (1c >> 2 == 7).  If you print the message byte after the
command, it's probably '1', which is what the command is supposed to
be.  So I'm guessing that a byte is getting inserted into the message
before the actual message.

My guess is that the BMC is reporting that it is ready a little before
the data is actually in the register and ready to read.  You can perhaps
test this out by doing a small delay in read_next_byte() in
ipmi_kcs_sm.c.  Either that or there is a race condition in the BMC
itself.

And I really doubt this is the driver.  The driver has been well tested
in this area; it runs on many many systems without problems.

And the problem that you referenced on ipmitool-devel is clearly a BMC
problem.  It's just returning the wrong data.

-Corey

> Thanks,
> YM
>
> -----Original Message-----
> From: Corey Minyard [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, October 12, 2006 9:04 PM
> To: Goh, Yen Mei
> Cc: [email protected]
> Subject: Re: [Openipmi-developer] Get intermitent failure for IPMI raw
> command
>
> Goh, Yen Mei wrote:
>   
>> Thanks. Yes, the V13.12 driver got install. 
>> Any idea on why this problem could happen and how to resolve it?
Heard
>> from Corey that there is a similar problem seen before as well. Is it
>> possible to have MV3.1 driver installed in RHEL4? Thanks a lot for
>>     
> help.
>   
>> Issue:
>> Got below error while issuing getdeviceid continuously. It happened
>> intermittently and don't see it in MV3.1 Driver.
>>
>> Oct 11 10:28:44 localhost kernel: IPMI message handler: BMC returned
>> incorrect response, expected netfn 7 cmd 1, got netfn 2b cmd 1c
>>   
>>     
> Depending on the version of MV3.1, that log may not have even been
> present.  If the file include/linux/lsppatchlevel.h is not present in
> the kernel sources, then it is probably an old version without this
> check.
>
> I hunted down the scenario I was thinking about, and I was somewhat
> incorrect.  That problem was the reason this log exists now.  It was a
> BMC that was actually returning an incorrect response and the driver
was
> misbehaving, so I added this log and some additional checks.  At this
> point I would suspect the BMC is doing something wrong.
>
> -Corey
>
>
------------------------------------------------------------------------
-
> Using Tomcat but need to do more? Need to support web services,
security?
> Get stuff done quickly with pre-integrated technology to make your job
easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Openipmi-developer mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openipmi-developer
>   

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Openipmi-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openipmi-developer

Reply via email to