From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: hpe.com, ip: 148.163.143.35, mailfrom: prvs=0163abfc0e=abner.chang@hpe.com) Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by groups.io with SMTP; Mon, 16 Sep 2019 23:59:02 -0700 Received: from pps.filterd (m0148664.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x8H6tvOT016301; Tue, 17 Sep 2019 06:59:01 GMT Received: from g4t3427.houston.hpe.com (g4t3427.houston.hpe.com [15.241.140.73]) by mx0b-002e3701.pphosted.com with ESMTP id 2v2d4ky5sk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Sep 2019 06:59:00 +0000 Received: from G9W8455.americas.hpqcorp.net (exchangepmrr1.us.hpecorp.net [16.216.161.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g4t3427.houston.hpe.com (Postfix) with ESMTPS id 5E5D582; Tue, 17 Sep 2019 06:59:00 +0000 (UTC) Received: from G9W8455.americas.hpqcorp.net (2002:10d8:a15e::10d8:a15e) by G9W8455.americas.hpqcorp.net (2002:10d8:a15e::10d8:a15e) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 17 Sep 2019 06:59:00 +0000 Received: from NAM01-BY2-obe.outbound.protection.outlook.com (15.241.52.12) by G9W8455.americas.hpqcorp.net (16.216.161.94) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Tue, 17 Sep 2019 06:59:00 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fgFh4PENAjTI01OtrLxynirJi0tFxt+hQBDnpbj28dXXJSKWGKtFBwmVV6OrZsfdnCzutLUfN4jutwgrqfoG7l9r46hbND4f6+Eoymwp4bGuUVlXG6ZWw2xbOC6f1tHa3gIzszXWpvK5fNgWXb66A2Xobs/1c4X9vJ+mc/wtYjVb6FfJw+CiFjvq51THoAJw8YmweMwgJ9fToUs1Sa8jEm24Zy/Gxx8gm1upZ0AQRr9l5u84SYvrrZ8AZWog6b1m+HJe/4xFxL2Y0D6p7PzV26psrbB86lhnGxWkW7Woi8ggd7ooUV/QJr9KboS96vgn+LvvF3mgq0uKl2kp2I/j4Q== 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-SenderADCheck; bh=LNG1rEgITGyVo77t8/MWdfyPUHWAt5lQ5GEQQCp+768=; b=SV+IwzMTsPX4SDIllP/T2C/mb1mbrX5Wk0I7tzTx8oioSBRz9Alr9U5E3FBqlrWiobMut7K+fIQ40BiVBtd1Ovl2h19I56efEipBgoIoTPALHl/hl+MLE46TEodyeZw9HZXGNDIwcQ0RjrV/qupkMsjrKMTEBOHs/60LM2QUwAdB+Da+QVtaBydz4sZLxuteiK3vnC/wNRInsOMQ9nmepqhxO6wnVLG25GWOO7kjc56g2JfEXC1TgjoucO8Yp8TYqzUV/peO3WmyKHKmO5Iy7zqTmym/ZzlCFVxUCWopVn8XHowoMKcYJ2DqKonbtVGJzHFNmiAWzoqQ2rjmnf7d9g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hpe.com; dmarc=pass action=none header.from=hpe.com; dkim=pass header.d=hpe.com; arc=none Received: from CS1PR8401MB1192.NAMPRD84.PROD.OUTLOOK.COM (10.169.12.151) by CS1PR8401MB0774.NAMPRD84.PROD.OUTLOOK.COM (10.169.96.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2263.15; Tue, 17 Sep 2019 06:58:56 +0000 Received: from CS1PR8401MB1192.NAMPRD84.PROD.OUTLOOK.COM ([fe80::4fb:84b9:76e6:1cde]) by CS1PR8401MB1192.NAMPRD84.PROD.OUTLOOK.COM ([fe80::4fb:84b9:76e6:1cde%8]) with mapi id 15.20.2263.023; Tue, 17 Sep 2019 06:58:56 +0000 From: "Abner Chang" To: "devel@edk2.groups.io" , "Chang, Abner (HPS SW/FW Technologist)" , Leif Lindholm Subject: Re: [edk2-devel] [edk2-staging/RISC-V-V2 PATCH v1 13/22]: MdePkg/Include: Update SmBios header file. Thread-Topic: [edk2-devel] [edk2-staging/RISC-V-V2 PATCH v1 13/22]: MdePkg/Include: Update SmBios header file. Thread-Index: AQHVYxHbllIHct+/e0Wy0Lt7JzDRAacdRG2AgBCtfHCAAZHpsA== Date: Tue, 17 Sep 2019 06:58:56 +0000 Message-ID: References: <1567593797-26216-1-git-send-email-abner.chang@hpe.com> <1567593797-26216-14-git-send-email-abner.chang@hpe.com> <20190905161633.GF29255@bivouac.eciton.net> <15C4D92300C8E997.28834@groups.io> In-Reply-To: <15C4D92300C8E997.28834@groups.io> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [16.242.247.131] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f164d69d-402e-4eb3-5a0c-08d73b3c8225 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600167)(711020)(4605104)(1401327)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020);SRVR:CS1PR8401MB0774; x-ms-traffictypediagnostic: CS1PR8401MB0774: x-ms-exchange-purlcount: 1 x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:538; x-forefront-prvs: 01630974C0 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6029001)(346002)(376002)(136003)(396003)(366004)(39860400002)(199004)(189003)(13464003)(102836004)(64756008)(476003)(478600001)(316002)(66446008)(14454004)(66476007)(74316002)(486006)(7736002)(25786009)(19627235002)(8936002)(81156014)(81166006)(966005)(256004)(14444005)(76116006)(446003)(11346002)(8676002)(305945005)(71200400001)(66066001)(110136005)(71190400001)(6246003)(76176011)(7696005)(6506007)(53546011)(99286004)(15650500001)(5660300002)(52536014)(26005)(186003)(66946007)(66556008)(6306002)(2501003)(86362001)(6116002)(9686003)(6436002)(55016002)(2906002)(3846002)(229853002)(33656002);DIR:OUT;SFP:1102;SCL:1;SRVR:CS1PR8401MB0774;H:CS1PR8401MB1192.NAMPRD84.PROD.OUTLOOK.COM;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: hpe.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: ywtFZWV7izwsOfIyS+6CUohXII1vBVr+qUFoIPdFAkJMTQwwkiTo4E+5DQtCmntyeCVQHehl+gXs+vrafOdQPrwrAjoMCu6u1mPigeLZHqAkQlSuiipqSYIInUhRt5YHr3Q08RQoRir/HqY45qAkcHpjJNjJAHpCkboTqj9s/8N6vMluXzTK2X/SysJQACRfQmzeMz04p7c0mpJIfhY5ab9Ttux7iRuKfxh+18zqsE+PiUEmc2azp52ZRVqJzZ296VKbOtz/LO8PVDFimb8dGo4ZQkwqCISU6biOvgl9Wraov6cRONKedvrNzkR2cEhmxgygjtA/m6AmlgD3thqf08qirTTnerd3NjydM2Y01T2c0IKWaoYIl16OeOd+q4bYdbkV4eCPejxmEXsYhcxzbEqlFFvBrLDybmpo3GUvnUc= X-MS-Exchange-CrossTenant-Network-Message-Id: f164d69d-402e-4eb3-5a0c-08d73b3c8225 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Sep 2019 06:58:56.2417 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: uL4+/JwM/HNzOvhDBEfcdCuOChLjSkXnL7Anx3vnyCvCj/yUIqwM2GmzlxZuZgnH3zYf2OkijhJQ0/KxoWsjDQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CS1PR8401MB0774 X-OriginatorOrg: hpe.com X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.70,1.0.8 definitions=2019-09-17_04:2019-09-11,2019-09-17 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 mlxlogscore=999 impostorscore=0 bulkscore=0 spamscore=0 adultscore=0 suspectscore=0 mlxscore=0 priorityscore=1501 phishscore=0 clxscore=1015 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1908290000 definitions=main-1909170076 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable > -----Original Message----- > From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of > Abner Chang > Sent: Monday, September 16, 2019 3:02 PM > To: Leif Lindholm ; devel@edk2.groups.io > Subject: Re: [edk2-devel] [edk2-staging/RISC-V-V2 PATCH v1 13/22]: > MdePkg/Include: Update SmBios header file. >=20 >=20 >=20 > > -----Original Message----- > > From: Leif Lindholm [mailto:leif.lindholm@linaro.org] > > Sent: Friday, September 6, 2019 12:17 AM > > To: devel@edk2.groups.io; Chang, Abner (HPS SW/FW Technologist) > > > > Subject: Re: [edk2-devel] [edk2-staging/RISC-V-V2 PATCH v1 13/22]: > > MdePkg/Include: Update SmBios header file. > > > > On Wed, Sep 04, 2019 at 06:43:08PM +0800, Abner Chang wrote: > > > Update SmBios header file to conform with SMBIOS v3.3.0. > > > The major update is to add definitions of SMBIOS Type 44h record. > > > > > > Contributed-under: TianoCore Contribution Agreement 1.0 > > > Signed-off-by: Abner Chang > > > > This would be really useful to get straight into edk2 - could you > > submit it straight for inclusion in edk2 master? We can then > > cherry-pick that back to the edk2-staging branch. > Forgive me that I don't want to increase the complexity to RISC-V edk2 > submittal. We can send SMBIOS patch apart from RISC-V patches with > specific subject for SMBIOS change. Ok. I sent patch of SMBIOS update to edk2 straightly. / Abner > > > > / > > Leif > > > > > --- > > > MdePkg/Include/IndustryStandard/SmBios.h | 74 > > > +++++++++++++++++++++++++++++++- > > > 1 file changed, 72 insertions(+), 2 deletions(-) > > > > > > diff --git a/MdePkg/Include/IndustryStandard/SmBios.h > > > b/MdePkg/Include/IndustryStandard/SmBios.h > > > index f3b6f18..a744d06 100644 > > > --- a/MdePkg/Include/IndustryStandard/SmBios.h > > > +++ b/MdePkg/Include/IndustryStandard/SmBios.h > > > @@ -3,6 +3,7 @@ > > > > > > Copyright (c) 2006 - 2018, Intel Corporation. All rights > > > reserved.
> > > (C) Copyright 2015-2017 Hewlett Packard Enterprise Development > > > LP
> > > +(C) Copyright 2015 - 2019 Hewlett Packard Enterprise Development > > > +LP
> > > SPDX-License-Identifier: BSD-2-Clause-Patent > > > > > > **/ > > > @@ -46,7 +47,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent > > > #define SMBIOS_3_0_TABLE_MAX_LENGTH 0xFFFFFFFF > > > > > > // > > > -// SMBIOS type macros which is according to SMBIOS 2.7 specificatio= n. > > > +// SMBIOS type macros which is according to SMBIOS 3.3.0 specificat= ion. > > > // > > > #define SMBIOS_TYPE_BIOS_INFORMATION 0 > > > #define SMBIOS_TYPE_SYSTEM_INFORMATION 1 > > > @@ -92,6 +93,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent > > > #define SMBIOS_TYPE_ONBOARD_DEVICES_EXTENDED_INFORMATION > 41 > > #define > > > SMBIOS_TYPE_MANAGEMENT_CONTROLLER_HOST_INTERFACE 42 > > > #define SMBIOS_TYPE_TPM_DEVICE 43 > > > +#define SMBIOS_TYPE_PROCESSOR_ADDITIONAL_INFORMATION 44 > > > > > > /// > > > /// Inactive type is added from SMBIOS 2.2. Reference SMBIOS 2.6, > > chapter 3.3.43. > > > @@ -727,7 +729,10 @@ typedef enum { > > > ProcessorFamilyMII =3D 0x012E, > > > ProcessorFamilyWinChip =3D 0x0140, > > > ProcessorFamilyDSP =3D 0x015E, > > > - ProcessorFamilyVideoProcessor =3D 0x01F4 > > > + ProcessorFamilyVideoProcessor =3D 0x01F4, > > > + ProcessorFamilyRiscvRV32 =3D 0x0200, ///< SMBIOS spe= c 3.3.0 > added > > > + ProcessorFamilyRiscVRV64 =3D 0x0201, ///< SMBIOS spe= c 3.3.0 > > added > > > + ProcessorFamilyRiscVRV128 =3D 0x0202 ///< SMBIOS spe= c 3.3.0 > > added > > > } PROCESSOR_FAMILY2_DATA; > > > > > > /// > > > @@ -857,6 +862,19 @@ typedef struct { } PROCESSOR_FEATURE_FLAGS; > > > > > > typedef struct { > > > + UINT32 ProcessorReserved1 :1; > > > + UINT32 ProcessorUnknown :1; > > > + UINT32 Processor64BitCapble :1; > > > + UINT32 ProcessorMultiCore :1; > > > + UINT32 ProcessorHardwareThread :1; > > > + UINT32 ProcessorExecuteProtection :1; > > > + UINT32 ProcessorEnhancedVirtulization :1; > > > + UINT32 ProcessorPowerPerformanceCtrl :1; > > > + UINT32 Processor128bitCapble :1; > > > + UINT32 ProcessorReserved2 :7; > > > +} PROCESSOR_CHARACTERISTIC_FLAGS; > > > + > > > +typedef struct { > > > PROCESSOR_SIGNATURE Signature; > > > PROCESSOR_FEATURE_FLAGS FeatureFlags; } PROCESSOR_ID_DATA; > > @@ > > > -2508,6 +2526,57 @@ typedef struct { > > > UINT8 InterfaceTypeSpecificData[4]; = ///< This field has a > > minimum of four bytes > > > } SMBIOS_TABLE_TYPE42; > > > > > > + > > > +/// > > > +/// Processor Specific Block - Processor Architecture Type /// > > > +typedef enum{ > > > + ProcessorSpecificBlockArchTypeReserved =3D 0x00, > > > + ProcessorSpecificBlockArchTypeIa32 =3D 0x01, > > > + ProcessorSpecificBlockArchTypeX64 =3D 0x02, > > > + ProcessorSpecificBlockArchTypeItanium =3D 0x03, > > > + ProcessorSpecificBlockArchTypeAarch32 =3D 0x04, > > > + ProcessorSpecificBlockArchTypeAarch64 =3D 0x05, > > > + ProcessorSpecificBlockArchTypeRiscVRV32 =3D 0x06, > > > + ProcessorSpecificBlockArchTypeRiscVRV64 =3D 0x07, > > > + ProcessorSpecificBlockArchTypeRiscVRV128 =3D 0x08 } > > > +PROCESSOR_SPECIFIC_BLOCK_ARCH_TYPE; > > > + > > > +/// > > > +/// Processor Specific Block is the standard container of > > > +processor-specific > > data. > > > +/// > > > +typedef struct { > > > + UINT8 Length; > > > + UINT8 ProcessorArchType; > > > + /// > > > + /// Below followed by Processor-specific data > > > + /// > > > + /// > > > +} PROCESSOR_SPECIFIC_BLOCK; > > > + > > > +/// > > > +/// Processor Additional Information(Type 44). > > > +/// > > > +/// The information in this structure defines the processor > > > +additional information in case /// SMBIOS type 4 is not sufficient > > > +to > > describe processor characteristics. > > > +/// The SMBIOS type 44 structure has a reference handle field to > > > +link back to the related /// SMBIOS type 4 structure. There may be > > > +multiple SMBIOS type 44 structures linked to the /// same SMBIOS > > > +type > > > +4 structure. For example, when cores are not identical in a > > > +processor, /// > > SMBIOS type 44 structures describe different core-specific information= . > > > +/// > > > +/// SMBIOS type 44 defines the standard header for the > > > +processor-specific block, while the /// contents of > > > +processor-specific data are maintained by processor /// > > > +architecture > > workgroups or vendors in separate documents. > > > +/// > > > +typedef struct { > > > + SMBIOS_STRUCTURE Hdr; > > > + SMBIOS_HANDLE RefHandle; ///<= This field refer to > > associated SMBIOS type 4 > > > + /// > > > + /// Below followed by Processor-specific block > > > + /// > > > + PROCESSOR_SPECIFIC_BLOCK ProcessorSpecificBlock; > > > +} SMBIOS_TABLE_TYPE44; > > > + > > > /// > > > /// TPM Device (Type 43). > > > /// > > > @@ -2586,6 +2655,7 @@ typedef union { > > > SMBIOS_TABLE_TYPE41 *Type41; > > > SMBIOS_TABLE_TYPE42 *Type42; > > > SMBIOS_TABLE_TYPE43 *Type43; > > > + SMBIOS_TABLE_TYPE44 *Type44; > > > SMBIOS_TABLE_TYPE126 *Type126; > > > SMBIOS_TABLE_TYPE127 *Type127; > > > UINT8 *Raw; > > > -- > > > 2.7.4 > > > > > > > > > > > > >=20 >=20