From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (NAM11-CO1-obe.outbound.protection.outlook.com [40.107.220.46]) by mx.groups.io with SMTP id smtpd.web09.19483.1665840504051843846 for ; Sat, 15 Oct 2022 06:28:24 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@amd.com header.s=selector1 header.b=AXYvO+g8; 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.220.46, mailfrom: abner.chang@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hBcHOm2XVuf+sIIRDGQTKx/oBH0LRXUwCx2S8WMbUDopr66Zwhq4/0xQWqhasFGbq/JeP5v1p7ptpOWlgx1J0X1mqA1WtgrJ8ID2qGbRcYDYfzobkD//+XwvcyDY1p9yDf5i73lGfjqJ2MZgEQZJhRFqDq+ny5UGKY4vi392CDh8twDei3jVChzq3Qbkv1dnVGqjZSXfLSNNFwoCCJi7q7B0EAvPcJ7o+RBGFTe1htEhi+arZUon74nCDAzL31Fe4t50W8vvjsT/s+VKdcC+wJFmN12Se0IruhHQwhtzvYX5ga6GDRzFLAHaf+kJ9FfLsG5HSgzSB0/Q8nYH2cR4vw== 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=PsfxCOYPQGS+1IgTQEqToopmV6+RVM+NainX/ou5GUo=; b=esacAJcIzYmx29DQp93m1cINKjsKCguvA+P0IQneFZzgQ0mCyzKT4NvnGHSHHGT5+Ss81Sk7iXakV7DN4u2KzKwUl9cTSarlHiX1mdgOv6dTRNsJjzVuqRSjxItnkiN9xpywlcnkq4NCC8L/or9oAvtGrion3RdWI62c5avT798V5Y3bqYo1DZOK8GWuJr1E3JmxlmfLWFCn3GIcaxo76NR9ckeDcVfBKzperjx5YMiIDeGXgSpnqpXSViADUtEjE8jocUqf/3gNRN5H9qdsSy2P7vAWwMQkwtTcyT3xu6g9RR9RznXDPCQZDA95/YJX+rQOEEze2Hm/BZUpj6BoXA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; 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=PsfxCOYPQGS+1IgTQEqToopmV6+RVM+NainX/ou5GUo=; b=AXYvO+g8OXmyjfo+7CsD4hjg1mjqa6fgwVN1c72UzJGGgNjg68GBfq5bTU6BqMcd/6rMHXvUYtZCOHwhU43IpEuI4uDv5rKA8t8JtBgi3Kzd4X/ogglPkvuuV5WuPCQirB1Khivs6dfh6PaXTXZAS848awtAW6hljIq286w6+0E= Received: from MN2PR12MB3966.namprd12.prod.outlook.com (2603:10b6:208:165::18) by CH0PR12MB5249.namprd12.prod.outlook.com (2603:10b6:610:d0::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.30; Sat, 15 Oct 2022 13:28:19 +0000 Received: from MN2PR12MB3966.namprd12.prod.outlook.com ([fe80::2eab:b851:827c:1d88]) by MN2PR12MB3966.namprd12.prod.outlook.com ([fe80::2eab:b851:827c:1d88%3]) with mapi id 15.20.5723.030; Sat, 15 Oct 2022 13:28:16 +0000 From: "Chang, Abner" To: "devel@edk2.groups.io" , "sunilvl@ventanamicro.com" CC: Michael D Kinney , Liming Gao , Zhiguang Liu Subject: Re: [edk2-devel] [edk2-staging/RiscV64QemuVirt PATCH V4 02/34] MdePkg: Add RISCV_EFI_BOOT_PROTOCOL related definitions Thread-Topic: [edk2-devel] [edk2-staging/RiscV64QemuVirt PATCH V4 02/34] MdePkg: Add RISCV_EFI_BOOT_PROTOCOL related definitions Thread-Index: AQHY3+zclEq/SrqQQ0CB3ldzKCZyTq4PdBfg Date: Sat, 15 Oct 2022 13:28:16 +0000 Message-ID: References: <20221014164836.1513036-1-sunilvl@ventanamicro.com> <20221014164836.1513036-3-sunilvl@ventanamicro.com> In-Reply-To: <20221014164836.1513036-3-sunilvl@ventanamicro.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Enabled=true; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_SetDate=2022-10-15T13:28:14Z; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Method=Standard; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Name=General; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_ActionId=1349f1c1-ba09-4eed-8f61-82737dc5d22f; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_ContentBits=1 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MN2PR12MB3966:EE_|CH0PR12MB5249:EE_ x-ms-office365-filtering-correlation-id: 2a305dbb-0ff0-4aea-927a-08daaeb11e35 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: JmcSNs45Yw0K/PyynKcPkHNMmu8Sjceyqh+WNfr0znme1EEVLwSbp7hhp+oDMu87PQ1VsBiROwCOw9kMnT55tZSNTz2aSAZ1CuQGtMkqruEcFxAAYZueVjcVCrHnndCRE/qsL3NXuTUPslWXrUZnu2ECsiPWbU3zFPr4aVZmUT6OUez0c5/yEHpxvUGA5Llrpr1rHFJk6MCzmJ6CQVwEQtPOFR+jkOdZ4a5rsJC7MwT6E8agLSowPa6Jc3WsfJRfqYRlYxqn+kDK8cI+hZol605cTEIH+H+sByJYZ5rUPtJNc2L/Xw77osdJ86MQYJ9m0mub0JsthZrrmw24BhV65Uii0AS7H/dgJBUz5AI6tXSVIItCOiZB5IYjBuC4Tb7eb9wxAR3aj8eAPrv+WdzttU+4VXVYYWO+FIrA+RHwg1iMBBAGA9FIIoE/mTxEgYxGOUe3KHTMjay43UN6zPCC+JZwkyCb5DJYRjHUZ9WfbCCHWBj4IoChr6V64sy1S28lliJtx1AqQN62SXfE3jtLvwgiR04QiLXQ+D1m1mWm4YDgrEIRHeeUv29veVMcc/blZtSFeW0+3hqhLNa7skzA5kIXIq2pa+IM1MWSpGXiKrGbUBg4ZPRV4aERapSCDXIeYkk5VFTtWD5Mq6fl2OugfSrs11C6OOda4xUlAInncrVEmkIjn2ieskudmUGMsYRZA9SCQlX2SBzChpTmLvNliQPX1Ca92MNiPoaeLQVtaZF6lmeqJa2k+Yi0hYagUcxEjogw6RnbyVjjxkPPpw41PCPckgsGmc47koJivfax5NPJ86tEremhTR1FidI+FadxWe8Gjv/7p6UaXyylNgQm/A== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR12MB3966.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(39860400002)(136003)(366004)(396003)(346002)(376002)(451199015)(316002)(5660300002)(54906003)(110136005)(26005)(9686003)(41300700001)(55016003)(7696005)(6506007)(53546011)(86362001)(122000001)(83380400001)(66556008)(66946007)(76116006)(66476007)(66446008)(64756008)(4326008)(8676002)(38070700005)(8936002)(52536014)(66899015)(71200400001)(2906002)(966005)(45080400002)(38100700002)(33656002)(186003)(478600001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-ex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yuBYAmG6bC0wA60crM+Gn8CBDn1Ksq+w90m+45xDRqtS58n23slA?= =?us-ascii?Q?gUH/MsZi2LZ9ivOajj8GQqKk0RxqNKMbKco12QJVZHDxT3Ci7Ef8dq1ZIC2x?= =?us-ascii?Q?AS/LRzuSrn+o0D7ImjIgw2HeLY4bPv6CVo74VqMfnDDRqPBqhbuB2ZCuiCHY?= =?us-ascii?Q?WE7SPW0omtkfB0OXDpG6tHys1V8y0gPGU1jThQzLJyISVaJuGcQqnj1KJpH3?= =?us-ascii?Q?6rQeyyMDeg+XMcb5SOvUtqcBhxKTlev4aaGIAqiLois3UM7JoZtM/bw0Mqid?= =?us-ascii?Q?ZkTdCZJQe3WEGJsfTwvNJqSRF+Q26mf2CytS687zRzDZy0jCvs2jMBa6hgbm?= =?us-ascii?Q?+IAYLGF3ypjVohKIwEokD61bD2hgC7dbHZX/N+F0xaoYWiA7TRhPnEF+yRkM?= =?us-ascii?Q?UY9kBzopsDIFY+KmcNvSq5VeFSNI3kpkVaWcv+Gv9Fo3wGoTEFPvg3fm6i9y?= =?us-ascii?Q?C87KRT5xB+tYjwfnMbYbJfCyj6pmG2i0dC8rBUQlXBYHDK5bwDttz/3W+5mU?= =?us-ascii?Q?i5azo+/MXYdu6WfI2h4oqCi0INgGcZmNOoIB1en8WtZ947clnTeLsGGQNNnx?= =?us-ascii?Q?Hy/y63Bci27qrNDOMJ7zhQTh9j9xml0Qasew9Hs64JHxNVvMoPkJtcuNnTrM?= =?us-ascii?Q?Vj9FmqfywrmUuSMz57O4pYfMGxWiDbPDPI07hTCRDmH9XcqtVea9g3zhQuCG?= =?us-ascii?Q?Gh0HZ+PrBtW9aXGWi5iLLHmpWJOFJMDu76sxxAN3?= MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB3966.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2a305dbb-0ff0-4aea-927a-08daaeb11e35 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Oct 2022 13:28:16.5149 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: KbnVKDHdMNR6zIAzEtqCV0IOYbcBaIu/8eFOtqi152w7c8Ua7LXA8QsE6DNGTNFQdWMq0gRuuuTUSMp5ImmuLg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR12MB5249 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable [AMD Official Use Only - General] Acked-by: Abner Chang > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Sunil V L > via groups.io > Sent: Saturday, October 15, 2022 12:48 AM > To: devel@edk2.groups.io > Cc: Michael D Kinney ; Liming Gao > ; Zhiguang Liu > Subject: [edk2-devel] [edk2-staging/RiscV64QemuVirt PATCH V4 02/34] > MdePkg: Add RISCV_EFI_BOOT_PROTOCOL related definitions >=20 > Caution: This message originated from an External Source. Use proper > caution when opening attachments, clicking links, or responding. >=20 >=20 > REF: > https://nam11.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fbugz > illa.tianocore.org%2Fshow_bug.cgi%3Fid%3D4076&data=3D05%7C01%7Ca > bner.chang%40amd.com%7C83fc42c310e04d905e7208daae03fd46%7C3dd89 > 61fe4884e608e11a82d994e183d%7C0%7C0%7C638013629413405613%7CUnkn > own%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik > 1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=3DExRytZCEzuFM1 > rBm%2BPJR35Kh%2F73nud8TISooZQA8oTk%3D&reserved=3D0 >=20 > RISC-V UEFI based platforms need to support RISCV_EFI_BOOT_PROTOCOL. > Add this protocol GUID definition and the header file required. >=20 > Cc: Michael D Kinney > Cc: Liming Gao > Cc: Zhiguang Liu > Signed-off-by: Sunil V L > --- > MdePkg/MdePkg.dec | 5 +++ > MdePkg/Include/Protocol/RiscVBootProtocol.h | 34 > ++++++++++++++++++++ > 2 files changed, 39 insertions(+) >=20 > diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec index > 4c81cbd75ab2..dda1d5e15b9f 100644 > --- a/MdePkg/MdePkg.dec > +++ b/MdePkg/MdePkg.dec > @@ -1918,6 +1918,11 @@ [Protocols] > # > ## Include/Protocol/ShellDynamicCommand.h > gEfiShellDynamicCommandProtocolGuid =3D { 0x3c7200e9, 0x005f, 0x4ea4, > {0x87, 0xde, 0xa3, 0xdf, 0xac, 0x8a, 0x27, 0xc3 }} > + # > + # Protocols defined for RISC-V systems # ## > + Include/Protocol/RiscVBootProtocol.h > + gRiscVEfiBootProtocolGuid =3D { 0xccd15fec, 0x6f73, 0x4eec, { 0x83, > + 0x95, 0x3e, 0x69, 0xe4, 0xb9, 0x40, 0xbf }} >=20 > # > # [Error.gEfiMdePkgTokenSpaceGuid] > diff --git a/MdePkg/Include/Protocol/RiscVBootProtocol.h > b/MdePkg/Include/Protocol/RiscVBootProtocol.h > new file mode 100644 > index 000000000000..ed223b852d34 > --- /dev/null > +++ b/MdePkg/Include/Protocol/RiscVBootProtocol.h > @@ -0,0 +1,34 @@ > +/** @file > + RISC-V Boot Protocol mandatory for RISC-V UEFI platforms. > + > + @par Revision Reference: > + The protocol specification can be found at > + > + > https://nam11.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fgith > + ub.com%2Friscv-non-isa%2Friscv- > uefi&data=3D05%7C01%7Cabner.chang%40a > + > md.com%7C83fc42c310e04d905e7208daae03fd46%7C3dd8961fe4884e608e11 > a82d99 > + > 4e183d%7C0%7C0%7C638013629413405613%7CUnknown%7CTWFpbGZsb3d8 > eyJWIjoiMC > + > 4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000% > 7C%7C% > + > 7C&sdata=3D9jNorRN9%2FolRl%2F2prsoKUS%2BraT7fNEbxe2wNLrsdPPY > %3D& > + reserved=3D0 > + > + Copyright (c) 2022, Ventana Micro Systems Inc. All rights > + reserved.
> + SPDX-License-Identifier: BSD-2-Clause-Patent > + > +**/ > + > +#ifndef RISCV_BOOT_PROTOCOL_H_ > +#define RISCV_BOOT_PROTOCOL_H_ > + > +typedef struct _RISCV_EFI_BOOT_PROTOCOL RISCV_EFI_BOOT_PROTOCOL; > + > +#define RISCV_EFI_BOOT_PROTOCOL_REVISION 0x00010000 #define > +RISCV_EFI_BOOT_PROTOCOL_LATEST_VERSION \ > + RISCV_EFI_BOOT_PROTOCOL_REVISION > + > +typedef > +EFI_STATUS > +(EFIAPI *EFI_GET_BOOT_HARTID)( > + IN RISCV_EFI_BOOT_PROTOCOL *This, > + OUT UINTN *BootHartId > + ); > + > +typedef struct _RISCV_EFI_BOOT_PROTOCOL { > + UINT64 Revision; > + EFI_GET_BOOT_HARTID GetBootHartId; > +} RISCV_EFI_BOOT_PROTOCOL; > + > +#endif > -- > 2.38.0 >=20 >=20 >=20 >=20 >=20