From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 8DA56D800CE for ; Thu, 15 Aug 2024 07:14:22 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=B7BhPGLq/kN9hIFqI22KBZkdSlm2AAnSswZoRfO5j04=; c=relaxed/simple; d=groups.io; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding:Content-Type; s=20240206; t=1723706062; v=1; b=DCIiaaHxFjB+5r4DYYxYH+UxJMcdJ4gf9DdQasL/Xc9wUeaC/NajegKwvpxZT+qicbRWIwjw PErVVjClSzCh0DUvuglVt6X0oWyE4pzLY2tXI76nUMgtHoBBfxhSpJHHkmyafWXNjdN5spDv4NH ladnoT0J4ObXXEHs74+MBU4NBpaNBVOiQJ6qsL4g4MKkTXudNxLuf+tInm/5/S8xYOJFjOBdBJL q8E5Pk8RBCvil4vSGtk45TRdJc5t6KAq8HHKgaRCWrZLXZGh0+GpheIB7iL5PjPLTx7qnFz8AYF Lda4zKK5HY95bW7E1f6FPdBd+GgBSUsVanpANGJ7mq0QQ== X-Received: by 127.0.0.2 with SMTP id g557YY7687511xM6W0oigDZK; Thu, 15 Aug 2024 00:14:20 -0700 X-Received: from BL2PR02CU003.outbound.protection.outlook.com (BL2PR02CU003.outbound.protection.outlook.com [52.101.51.136]) by mx.groups.io with SMTP id smtpd.web10.117728.1723706059675404501 for ; Thu, 15 Aug 2024 00:14:20 -0700 X-Received: from PH0PR01MB7287.prod.exchangelabs.com (2603:10b6:510:10a::21) by CH3PR01MB8490.prod.exchangelabs.com (2603:10b6:610:197::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.18; Thu, 15 Aug 2024 07:14:18 +0000 X-Received: from PH0PR01MB7287.prod.exchangelabs.com ([fe80::fc79:e629:93aa:8b8f]) by PH0PR01MB7287.prod.exchangelabs.com ([fe80::fc79:e629:93aa:8b8f%3]) with mapi id 15.20.7875.018; Thu, 15 Aug 2024 07:14:18 +0000 From: "Nhi Pham via groups.io" To: devel@edk2.groups.io CC: quic_llindhol@quicinc.com, chuong@os.amperecomputing.com, rebecca@os.amperecomputing.com, nhi@os.amperecomputing.com Subject: [edk2-devel] [edk2-platforms][PATCH 2/3] AmpereAltraPkg/PlatformInfoDxe: Correct CPU frequency info Date: Thu, 15 Aug 2024 14:12:33 +0700 Message-ID: <20240815071234.3807473-3-nhi@os.amperecomputing.com> In-Reply-To: <20240815071234.3807473-1-nhi@os.amperecomputing.com> References: <20240815071234.3807473-1-nhi@os.amperecomputing.com> X-ClientProxiedBy: SI2PR01CA0024.apcprd01.prod.exchangelabs.com (2603:1096:4:192::20) To PH0PR01MB7287.prod.exchangelabs.com (2603:10b6:510:10a::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR01MB7287:EE_|CH3PR01MB8490:EE_ X-MS-Office365-Filtering-Correlation-Id: 7afb7a1e-c28a-4213-5b26-08dcbcf9e08e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?/dDGU+7NSHhuZPF4yKLQRpPCMlXW/2nyqpd/xs1Cg99AOtHzDDEXLM+TPbcR?= =?us-ascii?Q?JlMZMAJMpY//y6jFNn5FZ7DPH8qFz7tbi/MgcVF1mt1MiccpnPh42iNMAILR?= =?us-ascii?Q?Hon1iqxXn/NUFaLzvm8dFcBsv4SL6IJ1j3mcDL8lCPDdw1iZCiOdLZhAlk6S?= =?us-ascii?Q?1+8G+0NlF77qyRXhiQ/XnSal8vtVuCyQ6iElsXgpmABUXmLOdl/OY+tozJvY?= =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GUJNtfwfpRDVlXvqB6r9lKKGwUZKwR5cifLYpQ57GUNYNNwXzkQ+psOCS2?= =?us-ascii?Q?c/Jpz38u0Rn5pKlVQcZhXuJGIGZERnZUVBZkpoD0F42VOJcenNcRSf67Sn8M?= =?us-ascii?Q?PqSKqNnR0pGy9ev7y3nuu58zTAHfvMS/50ERleayg0TH9/HxEiD1CWr0DZPk?= =?us-ascii?Q?YxYUG4iEahV3X5tkHRENIE6JAbunKRa4sJRYSswUfaN8osg4qwphYuAdMYOv?= =?us-ascii?Q?H8ZP/XnJDtqH2/ZctB+596Y=3D?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7afb7a1e-c28a-4213-5b26-08dcbcf9e08e X-MS-Exchange-CrossTenant-AuthSource: PH0PR01MB7287.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2024 07:14:18.3264 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: NtfAKXglHKKEIvakXkyW83RvVoye4aPBVCoAK7YnqzOcjGHdkFJcLkTZkZ8CeZQRvR6vd2DxvXi8enN3thHmNVqV3P9bjUAo78Jbg88feIs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR01MB8490 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: Thu, 15 Aug 2024 00:14:20 -0700 Resent-From: nhi@os.amperecomputing.com Reply-To: devel@edk2.groups.io,nhi@os.amperecomputing.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: LbRKPqOTpLczljubJU3ZN2Ujx7686176AA= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=DCIiaaHx; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=pass (policy=none) header.from=groups.io Given that the max frequency is always active, the CPU frequency showned on the CPU Information screen should be retrieved using the CpuGetMaxFreq() function. The function will prioritize obtaining the max frequency over the CPU normal frequency. Signed-off-by: Nhi Pham --- Silicon/Ampere/AmpereAltraPkg/Drivers/PlatformInfoDxe/PlatformInfoDxe.c | = 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Silicon/Ampere/AmpereAltraPkg/Drivers/PlatformInfoDxe/Platform= InfoDxe.c b/Silicon/Ampere/AmpereAltraPkg/Drivers/PlatformInfoDxe/PlatformI= nfoDxe.c index 82d2cf131c16..4b677765cd0e 100644 --- a/Silicon/Ampere/AmpereAltraPkg/Drivers/PlatformInfoDxe/PlatformInfoDxe= .c +++ b/Silicon/Ampere/AmpereAltraPkg/Drivers/PlatformInfoDxe/PlatformInfoDxe= .c @@ -156,7 +156,7 @@ UpdatePlatformInfoScreen ( ); =20 /* CPU clock */ - UnicodeSPrint (Str, sizeof (Str), L"%dMHz", PlatformHob->CpuClk / MHZ_SC= ALE_FACTOR); + UnicodeSPrint (Str, sizeof (Str), L"%dMHz", CpuGetMaxFreq (0) / MHZ_SCAL= E_FACTOR); HiiSetString ( HiiHandle, STRING_TOKEN (STR_PLATFORM_INFO_CPUCLK_VALUE), --=20 2.25.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#120349): https://edk2.groups.io/g/devel/message/120349 Mute This Topic: https://groups.io/mt/107909936/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-