From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (NAM12-BN8-obe.outbound.protection.outlook.com [40.107.237.72]) by mx.groups.io with SMTP id smtpd.web10.16528.1672934486137448860 for ; Thu, 05 Jan 2023 08:01:26 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@amd.com header.s=selector1 header.b=lxzO70rz; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: amd.com, ip: 40.107.237.72, mailfrom: abner.chang@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DtLXNN6hSUfC7KZAqsLbY3RU3QZ9I3z7ib9IkI+N8d/pd8HdRRxQYQaby9M5Wfr7WlOWIJbUqYi2fJforlW2yrBiWUa+l1S2cjd2wtt+7Yb5RSLYA53yuwWplutG6EC7PZroJ3F3Xl4EZmUa4VCQv90RFCBKbWQzlqCwRNzogupEEzRl6O8GPQgGpzpytuWkBR+/cEChRY5PABOnOB4x3eGELhWhiPn9rlJNaeqVe5GqJL7v2cWvDvjVzcOGidRfM688nAfo+B6ySYEgMO+9ucrFu6SY057Oh80IrjDwQL6alXPcjwMF23p0CZnqIwLwXjuz3+IploSWWLzjpoZExQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=6kQjUdWBf670QHY0aq+azcU7+05aiU0JBOY9MEU+3rg=; b=h4yG8L2ep/DvuPxQfUtEgALXkg6hXsyfEibQfqXidGbYdcY7BcZQoIdbsyBsHdtUqm/a0c8O6XP0AgOnpy0ou6BSboPvMReO4SpVTjCquOQ2HTXrMHZAca63MQmOmV1RloJ9LBkZldRFcpSAaSlpfAE3yT4qghWMUHXPo67F/jka+M4v1mn/L6jv6+Ffo9SEG2opNp+3rswxPL5H/XTvic0OGS1/bgY60kc4K7iuI0/D1Vj0IBotbJhPUchjtwVgWU8QRBpKEYFAleD9LmmSU8JbQARq0oAqURvudu2dINqR1pS0xZGE4ohmM/ZTdljUGCn5djvfa07UGeL35rM0KQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6kQjUdWBf670QHY0aq+azcU7+05aiU0JBOY9MEU+3rg=; b=lxzO70rztHfyTx0nHJH18R9wu8h6ow9K0nX6bB51klPJP4ZsQzPK5kc6ERhpha91GehiButLUCpLjLWMZY0oSfarMsfM88YvrYIMMz0x52C8acUgTdq7bpf2y/8zyWYqOVuUYjFumoEAelxRQeeXbe+/wgBvmlsYeqISLL+EsyY= Received: from DM6PR14CA0046.namprd14.prod.outlook.com (2603:10b6:5:18f::23) by CH2PR12MB4149.namprd12.prod.outlook.com (2603:10b6:610:7c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.19; Thu, 5 Jan 2023 16:01:24 +0000 Received: from DS1PEPF0000E641.namprd02.prod.outlook.com (2603:10b6:5:18f:cafe::58) by DM6PR14CA0046.outlook.office365.com (2603:10b6:5:18f::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.15 via Frontend Transport; Thu, 5 Jan 2023 16:01:24 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DS1PEPF0000E641.mail.protection.outlook.com (10.167.17.201) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5986.15 via Frontend Transport; Thu, 5 Jan 2023 16:01:23 +0000 Received: from TPE-L1-ABNCHANG.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 5 Jan 2023 10:01:19 -0600 From: "Chang, Abner" To: CC: Isaac Oram , Nate DeSimone , Michael D Kinney , Liming Gao , Zhiguang Liu , Nickle Wang , Igor Kulchytskyy Subject: [edk2-platforms][PATCH V2] IPMI changes for Redfish Date: Fri, 6 Jan 2023 00:00:57 +0800 Message-ID: <20230105160100.772-1-abner.chang@amd.com> X-Mailer: git-send-email 2.37.1.windows.1 MIME-Version: 1.0 Return-Path: Abner.Chang@amd.com X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS1PEPF0000E641:EE_|CH2PR12MB4149:EE_ X-MS-Office365-Filtering-Correlation-Id: cbc4d672-27c1-4eb3-cecf-08daef36182f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QEvF0zguH+zm30MwX0Ik+uDlC33Ce+OTiM5Lb3J5ZoQBY5Bez7IajW2QGK62zoRAZGPGVH3mD/KMsiTI2f0oHTo5tKvRji/V6zeaik8LRplU+RqSLcjjj7LwLkc1sW+zkBklr0aLVB/zJZbASU7pC7l1Ujhx4ika/8aENbHcso3QM/ix5TWaPwba+H6m0Yv9gbgg1vkqqsHl0piNGW6jykC6HtNTJY834WGBWqOVEmTDvOzjcc3bSlSiWs2ry+bnUx6AzO3vp/xXbRgq/X1UXcGOmaz9smtihb6xbs0jMCzxl3Gcc9CLmWH61j1HBlq8zMlwIdQDCfmBpms1TfJH4IoJp7gGaIZFpeqZtoFcSy0L+4sNTeIOD+ZTG7hMojawA9MR09D+6UBgxVRbfviObdT0uT1SHuqOIVPEOISJJev2sa8y1irpzWPVuxs257PJgG9o6U3pCgqL+xinGSOHokB5dJp6rRjNsderOnMb3/L1quAwM8drPWZKXn7bxIfhW9MPy5mAB1gMGxCerlfQtw8MlK+xrvxV3f8SMEqsnkctCc3BG5m3ijGJr7UjL9Ndfp4B5AjEs+ABhtvGIyYqwF7xaggvNEGLYZZ/JGGfwj5O01Udl7DNqn+WxveYzMxxPvuGS9lwLWkKggJekYKG3iUlnCKI6VYZu8NErcjk/9Ouv89i4/erpC00k4m18ITDj780LM7SthxiihK9w22MvPzndflpcuf/ZkT0D7X3aok= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230022)(4636009)(39860400002)(346002)(396003)(376002)(136003)(451199015)(40470700004)(46966006)(36840700001)(36860700001)(426003)(2616005)(336012)(83380400001)(47076005)(40480700001)(1076003)(86362001)(40460700003)(82310400005)(81166007)(82740400003)(356005)(36756003)(6916009)(2906002)(54906003)(41300700001)(5660300002)(4326008)(70586007)(8676002)(8936002)(316002)(478600001)(26005)(186003)(16526019)(70206006)(2876002)(6666004)(7696005)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jan 2023 16:01:23.8467 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cbc4d672-27c1-4eb3-cecf-08daef36182f X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DS1PEPF0000E641.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4149 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain From: Abner Chang In V2: Addressed the comments from Isaac. BZ# 4214 This patch adds IPMI functions for building up SMBIOS 42 record for the USB NIC host interface exposed by BMC. The corresponding updates on edk2 is in the separate pacth. This is the part I of upstream, the follow up patche sets are: - RedfishPlatformCredentialLib contributed by NVidia. - Relocate IpmiCommandLib.h from edk2-platforms to edk2/MdePkg. A NULL instance of IpmiCommandLib is created and located under MdePkg. With above, RedfishPkg doesn't have the dependence with edk2-platforms. The implementation of IpmiCommandLib stays in edk2-platforms without relocation, which can be pulled in to platform DSC as needed. - PlatformHostInterfaceBmcUsbNic would be upstream to edk2-staging temporarily because some requirements are necessray to be spec out in the Redfish section in UEFI spec. Signed-off-by: Abner Chang Cc: Isaac Oram Cc: Nate DeSimone Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Cc: Nickle Wang Cc: Igor Kulchytskyy Abner Chang (3): Features/IpmiFeaturePkg: Add IPMI functions IpmiFeaturePkg/IpmiCommandLib: Add IPMI functions IpmiFeaturePkg: Add reference of IpmiBaseLib .../IpmiFeaturePkg/IpmiFeaturePkg.dec | 5 ++ .../Include/Library/IpmiCommandLib.h | 62 +++++++++++++ .../IpmiCommandLib/IpmiCommandLibNetFnApp.c | 88 +++++++++++++++++++ .../IpmiCommandLibNetFnTransport.c | 43 +++++++++ 4 files changed, 198 insertions(+) --=20 2.37.1.windows.1