From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 13881740038 for ; Tue, 22 Aug 2023 17:53:44 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=wwcVsBxCrSYvp2dsK2vi/1qiypeOZgSjQY8lscfuDp0=; c=relaxed/simple; d=groups.io; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:To:Cc:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Transfer-Encoding; s=20140610; t=1692726823; v=1; b=kbtjljhLHfI72BZzerEYqbTgGBHkBRcche2nIynkbTErN/Eqw/0kgkDXTnxM/WN21AO0XHOC 8BtQZoJyhXulqFwiOAy5iNIKUggZcW4A3VQvNARu7kdR8y4ETVeWRty3IYTnWdOS0LQuJ4VzPRf 7I1pKqaLNzssaqItLCWTXjsQ= X-Received: by 127.0.0.2 with SMTP id 6FjvYY7687511xqkJSEcKZHI; Tue, 22 Aug 2023 10:53:43 -0700 X-Received: from mail-vk1-f173.google.com (mail-vk1-f173.google.com [209.85.221.173]) by mx.groups.io with SMTP id smtpd.web10.2911.1692726822841488549 for ; Tue, 22 Aug 2023 10:53:43 -0700 X-Received: by mail-vk1-f173.google.com with SMTP id 71dfb90a1353d-48d0b70097fso899590e0c.1; Tue, 22 Aug 2023 10:53:42 -0700 (PDT) X-Gm-Message-State: VjVyw3cAfOcdNFcNZDdTLOrux7686176AA= X-Google-Smtp-Source: AGHT+IEA1lZlmO8JhXGCMBAZSMwZ558Sx5Q/hYZ3tnFW9WGGVVGWXZVYZDaJdomDOZjEwzU+htRPP4RNXaKiK2U/jO8= X-Received: by 2002:ac5:c644:0:b0:48d:d3b:7dd9 with SMTP id j4-20020ac5c644000000b0048d0d3b7dd9mr6008850vkl.3.1692726821811; Tue, 22 Aug 2023 10:53:41 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "Konstantin Aladyshev" Date: Tue, 22 Aug 2023 20:53:30 +0300 Message-ID: Subject: Re: [edk2-devel] [edk2-discuss] PLDM messages via MCTP over KCS To: "Chang, Abner" Cc: "discuss@edk2.groups.io" , "devel@edk2.groups.io" Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,aladyshev22@gmail.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=kbtjljhL; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Thanks for the answer! I was a little bit confused about the part, that in the same package I actually need to provide different library implementations for the same 'ManageabilityTransportLib', thanks for the clarification! I think your DSC example should go into the package documentation. As for me, I'm working with the OpenBMC distribution (https://github.com/openbmc/openbmc) and my goal is to transfer data from the BIOS to the BMC via MCTP/PLDM. Currently there is no solution for the MCTP over KCS binding in Linux, so I need to add this support: - either to the MCTP userspace library (https://github.com/openbmc/libmctp) [old OpenBMC way, but probably easier] - or to the MCTP kernel binding (https://github.com/torvalds/linux/tree/master/drivers/net/mctp) [modern mctp Linux driver approach] Both don't sound like an easy task, so can I ask, what MC (i.e. management controller) device and firmware do you use on the other side of the MCTP KCS transmissions? You've also mentioned PLDM SMBIOS, isn't it covered by the https://github.com/tianocore/edk2-platforms/blob/master/Features/Manageabil= ityPkg/Universal/PldmSmbiosTransferDxe/PldmSmbiosTransferDxe.c ? Best regards, Konstantin Aladyshev On Tue, Aug 22, 2023 at 7:26=E2=80=AFPM Chang, Abner = wrote: > > [AMD Official Use Only - General] > > Hi Aladyshev, > We use library class to specify the desire transport interface for the ma= nagement protocol, such as MCTP, PLDM and IPMI. This way we can flexibly su= pport any transport interface for the management protocol. > > Here is the example of using ManageabilityPkg, which is PLDM over MCTP ov= er KCS. > ManageabilityPkg/Universal/IpmiProtocol/Dxe/IpmiProtocolDxe.inf { > > ManageabilityTransportLib|ManageabilityPkg/Library/ManageabilityTra= nsportKcsLib/Dxe/DxeManageabilityTransportKcs.inf > } > ManageabilityPkg/Universal/MctpProtocol/Dxe/MctpProtocolDxe.inf { > > ManageabilityTransportLib|ManageabilityPkg/Library/ManageabilityTra= nsportKcsLib/Dxe/DxeManageabilityTransportKcs.inf > } > ManageabilityPkg/Universal/PldmProtocol/Dxe/PldmProtocolDxe.inf { > > ManageabilityTransportLib|ManageabilityPkg/Library/ManageabilityTra= nsportMctpLib/Dxe/DxeManageabilityTransportMctp.inf > } > > So you can implement ManageabilityTransport library for either industry s= tandard or proprietary implementation for the specific management protocol. > > BTW, We do have PLDM SMBIOS over MCTP implementation but not upstream yet= . > > Hope this information helps. > Thanks > Abner > > > > -----Original Message----- > > From: discuss@edk2.groups.io On Behalf Of > > Konstantin Aladyshev via groups.io > > Sent: Tuesday, August 22, 2023 7:00 PM > > To: discuss ; devel@edk2.groups.io > > Subject: [edk2-discuss] PLDM messages via MCTP over KCS > > > > Caution: This message originated from an External Source. Use proper ca= ution > > when opening attachments, clicking links, or responding. > > > > > > Hi! > > > > I'm trying to build `ManageabilityPkg` from the edk2-platforms > > repo to issue PLDM messages via MCTP over KCS. Is it possible with > > the current code? I see all the building blocks, but have trouble > > putting it all together. > > > > The main question that bothers me is what implementation should I set > > for the `ManageabilityTransportLib`? > > By default it is set to dummy `BaseManageabilityTransportNull.inf` > > (https://github.com/tianocore/edk2- > > platforms/blob/master/Features/ManageabilityPkg/ManageabilityPkg.dsc). > > > > On one case to get PLDM via MCTP it looks that I need to set it to > > `DxeManageabilityTransportMctp.inf` > > ManageabilityTransportLib| <...>/DxeManageabilityTransportMctp.inf > > (https://github.com/tianocore/edk2- > > platforms/blob/master/Features/ManageabilityPkg/Library/ManageabilityTr= a > > nsportMctpLib/Dxe/DxeManageabilityTransportMctp.inf) > > > > But on the other case if I want MCTP over KCS I need to set it to > > `DxeManageabilityTransportKcs.inf` > > ManageabilityTransportLib| <...>/DxeManageabilityTransportKcs.inf > > (https://github.com/tianocore/edk2- > > platforms/blob/master/Features/ManageabilityPkg/Library/ManageabilityTr= a > > nsportKcsLib/Dxe/DxeManageabilityTransportKcs.inf) > > > > What is the right way to resolve this? > > > > There are no platforms in the repo that actually implement PLDM/MCTP > > functionality, so there is no example that I can use as a reference. > > > > > > Best regards, > > Konstantin Aladyshev > > > > > >=20 > > > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#107957): https://edk2.groups.io/g/devel/message/107957 Mute This Topic: https://groups.io/mt/100897530/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-