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.web11.16512.1627886349195084428 for ; Sun, 01 Aug 2021 23:39:09 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=hzyIZGxj; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: ray.ni@intel.com) X-IronPort-AV: E=McAfee;i="6200,9189,10063"; a="213384720" X-IronPort-AV: E=Sophos;i="5.84,288,1620716400"; d="scan'208";a="213384720" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Aug 2021 23:39:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,288,1620716400"; d="scan'208";a="466190162" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga008.jf.intel.com with ESMTP; 01 Aug 2021 23:39:08 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) 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.2242.10; Sun, 1 Aug 2021 23:39:08 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) 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.2242.10 via Frontend Transport; Sun, 1 Aug 2021 23:39:08 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.174) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.10; Sun, 1 Aug 2021 23:39:07 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dQnUq/RgwbVQDBjRJ+rZ4Bbomb7qhJslojALtwALrT7HCDQ6NSWaXkxJlllF9/Wm1k/wikIIRyzyzNiBd4VUygNCMDA3tne1hwvOM/D5kn7RA0mNtKTExr38/BRdbIjpeNp7u1g5scUo3+N8ETutbZBwLGABaY6zrmZC3wGnGjm9tPy8iBvb/0z9vNMxEAkbeqs9xHy7Cic6OeDRE1YTLbfOJT2KLnmKAibvr81v2KG9KxxPR0avOuT1QdLnhGNcRwoWsxDqawBs29aPEPJ9G1Wz5MZTQpMNOICjRVg146zNemFONXivX5UxSXMxc2tTt1MXS/1qFILHFXw5mXB8gw== 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=tfR0zMXFN4YgtciB0WQcEblhSdKIekwP/femMu1Y8Eg=; b=RTNtCq+ElmWKZFL9z27E1XCfpqNGuD5QKwwZxJSNi9wCvuDi8e0SN7vHj3vklsRESkVbyTpoGL+T9bRi7B+J5w0QlYVowdlmH56b0nygfrDfzvJ1bOvrJ+Hs3b1/DKJTnOomv26swML+X0J4zpqoxwzMZrBcaID6RydzWWsin5qdLORnH3euUo3QBXDEF+IqlRKQTkpJWBazyCEM5DQR9Ae79CyBCDEhzSNkmdgVH1mghV+pMOLRQXDP2CwYZiNa1TwBL0/cdp3coVVRSPOM59R/KKKqiq07/0tEuqirJRuO3GxEIaI+GpfU/8qKUHpGdtCad6RJyf/1U+sWmCfi7Q== 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=tfR0zMXFN4YgtciB0WQcEblhSdKIekwP/femMu1Y8Eg=; b=hzyIZGxj+B3kVVue2W4n+azPIZYnDjxEZYImOhlgYqrCt9ufCW7sf1C3f2yso8B7RFs/rFqDWh1bAjBT8GW6jJK+kkagxilmXWdNCXi8WyPvceFQ3dnCb/i263qa+wimTHuNrJvkG7voR1ZNRp0T6aZ40rzhycvjMPhZ7cWKc+w= Received: from CO1PR11MB4930.namprd11.prod.outlook.com (2603:10b6:303:9b::11) by MW3PR11MB4649.namprd11.prod.outlook.com (2603:10b6:303:5b::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18; Mon, 2 Aug 2021 06:39:05 +0000 Received: from CO1PR11MB4930.namprd11.prod.outlook.com ([fe80::dc21:42bd:8553:2869]) by CO1PR11MB4930.namprd11.prod.outlook.com ([fe80::dc21:42bd:8553:2869%2]) with mapi id 15.20.4373.026; Mon, 2 Aug 2021 06:39:05 +0000 From: "Ni, Ray" To: "Lou, Yun" , "devel@edk2.groups.io" CC: "Dong, Eric" , Laszlo Ersek , "Kumar, Rahul1" Subject: Re: [PATCH v1] UefiCpuPkg/CpuCacheInfoLib: Sort CpuCacheInfo array Thread-Topic: [PATCH v1] UefiCpuPkg/CpuCacheInfoLib: Sort CpuCacheInfo array Thread-Index: AQHXgtCc0eT1l3qVH0eLvy8JMibY7qtfyx1w Date: Mon, 2 Aug 2021 06:39:05 +0000 Message-ID: References: <20210727101723.3749-1-yun.lou@intel.com> In-Reply-To: <20210727101723.3749-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-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5dc2018a-8d78-4809-5d52-08d955803973 x-ms-traffictypediagnostic: MW3PR11MB4649: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3513; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: leLzoohGxBc97Az7465SF5cQam8Wy+mielrVOd4hKRtzcZhs8kW2jNK+8UR++fh0TabXAN/mz8WKpfB+COePznK9jWS6KO1wld8BEx7l2lxcJKhTdeYeu/6PlbwQ2d0XFphurJWFxDQ5BmvkTtrhAYm49BuM11TOUf/x1C1NimA180u9lu4vzHUEXBUVC4mZ7sAASlkZQE7JCdE5LylKur2OwFx61098sz0D0FjObNMJsFY1lqMScJpJgoqUIN18YBrc4yV29eikGUOWqILjhpMKL8u91b7BVM02CMQ9Rd6izlhiDj+7sNqhFueug+lw46luhO0wNFDDwA4/hBYaPa5X5K58xekrok5eUpQGmDh/AWM1CckRVg0uA5O2SFADEbRx+pCTnymGiq3HAPXhvNP1fP2UL7zBS9LlfYilvFQod4fNYgwBq4iRrbXBRbk0t14q7jtllclHLsAuxJS72EBE/2Fgx0PDMKy0WrlJqRX+GuciaY7um5404K4Wn+T6w497yUfkFzy2SUxKe2wtqE139UYangqH5shS8ShLz2+CPa5ohKL2cDETgW6XSY2zT+avRd6avXJLPUjQwSbkzf1k1RFcbxGovaDoFUflop7aix27PZd8ZSjXAAuBSnX3/9ueOZPAGdcKKyAGHcZYmDFELsFx35Bbixks8tCRH1opw5bADtt0MRSDBzy3aa4gxX77BKmZL20219EZuXDp5g== 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)(136003)(376002)(396003)(346002)(366004)(39860400002)(38100700002)(66446008)(66946007)(66556008)(4326008)(66476007)(122000001)(64756008)(6506007)(76116006)(52536014)(71200400001)(38070700005)(4744005)(26005)(186003)(33656002)(478600001)(107886003)(7696005)(86362001)(110136005)(5660300002)(55016002)(9686003)(8936002)(316002)(54906003)(8676002)(2906002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Z9/GfDd1PHRN0CidvKTJgokICpjk3Q7mXRlK6lbOhOxNZ0KJk7NL3L1JB+do?= =?us-ascii?Q?BYfzO8M5xjc1W4ig05TqpwvdrXLqbFmsfCZMhluzvTiOYIv+8CysyV4vx0/I?= =?us-ascii?Q?PnFp+YeRZwj2cVYFHSRr/9unurzizyG0AgIvpZ7ExYCE/N6YXfrXGGIHslGx?= =?us-ascii?Q?DPKSXimXPHmdF05BcmQlG51DZrFjFiLRcermfx50ddZeA+qwxjWVl+vhbABP?= =?us-ascii?Q?vb6nZeBFNFRn+IfGtuHbkAU4J0na7/Ch/evvGpZtz0bmIEqGGeOkHXeu7X1M?= =?us-ascii?Q?jKC4WcuD7wT7r4kMnk7Tcsp18MoE9mFd5kpeio+exzV3+Vw499TX6PSiexuc?= =?us-ascii?Q?XJUi13OQETTW4xzearfzFIBT9FP2rlIaTgWOIfspJu8IaBI0/kE0lGfSkGjG?= =?us-ascii?Q?XYuLaR+1qR1zmCCX5A3aL1ywkTMx/46FNyIAQet/KLLIM4b3+GaOujsJ6o4D?= =?us-ascii?Q?xHZUD9Fa4B/ZryV/mUy4TEkqdwEWJJdis4ptvOE2r423Dc+730tiW9c1c5k4?= =?us-ascii?Q?sf23cnxREOek3UpDj9vGjhW80bJH0CMx5sZpybDFZEF4/cmZ6fkhEX5X+U1F?= =?us-ascii?Q?cuxPGaq6nzBoEjlubLaJuWaLthQVZT8qzc6XH8Iiuc8Q8FR2Xo+Q+mrOoI8U?= =?us-ascii?Q?j5XZgpywXNvWupxIKIWugMVXZDSyCyq4yhuVemIs5VFmVQkpqGbSBiYiLdTU?= =?us-ascii?Q?F5ul6HD2WrDKHqxLnnc7+52f4yazb2nqkvx3b8c4bQz5LMY+U7+Eu+ssJVZS?= =?us-ascii?Q?fmLavIl8ILK/9U9TqW5XxG/cxcSTECDqtv3gAxNMIsGMRDhQlpE7cAqKoIN9?= =?us-ascii?Q?HKfZyBVU4kKSIagWqLdikh+59Vqac4UmDOu+pf3wps8YAn+rXe+v5XbmYHyT?= =?us-ascii?Q?qem0chY13ho7xpeWzZ8qVBgpmX8YoRxzOaHKv2RrFSbax/xy4grzBVHF1ccg?= =?us-ascii?Q?twl9Uz0G5jQIZI6K+ABPhZQ62gafhcRMaQT3WdZq4U1so3k8rXq8gAmHkyv7?= =?us-ascii?Q?IAjms68cMNSjeM02Ts7nDT6RApeiuT+anPTYWq957znNEsRINAXXTHKKv07N?= =?us-ascii?Q?nFuDUIQRbXi7G48cckRd5i2R7yNYAkGLesPWrb9pHOkPfEtw0OkZABkRyR1e?= =?us-ascii?Q?NFu0saIwW6j/4OcsTf8YvN8QiiAeLmEqoI3x7ea6BU3EWUMXU3w+SqMT1EhX?= =?us-ascii?Q?3F33Xj1XExgb+KTDistL94/YgP9rkchAlmviXBNtoBBkz+4t0Y0yDBLeyWbT?= =?us-ascii?Q?B5JbPfSNVAxsO9Wa+vK5pHb+5zoW1RcnhLhRb0w53Q+7xfTlWewMWWxAJmSc?= =?us-ascii?Q?fWO2x4nC8j1fK0QfwKUQXCtx?= 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: 5dc2018a-8d78-4809-5d52-08d955803973 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Aug 2021 06:39:05.6039 (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: lSqhNBd09OHzqpDQ8MzaO/N8Pi+yDAn0meDPdOokW78sW6HQdzkHX1Lk9X0fOjor+75ZaUaZEO2F22XhKWuvqw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR11MB4649 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 + Get CpuCacheInfo data array. The data array is sorted by CPU package ID = from smallest to largest, + by core type from largest to smallest and by cache level from smallest t= o largest. Why is core type sorted from largest to smallest but the other twos are sor= ted from smallest to largest? What's the issue when sorting the core type value from smallest to largest? Thanks, Ray