From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (NAM11-DM6-obe.outbound.protection.outlook.com [40.107.223.88]) by mx.groups.io with SMTP id smtpd.web11.73085.1680534320677511658 for ; Mon, 03 Apr 2023 08:05:21 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@amd.com header.s=selector1 header.b=SBkfZMfY; 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.223.88, mailfrom: abner.chang@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cKAR9VZuW/XlH7v7shqzgwM+Q7qX0qrqowJqTkhPyBjUml6eqcW2sgW8d01k/BSS5Ywx8BVAGpqvOkr3ZnLKRRmK6OjmyQzlVbbGj22oH/DFO9i6e7jWoKqtFT22Sn6l8AAy1PrYkmQK0bwAqnjrH3cLn98L5q7Wtx/y/dpgADBDosj6hKrpblZICSKPJ7X4XqBPyI6FvWB6GNVIa66lFdkQiJlCGrY4si/IR9MIg77rWQnvPjGAAdCYpZN4+qEwNYUfEr1agVlmRd0IbO9moatVT8fPT9b5/b8wpYsC01YfAvkRkDdpL/HVNrSmB0kUXW3eENiYWrpkQ4VySRf+Zw== 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=ia8uTj+oorna8KjNQx21MvfokwsjJZJQYT2NDB0Gjeo=; b=JJW3Ty8xEKqq9alrttyA3gU3DJhszgf/2YNvE2SAmFLHpN2LxnFAztN2qDa64uEdrdudn08XIpDcW1+PVWdJjq1pVnwwbV8i4MK8dBbReciCdYR8SoI7D097Ty9JHj0y0Y9+WW+4srIqrjv5kD+vnGLgXDQoxak3mMMDxT0Sb41oX1KCIO7D/DlR7GJhQ+vdgjOF58CbTI0bJoVSj24UMynVzYt7gq317ehOm9qIPRuK1qhWgS/qCrLIWjhwOoGnchSAImUceV/jNQh3soGTbKsBPBinqE7E3ktIr4up9V5MX70rjE+IdCIhfDcLHrc4DVbH6c1KImXOc9ms7s9GQg== 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=ia8uTj+oorna8KjNQx21MvfokwsjJZJQYT2NDB0Gjeo=; b=SBkfZMfYhfKDzgqxCyaAomJSyM7eX9Mt497ALsl8TOMA1HaZAtx3MFVhJNISNnuEKmIZ7RqsX9ljrmf0Rqewwt3YBTEJN+iiOndc5+b6eplJJnfLwL+WUO+iYHHPwS80osApo/TxzrsZCpsXNUlEp6aZ3fLjMbitBLGiW1ERRqE= Received: from DS7PR05CA0025.namprd05.prod.outlook.com (2603:10b6:5:3b9::30) by SA1PR12MB8988.namprd12.prod.outlook.com (2603:10b6:806:38e::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.33; Mon, 3 Apr 2023 15:05:18 +0000 Received: from DM6NAM11FT091.eop-nam11.prod.protection.outlook.com (2603:10b6:5:3b9:cafe::8) by DS7PR05CA0025.outlook.office365.com (2603:10b6:5:3b9::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.26 via Frontend Transport; Mon, 3 Apr 2023 15:05:18 +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 DM6NAM11FT091.mail.protection.outlook.com (10.13.173.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6254.20 via Frontend Transport; Mon, 3 Apr 2023 15:05:18 +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; Mon, 3 Apr 2023 10:05:16 -0500 From: "Chang, Abner" To: CC: Isaac Oram , Abdul Lateef Attar , Nickle Wang , Igor Kulchytskyy , Tinh Nguyen Subject: [edk2-platforms][PATCH 00/14] ManageabilityPkg part II Date: Mon, 3 Apr 2023 23:04:45 +0800 Message-ID: <20230403150459.925-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: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT091:EE_|SA1PR12MB8988:EE_ X-MS-Office365-Filtering-Correlation-Id: e5701758-7348-41fd-bea9-08db3454d6b7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: P4hfC7nsSL3wCDoZw78jsfCCqlO8d6Hw6dSXHEe6x3CLYwNl6kChrPZubst9U/GO1XVnKBkQ/y2sCn4gJ7nykOv/u77J2qaWJ4RWquYPwCyq1nmWM1/sqRl7cJtV7PZBA0nV10sA83sa3p6WcM078e0MkpI85P+/G2Xb2uSbe+mfnFpUlgqfSljMH6k8H4NS/aX+e1KTuwrBoFZJ6W+oki3PUC2ORA0BsIzhMq/znh8yCDjH6MuLHKbyLx51NJHYStpW9Crm9yexvGQ9VoqE47vCFCp+soc1ZpqrYxd2Fw4Oeg0DuzfLFG/N3lKnQZG+4DST1InF+7YND2S6DfTRi85TCHXw4HoHL3QEE+2haUEtMyFFjU19Aw71+RFBYp1bY/n+HR7FvR2fcH4BZ+TPfa8ALlckfAkC8xz2pSEuSOLvHhIaOVeYYXLkaMH1nS7g07+GEqB4G8mwyqxVJ0bMfEs2o8zL2PRYtqPXkSDN04cSo7Ie1Tauna7D59Q7EbPvaVquiYUCG9m+I7lBrVc0v7aIKOQgVdhno5nHrudoAn7BTzoDZVNt/s6fPdJTlvsFHX8YQ384NimhvyyJlJViOJl1T9PF/9lRGOjbUFD6IgTF11LSxMiKIYTyHEhApNV0Ox7UbM8cbuEhLSZmxOjAniDbyKiqwTfSeS+yF6vjq79vxLi6E/jc7qJKL9Ippo/D8I/XFp4kY/QVflQNd8MN2tLepNDr+zB0yVn3Ww71Xkc= 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:(13230028)(4636009)(376002)(136003)(39860400002)(346002)(396003)(451199021)(40470700004)(46966006)(36840700001)(36756003)(86362001)(316002)(70586007)(70206006)(41300700001)(7696005)(6666004)(6916009)(54906003)(4326008)(40480700001)(82310400005)(2876002)(8676002)(2906002)(8936002)(478600001)(5660300002)(81166007)(356005)(186003)(82740400003)(16526019)(1076003)(26005)(36860700001)(47076005)(83380400001)(2616005)(426003)(336012)(40460700003)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Apr 2023 15:05:18.6383 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e5701758-7348-41fd-bea9-08db3454d6b7 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: DM6NAM11FT091.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB8988 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain From: Abner Chang In part II, we had implemented - PLDM protocol - MCTP protocol - PLDM SMBIOS Transfer protocol - MCTP manageability transport interface - Support maximum transfer unit of transport interface - Add more heler functions - Add two new fields HeaderSize and TrailerSize in MANAGEABILITY_TRANSFER_TOKEN structure. - Add PCDs to build the manageability modules. Signed-off-by: Abner Chang Cc: Isaac Oram Cc: Abdul Lateef Attar Cc: Nickle Wang Cc: Igor Kulchytskyy Cc: Tinh Nguyen Abner Chang (9): ManageabilityPkg: Add more helper functions ManageabilityPkg: Support Maximum Transfer Unit ManageabilityPkg: Fix Uncrustify errors ManageabilityPkg: Add HeaderSize and TrailerSize ManageabilityPkg: Add PldmProtocolLib ManageabilityPkg/KCS: KCS transport interface ManageabilityPkg/MctpProtocol: Add MctpProtocol ManageabilityPkg: Add MCTP transport interface ManageabilityPkg/PldmProtocol: Add PLDM protocol abnchang (5): ManageabilityPkg: Add PldmSmbiosTransferDxe driver ManageabilityPkg: Add definitions of MCTP ManageabilityPkg: Add Manageability PCDs ManageabilityPkg: Relocate Manageability.dsc ManageabilityPkg: Add Manageability FDFs .../ManageabilityPkg/ManageabilityPkg.dec | 28 + .../Include/{Dsc =3D> }/Manageability.dsc | 21 + .../ManageabilityPkg/ManageabilityPkg.dsc | 14 +- .../ManageabilityPkg/Include/PostMemory.fdf | 28 + .../ManageabilityPkg/Include/PreMemory.fdf | 12 + .../BaseManageabilityTransportHelper.inf | 1 + .../Dxe/DxeManageabilityTransportMctp.inf | 44 ++ .../Dxe/PldmProtocolLib.inf | 42 ++ .../MctpProtocol/Dxe/MctpProtocolDxe.inf | 53 ++ .../PldmProtocol/Dxe/PldmProtocolDxe.inf | 50 ++ .../PldmSmbiosTransferDxe.inf | 47 ++ .../Include/Library/BasePldmProtocolLib.h | 41 ++ .../Library/ManageabilityTransportHelperLib.h | 98 ++++ .../Library/ManageabilityTransportLib.h | 35 +- .../Library/ManageabilityTransportMctpLib.h | 54 ++ .../Include/Protocol/MctpProtocol.h | 102 ++++ .../Include/Protocol/PldmProtocol.h | 87 +++ .../Protocol/PldmSmbiosTransferProtocol.h | 184 +++++++ .../Common/ManageabilityTransportKcs.h | 22 +- .../Dxe/ManageabilityTransportMctp.h | 26 + .../IpmiProtocol/Common/IpmiProtocolCommon.h | 36 +- .../IpmiProtocol/Pei/IpmiPpiInternal.h | 8 +- .../MctpProtocol/Common/MctpProtocolCommon.h | 139 +++++ .../PldmProtocol/Common/PldmProtocolCommon.h | 109 ++++ .../BaseManageabilityTransportHelper.c | 218 +++++++- .../BaseManageabilityTransportNull.c | 18 +- .../Common/KcsCommon.c | 207 ++++--- .../Dxe/ManageabilityTransportKcs.c | 61 ++- .../Dxe/ManageabilityTransportMctp.c | 367 +++++++++++++ .../PldmProtocolLibrary/Dxe/PldmProtocolLib.c | 87 +++ .../IpmiProtocol/Common/IpmiProtocolCommon.c | 63 ++- .../Universal/IpmiProtocol/Dxe/IpmiProtocol.c | 22 +- .../Universal/IpmiProtocol/Pei/IpmiPpi.c | 49 +- .../Universal/IpmiProtocol/Smm/IpmiProtocol.c | 22 +- .../MctpProtocol/Common/MctpProtocolCommon.c | 461 ++++++++++++++++ .../Universal/MctpProtocol/Dxe/MctpProtocol.c | 216 ++++++++ .../PldmProtocol/Common/PldmProtocolCommon.c | 432 +++++++++++++++ .../Universal/PldmProtocol/Dxe/PldmProtocol.c | 181 ++++++ .../PldmSmbiosTransferDxe.c | 518 ++++++++++++++++++ Features/ManageabilityPkg/Readme.md | 10 + .../Dxe/ManageabilityTransportMctp.uni | 13 + .../Dxe/PldmProtocolLib.uni | 18 + 42 files changed, 4050 insertions(+), 194 deletions(-) rename Features/ManageabilityPkg/Include/{Dsc =3D> }/Manageability.dsc (50= %) create mode 100644 Features/ManageabilityPkg/Include/PostMemory.fdf create mode 100644 Features/ManageabilityPkg/Include/PreMemory.fdf create mode 100644 Features/ManageabilityPkg/Library/ManageabilityTranspor= tMctpLib/Dxe/DxeManageabilityTransportMctp.inf create mode 100644 Features/ManageabilityPkg/Library/PldmProtocolLibrary/D= xe/PldmProtocolLib.inf create mode 100644 Features/ManageabilityPkg/Universal/MctpProtocol/Dxe/Mc= tpProtocolDxe.inf create mode 100644 Features/ManageabilityPkg/Universal/PldmProtocol/Dxe/Pl= dmProtocolDxe.inf create mode 100644 Features/ManageabilityPkg/Universal/PldmSmbiosTransferD= xe/PldmSmbiosTransferDxe.inf create mode 100644 Features/ManageabilityPkg/Include/Library/BasePldmProto= colLib.h create mode 100644 Features/ManageabilityPkg/Include/Library/Manageability= TransportMctpLib.h create mode 100644 Features/ManageabilityPkg/Include/Protocol/MctpProtocol= .h create mode 100644 Features/ManageabilityPkg/Include/Protocol/PldmProtocol= .h create mode 100644 Features/ManageabilityPkg/Include/Protocol/PldmSmbiosTr= ansferProtocol.h create mode 100644 Features/ManageabilityPkg/Library/ManageabilityTranspor= tMctpLib/Dxe/ManageabilityTransportMctp.h create mode 100644 Features/ManageabilityPkg/Universal/MctpProtocol/Common= /MctpProtocolCommon.h create mode 100644 Features/ManageabilityPkg/Universal/PldmProtocol/Common= /PldmProtocolCommon.h create mode 100644 Features/ManageabilityPkg/Library/ManageabilityTranspor= tMctpLib/Dxe/ManageabilityTransportMctp.c create mode 100644 Features/ManageabilityPkg/Library/PldmProtocolLibrary/D= xe/PldmProtocolLib.c create mode 100644 Features/ManageabilityPkg/Universal/MctpProtocol/Common= /MctpProtocolCommon.c create mode 100644 Features/ManageabilityPkg/Universal/MctpProtocol/Dxe/Mc= tpProtocol.c create mode 100644 Features/ManageabilityPkg/Universal/PldmProtocol/Common= /PldmProtocolCommon.c create mode 100644 Features/ManageabilityPkg/Universal/PldmProtocol/Dxe/Pl= dmProtocol.c create mode 100644 Features/ManageabilityPkg/Universal/PldmSmbiosTransferD= xe/PldmSmbiosTransferDxe.c create mode 100644 Features/ManageabilityPkg/Library/ManageabilityTranspor= tMctpLib/Dxe/ManageabilityTransportMctp.uni create mode 100644 Features/ManageabilityPkg/Library/PldmProtocolLibrary/D= xe/PldmProtocolLib.uni --=20 2.37.1.windows.1