From nobody Thu Dec 26 01:30:18 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 15070685333301011.1823619478607; Tue, 3 Oct 2017 15:08:53 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 0338F21E7821D; Tue, 3 Oct 2017 15:05:29 -0700 (PDT) Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0055.outbound.protection.outlook.com [104.47.37.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 3C06A21E78207 for ; Tue, 3 Oct 2017 15:05:27 -0700 (PDT) Received: from leduran-Precision-WorkStation-T5400.amd.com (165.204.77.1) by MWHPR12MB1246.namprd12.prod.outlook.com (10.169.204.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Tue, 3 Oct 2017 22:08:45 +0000 X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: Pass (sender SPF authorized) identity=helo; client-ip=104.47.37.55; helo=nam02-cy1-obe.outbound.protection.outlook.com; envelope-from=leo.duran@amd.com; receiver=edk2-devel@lists.01.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=EPjhc49CEmkWzCqk2nvA444vWqlFsCGYGug3qBqzLPw=; b=gQdXPpSOmBK0aMId2XF73VO5CUW/9JAgHPVRHqR8CfKKHEPxJfy5VJUUybQT6rCezh5q1+69MtSK++Ec82dv4lG0g8OP4V7PIMk/1LdN43Vt4jQhNUf5hi5k26OhTW1Cco7h1vWw06EdPMpsrNQD40LxEXD/3qkUzfRclE8zRQY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=leo.duran@amd.com; From: Leo Duran To: edk2-devel@lists.01.org Date: Tue, 3 Oct 2017 17:08:23 -0500 Message-Id: <1507068509-5148-4-git-send-email-leo.duran@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507068509-5148-1-git-send-email-leo.duran@amd.com> References: <1507068509-5148-1-git-send-email-leo.duran@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: BN6PR17CA0020.namprd17.prod.outlook.com (10.173.147.30) To MWHPR12MB1246.namprd12.prod.outlook.com (10.169.204.150) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a6ad135e-58aa-420f-f758-08d50aab515f X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:MWHPR12MB1246; X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1246; 3:6N1re0660PdfwSN6RZfBVp+th2o7CapFBdD9fp6A/Egc2u9LchrBlEGJ0Urs1geiHKo2fKOlQBY0DY2k2E8pxtoB/vYr2+qQ3dv1Aw9sHpK/zzNHjidVdS2kp5SmjqOJGYOfr2aiW/FPXMQNwCyrZHW5f/ckNdRIOcu2T4bWGBAwGwFQ/pYaX4OKBgEsNyQcaflNT1e8nAqqSaz8RdmBSTk77hIiFH9mdA+dIqi1pFDEFCh01qZ2XWPlQaaMu5Jt; 25:yDq5sizklx5PfBkqeWxNvF4RqQUYfiHrtCfRkZQuJKkzVl2cH8Rrv0ztAgXgepE2HHLda+BnjKLwtZoYxE6HpFbhjry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7w9; 4:WIHzrpbdg/6zeY9GOERcXMYvSI9SHM5uhI4XTZ5DJkLTwlBNwg94x16af7X1bZ5W754hfiTDDpGX+w62IPc2G6kGSGAg/RpvjAM3PAQjzfdfMb62mSSLPpSaaS8i1Ujpi1FO2/NmHvts9llDXa9NV2Xrpvz5Re2fnvW7mQsvTGu0eDjFFN0NLsPy/545+mXJv1tdzFLoQIBSr1qk4Xnyyw7jUP5rXN0Q5lgC68mmmVv6F8qg3qA8G6PrnAMdgchBIcBbwadozqfGDVeVXNFBx+pibweKGusKsY7sgmzmL4gGiuceW/4/+EyaURwauUJrr6V9XDYoGVe4Ioe1fGLERNJ7zavuEiNx5KK5VCYIOF0= X-Exchange-Antispam-Report-Test: UriScan:(767451399110)(788757137089)(228905959029699); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(100000703101)(100105400095)(6055026)(6041248)(20161123555025)(20161123564025)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:MWHPR12MB1246; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:MWHPR12MB1246; X-Forefront-PRVS: 044968D9E1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(346002)(39860400002)(199003)(189002)(48376002)(5003940100001)(47776003)(76176999)(50986999)(68736007)(66066001)(25786009)(101416001)(6486002)(86362001)(33646002)(478600001)(2950100002)(16526018)(5660300001)(3846002)(6916009)(50466002)(7736002)(6116002)(2906002)(6666003)(105586002)(2351001)(53936002)(81166006)(106356001)(97736004)(4326008)(16586007)(54906003)(36756003)(8936002)(305945005)(81156014)(189998001)(2361001)(53416004)(50226002)(316002)(8676002)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR12MB1246; H:leduran-Precision-WorkStation-T5400.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR12MB1246; 23:1is1rXYN9/wXQYFk6iPUgtHz+CUn73J927WqJzNL1?= =?us-ascii?Q?BcktkxV1P1phYsIHCUelVZdishvzTAFVI0xxctY1AgJzPfoAnss+lqLKmA4W?= =?us-ascii?Q?tL2bX+qWUC9825EHr1psklOhwel27hZhpVNxKBEh1uXHxNFn0lp3V6MFpwPC?= =?us-ascii?Q?a2fmq8lJHJlUJta3hjMPiPcS3xi66KH4Ww6S96jLUiHlxYETKmLHZk3PEjs6?= =?us-ascii?Q?+OF8bOGip7zEEkHzWOi0hBifzmHht6aj+1uA73Js6m6gF2bWOxz+2RWgHEgg?= =?us-ascii?Q?ymyZqcmD8/v+bjvE+85ukonNX8MOsml38Vz7hSxB7qSqGQchqhQ0yibOCY24?= =?us-ascii?Q?c0aL1Fa+LtNbBabPpdAEC+aqW3MpyfEuqLelK7Z2unCrZ9zHhuAu6YJVLn5H?= =?us-ascii?Q?Nb5sY2iQ5I655q+wqgfYWgxPRn+nUjJ8C+NYqVfzwq58QUaT8EfdvOpoaDxY?= =?us-ascii?Q?60DzMrdxfVBHrvXdiXIOjFl4HdrZMcsTZxsY0x2D01Lik1rArkYk7FaX+WvQ?= =?us-ascii?Q?j8hARMQaRibDcrNoK5LzvqDV6qGb+emyE+1xPvlbs77020Ch8ysi6C8la+sU?= =?us-ascii?Q?j/2RFl8GoxI9DiUOk4zw5A26C0nbyei+neuSdMGwcNJYgihb/WPSGgno2BJd?= =?us-ascii?Q?LNNa2IjjVzTvmTtQqz+kM6HMK+HwW2CHatsDixs6SzUpRDnSCwKj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eWntC8zN2fbO5Kk77g9gTYsUAl4Dd103qsYWl4KiZJsKaMWQ==; 24:aapHJA2G0g9iHxPn0pejxkuX2KtIKBZIpDT5YIjkKcTellwmsJzlaKuYT3w1UkamelDGr0U/1y3WDqo+IEZvw/SadfCMS5bx8x51gooyxz4=; 7:wSsAQfXNr9cOjcPOFGMP0fOZntPGfu0IKLQCIZdydgyYgHOqAZCG6GQAAAVpWQhHcc9tXOO4YHecZqaE/kZI9lDUBTn1yjrbse+5dRrWJuz64xOjMRLcJ2KfvESSX1b6UJuQmB5daqX+/VjMsUdpr7Y6C+4QC+8RIx4IUCsy26BmB01TRjtoXlHsk7iEgW7flSwk1/JHSPfMpGgWvxM9kaU/rf4V3rgHOQ0vc5Cpqy0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1246; 20:5qkHOGT6bD95CP77y2B28ZnkM6x/fJN8k2E0t/eI/VG5g/fulMFAgQZezhkUinI+SxFAutFYocsCUS7fRmRQAs/yU2DzWKXsvKSFaiousWDiGn89jWVYaoDg4jsFmwwApWQboerpyLqSJ4uDOsdRzf05jN8YuW4idid2TrxT/WCNUegQjUSgl7b3dvBobgkS12aL0PrFx3AhhI/URWp/z+UM7iGWNNBQOKIjroWvtOrhhmwFAhgS5Cei97T+ivWj X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2017 22:08:45.5284 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1246 Subject: [edk2] [PATCH 3/9] UefiCpuPkg: SmmCpuFeaturesLib library. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jordan Justen , Jeff Fan , Liming Gao Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Introduce a couple of FixedPCDs to replace Intel-specific macros. The new PCDs will allow SMM support on AMD-based x86 systems. 1) PcdCpuSmmSmramSaveStateMapOffset - SMRAM Save State Map Offset. 2) PcdCpuSmmPSDOffset - Processor SMM Descriptor Offset in SMRAM. Cc: Jordan Justen Cc: Jeff Fan Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Leo Duran --- UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf | 5 +++++ UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLibStm.inf | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf b/U= efiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf index 77908b0..1be2671 100644 --- a/UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf +++ b/UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf @@ -2,6 +2,8 @@ # The CPU specific programming for PiSmmCpuDxeSmm module. # # Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.
+# Copyright (c) 2017, AMD Incorporated. All rights reserved.
+# # This program and the accompanying materials # are licensed and made available under the terms and conditions of the B= SD License # which accompanies this distribution. The full text of the license may = be found at @@ -36,5 +38,8 @@ MemoryAllocationLib DebugLib =20 +[FixedPcd] + gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSmramSaveStateMapOffset ## CONS= UMES + [Pcd] gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber ## SOME= TIMES_CONSUMES diff --git a/UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLibStm.inf = b/UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLibStm.inf index db8dcdc..b1937de 100644 --- a/UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLibStm.inf +++ b/UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLibStm.inf @@ -3,6 +3,8 @@ # is included. # # Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.
+# Copyright (c) 2017, AMD Incorporated. All rights reserved.
+# # This program and the accompanying materials # are licensed and made available under the terms and conditions of the B= SD License # which accompanies this distribution. The full text of the license may = be found at @@ -78,6 +80,10 @@ gEfiAcpi20TableGuid ## SOMETIMES_CONSUMES ## System= Table gEfiAcpi10TableGuid ## SOMETIMES_CONSUMES ## System= Table =20 +[FixedPcd] + gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSmramSaveStateMapOffset ## CONS= UMES + gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmPSDOffset ## CONS= UMES + [Pcd] gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber ## SOME= TIMES_CONSUMES gUefiCpuPkgTokenSpaceGuid.PcdCpuMsegSize ## SOME= TIMES_CONSUMES --=20 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel