From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 88E227803CE for ; Mon, 1 Apr 2024 06:04:24 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=X8A3SCrZ8bLUrypLsLROpDLiJ+yJQEqzYh9x4dSDDoQ=; c=relaxed/simple; d=groups.io; h=From:To:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20240206; t=1711951463; v=1; b=ZrtGkrpcQM/7mY19JEbuqqV+B4AVfPJEdwEVBIEGUAKQHMNfkCLjXJ1ItMvkw5GQQC2Z9zXu 3sEotYgCQjYQFMiOaJWRhXSNRdRP+vQS6g2b7KpWgs50bZ3stPak41Lw0zzjzUfuFUVR+QYTGLj SNddjNoQ5wtPaNbkrqxzthp/WeRg4msPEHVpSeiZ2JnBsv2UFJolM9ZUnEiGqWsB8Qzf2v8TeiH VFFCLQyFp9luaKcDKBY82UyhKJ+3ikCqHQV5xGoDETOAPZ0A/ZmWyG7UfYTgYQcqGXAjRxqpHeo GjruJ7oxgy7S2DLaLFL22R1IY2OzI3n79GWkbYuZGO+Aw== X-Received: by 127.0.0.2 with SMTP id yerBYY7687511xPK12qHxndp; Sun, 31 Mar 2024 23:04:23 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) by mx.groups.io with SMTP id smtpd.web10.31899.1711951462693257400 for ; Sun, 31 Mar 2024 23:04:22 -0700 X-CSE-ConnectionGUID: JmxprsaOSjCdBk/0oM919A== X-CSE-MsgGUID: nk0pN2ArRGyEYDy9I+lIxg== X-IronPort-AV: E=McAfee;i="6600,9927,11030"; a="7214027" X-IronPort-AV: E=Sophos;i="6.07,171,1708416000"; d="scan'208";a="7214027" X-Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Mar 2024 23:04:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,171,1708416000"; d="scan'208";a="17438892" X-Received: from shwdeopenlab702.ccr.corp.intel.com ([10.239.55.43]) by orviesa010-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Mar 2024 23:04:22 -0700 From: "duntan" To: devel@edk2.groups.io Subject: [edk2-devel] [edk2-platforms V2 0/3] MinPlatformPkg: Sort ApicIdOrderTable by special rules Date: Mon, 1 Apr 2024 14:04:08 +0800 Message-Id: <20240401060411.899-1-dun.tan@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Sun, 31 Mar 2024 23:04:22 -0700 Reply-To: devel@edk2.groups.io,dun.tan@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: vPtyGTmIEzX1jBXTJqZO5M7cx7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=ZrtGkrpc; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io This patch set is to sort ApicIdOrderTable by following special rules: 1. Make sure BSP is the first entry. 2. For APs, big core first, then small core. With this implementation, BIOS can present cores in order of relative performance in MADT. Linux OS would schedule cores by the order that they are presented in the MADT LocalX2ApicStruct entries. Then Linux OS would think of this as relative performance order. This implementation can benefit the linux os usage case. Dun Tan (3): MinPlatformPkg: Remove the global variable mForceX2ApicId MinPlatformPkg: Get CoreType for all cores MinPlatformPkg: Sort ApicIdOrderTable by special rules Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.c | 123 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 109 insertions(+), 14 deletions(-) -- 2.31.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#117278): https://edk2.groups.io/g/devel/message/117278 Mute This Topic: https://groups.io/mt/105259122/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-