Skip to contentSkip to conversation

openbmc Digest, Vol 86, Issue 26

DISCUSSION Erhan Y. 1 participant 1 message Oct 11, 2022 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Erhan Y.

author
#1 lore raw

Hi,- We can use UEFI or user space tools to send the SMBIOS tables to BMC. Isn't there any pre-ready tool for Intel based servers?- kcs3 is already defined in our DTS too.
- Serial port redirection (vUART) is working. What else we can do to test if LPC between host and BMC is working?- Inband IPMI is not working with KCS- We defined /usr/share/ipmi-providers/channel_config.json but nothing has changed

HOST dmidecode
Handle 0x0013,DMI type 38, 18 bytes

IPMI DeviceInformation

       Interface Type: KCS (Keyboard Control Style)

       Specification Version: 2.0

       I2C Slave Address: 0x10

       NV Storage Device: Not Present

       Base Address: 0x0000000000000CA2 (I/O)

       Register Spacing: Successive Byte Boundaries

HOST ipmi_sidriver:

[   7.803541] ipmi_si: Trying SMBIOS-specified kcs state machine at i/o address0xca2, slave address 0x20, irq 0 [   7.803550] ipmi_si dmi-ipmi-si.0: Interface detection failed

BMC LOG:root@Test-Server:~# journalctl -xe | grep ipmi░░ Subject: A start job for unit phosphor-ipmi-host.service has begun execution░░ A start job for unit phosphor-ipmi-host.service has begun execution.Jan 01 00:01:36 Test-Server ipmid[402]: JSON file not foundJan 01 00:01:49 Test-Server ipmid[402]: System event sensor not foundJan 01 00:01:49 Test-Server ipmid[402]: The operation failed internally.Jan 01 00:01:49 Test-Server ipmid[402]: Failed to convert /xyz/openbmc_project/logging/entry/1 to SEL: xyz.openbmc_project.Common.Error.InternalFailure: The operation failed internally.Jan 01 00:01:49 Test-Server ipmid[402]: System event sensor not foundJan 01 00:01:49 Test-Server ipmid[402]: The operation failed internally.Jan 01 00:01:50 Test-Server ipmid[402]: Registering OEM:[0X00C2CF], Cmd:[0X04] for Manual Zone Control░░ Subject: A start job for unit phosphor-ipmi-host.service has finished successfully░░ A start job for unit phosphor-ipmi-host.service has finished successfully.░░ Subject: A start job for unit [email protected] has begun execution░░ A start job for unit [email protected] has begun execution.░░ Subject: A start job for unit [email protected] has finished successfully░░ A start job for unit [email protected] has finished successfully.Jan 01 00:01:51 Test-Server ipmid[402]: Loading whitelist filter░░ Subject: A start job for unit [email protected] has finished successfully░░ A start job for unit [email protected] has finished successfully.Jan 01 00:01:52 Test-Server ipmid[402]: New interface mappingJan 01 00:01:52 Test-Server ipmid[402]: Set restrictedMode = falseJan 01 00:01:53 Test-Server ipmid[402]: Error when call setAttention methodJan 01 00:01:54 Test-Server netipmid[437]: Failed to get bus nameJan 01 00:01:54 Test-Server netipmid[437]: Bind to interfaeJan 01 00:01:54 Test-Server ipmid[402]: New interface mappingJan 01 00:01:56 Test-Server ipmid[402]: Host control timeout hit!Jan 01 00:01:57 Test-Server ipmid[402]: Error when call setAttention methodJan 01 00:02:00 Test-Server ipmid[402]: Host control timeout hit!

Quoted 1 line · On Saturday, October 8, 2022 at 04:00:36 AM GMT+3…

Hi,

Quoted 7 lines · Erhan Y.
Quoted 1 line

We are trying to get SMBIOS tables from host on BMC (ast-2500).

What tools are you going to use for that once you get IPMI exchange working? On our Tioga Pass system it's performed by UEFI on startup using MDRv1 protocol.

Quoted 1 line

KCS#3 is enabled in DTS (with address CA2)

&kcs3 {
        // BMC KCS channel 3
        status = "okay";
        aspeed,lpc-io-reg = <0xca2>;
};

is what works for us.

Quoted 5 lines
Quoted 5 lines

[? ? 7.796852] ipmi_si: IPMI System Interface driver
[? ? 7.796893] ipmi_si dmi-ipmi-si.0: ipmi_platform: probing via SMBIOS
[? ? 7.796900] ipmi_platform: ipmi_si: SMBIOS: io 0xca2 regsize 1 spacing 1 irq 0
[? ? 7.796905] ipmi_si: Adding SMBIOS-specified kcs state machine
[? ? 7.797140] ipmi_si: Trying SMBIOS-specified kcs state machine at i/o address 0xca2, slave address 0x20, irq 0

This looks correct.

Quoted 3 lines
Quoted 3 lines

BMC Logs:?
[? ? 0.301014] ast-kcs-bmc 1e78902c.kcs: Initialised IPMI client for channel 3 [? ? 0.301085] ast-kcs-bmc 1e78902c.kcs: Initialised channel 3 at 0xca2

This too, 1e78902c.kcs is created and used.

So everything looks proper so far.

Do you know if LPC communication between your host and BMC works at all? Apart from KCS it's also often used for 16550A serial ports (with BMC being an LPC slave).

Do you have appropriate confguration for ipmi_kcs3 in /usr/share/ipmi-providers/channel_config.json?

Signature · 2 lines
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:[email protected]