From nobody Thu Dec 26 02:08:36 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 1507143379667341.81437501769665; Wed, 4 Oct 2017 11:56:19 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 3358B2095E516; Wed, 4 Oct 2017 11:52:51 -0700 (PDT) Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0071.outbound.protection.outlook.com [104.47.40.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 6D92420945BC4 for ; Wed, 4 Oct 2017 11:52:50 -0700 (PDT) Received: from leduran-Precision-WorkStation-T5400.amd.com (165.204.77.1) by CY4PR12MB1237.namprd12.prod.outlook.com (10.168.167.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Wed, 4 Oct 2017 18:56:09 +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.40.71; helo=nam03-co1-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=JjggMK9DKTh/r2FYuPhdALLtEs14jNhkM2McMOLFJWY=; b=bsKGMNezSYCL/5jjDECey6igjPF+vYuIceYoKTJtPgj6kIL5XGWDF1znBhoKUjQ5vuIRtNW5w/Q72UjKNNLHMnWy/KJ8Qhk62PkGKf2JMi4f7rNrCOBJJlQpqalX19oj6wvopd3aMU2Kwd0l5GAELJspncNSB8Y90ERoV0iDULc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=leo.duran@amd.com; From: Leo Duran To: edk2-devel@lists.01.org Date: Wed, 4 Oct 2017 13:55:56 -0500 Message-Id: <1507143357-18181-5-git-send-email-leo.duran@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507143357-18181-1-git-send-email-leo.duran@amd.com> References: <1507143357-18181-1-git-send-email-leo.duran@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: BN6PR03CA0062.namprd03.prod.outlook.com (10.173.137.24) To CY4PR12MB1237.namprd12.prod.outlook.com (10.168.167.12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d476bf08-2458-4669-db09-08d50b599423 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:CY4PR12MB1237; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1237; 3:esmymc2oESRAZKHf5FGWC5XBhr6rsNgtlRkB7Y5Kh5kY/3gXUd8ONW9a4MXdvjX46UvjoGtvW61N1DJzt36ov998V70geWFBxbckL4ZSty4TchcEZP3Mis2QYjomRoMvuq5sge5qIXS19uOGAo+hHPGDDpjeq6qeKaRvGN1Qk8Tr/LVCCP3KcptaTGNhvfGvmvJ0J/7K2HCyGKVD6paBLmrD/V3ED77Am2h4S/wkkiDXgzXK3b2xjTq9/U85szPE; 25:4X1mmt/lowxQDhWnML65gNhlH1wmdEzhaoT7+jcsP0adnrGZHvXdePRNOKsDOZCTRFR4daGORS5gJP0EMzVzwOl9LEoBIsKOw342sS07gtnsOpFw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xBLU9bZqm96OGw+DJPWASgXkGilBe/5pCYwSt9mFOZtsnJyI6rL3KvqZYEhOyfxQfYoSo8JU0YCUJxC+10WnJXUKQJsm/Rz2+iW54IHg9bmK6HNQKhTlBnBvpI9MTT0RHA5LpHTVPnW8QgIokxcPBjWg1Dc4QAHgERiccFZyb8nTDRBfN/aa8HWmoOfqtujgnq07BwfNXR9V8nu3I0sPpUdF4DFp2j0BnORH3M5m/Fxdn6linkuG1FzD1TwfWp5pj9bxf+0lL4KTnCO5LIadn4g57waEdUijBRvysbxb3+koh709TX82rkluizb5DPqrVEfNM+aKT5A0LFYa8KRXFks8TgbDfVY= 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)(8121501046)(5005006)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(3002001)(6055026)(6041248)(20161123560025)(20161123562025)(20161123555025)(20161123564025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR12MB1237; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR12MB1237; X-Forefront-PRVS: 0450A714CB X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(39860400002)(346002)(199003)(189002)(478600001)(66066001)(16586007)(316002)(97736004)(6486002)(47776003)(50226002)(305945005)(36756003)(6666003)(2906002)(54906003)(189998001)(86362001)(53936002)(5003940100001)(101416001)(68736007)(50986999)(2950100002)(81166006)(50466002)(8676002)(48376002)(8936002)(53416004)(25786009)(2361001)(2351001)(33646002)(5660300001)(7736002)(6916009)(106356001)(6116002)(105586002)(3846002)(81156014)(4326008)(76176999)(16526018)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR12MB1237; 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; CY4PR12MB1237; 23:Rqp5E6OuvsNLC4ScKO8q2YXZ+/mtpD9pPVvvZIRUj?= =?us-ascii?Q?MG3Nx7NyB4uhn1z0n9vbdoLceSTONT0LusoPB6G9zp9Z5x1Aan8Q0I5YjoMw?= =?us-ascii?Q?ZPjXmXmBY8IEYzgNmXpNtILLeLz1yCVDE9GWaXyKih8maARZ5zztoUV5Axju?= =?us-ascii?Q?Y63t2QQmIWOg5IPqlWMcgaEzjlD6mTnjBckck0imeyfnx/y+oF2BHmopTQ12?= =?us-ascii?Q?evZdAjL+azLst491IvOHFT3iSKvSunnoM0Y7bA/SO7hOreUNvGQl6tTLMBzn?= =?us-ascii?Q?VZJ59aKVbQPAgrz2S1xbiPJxiqJB2p7liRX30a6DRYESDmQx3E14Emthp/PS?= =?us-ascii?Q?pLka8k0aBTAxBaf8Ia6aU+THrL9t86lSGWz8SobPxsCQJQGuZRNgLlXq6l/p?= =?us-ascii?Q?arRZ6AuYBsfMbpePUDuDKrrNwHMpK9XIOnBEAp4S5BhkSitAIn/EepFsLGWz?= =?us-ascii?Q?2l0fv6+jZanOQGWmnjCq05EPkHd5J7RQtfcru4GswcVDOevqxywrF7MD5ace?= =?us-ascii?Q?xzvsRow83Cvn35dauDvYjgEmimO/yFimCxy063FrFpUPqIRQDN+IMbTpS1Y2?= =?us-ascii?Q?l+YvBeuVYGJK8qX+WR4gDdejmI57EjJ0pXFn7zdZzUTL5rv3SpGgY0dqArgy?= =?us-ascii?Q?wokB8LIksFgc+mTp+nu0CHTToeaAorV7NU9okkXcbEevbYoBwfP/Yz4e/gIr?= =?us-ascii?Q?p/YJ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Qpjz/HSf9nfuApFt542xftI5P2CCw5n5q7FHxg==; 24:gScgKQdoC/4/jgJmhH2O1Xg6cR+amZeUiFNKuCoYOqwVUmwxxxL7awSnncrcbUNGyMsDxL3y5OG4n+6oXecxMjzzpUPp/qVY4GBnV164fzQ=; 7:tv2alZ7ad7j0hLGhon3biH9zhUvDua8wOHOXh3tJMx1f52WtP1lrNtVEAk84zdC4brGZo++ZhBGOXcAdO7isRpcOjBWlOxr/lM21uMEI32C/Towc+6P0z4aG6pDhq6MxP4EmxN3FDWPO7lTjfJR6/Z8m0nKmZat3l5PIgIg9E9dg4QLeenq80yEnP68fO60ugBTkxXeDY863YOVNIL+wi1MxdrSX9bQSb0L97mi3zYM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1237; 20:gTU8gjNL+ndP9yeccmo1IaFYCNzrPV87FfZ3/l3MUt9/8CzPyObs8n7V0l/4o4hfGVxRwTtm8/3yBi2ekF6luSrQXL7k3J7ZzU/+tIrqYJhxvyNGbnybclBkEdgyVnQ0Um3oUxX5ocIDAZzQTu95IcBYgIHU1SSC+RcafOVfqMEZO4oTkuXuQ/U2VHjo7/zwiUhWstBGNft7cCS+EkGAC7yjYLzDFm8tjFTji6i9ERANzC7UwEcXCeF3ICxS7jTW X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2017 18:56:09.8321 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1237 Subject: [edk2] [PATCH v3 4/5] UefiCpuPkg/SmmCpuFeaturesLib: Consume FixedPCD to enhance SMM support 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: Ruiyu Ni , Jordan Justen , Liming Gao , Jiewen Yao , Michael D Kinney 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" Consume a FixedPCD to replace Intel-specific macro. The new PCD will allow SMM support on AMD-based x86 systems. PcdCpuSmmSmramSaveStateMapOffset - SMRAM Save State Map Offset. Cc: Jiewen Yao Cc: Ruiyu Ni Cc: Michael D Kinney Cc: Jordan Justen 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 | 5 +++++ 2 files changed, 10 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..a91e9ed 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,9 @@ gEfiAcpi20TableGuid ## SOMETIMES_CONSUMES ## System= Table gEfiAcpi10TableGuid ## SOMETIMES_CONSUMES ## System= Table =20 +[FixedPcd] + gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSmramSaveStateMapOffset ## 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