From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web10.10308.1611057936242922607 for ; Tue, 19 Jan 2021 04:05:36 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=UmsRITqC; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: ray.ni@intel.com) IronPort-SDR: FiKbaFkzLfWGPr0znxkG4S71IOdKE7qS896edzQi3wUnXzb6jEUXjpp5r02wL0kw0d+6pIfJ6E +QbO+T/IAauw== X-IronPort-AV: E=McAfee;i="6000,8403,9868"; a="179064239" X-IronPort-AV: E=Sophos;i="5.79,358,1602572400"; d="scan'208";a="179064239" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jan 2021 04:05:35 -0800 IronPort-SDR: dokEvLzuZPjhD2NgL5NYUyAjB9EHTIRcgNEnGyhMvOLjpAOVdHLMpewXQnB9qkeecl9fa2sGKB B9e8CdS7rsJw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,358,1602572400"; d="scan'208";a="406500361" Received: from orsmsx606.amr.corp.intel.com ([10.22.229.19]) by FMSMGA003.fm.intel.com with ESMTP; 19 Jan 2021 04:05:35 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX606.amr.corp.intel.com (10.22.229.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 19 Jan 2021 04:05:34 -0800 Received: from orsmsx603.amr.corp.intel.com (10.22.229.16) by ORSMSX610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 19 Jan 2021 04:05:34 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Tue, 19 Jan 2021 04:05:34 -0800 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.177) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Tue, 19 Jan 2021 04:05:34 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VMPNo9OGx+Dw4mLucVLruZg5B77NWLUqdjyhSM8prOgr7Mm4ezZu+E6AEUFfl3+HTz11Zadax5ZpH99LDmEdHVwTcSi1Ny0F6AhMu+/esL6UlmUSeBEM0YNEMICSFwvpcGpKlG88aUh6NE2OsZ6wkc4PIb4h83O3rTaony/NJWpGduuoYQUPgICSWagNFGxfqWFQ3/rOzhgGzJWM+y+DulgoJSHfFBwhXMf7W+25EA50A8t3FXWzGc9iHZ43PW+tHnAv5PX5dlLsysw0XV1xNpeE/Mt5nmoklouHJbg2G6PGyUPyP1tvFNrh4/uAtk4WHm3OvAxZF6zsMU7VHXpLYQ== 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=+gXbOMbLRgLgvjsWTbIMpb+aD52bDlD372xHdFJG1eQ=; b=KEl1xbeK7RpP3Psqn/JjS7WM66MS0KCVHBw60bwt2dPquW5l0+jeZhHATeHl3EXjABD3XPdEQ2nNqY/Gfng1DWoMyCjcXTskNIA/NhD7elR57HTyl4kExNQJtphPDWOEMn7fiE/M4dfMP0E73fZMAmdD2mrCfdGsFK9qR5JAJTyYOWy07lBgQn1KLBsi9z3l0580No3wkAB7S8q5vFd9uhL48/fCzpWSsZs8YNqT9+Fo8zmfb7uHckuW3h5lb60Y35gAGFjyH5JnVTZGvKVJ6sBf4K0q7QYWtMXpZxOuZNI+Gq5GzZztyHs52IgtM9GMZdTZRMTAuNlZPWefIcJm6Q== 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=+gXbOMbLRgLgvjsWTbIMpb+aD52bDlD372xHdFJG1eQ=; b=UmsRITqCooqxHcrQQGr67GRHikXFGltMnEfQvE6fke8H6ytfTvh12HUJ6uTzTMGlDGHRtfPz4QpKRra7q83A5lZP5PWk3H55DvYIHl6caTbSPyALpjgZOGkqBqbCI51j+P0sy/L4NiFpoJuIr8bvH+U7GDdUNgCu2/Eu+xdNz5I= Received: from CO1PR11MB4930.namprd11.prod.outlook.com (2603:10b6:303:9b::11) by CO1PR11MB5010.namprd11.prod.outlook.com (2603:10b6:303:93::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.10; Tue, 19 Jan 2021 12:05:33 +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; Tue, 19 Jan 2021 12:05:33 +0000 From: "Ni, Ray" To: "devel@edk2.groups.io" , "Lou, Yun" CC: "Kinney, Michael D" , Liming Gao , "Liu, Zhiguang" Subject: Re: [edk2-devel] [PATCH v7 1/2] MdePkg/Cpuid.h: Add CPUID_HYBRID_INFORMATION Leaf(1Ah). Thread-Topic: [edk2-devel] [PATCH v7 1/2] MdePkg/Cpuid.h: Add CPUID_HYBRID_INFORMATION Leaf(1Ah). Thread-Index: AQHW7NtWcEdknzUZ0UqAIhMMXZPY2qou3M4w Date: Tue, 19 Jan 2021 12:05:33 +0000 Message-ID: References: <20210117141541.3627-1-yun.lou@intel.com> In-Reply-To: <20210117141541.3627-1-yun.lou@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.5.1.3 dlp-reaction: no-action dlp-product: dlpe-windows authentication-results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=intel.com; x-originating-ip: [124.77.195.36] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b6f5d7fe-c7ef-4b29-3cc1-08d8bc7285f1 x-ms-traffictypediagnostic: CO1PR11MB5010: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: aHHfjGqYQWqRI3uGAVrVsjVJXP5p9l6/jvXm+gbkvq12jX+zmC8S958H2i9nfd59ZDs+uKQuguL6TpEqaGHlgjrQ/uyZ/4FzHxrXpTv7hy9Xf4rN9kGKbFZvgl1M8mdOl4WSLmEg0RAExTSQPPg/u+2b7o/cidMk7Kn1q+yXkitUkeluiiJ5bWSdxAKbhvHIOvoWNDbPoNWMt4tt4sD2LdqpjB3ZZMmDmp/WtP2jZr1ekDDAtYq6I0SqDf9j5FAy5dsIHG1Jd5Y4qjKTz1xluu2opNbplJUBeI/FxRAc03SIINK0lmQrA+DlZo806Xz6MXmz9X3kpSvv6RVUR2U0AfTzeNdKo6LLNWzVIWZh9A8p3zg6JJ6d4aaBfYp+qDujZOAIHaDjeGrq32v6AXkqZU0dZ6gq8ff1PE5QU5Ug2/1EmSJRnvu7QIG3e+Uyj+7570SarZCId6x0oQ+yN49oE6pO+LKSrFJYURTpGbzhE9ML5D5xZyO5KXBCuLoVNYV4l38Pgi1JIDJ+OH59ZyRgn0PckcRlOtUSno/27fzMuqkiCHfvjEVbJmZvFN+S1Xx6pGrZZQkLCkmchbliA3KTT9yrzt0kdDTgJKuZkxszhGg= 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)(346002)(39860400002)(376002)(396003)(136003)(366004)(6636002)(66476007)(66446008)(9686003)(8936002)(64756008)(66946007)(5660300002)(66556008)(478600001)(7696005)(186003)(33656002)(76116006)(52536014)(26005)(86362001)(83380400001)(8676002)(2906002)(71200400001)(4326008)(107886003)(110136005)(54906003)(55016002)(316002)(53546011)(6506007)(966005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?GG4jM3A2gKW4cmSb94zxWp6ZbhqIx93U52UpFzSWg7qTqK8UPhUD66U5vqHt?= =?us-ascii?Q?bfgyQqRGZpVqolpqV05iUe19/DkaoxnRUBp4kRfbVdS5nFANS6ISjMoRxP9v?= =?us-ascii?Q?oH2eIu4I08+ZpO1mRZDt01amA2vDKcCFN55e/vY3b9V6QE8kT/FUfL4e6Sku?= =?us-ascii?Q?t19NtFNU5C17kJkCMDwRdzZA4r07hycDuk+Lt6WiijDM3rmTRGKfJfJvNRNb?= =?us-ascii?Q?wFALsvvhiXeI6Lv4Kp+zNHC8Fr+PCzEboquGsLrOU2fI6UqE8L0kQllFDhwz?= =?us-ascii?Q?FfJwqxnrl8tWSaAQDTgMWgnx9ioQ/O8v7FCZozgBg9mre+g4+dblCKj1BaFr?= =?us-ascii?Q?tb9J6IiEGEPvY0qYjyQzmffdXmkZZyLOaLEgl8ZDBYQlzexONOMPPrXz5b5v?= =?us-ascii?Q?tLXGB7Tt862Nrn6pSOhwlImDHYBG9StGpf43vqjI1LX2iFWBPJblTmRggdW4?= =?us-ascii?Q?WzT7714QN11ylT/wS2TOyn3ONK4Zi2ei+zt8wLPPuH06W6pTu0HwVwdpwTN4?= =?us-ascii?Q?t0Y5cwSmIoDxrYYwOc+wC1J3z5J4ilrBlbCKIPwxIs/sJUhAAeWetzkH5EDa?= =?us-ascii?Q?FiSsQYw4Xi5dvutYvuNvcPkHLh0yde8nv6jv/Yo+2H89AeC9/Ms7iyambKmd?= =?us-ascii?Q?KWaKqsl7bzUCja1/pOXxINv1X8Fji9aIQLtrDyXptFJF5M1ODoBL8+q4VKoh?= =?us-ascii?Q?BOdeQqlvrm+sn95SJ/51dx2JpxOgsGcqdDXS4xFhZFgu5+LQ73cI8HsVztmD?= =?us-ascii?Q?vnQ20qMuHIW1CM+jPM11WSPuhtPg9/d/l08ZiF2oJjuAK90QOXuOGCR6keJA?= =?us-ascii?Q?VlgXSo93I1x8izFxn+lp5eLnZavGMERY+/sh42O9HSD8J4yW7ees4Om4Tzpq?= =?us-ascii?Q?WWTZ4RVN9zS81xBUR4ZCKUUzNGjPPDckmAEzOCIXHnLb3nt9jUNcEb1T7AQM?= =?us-ascii?Q?3Vau+F9VJX7pJpFG+zBUXlrsBbi/nAz872f2ixW+M6w=3D?= 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: b6f5d7fe-c7ef-4b29-3cc1-08d8bc7285f1 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Jan 2021 12:05:33.0904 (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: qCWk/IZMOBSeejBla9REOT1IAfraDlolyyKNfxWs+P7pDN7QVzjkhoKe74bSlLx0WIulk+/dfZDGQALvhLSecQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR11MB5010 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 If this patch is not updated, please carry the original Reviewed-by tag. > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Jason Lou > Sent: Sunday, January 17, 2021 10:16 PM > To: devel@edk2.groups.io > Cc: Lou, Yun ; Kinney, Michael D ; Liming Gao > ; Liu, Zhiguang > Subject: [edk2-devel] [PATCH v7 1/2] MdePkg/Cpuid.h: Add CPUID_HYBRID_INF= ORMATION Leaf(1Ah). >=20 > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3105 >=20 > The UefiCpuPkg/CpuCacheInfoLib will reference new definition > about CPUID_HYBRID_INFORMATION Leaf(1Ah). >=20 > Signed-off-by: Jason Lou > Cc: Michael D Kinney > Cc: Liming Gao > Cc: Zhiguang Liu > --- > MdePkg/Include/Register/Intel/Cpuid.h | 63 +++++++++++++++++++- > 1 file changed, 62 insertions(+), 1 deletion(-) >=20 > diff --git a/MdePkg/Include/Register/Intel/Cpuid.h b/MdePkg/Include/Regis= ter/Intel/Cpuid.h > index d4496079570d..dd1b64a1e50b 100644 > --- a/MdePkg/Include/Register/Intel/Cpuid.h > +++ b/MdePkg/Include/Register/Intel/Cpuid.h > @@ -1278,7 +1278,7 @@ typedef union { > @retval EAX The maximum input value for ECX to retrieve sub-leaf inf= ormation. >=20 > @retval EBX Structured Extended Feature Flags described by the type >=20 > CPUID_STRUCTURED_EXTENDED_FEATURE_FLAGS_EBX. >=20 > - @retval EBX Structured Extended Feature Flags described by the type >=20 > + @retval ECX Structured Extended Feature Flags described by the type >=20 > CPUID_STRUCTURED_EXTENDED_FEATURE_FLAGS_ECX. >=20 > @retval EDX Reserved. >=20 >=20 >=20 > @@ -3597,6 +3597,67 @@ typedef union { > /// >=20 >=20 >=20 >=20 >=20 > +/** >=20 > + CPUID Hybrid Information Enumeration Leaf >=20 > + >=20 > + @param EAX CPUID_HYBRID_INFORMATION (0x1A) >=20 > + @param ECX CPUID_HYBRID_INFORMATION_SUB_LEAF (0x00). >=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 > + @retval EBX Reserved. >=20 > + @retval ECX Reserved. >=20 > + @retval EDX Reserved. >=20 > + >=20 > + Example usage >=20 > + @code >=20 > + CPUID_NATIVE_MODEL_ID_AND_CORE_TYPE_EAX Eax; >=20 > + >=20 > + AsmCpuidEx ( >=20 > + CPUID_HYBRID_INFORMATION, >=20 > + CPUID_HYBRID_INFORMATION_SUB_LEAF, >=20 > + &Eax, NULL, NULL, NULL >=20 > + ); >=20 > + @endcode >=20 > + >=20 > +**/ >=20 > +#define CPUID_HYBRID_INFORMATION 0= x1A >=20 > + >=20 > +/// >=20 > +/// CPUID Hybrid Information Enumeration sub-leaf >=20 > +/// >=20 > +#define CPUID_HYBRID_INFORMATION_SUB_LEAF = 0x00 >=20 > + >=20 > +/** >=20 > + CPUID Hybrid Information EAX for CPUID leaf #CPUID_HYBRID_INFORMATION, >=20 > + sub-leaf #CPUID_HYBRID_INFORMATION_SUB_LEAF. >=20 > +**/ >=20 > +typedef union { >=20 > + /// >=20 > + /// Individual bit fields >=20 > + /// >=20 > + struct { >=20 > + /// >=20 > + /// [Bit 23:0] Native model ID of the core. >=20 > + /// >=20 > + /// The core-type and native mode ID can be used to uniquely identif= y >=20 > + /// the microarchitecture of the core.This native model ID is not un= ique >=20 > + /// across core types, and not related to the model ID reported in C= PUID >=20 > + /// leaf 01H, and does not identify the SOC. >=20 > + /// >=20 > + UINT32 NativeModelId:24; >=20 > + /// >=20 > + /// [Bit 31:24] Core type >=20 > + /// >=20 > + UINT32 CoreType:8; >=20 > + } Bits; >=20 > + /// >=20 > + /// All bit fields as a 32-bit value >=20 > + /// >=20 > + UINT32 Uint32; >=20 > +} CPUID_NATIVE_MODEL_ID_AND_CORE_TYPE_EAX; >=20 > + >=20 > + >=20 > /** >=20 > CPUID V2 Extended Topology Enumeration Leaf >=20 >=20 >=20 > -- > 2.28.0.windows.1 >=20 >=20 >=20 > -=3D-=3D-=3D-=3D-=3D-=3D > Groups.io Links: You receive all messages sent to this group. > View/Reply Online (#70467): https://edk2.groups.io/g/devel/message/70467 > Mute This Topic: https://groups.io/mt/79750873/1712937 > Group Owner: devel+owner@edk2.groups.io > Unsubscribe: https://edk2.groups.io/g/devel/unsub [ray.ni@intel.com] > -=3D-=3D-=3D-=3D-=3D-=3D >=20