From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mx.groups.io with SMTP id smtpd.web12.4752.1611289303501968371 for ; Thu, 21 Jan 2021 20:21:43 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=Fbye5q6p; spf=pass (domain: intel.com, ip: 134.134.136.20, mailfrom: ray.ni@intel.com) IronPort-SDR: hc/x0X3pk45TosgLlcwGxDS405maDCsvLYFfp+D2uhY+LaVhlbSIe55Bk4QIqhbOC/BOLP1dg9 ORNwB8L/gBdQ== X-IronPort-AV: E=McAfee;i="6000,8403,9871"; a="166488764" X-IronPort-AV: E=Sophos;i="5.79,365,1602572400"; d="scan'208";a="166488764" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jan 2021 20:21:42 -0800 IronPort-SDR: +YmbYB0AuETqSUmeaWbMUm54lQmAmA3HMznoPUUB0U9mDB3nXsLuL+5KQRjzn98toODolRwUSk /cMRsa8zhF8g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,365,1602572400"; d="scan'208";a="355099310" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga006.jf.intel.com with ESMTP; 21 Jan 2021 20:21:42 -0800 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Thu, 21 Jan 2021 20:21:42 -0800 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx608.amr.corp.intel.com (10.18.126.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 21 Jan 2021 20:21:41 -0800 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Thu, 21 Jan 2021 20:21:41 -0800 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.109) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Thu, 21 Jan 2021 20:21:11 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G5j3TFEIdR/OoC7egJZyrbRkLAJsB2KfTcllsJhZUb45zGLNgJwShsBXRXYLLYD8FR6qtjGLd7iE1+MXhQjW1UKxe7Cugm9XQue5V5Mz0fRLNAT2+jrMJKV4grQCNILXW+wYpHWmEQYxr4wzmdmnoB9u65UedHrat8OjByb9Jid+9qLJcRaOWnJX2YueEpAhI4sDAMyPNL6nkDxC1cOQIxixfImmDnd74pgkhsy2+5tyAiIVm3opTRzpoSVlJW9ihOjsuin8Vr7OA2FY2pqBrpQWFbuVYq6TRAFy2tcvSPQUR1ykZWrtL16JejSadyz5SUNDtnhQlKM7OxNxojHm+g== 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=e3FLtj6+N3yfJmer4YB9Gsu/mhEkw2plQ2dwDY/HwSk=; b=dFPxQ4ULXTLWB2/n5SRH5/MiBvRQfSD1Ua99+GasoNlNWOlt5LvqGsTjOrIWpyOL58KwlMvnZkCvxqTZZ13gFYQqQwxiBGhIYC4RW46w7TNXihucdGA1WHW2TODNAw8+VRvRZjeVa1pyuzvMyH/VAkHf8jy36HOsLLYI6Zx7er1ZOdJjrU62YB9yjPGph6WlZeogvEE/0KWUuZVpb8OgcY+LqfeIMgcesKf2Yr/4VkJxcgYnqt1pp303g/bw3FumCYVg41ScpSHzqIJyH8l2N04R78eqfTQXd9mY7h7G6icxIIhRUISjbZeWwS6v2+J2PcIb9reNG8TZ6O3KoD3A0g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=e3FLtj6+N3yfJmer4YB9Gsu/mhEkw2plQ2dwDY/HwSk=; b=Fbye5q6pw3oSHVMAjPrryXXWkJg/MMY4Yubz1KzRJPIQthX4nHIdA/enAq7KLhjtnetyvus4yZfV+/YVKjMMZXFhbzFzjHCk5A6EHqdthscxcn3bcyHtDgGqNAJIV0rV8VJ0XXg2jObtyu1QIq/nyJ1dQobxSy3DRY7n8bYwRG8= Received: from CO1PR11MB4930.namprd11.prod.outlook.com (2603:10b6:303:9b::11) by CO1PR11MB4865.namprd11.prod.outlook.com (2603:10b6:303:9c::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.12; Fri, 22 Jan 2021 04:21:10 +0000 Received: from CO1PR11MB4930.namprd11.prod.outlook.com ([fe80::d18:1234:c1d6:5936]) by CO1PR11MB4930.namprd11.prod.outlook.com ([fe80::d18:1234:c1d6:5936%7]) with mapi id 15.20.3763.014; Fri, 22 Jan 2021 04:21:10 +0000 From: "Ni, Ray" To: "Lou, Yun" , "devel@edk2.groups.io" CC: "Kinney, Michael D" , Liming Gao , "Liu, Zhiguang" , "Dong, Eric" , Laszlo Ersek , "Kumar, Rahul1" Subject: Re: [PATCH v2 1/1] MdePkg/Cpuid.h: Change and add some macro definitions. Thread-Topic: [PATCH v2 1/1] MdePkg/Cpuid.h: Change and add some macro definitions. Thread-Index: AQHW78cO0KK0iVhZH0K12sboI+pFcKozC/bA Date: Fri, 22 Jan 2021 04:21:09 +0000 Message-ID: References: <20210121072830.4083-1-yun.lou@intel.com> In-Reply-To: <20210121072830.4083-1-yun.lou@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.198.147.194] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b058f983-398f-4304-d0da-08d8be8d2584 x-ms-traffictypediagnostic: CO1PR11MB4865: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3631; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: idcC4knEEhRWGBCMc0gQXVu35fOlDDlq9iFdK/pdhfdDtpfIl2/1f4WS3r6KgcxJqUFksKvjd8rMAomo2xg3oHQiCRV5xR6RYIsVk77EIuF5GRtX82RQE3M1MclEzw3dPcSwuLM1dcUNDBpWhTqTc2V7m7U2ArSM8z4atO2Q2W2mbhll7OTJoptIcfpdAL9xkRq+RDAqvoY0+wjkXZrub/HnRhjlr5lXLvRejD/eVfTdtag0v21LpHz+Abt8waD/IvlS4O4c6BJEH4y6+T7jX525SC7k6aefNZeXToQQVO9RPHKRPuO0ZuKhTFcsmEByMn6GIhmo4qyBFcLYH+9sMtcbsPziFO3QjRe0qHh8vqbC70Ry4UwoMNnNIMhlzt0w0qCPqg+d9BPG8ELaXtFovfvjb9wMETvTDcM5VBDtrmscs51Pu8/B4+hi1IPQfNog2fLYEHZ3567djN5gKZmBUw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR11MB4930.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(376002)(346002)(396003)(39860400002)(136003)(86362001)(966005)(478600001)(6506007)(83380400001)(9686003)(55016002)(33656002)(26005)(66446008)(110136005)(316002)(4326008)(54906003)(53546011)(8936002)(71200400001)(66946007)(66556008)(186003)(64756008)(66476007)(107886003)(2906002)(76116006)(5660300002)(7696005)(52536014)(8676002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?tx9tcZ0vaAHOOgdUiEBT1WaNfLJbYzzuIKYdYIq2dwG73K2c3kt2CZE++vW0?= =?us-ascii?Q?bLKw0O2kMqoIxVFqpi8uvF28iln4rJYlgWIy0/tZQmyw08W8rZe2Q41FgR65?= =?us-ascii?Q?/ydShqEV+ruEnNl5ZWpnRP6FAOH57yw79rD6DJrKMm/xCqUy8jCeVDJ8NSad?= =?us-ascii?Q?scxWWT9UkhjLM4ieNBy8SbLY2Vf0q8zTv8Z0RP2gAyGk7KQPCOsJdbCJKfbk?= =?us-ascii?Q?rrc5hS/hTdPdDkzVuw+yZ5+32yIgaDb9o/CRGpp/DUnrFoXvc9cYw4FKBkfP?= =?us-ascii?Q?06dkXalJAvg4gVS5MnDu8gzcqLNH/rCa47tsydLjFt5tCTvmYH9TYIE9CoqJ?= =?us-ascii?Q?TLT33s7w/mOhbM1pEtz/iLutwzz/xnUBI5UW6CllaPS0ROjhi4lXoaTwuaxq?= =?us-ascii?Q?jwtE8VviUwdiyhkffmboNQ9T5Dmf+ndgNQSuOQJwKWQYkHZm+SYHZjj/tHMC?= =?us-ascii?Q?tvR+z01OZ047kQVCpB7I8spLquxSpOsLbUgU+t6ewONjgANzdo1e1xpHvCH3?= =?us-ascii?Q?Rf3qt9Hz0liUxP/6oEYGhy8tdChSmdMo+BDEwSW2G9P19RNjQRozUWXt6rwP?= =?us-ascii?Q?OKa/1JHvngXveborGolbPw4D0PwAyuxi4dXPlrjFhYQCEomHbQ3RaJkQ5TwS?= =?us-ascii?Q?6nAiug0g6gfv7DejgqMcBuo0+0nzchQdRT0ss9JsEi6w+u/RdX8oPLZhDBJU?= =?us-ascii?Q?tivcWkwpeehO/QwViLk0wOfpwY1Rh/NMMHyLn8lgj9YocxBT53jJoMfC1sjC?= =?us-ascii?Q?lAA8JHETbLlq1CaVM7fr2Q76pKhNOOnesF7xBYRx1E1WuftHlaPO6I787E3o?= =?us-ascii?Q?KwxDqB+RkGvOChimUaPeoOKFptgd0iWRc+q5j5NJFQoCvp0rQj4hpiNxOTGD?= =?us-ascii?Q?zI42NOQsDgZh6RCEz8GL0tCEBWDNNSNK6iphlypaF2IYknkQnq7/E/x3VK3u?= =?us-ascii?Q?/oyxfHx404/b+ptwsvSXrEXmRCF02MgJryFC5X5cJU3uh4GIzv9BGDsjrE+5?= =?us-ascii?Q?0D5L?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB4930.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b058f983-398f-4304-d0da-08d8be8d2584 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Jan 2021 04:21:10.0459 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: qYmmc88OBB1c48nc4r7XV4W48dkiiK/hBuCqsZ1UfVvnMkAaMR58STTuNKYcnRxzREx4RcFeFGR272GN3w9kcg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR11MB4865 Return-Path: ray.ni@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Ray Ni > -----Original Message----- > From: Lou, Yun > Sent: Thursday, January 21, 2021 3:29 PM > To: devel@edk2.groups.io > Cc: Lou, Yun ; Kinney, Michael D > ; Liming Gao ; Liu, > Zhiguang ; Ni, Ray ; Dong, Eric > ; Laszlo Ersek ; Kumar, Rahul1 > > Subject: [PATCH v2 1/1] MdePkg/Cpuid.h: Change and add some macro > definitions. >=20 > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3105 >=20 > Change and add some macro definitions about > CPUID_HYBRID_INFORMATION Leaf(1Ah). >=20 > Signed-off-by: Jason Lou > Cc: Michael D Kinney > Cc: Liming Gao > Cc: Zhiguang Liu > Cc: Ray Ni > Cc: Eric Dong > Cc: Laszlo Ersek > Cc: Rahul Kumar > --- > UefiCpuPkg/Library/CpuCacheInfoLib/CpuCacheInfoLib.c | 2 +- > MdePkg/Include/Register/Intel/Cpuid.h | 17 +++++++++++++-= --- > 2 files changed, 14 insertions(+), 5 deletions(-) >=20 > diff --git a/UefiCpuPkg/Library/CpuCacheInfoLib/CpuCacheInfoLib.c > b/UefiCpuPkg/Library/CpuCacheInfoLib/CpuCacheInfoLib.c > index 6b87be261acf..d1f9830c91e7 100644 > --- a/UefiCpuPkg/Library/CpuCacheInfoLib/CpuCacheInfoLib.c > +++ b/UefiCpuPkg/Library/CpuCacheInfoLib/CpuCacheInfoLib.c > @@ -175,7 +175,7 @@ CpuCacheInfoCollectCoreAndCacheData ( > // >=20 > Context->ProcessorInfo[ProcessorIndex].CoreType =3D 0; >=20 > if (CpuidMaxInput >=3D CPUID_HYBRID_INFORMATION) { >=20 > - AsmCpuidEx (CPUID_HYBRID_INFORMATION, > CPUID_HYBRID_INFORMATION_SUB_LEAF, > &NativeModelIdAndCoreTypeEax.Uint32, NULL, NULL, NULL); >=20 > + AsmCpuidEx (CPUID_HYBRID_INFORMATION, > CPUID_HYBRID_INFORMATION_MAIN_LEAF, > &NativeModelIdAndCoreTypeEax.Uint32, NULL, NULL, NULL); >=20 > Context->ProcessorInfo[ProcessorIndex].CoreType =3D (UINT8) > NativeModelIdAndCoreTypeEax.Bits.CoreType; >=20 > } >=20 >=20 >=20 > diff --git a/MdePkg/Include/Register/Intel/Cpuid.h > b/MdePkg/Include/Register/Intel/Cpuid.h > index dd1b64a1e50b..a670ab436c37 100644 > --- a/MdePkg/Include/Register/Intel/Cpuid.h > +++ b/MdePkg/Include/Register/Intel/Cpuid.h > @@ -3601,7 +3601,7 @@ typedef union { > CPUID Hybrid Information Enumeration Leaf >=20 >=20 >=20 > @param EAX CPUID_HYBRID_INFORMATION (0x1A) >=20 > - @param ECX CPUID_HYBRID_INFORMATION_SUB_LEAF (0x00). >=20 > + @param ECX CPUID_HYBRID_INFORMATION_MAIN_LEAF (0x00). >=20 >=20 >=20 > @retval EAX Enumerates the native model ID and core type described >=20 > by the type CPUID_NATIVE_MODEL_ID_AND_CORE_TYPE_EAX >=20 > @@ -3615,7 +3615,7 @@ typedef union { >=20 >=20 > AsmCpuidEx ( >=20 > CPUID_HYBRID_INFORMATION, >=20 > - CPUID_HYBRID_INFORMATION_SUB_LEAF, >=20 > + CPUID_HYBRID_INFORMATION_MAIN_LEAF, >=20 > &Eax, NULL, NULL, NULL >=20 > ); >=20 > @endcode >=20 > @@ -3626,11 +3626,11 @@ typedef union { > /// >=20 > /// CPUID Hybrid Information Enumeration sub-leaf >=20 > /// >=20 > -#define CPUID_HYBRID_INFORMATION_SUB_LEAF = 0x00 >=20 > +#define CPUID_HYBRID_INFORMATION_MAIN_LEAF = 0x00 >=20 >=20 >=20 > /** >=20 > CPUID Hybrid Information EAX for CPUID leaf > #CPUID_HYBRID_INFORMATION, >=20 > - sub-leaf #CPUID_HYBRID_INFORMATION_SUB_LEAF. >=20 > + sub-leaf #CPUID_HYBRID_INFORMATION_MAIN_LEAF. >=20 > **/ >=20 > typedef union { >=20 > /// >=20 > @@ -3657,6 +3657,15 @@ typedef union { > UINT32 Uint32; >=20 > } CPUID_NATIVE_MODEL_ID_AND_CORE_TYPE_EAX; >=20 >=20 >=20 > +/// >=20 > +/// @{ Define value for > CPUID_NATIVE_MODEL_ID_AND_CORE_TYPE_EAX.CoreType >=20 > +/// >=20 > +#define CPUID_CORE_TYPE_INTEL_ATOM = 0x20 >=20 > +#define CPUID_CORE_TYPE_INTEL_CORE = 0x40 >=20 > +/// >=20 > +/// @} >=20 > +/// >=20 > + >=20 >=20 >=20 > /** >=20 > CPUID V2 Extended Topology Enumeration Leaf >=20 > -- > 2.28.0.windows.1