From nobody Tue May 14 15:11:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+102387+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1680521004298153.6269865593896; Mon, 3 Apr 2023 04:23:24 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id yBzEYY1788612xjNcxCwVNNC; Mon, 03 Apr 2023 04:23:23 -0700 X-Received: from NAM10-BN7-obe.outbound.protection.outlook.com (NAM10-BN7-obe.outbound.protection.outlook.com [40.107.92.46]) by mx.groups.io with SMTP id smtpd.web10.67421.1680521003324479372 for ; Mon, 03 Apr 2023 04:23:23 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QTn2Wi1S/17dYA616QMRkfqvyDKK4KkoeILQzVCR3VxGZJfJAbvr0zvpSxkW7KuKKvMZfIfyfByYALMBQK5eOKscJe19mxt7JJ/xhGs5CLr7ft1spncRHBR3rW0qe4WOT7s7hlBL0PZXURzyrIIHzOhZFGG14GH1cC70IEkTv7J05JrzJsHHKaVEvDCIO2Zp7WsxysOjtVpKMAJX/h7+p02bG2G4EcTm2GYV4UsZICYs0jaiHwW++m6/ptaFKmmLhNZqnIenW7JFV8iB5ghoJMNRlhcfiRV5tyvKC7SBlnTgqkDKVShF0tKbx/BeaXsatIqwJ2F0linPoTvO01WzIg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=bB8Oo8Il4Bs+aQRr0DBb9xqX/PEFf9hHfDfxlKuAdmc=; b=gpXDLmsn2oWkhxD0ZUyxSJDEgUi5rVRadSkFFkqswDz8t2WVmSzyg4pPyR3AMQNQUdB+9NxgIs40qFv1eOyFyE2dl3bx2ZlQuF/392aRDl8W/y0tkotSRYJen+HlqRdrfO6xjfba36rGbdFjvn9PMDIvkhwbpRZ6xoEiOmADk+bI76Ph3OkCChcdWMrDeuePsDm1MA1Pcp3Tf4daK43RljoTx0e9PrgUFiawhSaLzy+nHD7+gu9xQnWMYYJPUp/DBCxHU/LPXqMcQmX2mKRqprYReovxcy0rv9tGbpDTo/unQNZIxeXFsj0Vf11SEsmcoa0NCwNHer03FHpU6aUpgA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none X-Received: from BN9PR03CA0245.namprd03.prod.outlook.com (2603:10b6:408:ff::10) by IA0PR12MB7721.namprd12.prod.outlook.com (2603:10b6:208:433::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.33; Mon, 3 Apr 2023 11:23:20 +0000 X-Received: from BN8NAM11FT048.eop-nam11.prod.protection.outlook.com (2603:10b6:408:ff:cafe::fe) by BN9PR03CA0245.outlook.office365.com (2603:10b6:408:ff::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.22 via Frontend Transport; Mon, 3 Apr 2023 11:23:20 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+102387+1787277+3901457@groups.io; helo=mail02.groups.io; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C X-Received: from SATLEXMB04.amd.com (165.204.84.17) by BN8NAM11FT048.mail.protection.outlook.com (10.13.177.117) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6277.26 via Frontend Transport; Mon, 3 Apr 2023 11:23:20 +0000 X-Received: from SATLEXMB07.amd.com (10.181.41.45) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Mon, 3 Apr 2023 06:23:20 -0500 X-Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB07.amd.com (10.181.41.45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Mon, 3 Apr 2023 04:23:19 -0700 X-Received: from BLR-LAB-SFW01.amd.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2375.34 via Frontend Transport; Mon, 3 Apr 2023 06:23:18 -0500 From: "Abdul Lateef Attar via groups.io" To: CC: Abdul Lateef Attar , Ard Biesheuvel , Leif Lindholm , Abner Chang , Michael D Kinney Subject: [edk2-devel] [PATCH v4 1/3] Platform/AMD: Adds AmdMinBoardPkg to support MinPlatformPkg Date: Mon, 3 Apr 2023 16:53:10 +0530 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT048:EE_|IA0PR12MB7721:EE_ X-MS-Office365-Filtering-Correlation-Id: 7c12c07e-07f0-4da5-36df-08db3435d46a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: mbi5b4kg3V2v5Q9v2g75EwUrVZfcx43UUKBzcIuZCsEg6c3V+daMiIi9ByXFKk83cL3ehpAIJeJMJDL47M2B0iWIm4IYjzmh23w46wM7RRAYtCiBmGAfIwAfokdLjPqwNwJohsGpgj72qlTJ1ZT1roR04MA5LvLPVOf+SLuBXdPKlh48q8QGLBAzayrq1ODsth+lviS0i/+c6Z4jEaH6BV+vsjFPN8f/Sb/6LxO0XVEyqZqXW0IdKfH259fG17BQHSwlxHGFYDq9W5kCQ8eLXNlTJbxRkv27cAmUwsMF5OsbYE+Tx8b8wnTBk+raXoVYps7Ek8Pgxv82lSH+FitPQXcoJUhoTVCdJ41fYcbi4p8+cA1AFH845pcFOIGF/qS3/MgiQ/jLcTXFc2Z1ZW91XkEdJc6+U0vWFsMc4v/wDPb23brZO8F7NmiS+cD/tOl+Pnrd4/FzGD5lfuMTgwXD6Hh5lQ0kJ3zkwwxFz3EQ5oWSoD/vJXAIwLxKcIsoI5L6AKhYughxymiSGrXLzR5e+Bx1XqzWmUTsZ1oDoVoQn7CQaMphXAhqIAtWot3cWAChZwq+y+V4CH36tjnQFjAYeKT+HLXXS64Xf8Hg1jnr8rkmwO5d6TLT4gehijoptZYHsv0Z8oVzjtkAx/jvw4GoHC5v5cp5w7rRSq3DrfvereWZ+b06EGSLZkOGrINL0KG83bL9wkZ8Bl0UQln02oGoZZ9f5blbDO5Z9kqQqfqBjCg= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Apr 2023 11:23:20.4230 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7c12c07e-07f0-4da5-36df-08db3435d46a X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT048.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR12MB7721 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,abdattar@amd.com X-Gm-Message-State: UvUNuQiEov5C1UkTcps3RCJ1x1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1680521003; bh=2+1XTWGYQJ8cq5ilbT9Z9E3hsoZ1+mL1sKrB/6Pk4T0=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=NVxERx6poJR3u5UV4dXCnM0Clgmy0FJlH156x2dDeoyd36lCOavlpJrWsoL+jOb6+Xb O3hd3TYt8OxDFW13/iRX5bjq8e8wRSSs8d2SHrYzPU87an5foxliSis3AEff7wfdT3aGQ DFAuGA/zeae1UXhKBN/7gkGBRDg9hO73h70= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1680521006109100006 Content-Type: text/plain; charset="utf-8" Adds initial DEC and DSC file for AmdMinBoardPkg. This package provides supporting modules for AMD boards to leverage MinPlatformPkg framework. Signed-off-by: Abdul Lateef Attar Cc: Ard Biesheuvel Cc: Leif Lindholm Cc: Abner Chang Cc: Michael D Kinney Reviewed-by: Abner Chang --- .../AMD/AmdMinBoardPkg/AmdMinBoardPkg.dec | 19 +++++++++++++++++ .../AMD/AmdMinBoardPkg/AmdMinBoardPkg.dsc | 21 +++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 Platform/AMD/AmdMinBoardPkg/AmdMinBoardPkg.dec create mode 100644 Platform/AMD/AmdMinBoardPkg/AmdMinBoardPkg.dsc diff --git a/Platform/AMD/AmdMinBoardPkg/AmdMinBoardPkg.dec b/Platform/AMD/= AmdMinBoardPkg/AmdMinBoardPkg.dec new file mode 100644 index 000000000000..e37b02c4cf5a --- /dev/null +++ b/Platform/AMD/AmdMinBoardPkg/AmdMinBoardPkg.dec @@ -0,0 +1,19 @@ +## @file AmdMinBoardPkg.dec +# Declaration file for AMD's AmdMinBoardPkg. +# +# This package supports AMD processor family based board as per the MinPl= atform +# Arch specification. +# +# Copyright (c) 2023, Advanced Micro Devices, Inc. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause-Patent +# +# @par Specification Reference: +# -https://tianocore-docs.github.io/edk2-MinimumPlatformSpecification/dr= aft/ 0.7 +## + +[Defines] + DEC_SPECIFICATION =3D 1.27 + PACKAGE_NAME =3D AmdMinBoardPkg + PACKAGE_GUID =3D 44F9D761-9ECB-43DD-A5AC-177E5048701B + PACKAGE_VERSION =3D 0.1 + diff --git a/Platform/AMD/AmdMinBoardPkg/AmdMinBoardPkg.dsc b/Platform/AMD/= AmdMinBoardPkg/AmdMinBoardPkg.dsc new file mode 100644 index 000000000000..74992a9a6b8c --- /dev/null +++ b/Platform/AMD/AmdMinBoardPkg/AmdMinBoardPkg.dsc @@ -0,0 +1,21 @@ +## @file +# AmdMinBoardPkg.dsc +# +# Description file for AMD AmdMinBoardPkg +# +# Copyright (c) 2023, Advanced Micro Devices, Inc. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause-Patent +## + +[Defines] + DSC_SPECIFICATION =3D 1.30 + PLATFORM_GUID =3D 88F8A9AE-2FA0-4D58-A6F9-05F635C05F4E + PLATFORM_NAME =3D AmdMinBoardPkg + PLATFORM_VERSION =3D 0.1 + OUTPUT_DIRECTORY =3D Build/$(PLATFORM_NAME) + BUILD_TARGETS =3D DEBUG | RELEASE | NOOPT + SUPPORTED_ARCHITECTURES =3D IA32 | X64 + +[Packages] + AmdMinBoardPkg/AmdMinBoardPkg.dec + --=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 (#102387): https://edk2.groups.io/g/devel/message/102387 Mute This Topic: https://groups.io/mt/98032729/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- From nobody Tue May 14 15:11:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+102388+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1680521005861594.1027548430544; Mon, 3 Apr 2023 04:23:25 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id obJfYY1788612xGip1xnDBNQ; Mon, 03 Apr 2023 04:23:25 -0700 X-Received: from NAM11-CO1-obe.outbound.protection.outlook.com (NAM11-CO1-obe.outbound.protection.outlook.com [40.107.220.76]) by mx.groups.io with SMTP id smtpd.web10.67422.1680521004746494407 for ; Mon, 03 Apr 2023 04:23:24 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dgb4lzvATyhKJj6IONyA9wAinlylxQZmfE5L2XrFGkLggSTQvHaaZXbvVBt0GsmX2Klf7bgwHKUrvloOOuEW0pLykwE62pKYLRM9drh0KRIjMHmtciqjTnqS98BmAPelPBKn2yKN+ndDHeGsW0NKLZLe/uLoi+enFApbzlT24tHM4ZM3TvfH4k1Y7uIwDEbse68ZHJJj2nGHqR0oJFwNuxhhu4q/AQhhz2qOFXl3aduxidh01/tViNcEM+8xFlosV0uS3Fvcq981JcnLIozym4kdtrBK9PIAAZPxD0J0Hho81jOeFF4iA2I9EQLrwTbYw0L32qzqRnylAcpahEKklA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=fbCqfvYwycvf6ooEBxyy7sP4aeB/A8THhZdppz2BHb8=; b=ah9FZ/fSSsRLosYDYQHuGaS5Vti+do7h30wdoy0qC9hs0svRFLCL3E9rQOt/pKw9Wle3gdRnEaid5kSaI6O9our6hBUjb0crJpVcHDcQcKk4JfkLyxFqAv7LT/ejoizFFjPvIWuaLNjiTzMJk36ixvlz+7JrePGoHXMpdwQWkw0romjR7wJP71FrcgI8Jq+S1qy5WHeZ4lMq0yUXTEH7pbyL8uhQCkrCyJglVMfICvi+LrKvJAeqPOmu7OIjFjG7r/5U8TLg1wCt/z0K3aRsA0gaAwoy2ZMv3JpT7vHJYcvSAykaiz3Cy2zVy0lk9Uw8EyOcjYu5F0X2YZrpb6X7hg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none X-Received: from BN9PR03CA0546.namprd03.prod.outlook.com (2603:10b6:408:138::11) by CY5PR12MB6622.namprd12.prod.outlook.com (2603:10b6:930:42::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.33; Mon, 3 Apr 2023 11:23:22 +0000 X-Received: from BN8NAM11FT070.eop-nam11.prod.protection.outlook.com (2603:10b6:408:138:cafe::ef) by BN9PR03CA0546.outlook.office365.com (2603:10b6:408:138::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.22 via Frontend Transport; Mon, 3 Apr 2023 11:23:22 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+102388+1787277+3901457@groups.io; helo=mail02.groups.io; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C X-Received: from SATLEXMB04.amd.com (165.204.84.17) by BN8NAM11FT070.mail.protection.outlook.com (10.13.177.50) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6277.26 via Frontend Transport; Mon, 3 Apr 2023 11:23:22 +0000 X-Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Mon, 3 Apr 2023 06:23:21 -0500 X-Received: from BLR-LAB-SFW01.amd.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2375.34 via Frontend Transport; Mon, 3 Apr 2023 06:23:20 -0500 From: "Abdul Lateef Attar via groups.io" To: CC: Abdul Lateef Attar , Ard Biesheuvel , Leif Lindholm , "Abner Chang" , Michael D Kinney Subject: [edk2-devel] [PATCH v4 2/3] Platform/AMD/MinBoardPkg: Adds SetCacheMtrrLib library Date: Mon, 3 Apr 2023 16:53:11 +0530 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT070:EE_|CY5PR12MB6622:EE_ X-MS-Office365-Filtering-Correlation-Id: 1583e415-eaea-4ab7-6583-08db3435d5a3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: gq7Snzrmp9486dZfkRQlaOIhn5iAXnT/AU6c6l6KXUoHLEZ/CkdAtZ+N2XnSjPSDLvXJo8i4WZjOsxHSSFohNNkkzzJhKr5x2b7ePNEQCnVj5EFoFoszetTm29JmIXboc3daQbrtoVKgcCE63DX6c6i3YcnsWAxHytzLQZLRo6b6iLjaznPdgUGZHICK/ZR1IP/eGvfHrv1HdnAimSa4ZDxPtR0WD1vwwNla0UkuDlySG+TvdzpFP55nlE7PtjndReMnc5AbVWmc0vFkoIlg4fHj883MSh9obGJmVKDPQ/jmHvlvLwTlsTPyDvQwJGM13zIFyawh4j/i7vOPZsL2ZRNDFGKT4jrS+3f0CgGBTw60FHTUuvuU7Qb2ydyZxR1AQJYrL1sO2ZzVMr5rDemrcKfm46R25wzlpEKwb6IVHsDkIRZWMUGRj5KVpzRu6FXab6Xs6Jkmeknz+l7Ue12as/dsUAVLNAZdUsnk+iBQ3/brbMqNTr+D0q0z6nrYaSkD0WKaZqNs0vnCjSgu7g995zm+ZjEFLUIH9iFMG2QjreIn8QjX4No8PTJqRjS/Ck35PhAv4wCMIPn99ae0j95we2vrQHp2/wcL5aUhZ0fUMTSGxL7dnSRuTDyvwukcCt5A760Zf1LnAPAYS4sAvxpSGYPEmtLH1dlDorrX8qWaWp5wo172zIwA18WcZX1fseGGU69AzdZEna4ZaKvkKlwNTsnLiBL/afdZTjmiOnwsjwM= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Apr 2023 11:23:22.4911 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1583e415-eaea-4ab7-6583-08db3435d5a3 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT070.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR12MB6622 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,abdattar@amd.com X-Gm-Message-State: KF28c57T6w7IGxQMBJJSoL1ox1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1680521005; bh=JSaIA24f1wEoxydgo4eEfOlUou/0EYU1cpoogr2IHzM=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=M5cr3x6Ys6yX9YQhi/leYhRuAmYLfP302+/DVrkhBbjPC5MnrWvh1cEEb9pQ62CiPvd P4I/i0Se4g1PF4QrtgrqRsRjbv78N55jSe2LlMlONAyKxJV7bVKsu8MyNdgKkR1fsa69C /4fXau4YbDKiUJzeqbD68EaqvAxHSFYiyyQ= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1680521006138100008 Content-Type: text/plain; charset="utf-8" Adds SetCacheMtrrLib library for AmdMinBoardPkg, which sets MTRR values for PEI phase and also modifies the MTRR value at the end of PEI phase. Signed-off-by: Abdul Lateef Attar Cc: Ard Biesheuvel Cc: Leif Lindholm Cc: Abner Chang Cc: Michael D Kinney Reviewed-by: Abner Chang --- .../AMD/AmdMinBoardPkg/AmdMinBoardPkg.dsc | 9 ++ .../SetCacheMtrrLib/SetCacheMtrrLib.inf | 35 +++++ .../Library/SetCacheMtrrLib/SetCacheMtrrLib.c | 133 ++++++++++++++++++ 3 files changed, 177 insertions(+) create mode 100644 Platform/AMD/AmdMinBoardPkg/Library/SetCacheMtrrLib/Set= CacheMtrrLib.inf create mode 100644 Platform/AMD/AmdMinBoardPkg/Library/SetCacheMtrrLib/Set= CacheMtrrLib.c diff --git a/Platform/AMD/AmdMinBoardPkg/AmdMinBoardPkg.dsc b/Platform/AMD/= AmdMinBoardPkg/AmdMinBoardPkg.dsc index 74992a9a6b8c..2f17db5df5fb 100644 --- a/Platform/AMD/AmdMinBoardPkg/AmdMinBoardPkg.dsc +++ b/Platform/AMD/AmdMinBoardPkg/AmdMinBoardPkg.dsc @@ -18,4 +18,13 @@ [Defines] =20 [Packages] AmdMinBoardPkg/AmdMinBoardPkg.dec + MdePkg/MdePkg.dec + MinPlatformPkg/MinPlatformPkg.dec + UefiCpuPkg/UefiCpuPkg.dec + +[LibraryClasses.common.PEIM] + SetCacheMtrrLib|AmdMinBoardPkg/Library/SetCacheMtrrLib/SetCacheMtrrLib.i= nf + +[Components.IA32] + AmdMinBoardPkg/Library/SetCacheMtrrLib/SetCacheMtrrLib.inf =20 diff --git a/Platform/AMD/AmdMinBoardPkg/Library/SetCacheMtrrLib/SetCacheMt= rrLib.inf b/Platform/AMD/AmdMinBoardPkg/Library/SetCacheMtrrLib/SetCacheMtr= rLib.inf new file mode 100644 index 000000000000..b4c4b3e7de14 --- /dev/null +++ b/Platform/AMD/AmdMinBoardPkg/Library/SetCacheMtrrLib/SetCacheMtrrLib.i= nf @@ -0,0 +1,35 @@ +## @file +# Component information file for Platform SetCacheMtrr Library. +# This library implementation is for AMD processor based platforms. +# +# Copyright (C) 2023 Advanced Micro Devices, Inc. All rights reserved.
+# +# SPDX-License-Identifier: BSD-2-Clause-Patent +# +## + +[Defines] + INF_VERSION =3D 1.29 + BASE_NAME =3D PeiSetCacheMtrrLib + FILE_GUID =3D 1E8468E0-5EB4-4088-9B52-BFDC6E4DAE87 + MODULE_TYPE =3D PEIM + VERSION_STRING =3D 1.0 + LIBRARY_CLASS =3D SetCacheMtrrLib + +[LibraryClasses] + BaseLib + DebugLib + MtrrLib + +[Packages] + MdePkg/MdePkg.dec + MinPlatformPkg/MinPlatformPkg.dec + UefiCpuPkg/UefiCpuPkg.dec + +[Sources] + SetCacheMtrrLib.c + +[Pcd] + gMinPlatformPkgTokenSpaceGuid.PcdFlashAreaBaseAddress + gMinPlatformPkgTokenSpaceGuid.PcdFlashAreaSize + diff --git a/Platform/AMD/AmdMinBoardPkg/Library/SetCacheMtrrLib/SetCacheMt= rrLib.c b/Platform/AMD/AmdMinBoardPkg/Library/SetCacheMtrrLib/SetCacheMtrrL= ib.c new file mode 100644 index 000000000000..33b774fedbd3 --- /dev/null +++ b/Platform/AMD/AmdMinBoardPkg/Library/SetCacheMtrrLib/SetCacheMtrrLib.c @@ -0,0 +1,133 @@ +/** @file + +SetCacheMtrr library functions. +This library implementation is for AMD processor based platforms. + +Copyright (C) 2023 Advanced Micro Devices, Inc. All rights reserved.
+ +SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ + +#include +#include +#include +#include + +/** + This function sets the cache MTRR values for PEI phase. +**/ +VOID +EFIAPI +SetCacheMtrr ( + VOID + ) +{ + EFI_STATUS Status; + + Status =3D MtrrSetMemoryAttribute ( + 0, + 0xA0000, + CacheWriteBack + ); + if (EFI_ERROR (Status)) { + DEBUG (( + DEBUG_ERROR, + "Error(%r) in setting CacheWriteBack for 0-0x9FFFF\n", + Status + )); + } + + Status =3D MtrrSetMemoryAttribute ( + 0xA0000, + 0x20000, + CacheUncacheable + ); + if (EFI_ERROR (Status)) { + DEBUG (( + DEBUG_ERROR, + "Error(%r) in setting CacheUncacheable for 0xA0000-0xBFFFF\n", + Status + )); + } + + Status =3D MtrrSetMemoryAttribute ( + 0xC0000, + 0x40000, + CacheWriteProtected + ); + if (EFI_ERROR (Status)) { + DEBUG (( + DEBUG_ERROR, + "Error(%r) in setting CacheWriteProtected for 0xC0000-0xFFFFF\n", + Status + )); + } + + Status =3D MtrrSetMemoryAttribute ( + 0x100000, + 0xAFF00000, + CacheWriteBack + ); + if (EFI_ERROR (Status)) { + DEBUG (( + DEBUG_ERROR, + "Error(%r) in setting CacheWriteBack for 0x100000-0xAFFFFFFF\n", + Status + )); + } + + Status =3D MtrrSetMemoryAttribute ( + PcdGet32 (PcdFlashAreaBaseAddress), + PcdGet32 (PcdFlashAreaSize), + CacheWriteProtected + ); + if (EFI_ERROR (Status)) { + DEBUG (( + DEBUG_ERROR, + "Error(%r) in setting CacheWriteProtected for 0x%X-0x%X\n", + Status, + PcdGet32 (PcdFlashAreaBaseAddress), + PcdGet32 (PcdFlashAreaBaseAddress) + PcdGet32 (PcdFlashAreaSize) + )); + } + + MtrrDebugPrintAllMtrrs (); + return; +} + +/** + Update MTRR setting in EndOfPei phase. + This function will set the MTRR value as CacheUncacheable + for Flash address. + + @retval EFI_SUCCESS The function completes successfully. + @retval Others Some error occurs. +**/ +EFI_STATUS +EFIAPI +SetCacheMtrrAfterEndOfPei ( + VOID + ) +{ + EFI_STATUS Status; + + Status =3D MtrrSetMemoryAttribute ( + PcdGet32 (PcdFlashAreaBaseAddress), + PcdGet32 (PcdFlashAreaSize), + CacheUncacheable + ); + if (EFI_ERROR (Status)) { + DEBUG (( + DEBUG_ERROR, + "Error(%r) in setting CacheUncacheable for 0x%X-0x%X\n", + Status, + PcdGet32 (PcdFlashAreaBaseAddress), + PcdGet32 (PcdFlashAreaBaseAddress) + PcdGet32 (PcdFlashAreaSize) + )); + } + + MtrrDebugPrintAllMtrrs (); + return EFI_SUCCESS; +} + --=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 (#102388): https://edk2.groups.io/g/devel/message/102388 Mute This Topic: https://groups.io/mt/98032730/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- From nobody Tue May 14 15:11:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+102389+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1680521009172470.4920215851307; Mon, 3 Apr 2023 04:23:29 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id GPcgYY1788612xQaRWgnaDZV; Mon, 03 Apr 2023 04:23:28 -0700 X-Received: from NAM12-DM6-obe.outbound.protection.outlook.com (NAM12-DM6-obe.outbound.protection.outlook.com [40.107.243.57]) by mx.groups.io with SMTP id smtpd.web11.67508.1680521007986719884 for ; Mon, 03 Apr 2023 04:23:28 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=h06+w4yYR/VKW3Yn4Son5x2bungLyB8PJ4gdxxZHHmIgVQdA0XFeYxKmKs9h9ma737BgT27BbAINzh6zcaU9RY6Oy1uIeTqAHkMC3AkucOIlvQP2DbYGOCbqBiHyyQ+EN2o7NXmfjl1bn3SbWi01v4H5BpJIHw1XkOOv+MkaM6nOIUE2E8BFo3azAueRxKzw3FF4kOOVbatbN40y7IL3evdFY5GewQf52mNsD+H1W0MuFnnPo4VOXG0Ia1tF+zXtVVN89XLvNwxoVeGinn1dGS/7h3NQ1JvBg1SFwaGglxwwYA75v6at9fvVr7IxV2JfpMEx/iOMOClYC9EPY+sisw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=c1GFjgvJiZV1+NDgXIHLTAnD+rbGar1949Zm49MApZc=; b=KSKX2SxpfVUR5eKdC8A3whl5bZwTYMmT8s22HIiBfDtgBaMEzGQP+tQzW97sEWUmeMcZr8bvNZabkZbnSt3hV7H9oxFkU3ohu2SoFkt4OnuWOXxZO0SwCjscYD63cRiT5+hJKNUI1bmOkguFQEp0Is5ZgDE0q/hI6cNXMFd3piuDWFPNq2BIkV27c0TopvQGqpKRrAssZJrg4n6giw4Np3GiFwY9rBG6KKoUUWWDgPsE+TSH81vo2O8pNYcI/5TBWHkcJkTFOiiVEMo2piIujkCcNO80c+EKpvAYaG93yM92eZ0/Eep7nhymVJIWy4DQq67ZAs2wipGfJbaWjSyS4A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none X-Received: from MW3PR06CA0012.namprd06.prod.outlook.com (2603:10b6:303:2a::17) by DM8PR12MB5400.namprd12.prod.outlook.com (2603:10b6:8:3b::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.28; Mon, 3 Apr 2023 11:23:26 +0000 X-Received: from CO1NAM11FT025.eop-nam11.prod.protection.outlook.com (2603:10b6:303:2a:cafe::f7) by MW3PR06CA0012.outlook.office365.com (2603:10b6:303:2a::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.22 via Frontend Transport; Mon, 3 Apr 2023 11:23:25 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+102389+1787277+3901457@groups.io; helo=mail02.groups.io; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C X-Received: from SATLEXMB03.amd.com (165.204.84.17) by CO1NAM11FT025.mail.protection.outlook.com (10.13.175.232) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6277.26 via Frontend Transport; Mon, 3 Apr 2023 11:23:25 +0000 X-Received: from SATLEXMB07.amd.com (10.181.41.45) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Mon, 3 Apr 2023 06:23:24 -0500 X-Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB07.amd.com (10.181.41.45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Mon, 3 Apr 2023 04:23:24 -0700 X-Received: from BLR-LAB-SFW01.amd.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2375.34 via Frontend Transport; Mon, 3 Apr 2023 06:23:22 -0500 From: "Abdul Lateef Attar via groups.io" To: CC: Abdul Lateef Attar , Abdul Lateef Attar , Ard Biesheuvel , Leif Lindholm , Abner Chang , "Michael D Kinney" Subject: [edk2-devel] [PATCH v4 3/3] Maintainers.txt: Adds AMD/AmdMinBoardPkg maintainers Date: Mon, 3 Apr 2023 16:53:12 +0530 Message-ID: <43bc87ec25e04b01dc26d28751591e2cf144e332.1680520788.git.abdattar@amd.com> In-Reply-To: References: MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT025:EE_|DM8PR12MB5400:EE_ X-MS-Office365-Filtering-Correlation-Id: 3f276dc6-be97-4fde-e402-08db3435d788 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: H/jYe12n7HALmZXGlNjVkiJ2+G75vXM03ZOW+kkqwrEW7J5yLIAD47nh7V47nppfncpwpJcr2diaRvWVRNHA69aGEOL/3rSR84lCQPUBmv/KUrh9XtXY4GF4v6Em96H6HdnM88re+SUPl1qbbP26UzEZ9Em6NO4P3iVbLzojD4dVQap8ktJS5f0lB86a4TJaDVxq+tVgNaTtM6wVy2/hynoQxadmgDBiG4BeRwt2UmqJ3iokGpiuzmrh5WEpGt8wOxnNJCdP0sw5F6ySSWJsflhxHpqu2fC3KosOwUDt3XqbuX5yuqC1+Fbf4YiHLvTcr7DdwZky+rYENuPjemX+Wgue0hGdiOTj62Z+XfT9E203HBM6TKMiGsVAc5ibnoixxWcxlCalWN6r68DgQmnH4WIwmzDdqlcNisgxqRJ1z2BqSdGkTGj3WRUDvDWAXEb6AiNqIXjoQXFc1Z6tACuzCq54EEj7bCRw6xBIi0e1PCT4szZ84Wsi3JoDdWSwaLYinxSs8iCAlUCHrcTl2d7BhawD4qgqMH3CkIxykhyhrLDZdArWLbgGlPhrlBFI6VDNoQ4/f5f9dWEsRVZTnKodTZUH5n7FY27CiZLjicFtMR42JmTSMPLFyfqoDXXPu6TYCWofzglsXEr8auVq4OBKam6/syDRsGIxZNtByw1gf0XaVH3GCwYImBzp1B/HpSNiz9dB+9a9kb50jgq03TPVelHYIeZQNZZmCyecBHDxTnA= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Apr 2023 11:23:25.5322 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3f276dc6-be97-4fde-e402-08db3435d788 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT025.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR12MB5400 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,abdattar@amd.com X-Gm-Message-State: pe0FqvZM4n5azdAPw8KqbYMxx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1680521008; bh=4p3Ak+RNrtuBhzKqfOBp/smfidqjwivBTyx1g86vQp8=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=RzNhK33owP4dXd9751uzpkRUBhrUpg3wg3RmXHCUcm4I88YnKmaUyeG1Wr798j238/C MEnHhiW3fCQQPE9Xry15G9kNlqgzqsAWMTewlEWGJdRwUydb6yj4UCV8LNhBTbxJiFp37 T4G7QQlXJZJHRZCc+NuqalrhlH/Gy3UOmAg= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1680521010118100002 Content-Type: text/plain; charset="utf-8" From: Abdul Lateef Attar Adds maintainers for AMD/AmdMinBoardPkg Signed-off-by: Abdul Lateef Attar Cc: Ard Biesheuvel Cc: Leif Lindholm Cc: Abner Chang Cc: Michael D Kinney Reviewed-by: Abner Chang --- Maintainers.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Maintainers.txt b/Maintainers.txt index 1871ffaa26bd..24918d1c6ede 100644 --- a/Maintainers.txt +++ b/Maintainers.txt @@ -91,6 +91,11 @@ F: Silicon/AMD/Styx/ M: Ard Biesheuvel M: Leif Lindholm =20 +AMD MinBoard package for MinPlatformPkg +F: Platform/AMD/AmdMinBoardPkg +M: Abner Chang +M: Abdul Lateef Attar + Ampere Computing F: Platform/Ampere F: Silicon/Ampere --=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 (#102389): https://edk2.groups.io/g/devel/message/102389 Mute This Topic: https://groups.io/mt/98032731/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-