From mboxrd@z Thu Jan 1 00:00:00 1970 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 99D29C2BD05 for ; Mon, 24 Jun 2024 08:33:21 +0000 (UTC) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=yadro.com header.i=@yadro.com header.a=rsa-sha256 header.s=mta-04 header.b=vcI7UJ2I; dkim=pass (2048-bit key; unprotected) header.d=yadro.com header.i=@yadro.com header.a=rsa-sha256 header.s=mta-03 header.b=zk/gu9q0; dkim-atps=neutral Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4W71Sb0tnDz3cW0 for ; Mon, 24 Jun 2024 18:33:19 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=yadro.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=yadro.com header.i=@yadro.com header.a=rsa-sha256 header.s=mta-04 header.b=vcI7UJ2I; dkim=pass (2048-bit key; unprotected) header.d=yadro.com header.i=@yadro.com header.a=rsa-sha256 header.s=mta-03 header.b=zk/gu9q0; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=yadro.com (client-ip=89.207.88.248; helo=mta-04.yadro.com; envelope-from=a.filippov@yadro.com; receiver=lists.ozlabs.org) Received: from mta-04.yadro.com (mta-04.yadro.com [89.207.88.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4W71RX2HWYz30V0 for ; Mon, 24 Jun 2024 18:32:21 +1000 (AEST) DKIM-Filter: OpenDKIM Filter v2.11.0 mta-04.yadro.com B4B01C000F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yadro.com; s=mta-04; t=1719217933; bh=9voJ2Tpa4EoWoPWzp9QnPOt65fSPgIXWROzJnQtUvZo=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type:From; b=vcI7UJ2IJqtuBrfy3Zv3ibUZSIP6I4oDvCaJJmd+xZWTxpAUocMqI21NvkdipH791 gpePHSYrFwXiysjXXMc8gll9miMZIdavQH4OBbl+D7W8Ry8gN9Z9GP7nPKbM3uIcI2 FMhDmnDQ3acz2RbYdTZxqPaOlq2rkc74FvI/T7NfANfkL7ZLUiLAUz2hKgz7ebtY6g xTBofDw4D3MvFPnC3hILPB1zQemSpx+SXoID4BJyeXrfWAjqP4gHdv3SOd3jui1iNc L4NSQ1S68A2fEKCj6ZG6ShGfFQn610HWNwhNHuE9+FaSKvB7mIqQ1BIzuJvd1wenTG mat+jMS4ckiXw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yadro.com; s=mta-03; t=1719217933; bh=9voJ2Tpa4EoWoPWzp9QnPOt65fSPgIXWROzJnQtUvZo=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type:From; b=zk/gu9q03BcZJLtczhcULz5u/xI5GwXBnYYiNSoe3VjdVCb81xtpWtO1WbJ6j46qh 4Wq9AE0izNTUe8wThZnToFsKLqinC+czjf7E6eGb+9Wn1RSFxOHgvMtkQbol9epsTM jxwT+yDXoPC+IOFrHDtODN9uWKh27Eihc5zFMsom99TdZSRfja0F/UkY8xFWxCUmYx 9oCLEE4ubRus1B9PEP7E5mkpWLtWV4NHRVRixlkqSXGwJAgupxhZRwKxDAZc1OhnMA +s9/+Add6mOjvF7dkOFslPg4DR6VtPMj8OwM4FBWfG+sOr84UxSeLOFdvQWSTXCx1S EFF3qy8loT7lw== Date: Mon, 24 Jun 2024 11:32:12 +0300 From: "Alexander A. Filippov" To: Bala Subramaniyan Subject: Re: Help with IPMB (IPMI over I2C). Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: X-ClientProxiedBy: T-EXCH-08.corp.yadro.com (172.17.11.58) To T-EXCH-09.corp.yadro.com (172.17.11.59) 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: , Cc: Thangaraj S , "openbmc@lists.ozlabs.org" , "Alexander A. Filippov" , Lalit Kumar Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" On Fri, Jun 21, 2024 at 07:29:38AM +0000, Bala Subramaniyan wrote: > Hi Alexander, >=20 > Thanks for the reply, >=20 > Could you please suggest an approach to way forward. >=20 > Below are the requirements. >=20 > 1. > BMC to BMC (IPMI over I2C), One BMC as Master and other as slave. > 2. > Send/Receive IPMI commands through IPMITOOL. > 3. > Send/Receive SDR, SEL logs between two BMC's. >=20 Hi Bala, I guess You will have to write the implementation of IPMI transport for both sides of this channel: 1. The plugin for `ipmitool` that will pack the IPMI commands to i2c/smbus (for the master side) 2. The plugin for `phosphor-host-ipmid`, receiving commands from i2c-slave connection But it seems to me this work doesn't cost the efforts. I guess You would achieve the required functionally if You connect both BMC= via ethernet. It seems to me the such solution would be significantly easier in= the described conditions. Or You could go by another way and transfer via existing i2c-channel some o= ther data isn't relying on IPMI. It depends on the global task You are solving to. >=20 > Thanks, and regards, > Bala Subramaniyan M. >=20 >=20 >=20 > [cid:c0cbe0bc-b674-45a4-9cc5-477a0a219193] >=20 >=20 > S1 Building, L&T Tech Park, Bellary Road, >=20 > Next to Raintree Boulevard, Park View Layout, >=20 > Byatarayanapura, Bengaluru-560092 >=20 > Mobile: +91 9677035467 >=20 > ENGINEERING THE CHANGE | www.LTTS.com >=20 >=20 >=20 > ________________________________ > From: Alexander A. Filippov > Sent: Thursday, June 20, 2024 9:09 PM > To: Bala Subramaniyan > Cc: Alexander A. Filippov ; openbmc@lists.ozlabs.or= g ; Thangaraj S ; Lalit Kum= ar > Subject: Re: Help with IPMB (IPMI over I2C). >=20 > CAUTION: This email is from an external source. Please do not open attach= ments or click links from an unknown or suspicious origin. Phishing attempt= s can be reported by using the report message button in Outlook or sending = them as an attachment to phishing@Ltts.com. Thank you >=20 > On Thu, Jun 20, 2024 at 01:29:18PM +0000, Bala Subramaniyan wrote: > > Hi Alexander, > > > > Thanks for your reply, > > > > ipmitool has raw and i2c commands. > > > > Commands: > > raw Send a RAW IPMI request and print response > > i2c Send an I2C Master Write-Read command and print r= esponse > > spd Print SPD info from remote I2C device > > lan Configure LAN Channels > > > > > > As, I can see ipmi_rawi2c_main() function under ipmitool/lib/ipmi_raw.c= which is handling I2C Master Read-Write functionality. > > > > Can you please guide us on this, Whether we can use this to perform BMC= -to-BMC communication. > > > > Below is the error i'm getting while performing BMC-to-BMC Master-Slave= Read-Write by connecting two i2c buses between the boards. > > root@ast2600-default:~# ipmitool i2c bus=3D14 0x12 0x00 0x00 0x00 0x31 = 0x32 0x33 0x34 > > ipmi_master_write_read: rsp_value:6207408, LineNo:104 > > I2C Master Write-Read command failed: Invalid command > > ipmi_rawi2c_main: rsp_value:0, LineNo:264 > > Unable to perform I2C Master Write-Read > > >=20 >=20 > This command doesn't define a transport for the IPMI command. It asks a r= emote > system to write specified bytes and read an answer via i2c bus on that re= mote > system. And ipmitool uses the default interface (or specified one via `-I` > option) for this command. >=20 > As I understood Your first message, You are looking for a transport inter= face > working via i2c, and I don't know the such implementations. >=20 > It should be something that You can specify via `-I` option of ipmitool. > By default ipmitool in OpenBMC uses `dbus` as the transport. >=20 >=20 > > Thanks, and regards, > > Bala Subramaniyan M, > > > > > > > > > > [cid:8c0f8170-e1d0-4031-a57d-20b6a72ccf58] > > > > > > S1 Building, L&T Tech Park, Bellary Road, > > > > Next to Raintree Boulevard, Park View Layout, > > > > Byatarayanapura, Bengaluru-560092 > > > > Mobile: +91 9677035467 > > > > ENGINEERING THE CHANGE | https://ind01.safelinks.protection.outlook.com= /?url=3Dhttp%3A%2F%2Fwww.ltts.com%2F&data=3D05%7C02%7CBala.Subramaniyan%40l= tts.com%7C2331d0069a2946fc9fcd08dc913f2bc6%7C311b33788e8a4b5ea33fe80a3d8ba6= 0a%7C0%7C0%7C638544947744779111%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDA= iLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=3DLZgcEN= CI1k8SHeyxdJyux593EPlJ76bzUuIC%2B4wPahs%3D&reserved=3D0 > > > > > > > > ________________________________ > > From: Bala Subramaniyan > > Sent: Thursday, June 20, 2024 6:55 PM > > To: Alexander A. Filippov > > Cc: openbmc@lists.ozlabs.org ; Thangaraj S ; Lalit Kumar > > Subject: Re: Help with IPMB (IPMI over I2C). > > > > Hi Alexander, > > > > Thanks for your reply, > > > > ipmitool has raw and i2c commands, Please refer below image. > > > > [cid:87b5aef4-9628-47c7-b7d4-b714b7a92869] > > > > As, I can see ipmi_rawi2c_main() function under ipmitool/lib/ipmi_raw.c= which is handling I2C Master Read-Write functionality. > > > > Can you please guide us on this, Whether we can use this to perform BMC= -to-BMC communication. > > > > Below is the error i'm getting while performing BMC-to-BMC Master-Slave= Read-Write by connecting two i2c buses between the boards. > > root@ast2600-default:~# ipmitool i2c bus=3D14 0x12 0x00 0x00 0x00 0x31 = 0x32 0x33 0x34 > > ipmi_master_write_read: rsp_value:6207408, LineNo:104 > > I2C Master Write-Read command failed: Invalid command > > ipmi_rawi2c_main: rsp_value:0, LineNo:264 > > Unable to perform I2C Master Write-Read > > > > > > Thanks, and regards, > > Bala Subramaniyan M, > > > > > > > > [cid:08db76b7-f643-4b96-8acd-5325e19c1e99] > > > > > > S1 Building, L&T Tech Park, Bellary Road, > > > > Next to Raintree Boulevard, Park View Layout, > > > > Byatarayanapura, Bengaluru-560092 > > > > Mobile: +91 9677035467 > > > > ENGINEERING THE CHANGE | https://ind01.safelinks.protection.outlook.com= /?url=3Dhttp%3A%2F%2Fwww.ltts.com%2F&data=3D05%7C02%7CBala.Subramaniyan%40l= tts.com%7C2331d0069a2946fc9fcd08dc913f2bc6%7C311b33788e8a4b5ea33fe80a3d8ba6= 0a%7C0%7C0%7C638544947744795243%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDA= iLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=3Dp%2B7i= gJmYz8u%2Br8WSr3Q5tQsyOgIjyqAV6dvmGBvfFq8%3D&reserved=3D0 > > > > > > > > ________________________________ > > From: Alexander A. Filippov > > Sent: Thursday, June 20, 2024 6:06 PM > > To: Bala Subramaniyan > > Cc: openbmc@lists.ozlabs.org ; Thangaraj S ; Lalit Kumar > > Subject: Re: Help with IPMB (IPMI over I2C). > > > > CAUTION: This email is from an external source. Please do not open atta= chments or click links from an unknown or suspicious origin. Phishing attem= pts can be reported by using the report message button in Outlook or sendin= g them as an attachment to phishing@Ltts.com. Thank you > > > > On Thu, Jun 20, 2024 at 10:43:59AM +0000, Bala Subramaniyan wrote: > > > Hi All, > > > > Hi, > > > > > > > > For one of our requirement (BMC to BMC, IPMI over I2C), We're explori= ng with IPMITOOL>>. > > > > > > Development Board: ASPEED AST2600 EVB > > > > > > Could you please suggest us how to proceed further with our below req= uirement. > > > > > > 1. > > > BMC to BMC (IPMI over I2C), One BMC as Master and other as slave. > > > 2. > > > Send/Receive IPMI commands through IPMITOOL>> from one BMC to other. > > > 3. > > > Send/Receive SDR, SEL logs between two BMC's. > > > > > > Any help would be highly appreciated. > > > > > > > > > > As I can see, ipmitool has no any interfaces using i2c directly and I n= ever > > listen about using i2c as the ipmi transport. > > > > Google shows me that the similar question already exists and answered: > > https://ind01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fg= ithub.com%2Fipmitool%2Fipmitool%2Fdiscussions%2F296&data=3D05%7C02%7CBala.S= ubramaniyan%40ltts.com%7C2331d0069a2946fc9fcd08dc913f2bc6%7C311b33788e8a4b5= ea33fe80a3d8ba60a%7C0%7C0%7C638544947744818379%7CUnknown%7CTWFpbGZsb3d8eyJW= IjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C= &sdata=3DV7u1FjjwCPOAFEFIZ0BAZPTvBnXAAvJ5V%2B%2BjZU37fDw%3D&reserved=3D0 > > > > As an alternative, You could use lan/lanplus interfaces to communicate = with > > remote BMC via ethernet. > > > > > > > > > > Thanks, and regards, > > > Bala Subramaniyan M, > > > > > > > > > > > > [cid:59c4f387-285c-4c0f-ada0-09714ca611a9] > > > > > > > > > S1 Building, L&T Tech Park, Bellary Road, > > > > > > Next to Raintree Boulevard, Park View Layout, > > > > > > Byatarayanapura, Bengaluru-560092 > > > > > > Mobile: +91 9677035467 > > > > > > ENGINEERING THE CHANGE | https://ind01.safelinks.protection.outlook.c= om/?url=3Dhttp%3A%2F%2Fwww.ltts.com%2F&data=3D05%7C02%7CBala.Subramaniyan%4= 0ltts.com%7C2331d0069a2946fc9fcd08dc913f2bc6%7C311b33788e8a4b5ea33fe80a3d8b= a60a%7C0%7C0%7C638544947744829092%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwM= DAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=3DGdWT= Z34APtITjhplTyz5f1LxZdDmpOyaO%2BjMUzI9h%2FA%3D&reserved=3D0 > > > > > > > > > > > > [Ltts.com] > > > > > > L&T Technology Services Ltd > > > > > > https://ind01.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Fww= w.ltts.com%2F&data=3D05%7C02%7CBala.Subramaniyan%40ltts.com%7C2331d0069a294= 6fc9fcd08dc913f2bc6%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C6385449477= 44840097%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTi= I6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=3DVaMxCES6V7qlsf6nEd3EjQt9Z6XJQ= DZyCRWc8xWRPYM%3D&reserved=3D0 > > > > > > L&T Technology Services Limited (LTTS) is committed to safeguard your= privacy. Read the appropriate privacy notice>> applicable to you to= know more about how LTTS collects, uses and stores your personal data. Ple= ase visit our privacy policy>> available on our website https://ind01.safelinks.pro= tection.outlook.com/?url=3Dhttp%3A%2F%2Fwww.ltts.com%2F&data=3D05%7C02%7CBa= la.Subramaniyan%40ltts.com%7C2331d0069a2946fc9fcd08dc913f2bc6%7C311b33788e8= a4b5ea33fe80a3d8ba60a%7C0%7C0%7C638544947744862422%7CUnknown%7CTWFpbGZsb3d8= eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7= C%7C&sdata=3DWNmcpxHSxuE%2B3QyPQDWIA%2Bg%2FB2heNLkU54e%2FB5yujr0%3D&reserve= d=3D0 for more information = about our commitment towards data privacy under applicable data protection = laws. This email may contain confidential or privileged information for the= intended recipient(s). If you are not the intended recipient, please do no= t use or disseminate the information, notify the sender and delete it from = your system. -- Regads, Alexander Filippov