Why can't /dev/ipmi0 on host be created stably

xiuzhi 1450335857 at qq.com
Thu Jan 17 14:23:57 AEDT 2019


Hi Oskar,
>Hi>
>I'm not sure what CA3 is, I'm afraid. Can you explain? Or do you have a reference?
 The CA3 is the  SM BIOS Base Address of ipmi-kcs /dev/kcs3, please see the Table C1-3, Byte-aligned I/O Mapped Register Address examples in Appendix C1 - Locating IPMI System Interfaces via SM BIOS Tables of Intelligent Platform Management Interface Specification V2.0.


>AMI BIOS can be configured to try a number of times to talk with the >BMC. To check whether it's just a timing issue, reboot the host once the >BMC is up and running. 


>Is that the case for you, too?
I will try to config the AMI BIOS and test again.
In my case, the CA3 value would not change from 0x04 to 0x00 until shut down the power and wait more than 40 seconds ,then reboot . 
 

>Also, I'm not sure whether the problem I observed is even applicable to 
KCS.
>Oskar.
Best,
Xiuzhi




On Wed, Jan 16, 2019, 9:27 PM xiuzhi <1450335857 at qq.com wrote:

Hi Oskar,
   I asked the BIOS developer, he said the BIOS read the io CA3 firstly, if it is not 0x00, the BIOS will think the ipmi doesn't exist.
  I input the command " mm -io CA3" in BIOS, it return the 0x04 every times, so it's pointless for BIOS to wait the BMC answer.
  I user ipmi-kcs mode.


Best,
xiuzhi
Hi Oskar,
   I use opensource UEFI BIOS and AMI BIOS to test. I am able to modify the code of UEFI BIOS. 
   How should I change the BIOS code to ensure the synchronization between the two sides so that I can tell my BIOS team to modify it?  


Best,
xiuzhi   




------------------ Original ------------------
From:  "Oskar Senft";<osk at google.com>;
Send time: Wednesday, Jan 16, 2019 10:10 PM
To: "xiuzhi"<1450335857 at qq.com>; 
Cc: "openbmc"<openbmc at lists.ozlabs.org>; 
Subject:  Re: Why can't /dev/ipmi0 on host be created stably



Hi Xiuzhi

The following observation may or may not be related to your problem:


We're using AMI BIOS with OpenBMC using the IPMI BT mode. I found that in certain cases the host and BMC can get "out of sync" wrt. what the BMC put in the message queue and what the BIOS expects. The problem can be caused by the BMC responding "slowly" to an IPMI request from the BIOS where the BIOS times out before the BMC responds. The BMC then responds before the BIOS issues the next request, which causes the BIOS to read the previous response as the response for the latest request.


This has resulted in all sorts of weird behavior for us, incl. the BIOS not "detecting" the BMC and therefore not exposing it in the SMBIOS tables, which - in our case - is the configuration source for the Linux IPMI driver.


I hope this helps?


What BIOS are you using? Are you able to make changes to the BIOS code?


Oskar.


On Tue, Jan 15, 2019 at 9:33 PM xiuzhi <1450335857 at qq.com> wrote:

Hi All,
   I am testing the bmc ipmi-kcs reliability.
   The /dev/ipmi0 on host will not  be available  in several consecutive bmc reboot test.  The CA3 value is 0x04 which can be got by the command "mm -io ca3" on host bios shell when failing to create the ipmi0  .
The CA3 value 0x04 means that SMS_ATN is set to 1, which meas:
"Set to 1 when the BMC has one or more messages in the Receive Message Queue, or when a watchdog timer pre-timeout, or event message buffer full condition exists [2] . OEMs may also elect to set this flag is one of the OEM 1, 2,or 3 flags from the Get Message Flags command becomes set. R/O This bit is related to indicating when the BMC is the source of a system interrupt. Refer to sections 9.12, KCS Communication and Non-communication , 9.13, Physical Interrupt Line Sharing, and 9.14, Additional Specifications for the KCS interface for additional information on the use and requirements for the SMS_ATN bit."

 see the Table 9-, KCS Interface Status Register Bits in section 9.7 of  Intelligent Platform ManageBment Interface Specification .
   What  causes this problem?
 Best,
Xiuzhi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20190117/765956ee/attachment-0001.html>


More information about the openbmc mailing list