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.147.86, mailfrom: prvs=016297cd77=abner.chang@hpe.com) Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by groups.io with SMTP; Mon, 16 Sep 2019 00:01:54 -0700 Received: from pps.filterd (m0134421.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x8G6uU8v008942; Mon, 16 Sep 2019 07:01:53 GMT Received: from g2t2354.austin.hpe.com (g2t2354.austin.hpe.com [15.233.44.27]) by mx0b-002e3701.pphosted.com with ESMTP id 2v0pdfy427-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 16 Sep 2019 07:01:52 +0000 Received: from G4W9119.americas.hpqcorp.net (exchangepmrr1.us.hpecorp.net [16.210.20.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g2t2354.austin.hpe.com (Postfix) with ESMTPS id 296E0D9; Mon, 16 Sep 2019 07:01:52 +0000 (UTC) Received: from G4W9120.americas.hpqcorp.net (2002:10d2:150f::10d2:150f) by G4W9119.americas.hpqcorp.net (2002:10d2:14d6::10d2:14d6) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 16 Sep 2019 07:01:51 +0000 Received: from NAM02-BL2-obe.outbound.protection.outlook.com (15.241.52.11) by G4W9120.americas.hpqcorp.net (16.210.21.15) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Mon, 16 Sep 2019 07:01:51 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nPWoM25daBbrRZBgkmqT4o06iMkQalfEROT84fSe+ql/TeL+1w5RwB+90NKNIEJsobBkXzjpjx8UJZP9B8TZgkEHTU0rCHmll0nH8NaapzlvhNcyZv4SjilG+f0KpujvBn+PqhPOJ4k6KfK1ULILiVCoPMFn+ZTo+aWbvYbhGVBmyXIYrB0atXDfJMcDsfn6gYVB/B/AYe5pyUU9zYWzkDOT6mlI8q839amQnPRHOOyd454K5JUA+Z4akof9sqyqBDGTHiAHoTsONs/8aMVYW8ihfTOVYXxq+LSBjASKTureGjsQTGZMGivZinsSEAOWFAVOWyP+NBEfVAYdYiuytQ== 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=KHHOsGG9LtgCxsgexYZDTTlsPXDJ4EcCDZpufCkyCk0=; b=OJtm3wuz1v8tJP7kz/Wp4f39uLh0WtfRGPRMP04BNtOJHdUBpSnyx0IJyG6h9pT8c34WtKJPOqsGgScpt8ztyf6PBeO4C32naENIpXaw7LpvVbZxrGlBj8afzh6bFRlxgDoZ3WxbDIRm7amePpcriWf5jyz0n38MkyFDE5DCnUQihUtYISI8/lHsYciIXg1lVPKn0VvYjqKOArlhszk0qnAa5zsa1aMTJ9cBG6eAIMkA2F2fYhwNG5qIKP0jAZ8vCbIK4v5kcHEmKDX5z2yb3TwHJwdDBzlGYxltz8mb1RGRIFVX9++0Do9pAWxuV/oaWVPz9F2troPB/N9Dh9jHJw== 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 CS1PR8401MB0390.NAMPRD84.PROD.OUTLOOK.COM (10.169.96.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2263.26; Mon, 16 Sep 2019 07:01:50 +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; Mon, 16 Sep 2019 07:01:50 +0000 From: "Abner Chang" 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. Thread-Topic: [edk2-devel] [edk2-staging/RISC-V-V2 PATCH v1 13/22]: MdePkg/Include: Update SmBios header file. Thread-Index: AQHVYxHbllIHct+/e0Wy0Lt7JzDRAacdRG2AgBCtfHA= Date: Mon, 16 Sep 2019 07:01:50 +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> In-Reply-To: <20190905161633.GF29255@bivouac.eciton.net> 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: 0f090897-3a9a-4d57-0d68-08d73a73bf85 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:CS1PR8401MB0390; x-ms-traffictypediagnostic: CS1PR8401MB0390: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4941; x-forefront-prvs: 0162ACCC24 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6029001)(39860400002)(346002)(366004)(396003)(136003)(376002)(189003)(199004)(13464003)(99286004)(6436002)(15650500001)(6306002)(2501003)(6116002)(6246003)(2906002)(55016002)(3846002)(53936002)(71190400001)(71200400001)(66066001)(8676002)(81156014)(229853002)(316002)(7696005)(81166006)(8936002)(53546011)(102836004)(76176011)(86362001)(6506007)(110136005)(476003)(11346002)(446003)(186003)(9686003)(19627235002)(74316002)(486006)(256004)(14444005)(305945005)(25786009)(7736002)(14454004)(478600001)(966005)(5660300002)(76116006)(66476007)(66946007)(52536014)(33656002)(66556008)(64756008)(66446008)(26005);DIR:OUT;SFP:1102;SCL:1;SRVR:CS1PR8401MB0390;H:CS1PR8401MB1192.NAMPRD84.PROD.OUTLOOK.COM;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A: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: zg2nHCr9orx0LI2lOedwQDVJDfYeTNCT66bPGZENsBgF64rLdxhWB5MvFlNCtMeSgfgNTkCyK2MYJzn0vDqV7VWLl3eLhpEjT+BMTIc+0HosmBkRcjyDJIoa5+ie/REr1fc0AJlrNiiCrWwXuAjhCvTHM+DPZ6VoNDUJk9OcTbYpGcsIPBx1EgzK992bUf3whyyVPyJfixMVTto8rjAHC6G2v3emVvMF4t2LAZu3mj72O0MATioAsbKPJyII1hXLibkIV2IYY2LScoCy1IubMCWmLTfu+NOMp2+uvhHUuL+aysrJ2RIKaGS8nOZ6HwkzjIrC+MptvFReXLhXVxTIQh261WYYStJPtvdQ9xWRvGZqq/MfR8nrJsCJZPLeHaEietXG5Cms36kyul/LFaoLJ0FVDRW3V7RigdwRf9bJzGU= x-ms-exchange-transport-forked: True X-MS-Exchange-CrossTenant-Network-Message-Id: 0f090897-3a9a-4d57-0d68-08d73a73bf85 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Sep 2019 07:01:50.4003 (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: LytoIrMlbR9oBLTgakWdLX54Yp+IbG2VMMo2UMRtWV9SVRJSfmDwqufuHhvtFaY+i3ChmNKsqcVhX16vnHNGYA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CS1PR8401MB0390 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-16_03:2019-09-11,2019-09-16 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 phishscore=0 mlxscore=0 malwarescore=0 impostorscore=0 bulkscore=0 spamscore=0 adultscore=0 clxscore=1015 mlxlogscore=979 lowpriorityscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1908290000 definitions=main-1909160075 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable > -----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. >=20 > 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 >=20 > 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 sub= mittal. We can send SMBIOS patch apart from RISC-V patches with specific su= bject for SMBIOS change. >=20 > / > Leif >=20 > > --- > > 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 specification. > > +// SMBIOS type macros which is according to SMBIOS 3.3.0 specificatio= n. > > // > > #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 spec = 3.3.0 added > > + ProcessorFamilyRiscVRV64 =3D 0x0201, ///< SMBIOS spec = 3.3.0 > added > > + ProcessorFamilyRiscVRV128 =3D 0x0202 ///< SMBIOS spec = 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-s= pecific > 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; ///< T= his 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 > >