Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7A5FEC433FE for ; Tue, 11 Oct 2022 08:08:50 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4MmpMN5zDQz3c7q for ; Tue, 11 Oct 2022 19:08:48 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=yahoo.com header.i=@yahoo.com header.a=rsa-sha256 header.s=s2048 header.b=gr7oieLH; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=yahoo.com (client-ip=74.6.135.123; helo=sonic310-13.consmr.mail.bf2.yahoo.com; envelope-from=erhan14@yahoo.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=yahoo.com header.i=@yahoo.com header.a=rsa-sha256 header.s=s2048 header.b=gr7oieLH; dkim-atps=neutral Received: from sonic310-13.consmr.mail.bf2.yahoo.com (sonic310-13.consmr.mail.bf2.yahoo.com [74.6.135.123]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4MmpLD6XT0z2yMk for ; Tue, 11 Oct 2022 19:07:47 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1665475662; bh=P3ssBkO9SorDaN1aRWs8IOG22Z4F+HeBFGtXUnVgYTU=; h=Date:From:To:In-Reply-To:References:Subject:From:Subject:Reply-To; b=gr7oieLHSlXDOhr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P; Tue, 11 Oct 2022 08:07:42 +0000 Date: Tue, 11 Oct 2022 08:07:38 +0000 (UTC) From: "Erhan Y." To: "openbmc@lists.ozlabs.org" , "fercerpav@gmail.com" Message-ID: <1986804193.85060.1665475658945@mail.yahoo.com> In-Reply-To: References: Subject: Re: openbmc Digest, Vol 86, Issue 26 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_85059_526194053.1665475658942" X-Mailer: WebService/1.1.20740 YMailNorrin X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" ------=_Part_85059_526194053.1665475658942 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 d= efined in our DTS too.=C2=A0 - Serial port redirection (vUART) is working. What else we can do to test i= f LPC between host and BMC is working?- Inband IPMI is not working with KCS= - We defined=C2=A0/usr/share/ipmi-providers/channel_config.json but nothing= has changed HOST dmidecode Handle 0x0013,DMI type 38, 18 bytes IPMI DeviceInformation =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Interface Type: KCS (Keyboard Con= trol Style) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Specification Version: 2.0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0I2C Slave Address: 0x10 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0NV Storage Device: Not Present =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Base Address: 0x0000000000000CA2 = (I/O) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Register Spacing: Successive Byte= Boundaries =C2=A0 HOST ipmi_sidriver: [=C2=A0=C2=A0=C2=A07.803541] ipmi_si: Trying SMBIOS-specified kcs state mac= hine at i/o address0xca2, slave address 0x20, irq 0 [=C2=A0=C2=A0=C2=A07.803550] ipmi_si dmi-ipmi-si.0: Interface detection fai= led BMC LOG:root@Test-Server:~# journalctl -xe | grep ipmi=E2=96=91=E2=96=91 Su= bject: A start job for unit phosphor-ipmi-host.service has begun execution= =E2=96=91=E2=96=91 A start job for unit phosphor-ipmi-host.service has begu= n 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/e= ntry/1 to SEL: xyz.openbmc_project.Common.Error.InternalFailure: The operat= ion 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 faile= d internally.Jan 01 00:01:50 Test-Server ipmid[402]: Registering OEM:[0X00C= 2CF], Cmd:[0X04] for Manual Zone Control=E2=96=91=E2=96=91 Subject: A start= job for unit phosphor-ipmi-host.service has finished successfully=E2=96=91= =E2=96=91 A start job for unit phosphor-ipmi-host.service has finished succ= essfully.=E2=96=91=E2=96=91 Subject: A start job for unit phosphor-ipmi-kcs= @ipmi-kcs3.service has begun execution=E2=96=91=E2=96=91 A start job for un= it phosphor-ipmi-kcs@ipmi-kcs3.service has begun execution.=E2=96=91=E2=96= =91 Subject: A start job for unit phosphor-ipmi-net@eth0.service has finish= ed successfully=E2=96=91=E2=96=91 A start job for unit phosphor-ipmi-net@et= h0.service has finished successfully.Jan 01 00:01:51 Test-Server ipmid[402]= : Loading whitelist filter=E2=96=91=E2=96=91 Subject: A start job for unit = phosphor-ipmi-kcs@ipmi-kcs3.service has finished successfully=E2=96=91=E2= =96=91 A start job for unit phosphor-ipmi-kcs@ipmi-kcs3.service has finishe= d successfully.Jan 01 00:01:52 Test-Server ipmid[402]: New interface mappin= gJan 01 00:01:52 Test-Server ipmid[402]: Set restrictedMode =3D 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 ipmi= d[402]: New interface mappingJan 01 00:01:56 Test-Server ipmid[402]: Host c= ontrol 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 tim= eout hit! On Saturday, October 8, 2022 at 04:00:36 AM GMT+3, openbmc-request@list= s.ozlabs.org wrote:=20 =20 >Hi, On Fri, Oct 07, 2022 at 12:56:02PM +0000, Erhan Y. wrote: >> 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. >> KCS#3 is enabled in DTS (with address CA2) &kcs3 {=20 =C2=A0 =C2=A0 =C2=A0 =C2=A0 // BMC KCS channel 3 =C2=A0 =C2=A0 =C2=A0 =C2=A0 status =3D "okay"; =C2=A0 =C2=A0 =C2=A0 =C2=A0 aspeed,lpc-io-reg =3D <0xca2>; }; is what works for us. >> [? ? 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 spacin= g 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. >> BMC Logs:? >> [? ? 0.301014] ast-kcs-bmc 1e78902c.kcs: Initialised IPMI client for cha= nnel 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? --=20 Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! mailto:fercerpav@gmail.com =20 ------=_Part_85059_526194053.1665475658942 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
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 ou= r 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.j= son but nothing has changed


HOST dmidecode

Handle 0x0013, DMI type 38, 18 bytes

IPMI Device Information

        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_si driver:

[    7.803541] ipmi_si: Trying SMBIOS-specified kcs state machine at i/o address 0xca2, 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
=E2=96=91=E2=96=91 Subject: A start job for unit phosphor-ipmi-host= .service has begun execution
=E2=96=91=E2=96=91 A start job for u= nit phosphor-ipmi-host.service has begun execution.
Jan 01 00:01:= 36 Test-Server ipmid[402]: JSON file not found
Jan 01 00:01:49 Te= st-Server ipmid[402]: System event sensor not found
Jan 01 00:01:= 49 Test-Server ipmid[402]: The operation failed internally.
Jan 0= 1 00:01:49 Test-Server ipmid[402]: Failed to convert /xyz/openbmc_project/l= ogging/entry/1 to SEL: xyz.openbmc_project.Common.Error.InternalFailure: Th= e operation failed internally.
Jan 01 00:01:49 Test-Server ipmid[= 402]: System event sensor not found
Jan 01 00:01:49 Test-Server i= pmid[402]: The operation failed internally.
Jan 01 00:01:50 Test-= Server ipmid[402]: Registering OEM:[0X00C2CF], Cmd:[0X04] for Manual Zone C= ontrol
=E2=96=91=E2=96=91 Subject: A start job for unit phosphor-= ipmi-host.service has finished successfully
=E2=96=91=E2=96=91 A = start job for unit phosphor-ipmi-host.service has finished successfully.
=E2=96=91=E2=96=91 Subject: A start job for unit phosphor-ipmi-kcs@= ipmi-kcs3.service has begun execution
=E2=96=91=E2=96=91 A start = job for unit phosphor-ipmi-kcs@ipmi-kcs3.service has begun execution.
=
=E2=96=91=E2=96=91 Subject: A start job for unit phosphor-ipmi-net@eth= 0.service has finished successfully
=E2=96=91=E2=96=91 A start jo= b for unit phosphor-ipmi-net@eth0.service has finished successfully.
<= div>Jan 01 00:01:51 Test-Server ipmid[402]: Loading whitelist filter
<= div>=E2=96=91=E2=96=91 Subject: A start job for unit phosphor-ipmi-kcs@ipmi= -kcs3.service has finished successfully
=E2=96=91=E2=96=91 A star= t job for unit phosphor-ipmi-kcs@ipmi-kcs3.service has finished successfull= y.
Jan 01 00:01:52 Test-Server ipmid[402]: New interface mapping<= /div>
Jan 01 00:01:52 Test-Server ipmid[402]: Set restrictedMode =3D fa= lse
Jan 01 00:01:53 Test-Server ipmid[402]: Error when call setAt= tention method
Jan 01 00:01:54 Test-Server netipmid[437]: Failed = to get bus name
Jan 01 00:01:54 Test-Server netipmid[437]: Bind t= o interfae
Jan 01 00:01:54 Test-Server ipmid[402]: New interface = mapping
Jan 01 00:01:56 Test-Server ipmid[402]: Host control time= out hit!
Jan 01 00:01:57 Test-Server ipmid[402]: Error when call = setAttention method
Jan 01 00:02:00 Test-Server ipmid[402]: Host = control timeout hit!

<= /div>

=

=20
=20
On Saturday, October 8, 2022 at 04:00:36 AM GMT+3, open= bmc-request@lists.ozlabs.org <openbmc-request@lists.ozlabs.org> wrote= :

>Hi,
=
On Fri, Oct 07, 2022 at 12:56:02P= M +0000, Erhan Y. wrote:
>> = 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.

>> KCS#3 is enabled in DTS (with a= ddress CA2)

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

is w= hat works for us.

>> [? ? 7.796852] ipmi_si: IPMI System Inte= rface driver
>> [? ? 7.79689= 3] ipmi_si dmi-ipmi-si.0: ipmi_platform: probing via SMBIOS
>> [? ? 7.796900] ipmi_platform: ipmi_si: S= MBIOS: io 0xca2 regsize 1 spacing 1 irq 0
>> [? ? 7.796905] ipmi_si: Adding SMBIOS-specified kcs state= machine
>> [? ? 7.797140] i= pmi_si: Trying SMBIOS-specified kcs state machine at i/o address 0xca2, sla= ve address 0x20, irq 0

This looks correct.

>> BMC L= ogs:?
>> [? ? 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 a= nd 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 seri= al ports (with
BMC being an LPC sl= ave).

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

--
Be free, use fre= e (http://www.gnu.org/philosophy/free-sw.html= ) software!


------=_Part_85059_526194053.1665475658942--