From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (NAM10-BN7-obe.outbound.protection.outlook.com [40.107.92.59]) by mx.groups.io with SMTP id smtpd.web12.2257.1665709331616075822 for ; Thu, 13 Oct 2022 18:02:11 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@amd.com header.s=selector1 header.b=5elmyVMa; 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.92.59, mailfrom: abner.chang@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A9DsdW4qzAJPKf/Sd/iuf3unel0ri8VC+SawSDIBABY1RwZJEHEqziEpftKlRgU3boQ5oNkd3ZHpQTxg7mebjOYZD61p9h3RDSMSI40bGJD/TTSNesI/L9cMAPMDIeorfV+OKfLzGM9t8LnAFIvTE+5cd93MkzoYQ9rza5zDOCkdWAhj+cUZoZIa3ELc0gr2JJtvPRdpUWCs4mBpa1TFeQKajJtc1/TcWGpJXpvAGmUoNUFMjueY2TzizzIg0CCv+bLLP2b8sZ3/WUmyo9EmojBINxBj/t1KJZ04sLX3NQtfYBpXLKkklW/tQjeSnvqMhPbsvgavMlJlUaRxEKo+Kw== 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=xAfrr4qBJAN1hLjL6hkC8oNl2/pjtcryPiXD3liYOKs=; b=lrcwUjBfQOiIeg/CN+jQxbL+JslYN+BQ6mxzLBdK93eeEwuTbvhqfBFLcw9PO/R+hgFM65aBwJ3f7c/Y7XuayHkCDuzhuQx4JX4YWUWy4ssuHr0+3TPYh8EId9KTCU4rqJnHEYiUggMvqGYLI1A7/Ne69TCBRgS45NMzuRAmXRew0DpnmCQP6Kjolx1IVAnww74eI7/x8p9y0kZC8S09rAkRSXC4xkvJ1S6EAxQXV92LRcxmJ/M49KcG7hflECkW70TqjG/2TuW7TITaMcxoDGITiXA5RB0g039cUpPGRmfmPEgox6nmBRioL093DMxY+CPQL1gbGRPAETp41LiPOg== 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=xAfrr4qBJAN1hLjL6hkC8oNl2/pjtcryPiXD3liYOKs=; b=5elmyVMavfh3zbxPtcyC30wbxDlB0Jtp9Qt4meGEbHAWTiF+aDQm11YSexRXTY+xgCnewOHKNDrINa9QlOUCiPf2kSehDl8Zo3pRvJCRhaFas081LqPJagb1ixvwSK4L6sCXXXTZ6wzmPO/RwRFGQzQX20WZCkS/HOjDbVHFzoo= Received: from CH2PR12MB3957.namprd12.prod.outlook.com (2603:10b6:610:2c::17) by BN9PR12MB5130.namprd12.prod.outlook.com (2603:10b6:408:137::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.26; Fri, 14 Oct 2022 01:02:09 +0000 Received: from CH2PR12MB3957.namprd12.prod.outlook.com ([fe80::fdbb:b31e:2364:65fc]) by CH2PR12MB3957.namprd12.prod.outlook.com ([fe80::fdbb:b31e:2364:65fc%4]) with mapi id 15.20.5723.022; Fri, 14 Oct 2022 01:02:07 +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 V3 02/34] MdePkg: Add RISCV_EFI_BOOT_PROTOCOL related definitions Thread-Topic: [edk2-devel] [edk2-staging/RiscV64QemuVirt PATCH V3 02/34] MdePkg: Add RISCV_EFI_BOOT_PROTOCOL related definitions Thread-Index: AQHY3upqLjoXjnwDwEKWfbZIPsvg2K4NEq5g Date: Fri, 14 Oct 2022 01:02:07 +0000 Message-ID: References: <20221013095829.1454581-1-sunilvl@ventanamicro.com> <20221013095829.1454581-3-sunilvl@ventanamicro.com> In-Reply-To: <20221013095829.1454581-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-14T01:02:05Z; 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=3297f775-6f69-43b9-8e43-fc1f736501ac; 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: CH2PR12MB3957:EE_|BN9PR12MB5130:EE_ x-ms-office365-filtering-correlation-id: 1304144f-a721-4db8-a593-08daad7fb798 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: oQ42rwo29Y8pU7HTYaS1RR72mZm+ZL0NwZY/DItDKzAMLb2IwebnHstJqaRye7Fg77vb++pd8ja8gapAqdTtggvvfxwwu6urbpyki2cfQWXksR6FjThYj1MfyoVKIttminb+1ZVUwaS/6xxr1xnDxCOt0rWOQIV09toZ3SWTsapc8HzlgtFOna2WA4VtWNjTxdlO5SaWn+4k58UIPFTQ5iHoxKmxWVQL0kjuBGAfYTS0Dni86PQo0cHVQCQhA9/SCunCVXzSazbP5B/8k6FHpRvFkk4Ui4mYE7+5ZwkxAN/zB7k6tfOR6Ulgd4FvQfX6eAtCIBfqV12J6rCkJtbmlDF+8NBtjT6i+gulvrxNd0Y2oebEPhMhbx5a3aw7+QmPqQidGVQFjGyyWkXNBrwxQlEBldtH5Lc8I4jnhUoKN2aE/8Zby3qCSOR1uKRvhvgDq0eENgv1t+2xhnHVaBt6wpH8AYS4PNx5Td4VhdS+PlW4qmJkYknpFPRhMvGtFHGQ8GENI1dJqFoAM/DUllNIvVnFmAPOT2OaMB/GAkwbkciDMoKWgFc5FmFYtTae5i7j+x0/sxJHmKK8ZfXG7S1SF84UEUISjgtBgOdIbbAHR6PouZG9Utu5ZxhsOYswAW+XiryqLoisZicZygm0yWODyCH9JiqcrYdybTxqGXMn3KBjGKjRTxjiCGCn/TBwb7I8uczudm2xs6fgX6X16wfFlzeEJZDBOgF7a50UZroLctAh/01B8lhOn0ELOgk7eGR8W211MrloHhjYyECxvtvUpUDa0oG7nzI7XRoYJZdEe0MmqdhdXhMDrxewCMYaFDmz5hfpsYzPfGkaTPZge68O5g== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH2PR12MB3957.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(376002)(366004)(136003)(39860400002)(396003)(346002)(451199015)(38070700005)(66899015)(71200400001)(966005)(110136005)(54906003)(45080400002)(478600001)(316002)(186003)(38100700002)(8936002)(66446008)(66476007)(66556008)(76116006)(66946007)(4326008)(8676002)(64756008)(122000001)(55016003)(5660300002)(41300700001)(26005)(6506007)(7696005)(53546011)(86362001)(33656002)(9686003)(52536014)(83380400001)(2906002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange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PGxefw0PvP+LHAAuIooCkPbTX8Ze3rOdjjtaKcN9FMT?= =?us-ascii?Q?tlslR2W6QHe/JFyWPnSmbtWCvCT/RPwoR6FzDzIN9Nv41R7eCnt3vTOhNLo5?= =?us-ascii?Q?nkyllZisOStSebXfCzB96gaNuYV8lGgoRyYHO1HTLwfNCgxyORzBZS3ZvRQY?= =?us-ascii?Q?EQ4AGqzX1tVDXTwIVDteMgM2pWoEqeiZhA2V5susDvslWvYz9EWzvbPpWbg6?= =?us-ascii?Q?PAs2JoxH/25df/hrUH9rj95+FNzlW05vrh+8AKyveFKnIg0wBG5KKcP5RNNk?= =?us-ascii?Q?SMdaEJpjLUGhSV7KQ4Ri4EeAlN1BdEGVvRIzs8vPJw3ex7Z6ZYsOSkkeIc55?= =?us-ascii?Q?BBytqKZDd/mrp/JEUmXiAmycJ1+om+bnS/EjQtA92vmj3wq/z3uE51JdGNnN?= =?us-ascii?Q?lw0KqtUQeB9Jb5US+qh6lMjZAFIS/ZHwJgL2v4RfnvcHaVFGqPhV2gbkWCSK?= =?us-ascii?Q?OghVE1NgE9OUbxvQCDosu3wg3EGIdoX9pB6P2zBN0OtTt3/Rz1XbG6yKPAOt?= =?us-ascii?Q?FH+7QCckPYIfkMhn31mc0KzxNNf7hnxUCnzMWvxhMHkjCOtL8IFNaFdAtQMo?= =?us-ascii?Q?y/KYzbEfdUvB+kesZktM7OEV1nLTXfNlYpcAJw1KEeep+ZljIbcNx2Nuan9+?= =?us-ascii?Q?EGO3dHpoqTVug47OSI4H1aA77ezX4a+XCPxxLYIjk9I0UWWGHWQWqAg38fI4?= =?us-ascii?Q?r+uy8w7rnpk8kXjGsEU=3D?= MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB3957.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1304144f-a721-4db8-a593-08daad7fb798 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Oct 2022 01:02:07.8407 (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: IKL7uKNsSEVzZs2/9byLb8mmWfn/hO8DXA+jbhi3o/C2m8e8k5FXCkN7ZG35/2UTsl0xIKONEphuyVt9Jo1+jQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR12MB5130 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable [AMD Official Use Only - General] > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Sunil V L = via > groups.io > Sent: Thursday, October 13, 2022 5:58 PM > To: devel@edk2.groups.io > Cc: Michael D Kinney ; Liming Gao > ; Zhiguang Liu > Subject: [edk2-devel] [edk2-staging/RiscV64QemuVirt PATCH V3 02/34] MdePk= g: > Add RISCV_EFI_BOOT_PROTOCOL related definitions >=20 > Caution: This message originated from an External Source. Use proper caut= ion > when opening attachments, clicking links, or responding. >=20 >=20 > REF: > https://nam11.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fbugzi= lla. > tianocore.org%2Fshow_bug.cgi%3Fid%3D4076&data=3D05%7C01%7Cabner. > chang%40amd.com%7C0df18d1274f04083208208daad018bc2%7C3dd8961fe48 > 84e608e11a82d994e183d%7C0%7C0%7C638012519406523318%7CUnknown% > 7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiL > CJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=3D%2Bynu9ig0EeeuMDr5V0F > ON3iY1p4nrTdb77O0j8SGkxs%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 | 6 ++++ > MdePkg/Include/Protocol/RiscVBootProtocol.h | 32 +++++++++++++++++++++ > 2 files changed, 38 insertions(+) > create mode 100644 MdePkg/Include/Protocol/RiscVBootProtocol.h >=20 > diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec index > f1ebf9e251c1..8f1bcfdc3e97 100644 > --- a/MdePkg/MdePkg.dec > +++ b/MdePkg/MdePkg.dec > @@ -1915,6 +1915,12 @@ [Protocols] > ## Include/Protocol/ShellDynamicCommand.h > gEfiShellDynamicCommandProtocolGuid =3D { 0x3c7200e9, 0x005f, 0x4ea4, > {0x87, 0xde, 0xa3, 0xdf, 0xac, 0x8a, 0x27, 0xc3 }} >=20 > + # > + # Protocols defined for RISC-V systems # ## > + Include/Protocol/RiscVBootProtocol.h > + gRiscVEfiBootProtocolGuid =3D { 0xccd15fec, 0x6f73, 0x4eec, { 0x83, > + 0x95, 0x3e, 0x69, 0xe4, 0xb9, 0x40, 0xbf }} > + > # > # [Error.gEfiMdePkgTokenSpaceGuid] > # 0x80000001 | Invalid value provided. > diff --git a/MdePkg/Include/Protocol/RiscVBootProtocol.h > b/MdePkg/Include/Protocol/RiscVBootProtocol.h > new file mode 100644 > index 000000000000..cb94f61cd46c > --- /dev/null > +++ b/MdePkg/Include/Protocol/RiscVBootProtocol.h > @@ -0,0 +1,32 @@ > +/** @file > + RISC-V Boot Protocol mandatory for RISC-V UEFI platforms. > + You can have "@par Revision Reference:" for the reference to spec. > + Specification available at > + > + https://nam11.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fgit= h > + ub.com%2Friscv-non-isa%2Friscv- > uefi&data=3D05%7C01%7Cabner.chang%40a > + > md.com%7C0df18d1274f04083208208daad018bc2%7C3dd8961fe4884e608e11 > a82d99 > + > 4e183d%7C0%7C0%7C638012519406523318%7CUnknown%7CTWFpbGZsb3d8e > yJWIjoiMC > + > 4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C > %7C% > + > 7C&sdata=3Df2SuwtirAU08pL2MlMris2XmdKkf6OH1muIG%2FPhmH5M%3D& > amp;rese > + rved=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 "EFI_STATUS " in the new line for the consistent coding style with other fi= les. After you fix that: Acked-by: Abner Chang Abner > +(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.25.1 >=20 >=20 >=20 >=20 >=20