From nobody Wed Dec 25 14:08:37 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 1507070327523194.6696418717787; Tue, 3 Oct 2017 15:38:47 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 50FFB21E78204; Tue, 3 Oct 2017 15:35:23 -0700 (PDT) Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0045.outbound.protection.outlook.com [104.47.32.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 34BC221E781E3 for ; Tue, 3 Oct 2017 15:35:22 -0700 (PDT) Received: from leduran-Precision-WorkStation-T5400.amd.com (165.204.77.1) by CY4PR12MB1239.namprd12.prod.outlook.com (10.168.167.14) 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:38:41 +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.32.45; helo=nam01-sn1-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=OaU0uy9QjG2qMsUWpJGZdxnTAUB7qFZSPqoq5cezzcg=; b=j7E2B+FpZ0H+N4LG7kin9Dapvq0tY1DdSgj3PUrbf9mWVV4+TxQyB68AqYJopPJSg2l2Zla+GPayoXyRoNiCqrnKd9gr/8xjLqJpC9G8E79egfx0mA1nUdPN13lY0V5r2Niwe8wvvW4/8o8tEL7LPpgwrCE2aTLBItUSVM3jSDg= 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:38:17 -0500 Message-Id: <1507070305-6727-2-git-send-email-leo.duran@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507070305-6727-1-git-send-email-leo.duran@amd.com> References: <1507070305-6727-1-git-send-email-leo.duran@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: MWHPR22CA0061.namprd22.prod.outlook.com (10.171.142.23) To CY4PR12MB1239.namprd12.prod.outlook.com (10.168.167.14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 02386052-cefb-410c-cfc7-08d50aaf7fb0 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:CY4PR12MB1239; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1239; 3:b3sGr85A/a+R2+27K/gGP0jDZL+L8wR7ufS+AGkHOI++RhGUeMPL6IIKKsTPcgTRUxdy6fm61D4KJ/9RPrFsglku2syyA2gPjaA/uqyDCQUwlg6SeDq1dOoFFGTM3/3czdId+j9ckHSSuzbbJk7sv+pI61fYFoRhjMYCYPSL0uK9b+A7ge2NeA7ZkkdEnXAMHpBPhAu/PnizqPSMYbduI6U2eCm3g7wrVjRj7DFU6JyKg8qjxSUrXQFdtYelWol6; 25:vh2XOIb/HHnmfrV2ia/d6+qQXEeJ/HP68KtvPxxdiiu2gjpoVP0yKp/uIIdjsfyPQzOCYNuIXQmtB89qFb792biG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586Klic; 4:ClHAeENmlxB4KqY3oXe0n3pWLSPifYObQGLj01PCpyOUABItBqcFWcG3ioQR9925uevRDolC0v3UTE9fE8+XC7DLp8KgbW98gEYEmWdD9Vplpo9W5c2hgjMvTmuyjPYFgaLpicMXaeWJUlmm3ffFur+LANzUMqqB414KqKSDYZLLSUwgaKSHhrlpubNangSIlCXLIwB5KDMyo2T8PrKm8vtDOnX6FyyIoysCITnRzL4gIC4iIsbiRkyi/c6fBtrlS9Ey6Uw4OZkDpAlvSHUUqBsrENSgowi11SKZNrz3Xm0Oket8WwZvXUC2NRJyNCGSoZZHFCDfhZ3+a2tzdP5t6PlPvYSgxeklFK8Niwn1VBI= 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)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123564025)(20161123558100)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR12MB1239; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR12MB1239; X-Forefront-PRVS: 044968D9E1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(346002)(39860400002)(376002)(199003)(189002)(305945005)(189998001)(6116002)(106356001)(53936002)(7736002)(2950100002)(76176999)(101416001)(4326008)(50986999)(105586002)(36756003)(33646002)(50226002)(5003940100001)(53416004)(68736007)(2906002)(2351001)(2361001)(3846002)(48376002)(6916009)(97736004)(8936002)(25786009)(50466002)(47776003)(5660300001)(16586007)(86362001)(8676002)(6666003)(54906003)(81156014)(81166006)(478600001)(6486002)(316002)(16526018)(66066001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR12MB1239; 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; CY4PR12MB1239; 23:opg2VwOm/qJtw2USUgwQzK/YiAqCKNsXRy4j5mZxL?= =?us-ascii?Q?SivOEbbS+5Ia/p07AxyjU7j9FgujjmP/T64ymRgwQ6bpBTdFQRwdmxHYH+Zz?= =?us-ascii?Q?a+kmt0YIKZIBvVQPgWZuvyaOTYqgdosa/o9wfJ7Cc5JO8hp7KtgrgJQA3pPy?= =?us-ascii?Q?Bk2LHqX/wPeY5IrHMtLMenqqBgwti4CH7yauqIm10zzdlDKVGKdozZPKtLpH?= =?us-ascii?Q?a0NsYNBK3kxFUw60PZh0wF8DK8kXRKmD6zjjK6flxxwEuKy3AIXbkn9/UYy1?= =?us-ascii?Q?R7Y8L+et3MgKZX3t+528cQHAFcPCW4RD+XPNFlW4lxcRB9u+fb3NLAEwIkNb?= =?us-ascii?Q?G8eobptAuljv2k2hY+XTbyy+ZT4HgioDqhF9IxoPwlfAI3FSBvZ9qKCvR9p9?= =?us-ascii?Q?e05in4sUbv/JlT562v+vY6h6+hkwh2c4R3Mfk2rjDEzr27x91sdufQeguttY?= =?us-ascii?Q?70Hv1Gi+X6O4iGpF/PZo/gIZ8RrOlp9p9C8BOjNS5S3hTMQqWuFxXg0U2S3X?= =?us-ascii?Q?aQZi/0M1EeLL4tQmuxNXN6qEO44xeUfexK145lojpm5YG2IEOr0TTGFy0ja1?= =?us-ascii?Q?Zd4Ef34WrGwPnyM+D+4fhNARXatfF4CTnqnK7euzLDRo7TKiR7lUD5RGN+C1?= =?us-ascii?Q?y/qFyF585BOv/J3f4l1r7ebihs8vN8JNDpd3MFY0wDZ7D9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O9QizqsJPYKxtesQfjTpWORCPiHQR8pTkzYGL4BaDTHAA==; 24:UQEVR7pGCgAwulcefYCHCNwWDhSwwEHGGr9odBbndbDwFaNEPOtfrE5jL5KVQdJ1LH4J975UQZ7aeECjUJvJjnLGXaUDalYl3YEO/6rstU0=; 7:hZjdp90RYIFKxO4xvjZ0RL5AzqaxgAL6pwRm5rI/kFzjHMNGMMsH0MFTla1wHwZYFGvPRbRwBr67zV7xrJCfrqcLnWeUbuerqrgBaWazgM9T40a3ytmsVy9zbdcn9CR2ZrLy2vVtyw7E92LsCokNbZju33WFsGBnOqoHf44XJddMwEM4yMZqfYDtNR4QaczHQ9jwLSXJFNmfjwkt59nsrT8KJXsxBYJ0wmQyc1atelI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1239; 20:RI7Tb1xCw6Jum47XfNSXZ6kF+/YSSwNNu4gfyeU9b0x+GdI3zrIGvpnSuXFJji8F+v5cuhLz49/XVpVq8ZJNCqVyR6xKDfdE1fliZ04cJn+pGm/Mu6hduzw4Fy0g79mDh52qMBNQpBp6Jk82I/hieZvmMuH/Mp1yHOphAG/Lm0QHaDmY+JUxsQinkl0c6R2h8/raleE6iYNd7bK2QweEqvEd4luo//S74UBoch0O7tgW1WfVvv/P/9L5fGXkrVE2 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2017 22:38:41.4079 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1239 Subject: [edk2] [PATCH v2 1/9] UefiCpuPkg: UefiCpuPkg.dec 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" 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: 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/UefiCpuPkg.dec | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/UefiCpuPkg/UefiCpuPkg.dec b/UefiCpuPkg/UefiCpuPkg.dec index 3bd8740..c92c56e 100644 --- a/UefiCpuPkg/UefiCpuPkg.dec +++ b/UefiCpuPkg/UefiCpuPkg.dec @@ -2,6 +2,7 @@ # This Package provides UEFI compatible CPU modules and libraries. # # Copyright (c) 2007 - 2017, Intel Corporation. All rights reserved.
+# Copyright (c) 2017, AMD Incorporated. All rights reserved.
# # This program and the accompanying materials are licensed and made availa= ble under # the terms and conditions of the BSD License which accompanies this distr= ibution. @@ -204,6 +205,14 @@ # @Prompt If CPU features will be initialized during S3 resume. gUefiCpuPkgTokenSpaceGuid.PcdCpuFeaturesInitOnS3Resume|FALSE|BOOLEAN|0x0= 000001D =20 + ## Specifies the Offset of SMRAM Save State Map from SMBASE. + # @Prompt SMRAM Save State Map Offset. + gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSmramSaveStateMapOffset|0xFC00|UINT16= |0x32132113 + + ## Specifies the PROCESSOR SMM DESCRIPTOR Offset in SMRAM. + # @Prompt SMRAM PSD Offset. + gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmPSDOffset|0xFB00|UINT16|0x32132114 + [PcdsFixedAtBuild, PcdsPatchableInModule, PcdsDynamic, PcdsDynamicEx] ## Specifies max supported number of Logical Processors. # @Prompt Configure max supported number of Logical Processors --=20 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel From nobody Wed Dec 25 14:08:37 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 150707032972720.134421768461266; Tue, 3 Oct 2017 15:38:49 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 93F4A21E7820D; Tue, 3 Oct 2017 15:35:25 -0700 (PDT) Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0068.outbound.protection.outlook.com [104.47.32.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 8CF1F21E78207 for ; Tue, 3 Oct 2017 15:35:23 -0700 (PDT) Received: from leduran-Precision-WorkStation-T5400.amd.com (165.204.77.1) by CY4PR12MB1239.namprd12.prod.outlook.com (10.168.167.14) 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:38:42 +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.32.68; helo=nam01-sn1-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=+otr5KT/b1q9xgKCg9NbMBGo96uTvGzOqcC19Rl7DnI=; b=GyZTSSPjD+W6L5Kce5EWJ9h214dPZLF5djKdR8jECKfkPYBf1nlbxINv4MQjBbZF/c+biT45L6BUsZCwa8Mkn5SQ1J4yCiQQ9xABVfs1eDpvOnhpJZVFr7Ue8S72KrBMfpjr5/rP6/DRiHfW20EGaNdhj5pHzxeDxl2T7AJR3Rg= 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:38:18 -0500 Message-Id: <1507070305-6727-3-git-send-email-leo.duran@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507070305-6727-1-git-send-email-leo.duran@amd.com> References: <1507070305-6727-1-git-send-email-leo.duran@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: MWHPR22CA0061.namprd22.prod.outlook.com (10.171.142.23) To CY4PR12MB1239.namprd12.prod.outlook.com (10.168.167.14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2c277913-3b4b-4e47-a207-08d50aaf8044 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:CY4PR12MB1239; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1239; 3:NWcDiF6QecKBnEWs7cvHz5heW/S52A/6edmtKe3TwLxeSogtedplPuglQoIafDb4u3C2jczwG06OiskyRm0Qi4KZHBUssZFeA51WFStO6syWOe1qJmMi8Im0KLCySJjrpg8kbnw5whk6sq8quf6tLl1uosCs6AyLTjuLpBGLqi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sqf2DIR4NQrDwLD6qcX2WF7sQBc3g2Zoaerlbnoj+sOzHrO6dnrdukUVh1AcmQCxZ9BqqmreIpRTSkikJOcYSpmtsKRfeZBRtDPqmFXNNX/AE2U1RQ156JPvNCZlQolfTeJVlEal9zd/vNrtF3kvx0EKPDKYaTQcYs7kCN9T3uE+GsFILlYBMjqm1o/; 4:LocyzZORwEy9rnXgcK+ZXC5JTqh3q//MEM2aa6Zzoi8MaZyFiuk7t6fIsGpLgTvdWlxTCQIPtfevW72KUSL8EqHYXZAC/TZvozMhk+gEhtgLHFBmdhpIG8PNRhUR78/BkTZQ+h63nZ//ocKZgqeaPiqR5IVKik+Vvb/cxiIYXd0Zw/tvwaIddAXqb5WB+UP1FA2X1GRNopC8sJJovdfc4fFTHOGdI7fqVjBU+Z9Ywno/KlCtLcILPk4ovacwzbexzMm9Dlt+j38nmnksGxs8V81a2hb0ruVIExPeSyvDR2wkA0wkVlaupkcMZb5R4cHiQU7giVOapNkcW+uPp3Dd/BotIH/1/wHjCG+bNVYTUZA= 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)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123564025)(20161123558100)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR12MB1239; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR12MB1239; X-Forefront-PRVS: 044968D9E1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(6029001)(346002)(39860400002)(376002)(199003)(189002)(305945005)(189998001)(6116002)(106356001)(53936002)(7736002)(2950100002)(76176999)(101416001)(4326008)(50986999)(105586002)(36756003)(33646002)(50226002)(5003940100001)(53416004)(68736007)(2906002)(2351001)(2361001)(3846002)(48376002)(6916009)(97736004)(8936002)(25786009)(50466002)(47776003)(5660300001)(16586007)(86362001)(8676002)(6666003)(54906003)(81156014)(81166006)(478600001)(6486002)(316002)(16526018)(66066001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR12MB1239; 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; CY4PR12MB1239; 23:tobMltbXn2xukM8gquNCJPYijn3gzX9FYat4y8cFP?= =?us-ascii?Q?54RNIgpO/HCTJ6qwoHQF/0Bd9LRyYUwNKrndBZA7UmpRSm7vgrh/JLLOoXij?= =?us-ascii?Q?j29SxOT2M2gGEhbVbUwPWBOJbafrtMAn2mrLqTh9qcbEB7n2Wtn51HNvgkfh?= =?us-ascii?Q?XS4IVELA0rs26NfEaYk7L4zkMxyXWPHtonUesHEbxl9sZ3qmvC2FEhIajQG2?= =?us-ascii?Q?x9haIy0zTAGmqjNu6WSgMdCPHPB5p80PKe4E9eJJo/oUjFfW6YLtld4cnhmW?= =?us-ascii?Q?5rKBX4JO1/ABIObHjmOxJBtbdy2SdWQEPgywOwJfCZyMKC0I/kJrR7CU52xN?= =?us-ascii?Q?ShaQs0EUa/zU1pUILzDQRizlchdouQl2umM6Kll7y4RT0mgsLdDhpvkBZKBi?= =?us-ascii?Q?LsDdeaRDVfDWbI+Lj2MAxLRHTkrbeiJfPSTodvLZIzVyV44JStKJmZ/HP/Fe?= =?us-ascii?Q?MEz4pHLV4QqfGKf7Hqubn0oi0MqPj/7PTXJyITjwVJr6Ayaw7Nvi1SfD83cP?= =?us-ascii?Q?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dTgZehHMBtC8RUcuziPOVVVyODwQ/Nvfe3xdZJsfVJ+WdNeZ3MuBcXF3uh7vBPFDXg==; 5:b4lZgfbDdxPcoa6ZI/MEkY1kROO9NdF4/Y9CDN+amc8sAP/ZvwZZBA26yNDedGYU864AItUM6NjxSVY8qpDfrLI4SlIqrLA7ep2ypkF5aTOUSkbr4NUotCTY8qvr9mNcidVT7mKB5tJIRYg8kWaOeA==; 24:7lgEJEqVALfQeYSM8GEj78BdG6LDq+Mb/E4gZMSFzaEHagMnuFPzFHQr1prLuqQnnYKwMA3/7FEApHR5Iwq4VufFks1TmVrFE7rc6hz9CwA=; 7:59NvcUBZCwpKthzG90WxtZmMERYguQLQDE3KFBZQ5ed/xyU97XvbXXia1EQ6oxbCYHsRqH/SUmKbc9hvG6FbQAJcKaFaOuc75wQ5UAvc1Yh6/M8rvr33M6wO9D41y21XEtdv3cbXvJxu4aorwR/fUQrnmKZ2SA4fyZYch7tn+zUz0+umPxuWsKH/exSd8l8wYtD+zohNSLxZFhF+Pn7oDjsRQ6F8xX22WjKtYKRS6MM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1239; 20:AzC7qXAqyf8zwlSC/DYfqnRybeKpRpt4w8hyWEiy2A5usJWRt4U8tQ4W6acVXEmmlEIpgLtrroFXD/Z9Pe+GWyLSX7R6CVYvBU5oEnYnBWyCifFmGwxcqvi0DFnjZaom+U63Bq8qAKW8AEUa0GILLgUSMZDN56ZHEqTrG6aO/LHjSQvX0pFPAG6esDbAtbhv3l5mpxHrqXe9d4Tw9qCPz0IvDO42jcIfaUX99QG5AUzS1eX5b9+KTSzwRCT2YthF X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2017 22:38:42.3610 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1239 Subject: [edk2] [PATCH v2 2/9] UefiCpuPkg: PiSmmCpuDxeSmm driver. 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" 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: 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/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf b/UefiCpuPkg/PiSm= mCpuDxeSmm/PiSmmCpuDxeSmm.inf index 099792e..bf237f7 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf @@ -147,6 +147,10 @@ gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmProfileRingBuffer ## CONS= UMES gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmFeatureControlMsrLock ## CONS= UMES =20 +[FixedPcd] + gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSmramSaveStateMapOffset ## CONS= UMES + gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmPSDOffset ## CONS= UMES + [Pcd] gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber ## SOME= TIMES_CONSUMES gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmProfileSize ## SOME= TIMES_CONSUMES --=20 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel From nobody Wed Dec 25 14:08:37 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 1507070332862389.4925701147523; Tue, 3 Oct 2017 15:38:52 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id D608D21E781E3; Tue, 3 Oct 2017 15:35:25 -0700 (PDT) Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0079.outbound.protection.outlook.com [104.47.32.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 82A3521E781E3 for ; Tue, 3 Oct 2017 15:35:24 -0700 (PDT) Received: from leduran-Precision-WorkStation-T5400.amd.com (165.204.77.1) by CY4PR12MB1239.namprd12.prod.outlook.com (10.168.167.14) 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:38:43 +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.32.79; helo=nam01-sn1-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=BqNLBZYzp+JVcZfZ8KMum6NyMd9oG3rmAm4xec6Qf4E=; b=nuAGTlUoxRVtn/9/RQpqErROsvoOJGILpfITDyTsNhg2wp6w50RyGC0jgR9vcvpOgTgBJ6m/v4s7rdoAaM9MGZNyTlHZ23JKa+lEI7EAd7MfBC9SYSi7kyz3Td6R2HUPz67qvi7EHqV8fn/0q2N+pEZgFltMwDoNdDSa1TEAGVE= 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:38:19 -0500 Message-Id: <1507070305-6727-4-git-send-email-leo.duran@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507070305-6727-1-git-send-email-leo.duran@amd.com> References: <1507070305-6727-1-git-send-email-leo.duran@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: MWHPR22CA0061.namprd22.prod.outlook.com (10.171.142.23) To CY4PR12MB1239.namprd12.prod.outlook.com (10.168.167.14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: acc0cd8e-3223-432f-af87-08d50aaf80d3 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:CY4PR12MB1239; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1239; 3:/9ah6qqTo8pvc5McQxAbIC2zVZiw/COsDpyP6B8elugpnGt3JciwNcQgk01ThjQKzfqmJQFTj4GNWLCyte6+c1E1cByYNFQOsAuoUy7FI8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S7YI/dAt4D2wP93f+I2BTmmxOVt4h+7JrPDz5+mFPm/2KHaRhPwfXlLPnFvSg9lP/e4sbWNeIRynRwtR5XCFVhVOB5Bc/tEA+q6HKdueBHlq4M7rymq8D1ykd40tVogmqs1SGFkpfVRK6W0xiyKuO4xsjpOIY4yarUCDIclCwdpOSaRTUZfDz8bm9PelojcnDw3fsrPWsvS6YSc/KgENK9K85qJGsiZUVlIL/o; 4:dwqvCo/inXbEtUy4t6uTSrWE3/5fWa4G6GHbQn7VTsxK/uzCd6nj2j4pG2PmLd3g2RS+hvblTeLFXak3fGNF8Qknh9/OmOsaVxplifk0ZX6QuiPBXAMRvNOSL6SPoG1Gg+VJi2H8zoI0PFgTRT/cIFcpifhnst+MX3e7vfQGB1F8vPy8T/dz0SlzzkOCg4pbvfGh3HGaYpeUTNa7ttHfS03pMRnctYHAyJQ9WPFEMcoQSrBMGkVskAtTLVIbk7qkuAXgYbK2ja34Trwlyhw4SaZZyNV0kkXMf510qgnQd8yJ99RPZsHtj7EonDLV/PawPBtYctexeGaiIYG++if3G024MOWdpjJ2CTILqkEnww4= 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)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123564025)(20161123558100)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR12MB1239; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR12MB1239; X-Forefront-PRVS: 044968D9E1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(346002)(39860400002)(376002)(199003)(189002)(305945005)(189998001)(6116002)(106356001)(53936002)(7736002)(2950100002)(76176999)(101416001)(4326008)(50986999)(105586002)(36756003)(33646002)(50226002)(5003940100001)(53416004)(68736007)(2906002)(2351001)(2361001)(3846002)(48376002)(6916009)(97736004)(8936002)(25786009)(50466002)(47776003)(5660300001)(16586007)(86362001)(8676002)(6666003)(54906003)(81156014)(81166006)(478600001)(6486002)(316002)(16526018)(66066001)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR12MB1239; 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; CY4PR12MB1239; 23:dXtORzo10iKpobKQZ8rLGpupsNrRHu6fr4L2O1CR+?= =?us-ascii?Q?ADwG7+lg6Dq8E8mAU579MGCySXF903dtIrt39dsNK04Iq2karws+lv6A2u9f?= =?us-ascii?Q?6s7pIM/1ZDdusoLUDxiiNe+dBdHxAAJNG7Xyn75JFPnvg6tsUoeB9y6Mxemw?= =?us-ascii?Q?tzSXnQw8c81/pjkhz82DQ0l8f1JDRGh8aZditAylzghdvldFU3qdJXEYShRo?= =?us-ascii?Q?sZWLIs0i/lNtwdE3hgJ2VZ+IpFKuWfOWu2DIDMo8LZGZFv7WoP1IYZVYOoWL?= =?us-ascii?Q?k7tGp0jSShrTlJbbhZSHYsYCa5PdwousTuR58POABo/k952mgpoaPLQKQkkF?= =?us-ascii?Q?hMQelza5nG1hogXZ66NMtfB5jibu4jVuyMFwc9R55gcVuwlz3DWi3xeBrlSh?= =?us-ascii?Q?Y5k2TSo0hm54wfpWsexgKjETjddu+1GSiNpblnVeAQOoNRilh367R7KGkre3?= =?us-ascii?Q?PTXPrE9eOt9QKOh2IZTMDfg4O42J8C/pK/wQ0cN5vSVaje9mJTu6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fKHS7bX9flrLZHcMTEQTiHTwJpowwXvMQKKT/LDUYxUNoMnF3xZXKc0IXM/ue8JWAL21NG9JC37cIUJE2eUenRbiNxUIKniNbYdbzDa9Ed6yafR59ePERGUxcp7kesalWdL7l4g6Q==; 5:c4nifo6p4I7rU1RiP/San7jBzwZoXqtSFPmuBJY5nf1th6Pw+j4OfIj51L6Ufv6Jhv1OF6BJF3gBoQZpOl5MNkhcSi7etyrF1lfKA9TC53MTRIZIawuKCUbNOG5ugAw2A8u4JZfYwX6DUdndBUOY2w==; 24:zN6oHZn/UlLDUzCZ7qOupj24isB87j7PJIjtBCwpcyvUQ1yyRPmQAtzQ9ZpRhUGTpwIaFyfG+8ZMi4KTQZF4EZxfZSJkJnbZyhaCpvfUCW4=; 7:qP04ElxXO9cllNcghqS8Us5fWHKU5shif6x5gU4E2o1sNDSMufjYxT635iRbrXDW0glDCOtfjgT/2kXkdla2H1jGUZlBbYB3793oR0tINPYA797++zeMmWNvTiu79TpspJk9cknvkfsI/H5e/FBUpta+fQpSOvqJSJZ9b/hdNp9Jg63oDaKgeCsimJKto1O+9TEKAcJgiCvs8GAqtgGuxAkPRyY5G6e9qRkDkBF7DYM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1239; 20:mp3psXLBR0SU3rT40amLcwn/jQJJOvOc6nLPI1qqEIVLtXIBe7FiemhMS5RppdMpUEiH0aOpNitEu3Do22lxVbnyrZJjs7ydt27WYflFf8UYuObLGTAscq2kUcA4x6a2LwiadlFgtxPgOlQIjpswGmaeRS4vIPaUlGGnb3mLlG9sGL4rR2hx7KagLIXF9vmgWH69Lr1+liQ3qOHRWgJWkRBNFTaoPNWhWMOKgVcqGoAYL1HtH/Fo2xT5X5DtbeFC X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2017 22:38:43.2985 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1239 Subject: [edk2] [PATCH v2 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: 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" 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: 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 | 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 From nobody Wed Dec 25 14:08:37 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 1507070335516110.06519781692828; Tue, 3 Oct 2017 15:38:55 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 2380621F2AF86; Tue, 3 Oct 2017 15:35:27 -0700 (PDT) Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0061.outbound.protection.outlook.com [104.47.32.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 7755E21E781E3 for ; Tue, 3 Oct 2017 15:35:25 -0700 (PDT) Received: from leduran-Precision-WorkStation-T5400.amd.com (165.204.77.1) by CY4PR12MB1239.namprd12.prod.outlook.com (10.168.167.14) 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:38:44 +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.32.61; helo=nam01-sn1-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=qkeFvnzlyvQ2rdXUYyDPiBH4qSLkKIr5fEPqptBWqoQ=; b=e2GHDvEoioqQFhu0TUfm4P4IojtKpeUk9dl0+fLAiPsag6O69jPNLpoCsKQlHuBoPtdHNbuzr6Z0hs6ZYDG7+HQVDZdq7FqQhLIMJxm9jEj4L95OhrlQs8WKtvAvK7aSJwPZto6pOWJXjB2P1uadzkQOKbBJ7KbZuYHSPds24Kg= 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:38:20 -0500 Message-Id: <1507070305-6727-5-git-send-email-leo.duran@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507070305-6727-1-git-send-email-leo.duran@amd.com> References: <1507070305-6727-1-git-send-email-leo.duran@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: MWHPR22CA0061.namprd22.prod.outlook.com (10.171.142.23) To CY4PR12MB1239.namprd12.prod.outlook.com (10.168.167.14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 42105957-e318-4e0b-33a0-08d50aaf8159 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:CY4PR12MB1239; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1239; 3:UaRwKB8yGfOWgSpTxmmS+wYAEci5MR7pTFjrfI7YltcqPxOlQ/wR+58wN/HqeqU94HcGvyLrsjRSGLK0jm8vcaXb3PU52hnlBuD60FztARczli1PCUd9uxqa/gRnM5FPUGtpHW0YNPfy2SUqnAsw89bUk4tFtSi9Y32pj9kn9LYlOotVdWKlc7c4VX+6gzEsz+Mh2J/jBt939B3kwF72FqZ94/IEntCYan/mvo+8tINOfaHmjXyG39wUQfl859r+; 25:/oaDn2cQ3zSmvGRFiKIeeOocVvTlTQ3maOD8b2P6Spjy2gl+3twbtQHGtf3yLy7Qx3JwjeiwHG4UEqJgs5NblDJDDuO7IgdPTvy+dziXhaSjVI7VTUgoLM3ihom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9HmhCNrwvJjJ296kzGzGD5iV/WcT+e38x6fM8CdkUp8pXpOhb15f7CMa3CJFz+458EKAHrmUwAvjlNhn/gGNjhwwhcmVJWr0MpUyjGwZtLidecujXjNW9LFY9clQgnXWLvKsE1FysjOL1Swwy+OtN+oQFyxWNEsbSoJshUWnt99sQgotoD/aFcDJVFHGDrKbTzY17n2uNhthm0jgtuwoNrO+jq0v20y1EMGDQQUqo9hGyXnn8Cfq30zV0xe6L02ChQGm0R/iIIbZNQGzinFgYzWAOacR0cjI2DIMUUrEjc1Dp3mR9XPYZwvMOoDb9VlBM6K2PTPBico= 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)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123564025)(20161123558100)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR12MB1239; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR12MB1239; X-Forefront-PRVS: 044968D9E1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(346002)(39860400002)(376002)(199003)(189002)(305945005)(189998001)(6116002)(106356001)(53936002)(7736002)(2950100002)(76176999)(101416001)(4326008)(50986999)(105586002)(36756003)(33646002)(50226002)(5003940100001)(53416004)(68736007)(2906002)(2351001)(2361001)(3846002)(48376002)(6916009)(97736004)(8936002)(25786009)(50466002)(47776003)(5660300001)(16586007)(86362001)(8676002)(6666003)(54906003)(81156014)(81166006)(478600001)(6486002)(316002)(16526018)(66066001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR12MB1239; 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; CY4PR12MB1239; 23:F4DsQQRwCBOwmAe8D3SYSKvwlbjlDxTtQvMLB2BrC?= =?us-ascii?Q?UK0zEtP3c/ImHue8g3H1mIc943/HWPc86cvJtstFarTG9uggccJWi0Lq/LDM?= =?us-ascii?Q?fMwTsW7LVMMKG/g4NmcEiTOue6lVqeeUByvZzxmUCjee2+61u852VxFIU1/p?= =?us-ascii?Q?LgOj5ewB4AoZCV4axBmrkNntKSMOl/54F8yycX55Q59jbDFvhzXF38bpLENR?= =?us-ascii?Q?Bg/Ynm61yxgR7XbnN7g751XopYHSQGRlKvPk1DTq3/cWLghrEY29WDvAvsls?= =?us-ascii?Q?ejkH34m+PzB+GhhjOdCbfQqktez7eYnUkXHDzbHlxrDMhiWh+9gxy11NsWAi?= =?us-ascii?Q?JfndIfR2bIvd9+K3xpNg10hHzEY7rQRaSs20wP+XiJyNco39INoLoVuJ2weZ?= =?us-ascii?Q?kEa+KzPXBYDI/fhLOM3jMbBeYfDEF5/AOF04wwH/czB7kk5RZhm09Lnc5OGJ?= =?us-ascii?Q?gVBtMX6SK3qDiAK645i3y+Ec6YBlicd8HhW2PT+Y2t/VY8o1W5yMDpOcha5S?= =?us-ascii?Q?ccxrLFkKMXOhLz1Ago6rwHdYPZ1S9Cjw0/04xN+8MgJBRdyUkciPtHN1ndlR?= =?us-ascii?Q?Nx6+g/YkIx4oDOlt0InHw4yC8NtnZkZTFSCxv765lZomjLFSjKzKVRw8by8s?= =?us-ascii?Q?4PO1HANf60Hm9DwAVpSpNf1dvOpGhD6dCtZZAOWiV7UDmyeUNGCmJmjDeisE?= =?us-ascii?Q?KUrgJGYJoCgH5yu5bPKTG2IRx0P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8lUaArYykkF0q6XgARe6Kw/+HJCTnm3d6n5pdUi9AhsdABQSVzTt2zqlW1M3Sphs9Wwz6nQkL4gVQ9LGg=; 7:7zvxWm5bLj6Oq7tRL6H+LPbttI76b7E7sz1Wm5RVzPexotWj4yC3iwNOLHVQRqoFHbI/umDqGPBCx54x3EIYOb9J1Aw8Fs+A3Mihc31Y58JKtl7lLmlX6WBwNTgjMQMtNjU+CP9s99UDXlJkh68N4KiV5tG9jppSz/x684OFuerUow9ueBD2xi7fBtRlDhvbS2+BnIhDxcDugN7LAbUZapcj58vSzbIUWrlPXV5Bxuw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1239; 20:Vg5uj16lATzMSg4xyp53FcQpke5t9unZ7ygpA4ZuYdGlMhoozQXG8/ZU2tKwDk3cH1cZpMw9rAdLvR6ko0ky0+z0YcNZutOAAOQ4yimj5ulhgET2ShFo/sLtMm28LP+W8zXTW3lKKhp+I0YGOOEAyWclKaUOrvhqwkZeJkE5dbavXr24huAsM5gguip9gWS3/umkaH2AS1MiYO0hICxziK+Wy0iznwIvlMBICgFVaJ3tYCYUe8BbMTV4doo1jUS3 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2017 22:38:44.2516 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1239 Subject: [edk2] [PATCH v2 4/9] OvmfPkg: 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: Marcel Apfelbaum , Laszlo Ersek , Ruiyu Ni , Jordan Justen 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 FixedPCD to replace an Intel-specific macro. PcdCpuSmmSmramSaveStateMapOffset - SMRAM Save State Map Offset. The new PCD allows for SMM support on AMD-based x86 systems, and it is declared here just to resolve the macro that will be replaced by the shared Library/SmmCpuFeaturesLib.h file. Cc: Laszlo Ersek Cc: Jordan Justen Cc: Marcel Apfelbaum Cc: Ruiyu Ni Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Leo Duran --- OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf b/Ovmf= Pkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf index 31edf3a..f6c2c4c 100644 --- a/OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf +++ b/OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf @@ -2,6 +2,8 @@ # The CPU specific programming for PiSmmCpuDxeSmm module. # # Copyright (c) 2009 - 2015, 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,3 +38,6 @@ PcdLib DebugLib SmmServicesTableLib + +[FixedPcd] + gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSmramSaveStateMapOffset ## CONS= UMES --=20 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel From nobody Wed Dec 25 14:08:37 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 150707033906143.261437928732335; Tue, 3 Oct 2017 15:38:59 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 6441321F2AF95; Tue, 3 Oct 2017 15:35:27 -0700 (PDT) Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0061.outbound.protection.outlook.com [104.47.32.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id C960921E7821D for ; Tue, 3 Oct 2017 15:35:25 -0700 (PDT) Received: from leduran-Precision-WorkStation-T5400.amd.com (165.204.77.1) by CY4PR12MB1239.namprd12.prod.outlook.com (10.168.167.14) 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:38: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.32.61; helo=nam01-sn1-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=GFlkpWPTQH2+/6OL37c9ILBZpyVav9i58NHWm17lfm4=; b=AEuRzlSE/6geJE6kfGZ/zizRXo2j4tvYOqEu6VAvhq1RUYtBQGOWJOWQeE/LQVKJCKv0HYc8F3eHw+vPYpu2IzbC12w1wf1dE62M/0cL70lZK028jPnYcxzkPU35KgBFCcPvhp7cM262ou2MhD5Kv1L36x5BqcSTzsHLon7D3oI= 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:38:21 -0500 Message-Id: <1507070305-6727-6-git-send-email-leo.duran@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507070305-6727-1-git-send-email-leo.duran@amd.com> References: <1507070305-6727-1-git-send-email-leo.duran@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: MWHPR22CA0061.namprd22.prod.outlook.com (10.171.142.23) To CY4PR12MB1239.namprd12.prod.outlook.com (10.168.167.14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 96a85b52-dcdb-4ae8-7dc3-08d50aaf81c4 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:CY4PR12MB1239; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1239; 3:jmMXz9egxbPKWBZyWklc7HrgpNtKcsUJLq39YIxB/DT8lqCDM27+AZ6K6jKbbgJmhBtLhlMDZ5yMHLXCXg9d0pC5qyMDMzLX+uUbrfuG2zVTqwvVDS/B9DRVL2ptQqwDowztrmWG/kLyGzpo9aemMpv5KciIkCBusMRvg3LjUymTzU1VzigXZyCqCNCqQAC+awnc4jkq4QUGy27MsoQjX8KpvszjZZl53/LQzgrOPMrvi0Q73mGEX9DsdQOruLUj; 25:v8BgpfFk6fEeZG71/2kUtLQl1ji+KB2snS91uj4TASujRJuQPFARwJLgZJvsBXnlaUNCfhaKpf/hRx5PvjTQGEkExj4Z0b94D3bd8R9bToWrjlKjd79cPT3NdxgfpJF9asjIiSO+tnxuV5GokhQNYOyR7UkYTuU8lYxDJygWPI7AnSrC1iYFgTFiVbEQRsnCMlL3TXwOWwA9WHXa063QBGp4siF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PNh1RuR7sMzLaz2MKJjTKMDAbrrKapurLRUgA9c7Uqzz3OlRsgaSuqlAbxf41+TziBhBkYNZ/7Xldwn8YT7KSNz1Lwv+kL5lcp2Mw9rEOdSVH5xNXJub7YVaNKGZTKSY+8eQ9TmhDsMdIphaf0GDjJ6G/C26TCnzdd1Xw52DhpavUP60KlN/A+JJYoYXuEoAP2M5bEjxAi9aTK2gG8vYHHxZQkdmxDTAqRMaln/uLPKI= 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)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123564025)(20161123558100)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR12MB1239; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR12MB1239; X-Forefront-PRVS: 044968D9E1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(346002)(39860400002)(376002)(199003)(189002)(305945005)(189998001)(6116002)(106356001)(53936002)(7736002)(2950100002)(76176999)(101416001)(4326008)(50986999)(105586002)(36756003)(33646002)(50226002)(5003940100001)(53416004)(68736007)(2906002)(2351001)(2361001)(3846002)(48376002)(6916009)(97736004)(8936002)(25786009)(50466002)(47776003)(5660300001)(16586007)(86362001)(8676002)(6666003)(54906003)(81156014)(81166006)(478600001)(6486002)(316002)(16526018)(66066001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR12MB1239; 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; CY4PR12MB1239; 23:ux6VpFYhOTmzcaF0iuyHr0q2ncogwaILbDtOJoqj5?= =?us-ascii?Q?TJsMGkrLA4TPV1Xcn4L//kD8GMV9zTVsuqg7rMz+NuHorfsVwmUOmmm2/BX8?= =?us-ascii?Q?Y0BbKAcRzqspOn5G3d0VZQCqSVOI/pjntr4jvo8rSevRCnWtqd2y/3zouqu/?= =?us-ascii?Q?hBce32qQqitMuuE8QADYSsEjcWq9TC9+aYiMmwnrPSaqz9Dh+Dka0FH9Lv/w?= =?us-ascii?Q?WNXVSlNDVyB1o3JMqSjIgFSFwxM4GyBiJQYYmJc4w9q7Pv1YNNRVGJqrTctr?= =?us-ascii?Q?hpkxbyzOVdg5PGIeS0yLr7boHe2Gn0zQOpO/yHgCPklYIaZu1hpEypK4Wxjj?= =?us-ascii?Q?5a2BwkpQcc6lNrqZgRFbfOapBTGw15emoMvvTKxTtQZ6fCAh8e4nanSdEX04?= =?us-ascii?Q?sfvIUdDvQmkedfqVBgo8KKye3zWcyEBnU5CRYb9A5xWGPGkVidXtbolFta1C?= =?us-ascii?Q?pOaTLXZ6zF/WovHHZKfrnLH9oRXWuH8ausiorl91DefVwcVzUopxYhqK/s6d?= =?us-ascii?Q?0o5xGgYknBPpmyHxrQk0PL1jvAXTYPFDcYC4VofjPlvbZxShg0X2fWfU+SN5?= =?us-ascii?Q?vRR8VIg/eJfd1Q3gnXaC5IEqnfncVUxiSNSxgp2p3lJT5ELgX8QcSK/AgmFE?= =?us-ascii?Q?3txdiW6onErwgMgaqshIcpyISWgZ9pFlbCtrI2AHWx+UkJPG6+WdMHfFTT2u?= =?us-ascii?Q?K+iCQzhYQWkneVYFGLWPWAZHAapTdzlef7VV+fkV6X+ZEgcp1x91KM1BdTYT?= =?us-ascii?Q?zebu+4++uQL1wsDOLc0B3wvlf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cKDfZycz7LwVLBChN5c=; 7:cVslkvL1KPtLP1mHxt2Zb+g90SlUkNpD6BiX1ICagqYF2sz1rU4XkFVH8PG+Sr4qow/EKxCFKs3A2wWPP6DxKaK/szAHtXPc3d9MjrHozi40kZovoIfYCZczgYrjUlOxQeEW6v2flQb8cxZQ/aRrlm78CqAKJRVvEFOQEmH2CEPh7GOyzad5clnTo06442xTgWms9YtlM84DILmJiG7CKf4J8l99GcLPlaCbBtowQEY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1239; 20:RhanijwhWF3PzG8LA+JjzGChQOQUP9kN4vOMCWl8XBsvR4V/5WRnq3vUSxiEgAz3fDL6weL3IlLLbjU+XrKsfChfxcBnAbTD9DopGZxUI8GE0RTwlIiAm2/pawECfr7lujCFxcldhSSJWANEbx3JakAJ1R4BmseuYTJyeGA5HFOLQO5qLRAUEfEDexgpLjGvbwowpNex9QI2sieeN0V9UeHVYV2gbv/rLRCRV0H/RzEO9wWVo8XX8fEV7ZdfVv+L X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2017 22:38:45.1110 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1239 Subject: [edk2] [PATCH v2 5/9] QuarkSocPkg: 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: 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" Introduce a FixedPCD to replace an Intel-specific macro. PcdCpuSmmSmramSaveStateMapOffset - SMRAM Save State Map Offset. The new PCD allows for SMM support on AMD-based x86 systems, and it is declared here just to resolve the macro that will be replaced by the shared Library/SmmCpuFeaturesLib.h file. Cc: Michael D Kinney Cc: Kelly Steele Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Leo Duran --- .../QuarkNorthCluster/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf | 4 = ++++ 1 file changed, 4 insertions(+) diff --git a/QuarkSocPkg/QuarkNorthCluster/Library/SmmCpuFeaturesLib/SmmCpu= FeaturesLib.inf b/QuarkSocPkg/QuarkNorthCluster/Library/SmmCpuFeaturesLib/S= mmCpuFeaturesLib.inf index 267ac84..8b1f202 100644 --- a/QuarkSocPkg/QuarkNorthCluster/Library/SmmCpuFeaturesLib/SmmCpuFeature= sLib.inf +++ b/QuarkSocPkg/QuarkNorthCluster/Library/SmmCpuFeaturesLib/SmmCpuFeature= sLib.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 @@ -34,3 +36,5 @@ DebugLib QNCAccessLib =20 +[FixedPcd] + gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSmramSaveStateMapOffset ## CONS= UMES --=20 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel From nobody Wed Dec 25 14:08:37 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 1507070341958658.0844825503563; Tue, 3 Oct 2017 15:39:01 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id A220021F303F9; Tue, 3 Oct 2017 15:35:28 -0700 (PDT) Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0086.outbound.protection.outlook.com [104.47.32.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 21A6721E781EB for ; Tue, 3 Oct 2017 15:35:27 -0700 (PDT) Received: from leduran-Precision-WorkStation-T5400.amd.com (165.204.77.1) by CY4PR12MB1239.namprd12.prod.outlook.com (10.168.167.14) 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:38: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.32.86; helo=nam01-sn1-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=0kz3DqMhFwKXXJfyuSizlUxS3U7uzpkpyeH2O5kN2fs=; b=Jys7JXp83Xm8DO6n4azNCqFIyECuPB3DQZ3/cOdYtq4V5/9DFlZVrLE1yoaw50Shpk2MgCqmVxQzbeHEpjLanAvd16/etuSjOrQJGwPEYqHgi1oYE1lHzGaqTIbiG3wXY3oXHv/LUJjlEgwbzxdbO6jlZeXvxuGNvbcH0FN2TzA= 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:38:22 -0500 Message-Id: <1507070305-6727-7-git-send-email-leo.duran@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507070305-6727-1-git-send-email-leo.duran@amd.com> References: <1507070305-6727-1-git-send-email-leo.duran@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: MWHPR22CA0061.namprd22.prod.outlook.com (10.171.142.23) To CY4PR12MB1239.namprd12.prod.outlook.com (10.168.167.14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 919c9ac2-fa41-4932-771b-08d50aaf825f X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:CY4PR12MB1239; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1239; 3:En5Fw8wll7/MUsvY3oInrsSLsgCf/auwUkIhgoC4QV1f9DRK0AzjEgXwe0vWQfhe6GtmY3YVSFCct2hUB3JGpQKunRnBrCZqnRrNP+homfiJ0UoxSHaDFp+ZMi+P/lnP2ZJuJkDwyftt+b4dJ/rwOkka+kdZrXuLZPXPnkx990Tyn6aP7drSvHxokU8V+54jbHBxPTiZN2dlwDPfFNytMr8mB5QlHhW0UMEBI7/zm/NtRShyaXYSzibjo6Syo9ko; 25:TIjWTbHZSOSGDclye1P4MbAAGaW5o09AgzfvwFii56BKzZfmPYICJ8SR6QW19Z46/41GVX0K34S9zQ2ImS4pL+joXd8KwY1XQlXeuZPV8YOR8Nt4bfMCLwclnopynERTh+Yd8Di01HAOu0IB48ipSEkn4ac7zuWlGB1z1uSJlgxeSL76X6E7GiZR3EtH9wyQu7aKHpAZONqcvh0Xu5r7bCxYcsURVX+iYHXnlFssvK7gkoF21NltyKvfV+lUq1kqKLT6cA/zXQ+53vnIuwpLvkQzjUeOIn+7OQEAtLy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0Lpe8K7qBdhk+ek02agjYr6XCuxFovZo+iZIZa3IqgvvF+zxZ2bnGwEfXyzNYJ+9ha2+07Agdl3k7rW5m95Q/uBIuqbrm3wlJ/6Jp+ENg1wMgeAxozbyKjthKXFNVPWiyjdrNWmgW4oGxfSPU= 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)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123564025)(20161123558100)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR12MB1239; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR12MB1239; X-Forefront-PRVS: 044968D9E1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(346002)(39860400002)(376002)(199003)(189002)(305945005)(189998001)(6116002)(106356001)(53936002)(7736002)(2950100002)(76176999)(101416001)(4326008)(50986999)(105586002)(36756003)(33646002)(50226002)(5003940100001)(53416004)(68736007)(2906002)(2351001)(2361001)(3846002)(48376002)(6916009)(97736004)(8936002)(25786009)(50466002)(47776003)(5660300001)(16586007)(86362001)(8676002)(6666003)(54906003)(81156014)(81166006)(478600001)(6486002)(316002)(16526018)(66066001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR12MB1239; 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?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lk6KUTYOQ/OzziONatU179/UKZrYjYDAaa2hOo/fcpoT9+dq3z18JMH4yueZnhah9sbZzGwAbE/l+KHMqpcWT8g6wgOhNtBzmjs7UAP4QNas8o0BZOL6wcRgPPHvAspWD9Pd2TtpLvl45d12kgDCTg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1239; 20:TMZyvfdEzNwda2JQeX26a+QYv4EcfuO81ndeH8/odlNN8ffieN1+ZhEEg/tWzyrW4E0hBIZk6akWuE5EEzVNKRQpTBg6w7hZEkB9Fi7YWg6CbUATpng2MHgiz6ENK0Qp27hTbDHnefdCtHCG8+0e0o/boAUV4TPwpq/shjJaRCXgJKs38rrUujGTGM2Fu1UdpIh95JfXaTpko838qPPvsa0tZev9e7vIEgI4cvHHsbccSRzqDYJx+BQ6RBYIHFHH X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2017 22:38:45.8923 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1239 Subject: [edk2] [PATCH v2 6/9] UefiCpuPkg: Register/SmramSaveStateMap.h 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" Add a FixedPCD to replace an Intel-specific hard-coded macro. The new PCD allows 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/Include/Register/SmramSaveStateMap.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/UefiCpuPkg/Include/Register/SmramSaveStateMap.h b/UefiCpuPkg/I= nclude/Register/SmramSaveStateMap.h index a7c7562..2167f33 100644 --- a/UefiCpuPkg/Include/Register/SmramSaveStateMap.h +++ b/UefiCpuPkg/Include/Register/SmramSaveStateMap.h @@ -8,6 +8,8 @@ Intel(R) 64 and IA-32 Architectures Software Developer's Ma= nual Volume 3C, Section 34.7 Managing Synchronous and Asynchronous SMIs =20 Copyright (c) 2015, 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 BSD = License which accompanies this distribution. The full text of the license may be = found at @@ -34,7 +36,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER= EXPRESS OR IMPLIED. /// /// Offset of SMRAM Save State Map from SMBASE /// -#define SMRAM_SAVE_STATE_MAP_OFFSET 0xfc00 +#define SMRAM_SAVE_STATE_MAP_OFFSET (FixedPcdGet16 (PcdCpuSmmSmramSaveSta= teMapOffset)) =20 #pragma pack (1) =20 --=20 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel From nobody Wed Dec 25 14:08:37 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 1507070344612306.48486605584833; Tue, 3 Oct 2017 15:39:04 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id E2D8521F30402; Tue, 3 Oct 2017 15:35:28 -0700 (PDT) Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0086.outbound.protection.outlook.com [104.47.32.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 70B5921F303F9 for ; Tue, 3 Oct 2017 15:35:27 -0700 (PDT) Received: from leduran-Precision-WorkStation-T5400.amd.com (165.204.77.1) by CY4PR12MB1239.namprd12.prod.outlook.com (10.168.167.14) 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:38:46 +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.32.86; helo=nam01-sn1-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=Hq51MDmArjzVGhHDV1yLYvbs6MEdb2QQFALPBE8oNOc=; b=ov6eSktYwnvmZvilLcRHylwR0tu0Igjq1J5ShQYaZLq8pKGjHHDZXleQegK1jgiq2aywHS/8St+Q2VS0zS83uT59Nb9ZZv1hB66ed2UuRXK4UIneMoxUsc9zATZz1X3ZoC2FmexLPKobS8UwCTNUjk57V9u7643+WWD59uu6b4w= 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:38:23 -0500 Message-Id: <1507070305-6727-8-git-send-email-leo.duran@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507070305-6727-1-git-send-email-leo.duran@amd.com> References: <1507070305-6727-1-git-send-email-leo.duran@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: MWHPR22CA0061.namprd22.prod.outlook.com (10.171.142.23) To CY4PR12MB1239.namprd12.prod.outlook.com (10.168.167.14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 51ddfca0-628a-4034-8496-08d50aaf82ee X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:CY4PR12MB1239; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1239; 3:y5Bxu2IG2+LHYfdRNE+l9a+jvlH/xxnQSeIzGEQOlL0/iKSNQaFyX/R5xH9XbU/rnQ8p/rO11fYr1kcg30ZEpHJpBhZyPW56tOT8AlQ979wWrYYy/JjbGqkdUf5ewTilM0MtxzAh85Wb5jvTiZ4uKynJw+hkKuL6yyl9DLqY4t+m/d1h4C+cpq/kNA03fzcnyt6Oe97WWt/k4xexPE1xjwwILwC8OKnWyfdkeTC6JUDRFdZ03rHhIHnYfzV+zTkN; 25:QJ0ZFDDkX6306F7tFGWNcPGuGXaBLqbqpeKuo0Gbq8U/EFlVdKh3GmwKW8OTd9GvzlDxbM42F7w0ON7XSaxEumTVaJ48NjcXiPzhmIt7h+ldSj12zzTwuRoOtY3cS7DCFe6C7AJuNob1Skw4ZTMuq+Wky2U+0uNJFWxAoobUa4V75gROCacK+5UqUcqJH3pEMP6a59fxkFOMdL0OnrR/mr+tO+tnOkkYV8DVCMz03FFPpcCug+2SlqaxTnM/6Kb9NwZCHut8VowGj1xBWZtXSG3CAlI7ys1kAguBw6l+I7Pmvi0gAic10HDZNg306u8Acp+nD8OixIS1rgW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cB96xLgpsFpsLATe2h4+Gsl+vC3SbmDcZRrQxiTwkYM5sZfLuZPyUJcFAduFhhzNBaHemlK4tZXdbemqUmrgfaj5zSB42uOvfWLMd0oNq78KRNH/18yc= 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)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123564025)(20161123558100)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR12MB1239; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR12MB1239; X-Forefront-PRVS: 044968D9E1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(6029001)(346002)(39860400002)(376002)(199003)(189002)(305945005)(189998001)(6116002)(106356001)(53936002)(7736002)(2950100002)(76176999)(101416001)(4326008)(50986999)(105586002)(36756003)(33646002)(50226002)(5003940100001)(53416004)(68736007)(2906002)(2351001)(2361001)(3846002)(48376002)(6916009)(97736004)(8936002)(25786009)(50466002)(47776003)(5660300001)(16586007)(86362001)(8676002)(6666003)(54906003)(81156014)(81166006)(478600001)(6486002)(316002)(16526018)(66066001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR12MB1239; 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; CY4PR12MB1239; 23:6JCxuywBxAAhGC5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VAL5byLg0BXr5mvluaMMYrNPovZN8JeUsCkbTzA2WxCdcA8ENYwdly4XGQgl8Jtu1zByNsMenIWDdDmYkP82rziiV2sJOHWsnalkU0kd+4bLQXl/z5Wu86X61dl9o8Yv5qGpeXc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1239; 20:H3jBvpPpY/8v31FUpN6W2+EAUyH9sUmHs21CU3zLjd7g87FKoZz8G/I3Yo0tGzZaxH3WK/WoPLvvmI+BmJiSgW5NL1a1HHhz6RpcQ39OsxeVdBurc/j7//ze4+N6038yteD44Y8283MFUrA9wsXaQvtt3MTWQFfajB0UxLQpplHvau/xItBXOOyqbh0IeymckBpcoqIkf7dLct/jAzH+LkAu0uMcIwAd32t4Biy9ViWOpFm946APnczIWdv7vsQA X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2017 22:38:46.8298 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1239 Subject: [edk2] [PATCH v2 7/9] UefiCpuPkg: PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h 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" Add a FixedPCD to replace an Intel-specific hard-coded macro. The new PCD allows SMM support on AMD-based x86 systems. PcdCpuSmmPSDOffset - Processor SMM Descriptor Offset in SMRAM. 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/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h b/UefiCpuPkg/PiSmmC= puDxeSmm/PiSmmCpuDxeSmm.h index 1cf85c1..06b9767 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h @@ -360,7 +360,7 @@ typedef struct { UINT32 MsrIndex; } MP_MSR_LOCK; =20 -#define SMM_PSD_OFFSET 0xfb00 +#define SMM_PSD_OFFSET (FixedPcdGet16 (PcdCpuSmmPSDOffset)) =20 /// /// All global semaphores' pointer --=20 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel From nobody Wed Dec 25 14:08:37 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 1507070347597371.7987456174576; Tue, 3 Oct 2017 15:39:07 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 2F59621F322AF; Tue, 3 Oct 2017 15:35:30 -0700 (PDT) Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0067.outbound.protection.outlook.com [104.47.32.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 0EFFB21F3040B for ; Tue, 3 Oct 2017 15:35:29 -0700 (PDT) Received: from leduran-Precision-WorkStation-T5400.amd.com (165.204.77.1) by CY4PR12MB1239.namprd12.prod.outlook.com (10.168.167.14) 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:38:47 +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.32.67; helo=nam01-sn1-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=9SmJHpdS4ZGFPJ+P6hZnFB8Wu6VnqwtoUJsY2bJkAe8=; b=ShG5cn4AqpaLqRw9fw+Xh6Youh7G+5aF3/jc4+5gBLI6R9VGl7/wxqC8bycDA2BykDsYYVJMMcoUn1OZuMxvoPvmzrpDfNm9ZyPa5AaUNKC4v4TgJXRAUoVG431BMprlXmmdCbnIXa7tBjxEXe5TeO98m1RI+WNTUJUILv2hK8s= 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:38:24 -0500 Message-Id: <1507070305-6727-9-git-send-email-leo.duran@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507070305-6727-1-git-send-email-leo.duran@amd.com> References: <1507070305-6727-1-git-send-email-leo.duran@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: MWHPR22CA0061.namprd22.prod.outlook.com (10.171.142.23) To CY4PR12MB1239.namprd12.prod.outlook.com (10.168.167.14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 59c37ae0-e336-4c78-9216-08d50aaf837d X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:CY4PR12MB1239; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1239; 3:urnwJ/bQT50D0SyWFKFYnU2awzvn3kFUtgbHL1U2+w+7vQnpEIFRBekMT3gKMu94wUsivC3SI+QqfXUS23LdgPHxGo2y3u4Nt2jwBf3dcOO/DRq5Uc42iQfUmOZpxqkvSb8ryJvgROqfvJwRb/Tz7g36T/Z7Uz0lkF1C79WM0/ysLGpdCajVn/BPR+cnVI/TlV679ebEAJWuz6sCUejkq2ccSYgqI+2KC0ACqPgcD+bSRaYqqsalQgBMop9nqonm; 25:tim+zHvFltzkOoZSLIDOlHM6ofs+XcCW4EAO3JkweUelGXNdELFJqMsbMDjSjJLyzRasgodcUZJwbAA5dDp2jUOcPQVSCiPi8GuVqibKiNVDcdA3BSBBjAYHdMqBxty5kHB2NQcxO0YftPdQVSmNGYqp81x2GzjQWcrAbZSLdP71IJT0iCNvb78MDrnXJBIPVioai7NWINc3Nbtdd1ZymiSGJsHdFGA7sE55a9YQkX2cnyLzHZYR8Yg7WyLwAb5CpWUEwf4D5GA2H7lF46+DeE6FTHNs+T0AMmhPoItnBcX2h7AGd6IFE/38te8jnDgYFuTsCJGLSxSxhWfBtvExnQ==; 31:uj5WTQ3bQ/79MTXOv6NOTUJGdJQOHYniNeMD6DGttK7Yfac/pVD+RJRZ3oAlffGiJnenUxHwcn9d03nXO4re1/4ooM5eVblV6o5W2g6qheY7le20xTZFHg9GGswnjy/SGkrDzq/O8ad2RycQSkX+zkxmV6j0cEXL4hL00XjHQM68tUgG4Uc64OMaCAqxkjaNLVNgSXUzQuj9C4TnE7hLyaDCsavm7fpwoMcgMuIkSAw= X-MS-TrafficTypeDiagnostic: CY4PR12MB1239: X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1239; 20:QrJ+V3mA2AIzCiSoBJ2x17Y/VCQl09ggISqksIK9OBgGS8c6d4GPPTQFiG/YbkIKWzNY19J2+qY/JQDTb+CLQsdIaeNGPMn4qgSZPMT34OcuiDyEYQohrDVkNyYQXdcLWfGHkQ9W3dXGNc5Jk1hnJxYxdBAUb3Bzg0CZbv2E9DkTSB/uG7S1J5AkHm13ALP/Oy99MPT/bRYWTB/P+VQTMCdazcC7UZ/SnFSIuE0wwd3wTsfuJrCGqIIwZAMVP3fXTm2TUg9jmy03SS6EhtTKCcF9O9lrg+ENuxG1L08FJbqf3xyjNbFFaWCZaDBUVrJTFlLAeVcaq9+7K53aGA4nazY+yaeU6lD6GpYNTReAbKXuFAK40lNzU3UslJ8RuQPvCA0ghUJ1ON6dlYGy7/uywM2kZiS+uKytSLqS9S5ni/+hu7qWBN5FwzpbEdq/FliHFFHdy1kidQ6GpPnCcgePrkdrqelSmKLqaQVt6UWY/vFAg/zYjlvVeGaBQoCWY5SR; 4:gOHvIeYnuionHL0o0CNYgjQMqdMxKXhiOopehuEtg5DTb5dh5xb0qJEvD/mX0PGHhK/vLfNrI4VKuX4yhD1OtGFd/mN/B23eOzhj4rTBaEfiRY7/GSeXA2wYZC7xFVucSMm3yZ+5ZjDi3b2TgG6GtkHWGv//GLOd69aF/DhLK2HEutr7zkc8v38MmrcFZCNgt5m59gY/tqwEkZLvLXeproVTn46UsEKPqJFcFy0MmKik7WIxQ2d+Eat9tDh3blO83PQSPHH+q1ro5Il+eSxvpB69q82GdFV62rAk0FW3O112NQBiUP041gKv15uc/pM6vXyVirr8MvWfHU6BXwzlEDEbbQdNjP6MFT/95laLAi0= 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)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123564025)(20161123558100)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR12MB1239; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR12MB1239; X-Forefront-PRVS: 044968D9E1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(6029001)(346002)(39860400002)(376002)(199003)(189002)(305945005)(189998001)(6116002)(106356001)(53936002)(7736002)(2950100002)(76176999)(101416001)(4326008)(50986999)(105586002)(36756003)(33646002)(50226002)(5003940100001)(53416004)(68736007)(2906002)(2351001)(2361001)(3846002)(48376002)(6916009)(97736004)(8936002)(25786009)(50466002)(47776003)(5660300001)(16586007)(86362001)(8676002)(6666003)(54906003)(81156014)(81166006)(478600001)(6486002)(316002)(16526018)(66066001)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR12MB1239; 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; CY4PR12MB1239; 23:sSvlAvd8UICocsuxw/tqmdEyur571U1WwZYpWwsnv?= =?us-ascii?Q?/JYt7/ujMJCAE2EmwJjMpc9PYK+bcdwICSYkCIh6mJmfxvewfUAGIdi+BttD?= =?us-ascii?Q?4xioH+/WrFvjuvgFRa0f9BNQvkmZByWAS3spMlS70CGU69dmU2cxmAgPf4yh?= =?us-ascii?Q?qgfikpj5WIgAr6cbl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?Q?L3p2xtOSBxrhTdhA5TwwGH7hI9Eyd1X1vciAIqiB+6K9y7zLchpdmKEumBcO?= =?us-ascii?Q?uw50YcWaXkw62BK64F8oiyfubQyw019bBICpGxScibLY8+RoaC+VzklPqlUq?= =?us-ascii?Q?trLJ5uHmtBSwqw=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1239; 6:/7Bj+bkPC5YkqyX7MnIgcrO2h2bBwem+wG0q3Px2v6K/wsTJiL6xKS93IEsxWU3kKnSNzB2/V8/BBpdJoobIlMxNHrOlDFkCQggLuB3hoWck7zIAnYBnmdfyw9uebvJoQ95JgxE9crVKlw46aGoHvvO0BBTn+GVzEJLF8LYSEqgJh/szRnSNgicdxyY5y1v3haQNUQaBY2Rb0y3Ap8QqcPDK7Qg7saK/VdO/sk89HkNEG40MfQzIV07jDo288q1W/hm1rDYtlqWhyq8JpDOzsUcSP6n5Ekf+TykHPqpwfqjks8ST8xrPyjUv/uca791pgq+zMJTnUudd+fSgCbC16Q==; 5:i/ONuHtxDS2RWHh5D4hLIH/TgyyL5znX79bwXb1H6HP4OXPjnRVVkPb8o1E1fu2qFzDU8TqFmQUpRjhNrpuyygy73U4BydN1ZxjFQxtEATUTBML6b/10njo87pYH/AgbjZaoI/r99LUeeJvxaEVZog==; 24:E16VtWLJggwSvl3TwL+sUSStMNActUHF54ssMK4wNFdb/40LKP8EKde1OXHdrGSmg7BQhXzi8aiICVDXSLPv2bJNGbJBpCisMmezZUIE9Nc=; 7:o5Hkf2yhEHF9CTdosapAb4OmxxFGcvOnjrIg9RsiKmux1RxkMK7p04kx6C1G7U0+8/hjdK2+Jd5yUyWQU9f4joCg28pPLbGX9OUT+ezNfeL1p+nQe4kt6sYd8Vee3e9DKc+tujtQtd9u2kluM4PVNSBHK1KnAmodU9hLBeksm6nn/VwMehrx2edBsKJlYImunfzHGnjRrEpfcvGGCzTFuPiNru0wmOqJVPsZc9/9yEw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1239; 20:VaCTpVwUqwArWBEe+rfXS24WLg2DBk/h784j8pNN+Ghj9J4Dt1BUKuc3jhMewulU810NyKsfw1Gr2kb7VqVWUuC6vPaAnlu2K0YqxgsaIY118kfGfcdsLj+Cn/tgrxjRCCGLpofLVs0PaIfMb132RwSmQacWHTfpzA/Pue4nVccWGYI+z8VnbZiBAhsNtpTnnmrWeRZBaaBDErBrbKjIUumhNVmpiWHpW91p4QT5RCeX18U0hmLRdrNB41z9KagE X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2017 22:38:47.7829 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1239 Subject: [edk2] [PATCH v2 8/9] UefiCpuPkg: PiSmmCpuDxeSmm driver. 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" Add a FixedPCD to replace an Intel-specific hard-coded macro. The new PCD allows SMM support on AMD-based x86 systems. PcdCpuSmmPSDOffset - Processor SMM Descriptor Offset in SMRAM. 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/PiSmmCpuDxeSmm/Ia32/SmiEntry.S | 4 +++- UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiEntry.asm | 4 +++- UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiEntry.nasm | 4 +++- UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.S | 4 +++- UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.asm | 4 +++- UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.nasm | 4 +++- 6 files changed, 18 insertions(+), 6 deletions(-) diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiEntry.S b/UefiCpuPkg/PiSmmCp= uDxeSmm/Ia32/SmiEntry.S index 3243a91..25af6e7 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiEntry.S +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiEntry.S @@ -1,6 +1,8 @@ #-------------------------------------------------------------------------= ----- # # Copyright (c) 2009 - 2017, 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 BS= D License # which accompanies this distribution. The full text of the license may b= e found at @@ -35,7 +37,7 @@ ASM_GLOBAL ASM_PFX(gSmiHandlerIdtr) # # Constants relating to PROCESSOR_SMM_DESCRIPTOR # -.equ DSC_OFFSET, 0xfb00 +.equ DSC_OFFSET, (FixedPcdGet16 (PcdCpuSmmPSDOffset)) .equ DSC_GDTPTR, 0x30 .equ DSC_GDTSIZ, 0x38 .equ DSC_CS, 14 diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiEntry.asm b/UefiCpuPkg/PiSmm= CpuDxeSmm/Ia32/SmiEntry.asm index 8296f36..f526778 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiEntry.asm +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiEntry.asm @@ -1,5 +1,7 @@ ;-------------------------------------------------------------------------= ----- ; ; 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 BS= D License ; which accompanies this distribution. The full text of the license may b= e found at @@ -29,7 +31,7 @@ MSR_EFER_XD EQU 0800h ; ; Constants relating to PROCESSOR_SMM_DESCRIPTOR ; -DSC_OFFSET EQU 0fb00h +DSC_OFFSET EQU (FixedPcdGet16 (PcdCpuSmmPSDOffset)) DSC_GDTPTR EQU 30h DSC_GDTSIZ EQU 38h DSC_CS EQU 14 diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiEntry.nasm b/UefiCpuPkg/PiSm= mCpuDxeSmm/Ia32/SmiEntry.nasm index 4d2383f..9092dcc 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiEntry.nasm +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiEntry.nasm @@ -1,5 +1,7 @@ ;-------------------------------------------------------------------------= ----- ; ; Copyright (c) 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 BS= D License ; which accompanies this distribution. The full text of the license may b= e found at @@ -25,7 +27,7 @@ ; ; Constants relating to PROCESSOR_SMM_DESCRIPTOR ; -%define DSC_OFFSET 0xfb00 +%define DSC_OFFSET (FixedPcdGet16 (PcdCpuSmmPSDOffset)) %define DSC_GDTPTR 0x30 %define DSC_GDTSIZ 0x38 %define DSC_CS 14 diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.S b/UefiCpuPkg/PiSmmCpu= DxeSmm/X64/SmiEntry.S index 600d862..ebea477 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.S +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.S @@ -1,6 +1,8 @@ #-------------------------------------------------------------------------= ----- # # 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 BS= D License # which accompanies this distribution. The full text of the license may b= e found at @@ -34,7 +36,7 @@ ASM_GLOBAL ASM_PFX(gSmiHandlerIdtr) # # Constants relating to PROCESSOR_SMM_DESCRIPTOR # -.equ DSC_OFFSET, 0xfb00 +.equ DSC_OFFSET, (FixedPcdGet16 (PcdCpuSmmPSDOffset)) .equ DSC_GDTPTR, 0x30 .equ DSC_GDTSIZ, 0x38 .equ DSC_CS, 14 diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.asm b/UefiCpuPkg/PiSmmC= puDxeSmm/X64/SmiEntry.asm index c74f82a..ff46838 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.asm +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.asm @@ -1,5 +1,7 @@ ;-------------------------------------------------------------------------= ----- ; ; 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 BS= D License ; which accompanies this distribution. The full text of the license may b= e found at @@ -39,7 +41,7 @@ MSR_EFER_XD EQU 0800h ; ; Constants relating to PROCESSOR_SMM_DESCRIPTOR ; -DSC_OFFSET EQU 0fb00h +DSC_OFFSET EQU (FixedPcdGet16 (PcdCpuSmmPSDOffset)) DSC_GDTPTR EQU 30h DSC_GDTSIZ EQU 38h DSC_CS EQU 14 diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.nasm b/UefiCpuPkg/PiSmm= CpuDxeSmm/X64/SmiEntry.nasm index c3c094f..f55da9b 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.nasm +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.nasm @@ -1,5 +1,7 @@ ;-------------------------------------------------------------------------= ----- ; ; Copyright (c) 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 BS= D License ; which accompanies this distribution. The full text of the license may b= e found at @@ -29,7 +31,7 @@ ; ; Constants relating to PROCESSOR_SMM_DESCRIPTOR ; -%define DSC_OFFSET 0xfb00 +%define DSC_OFFSET (FixedPcdGet16 (PcdCpuSmmPSDOffset)) %define DSC_GDTPTR 0x30 %define DSC_GDTSIZ 0x38 %define DSC_CS 14 --=20 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel From nobody Wed Dec 25 14:08:37 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 1507070350580702.4108499110096; Tue, 3 Oct 2017 15:39:10 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 73F7521E78215; Tue, 3 Oct 2017 15:35:31 -0700 (PDT) Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0070.outbound.protection.outlook.com [104.47.32.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 0450A21E7821D for ; Tue, 3 Oct 2017 15:35:30 -0700 (PDT) Received: from leduran-Precision-WorkStation-T5400.amd.com (165.204.77.1) by CY4PR12MB1239.namprd12.prod.outlook.com (10.168.167.14) 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:38:48 +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.32.70; helo=nam01-sn1-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=DJNJSTBuLGd4dXMMeiaL5cawx4eKPxUoVVXPSbrI3AU=; b=47vv7aPeH9wpSef/Nr28SzRT93XGNQBzaQX50F6bUGPCwcfgMqz9YQn0eJBUGiQqLDcEkVhH37Ar9V09Gbn+gb/ixUcWnFvjDNuF0RjXi2jVk8Uz+Krsqdlf+TXWWZKBDrKfnDnl0WJoexKJJ6vy3YDPHWo1eRL2BeAPkB5xECc= 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:38:25 -0500 Message-Id: <1507070305-6727-10-git-send-email-leo.duran@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507070305-6727-1-git-send-email-leo.duran@amd.com> References: <1507070305-6727-1-git-send-email-leo.duran@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: MWHPR22CA0061.namprd22.prod.outlook.com (10.171.142.23) To CY4PR12MB1239.namprd12.prod.outlook.com (10.168.167.14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4586b72e-1cba-40ce-9f9e-08d50aaf840c X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:CY4PR12MB1239; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12M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CKZMy11xmqhxOqfomIUAu2hf0NfQeg/71261zzuVitzaMhWZwBeV2f0xy0Vbc9qAoZQMh+0A2wxLGgHAGjrk1pqDKixuVWL78jWbWRyFamxUNpWrtc5SNp297uAIKGtx9k5kgA5Kkx1QxOOJbm1gvo9nVXBBHEfIlyRIcHSffoAXMFufFkvITx7AVmMiaswJhdqW+rD5MZ2+z03XRep0HrjLCmdP1JJ6okrptxpAZGP/Yt/H5rUj0KTveICymrvgTBhO3BXA8/MVsHL57dJm6cdUvZ8DcN2Xecs0Cki89nBvBIqZid1qBNF07aCRZ4JqWpBjiWYQVo9imDn9wFpx4J; 4:8rbJY5Pj/vdsWye1VrBrWS6WfBJXkCpB/lSd1Whb34pbkT4PHUjniXoXMW/M8UuGFZ33XhrCJO+KuVDqICDnUywjsyex/YhJZKr0okdAlVaVWZKShfrCyXK2/DJQ8PGaKBP1ppbTAnhhKAKE3PgrzL77UUoqXBheTcYG9gdu52F7n+xW91jZwLZGWnw7J+f03tLCZZuIO7IiJr5NSHBNSLQ3c7/GzZFbrsK8w2pwYMnPX5OZCbDYBUFWagBfltbadmTC9ExKBEXQFPMUG0/YLpUzAJxHXkLd528LOW0rfkeG9A9r5yRWjHWVB/LWci3CMFKGKu9gBsxACotYgbmAzyonRUGWKH0/Z2FXW3Obqv8= 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)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123564025)(20161123558100)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR12MB1239; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR12MB1239; X-Forefront-PRVS: 044968D9E1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(346002)(39860400002)(376002)(199003)(189002)(305945005)(189998001)(6116002)(106356001)(53936002)(7736002)(2950100002)(76176999)(101416001)(4326008)(50986999)(105586002)(36756003)(33646002)(50226002)(5003940100001)(53416004)(68736007)(2906002)(2351001)(2361001)(3846002)(48376002)(6916009)(97736004)(8936002)(25786009)(50466002)(47776003)(5660300001)(16586007)(575784001)(86362001)(8676002)(6666003)(54906003)(81156014)(81166006)(478600001)(6486002)(316002)(16526018)(66066001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR12MB1239; 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; CY4PR12MB1239; 23:13qIQTRAgeHc3uI5juycYCxNe34z0+kUY04cINXHt?= =?us-ascii?Q?gFG85hC/pCPyZznX0YOa3b6qkGWaE/n2YppoDwiPnTSUQYpufHnnzs0YqdhK?= =?us-ascii?Q?NlmQTxweuNy35BTAy9u0xZx4eXWQW+JCAaU5MpvUhXNNQEc7nVTYPE58HuJH?= =?us-ascii?Q?uzZNzZJH0BS7IJP/5/CCJh9W50q239hOtZXoCnNYrEAZ/e4UgvvSacReMix4?= =?us-ascii?Q?sGDwjWzpCq+54D4nETyAsJpBWl9YPKL/JWcytxNenYmwVa4hVqk/se5CJzeb?= =?us-ascii?Q?rDtxyYxQLvVKLOBNslTtA8T8lmPJvJra2o6XuNbDwDlRYhyNT0hNb6Phyz5w?= =?us-ascii?Q?t+1v8B8pdrot5pLvCpZU6+xZkzdV0uOR7id9FyajVcqsJXhHu78Fg9LR/2XM?= =?us-ascii?Q?wKSAFsIYPPggz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5CQ87ORLqMZKp0/ml11 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2017 22:38:48.7205 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1239 Subject: [edk2] [PATCH v2 9/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: 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" Add a FixedPCD to replace an Intel-specific hard-coded macro. The new PCD allows SMM support on AMD-based x86 systems. PcdCpuSmmPSDOffset - Processor SMM Descriptor Offset in SMRAM. 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/Ia32/SmiEntry.S | 4 +++- UefiCpuPkg/Library/SmmCpuFeaturesLib/Ia32/SmiEntry.asm | 4 +++- UefiCpuPkg/Library/SmmCpuFeaturesLib/Ia32/SmiEntry.nasm | 4 +++- UefiCpuPkg/Library/SmmCpuFeaturesLib/X64/SmiEntry.S | 4 +++- UefiCpuPkg/Library/SmmCpuFeaturesLib/X64/SmiEntry.asm | 4 +++- UefiCpuPkg/Library/SmmCpuFeaturesLib/X64/SmiEntry.nasm | 4 +++- 6 files changed, 18 insertions(+), 6 deletions(-) diff --git a/UefiCpuPkg/Library/SmmCpuFeaturesLib/Ia32/SmiEntry.S b/UefiCpu= Pkg/Library/SmmCpuFeaturesLib/Ia32/SmiEntry.S index 4c0f8c8..d3c291e 100644 --- a/UefiCpuPkg/Library/SmmCpuFeaturesLib/Ia32/SmiEntry.S +++ b/UefiCpuPkg/Library/SmmCpuFeaturesLib/Ia32/SmiEntry.S @@ -1,6 +1,8 @@ #-------------------------------------------------------------------------= ----- # # 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 BS= D License # which accompanies this distribution. The full text of the license may b= e found at @@ -36,7 +38,7 @@ ASM_GLOBAL ASM_PFX(gStmSmiHandlerIdtr) # # Constants relating to TXT_PROCESSOR_SMM_DESCRIPTOR # -.equ DSC_OFFSET, 0xfb00 +.equ DSC_OFFSET, (FixedPcdGet16 (PcdCpuSmmPSDOffset)) .equ DSC_GDTPTR, 0x48 .equ DSC_GDTSIZ, 0x50 .equ DSC_CS, 0x14 diff --git a/UefiCpuPkg/Library/SmmCpuFeaturesLib/Ia32/SmiEntry.asm b/UefiC= puPkg/Library/SmmCpuFeaturesLib/Ia32/SmiEntry.asm index 91dc1eb..096f353 100644 --- a/UefiCpuPkg/Library/SmmCpuFeaturesLib/Ia32/SmiEntry.asm +++ b/UefiCpuPkg/Library/SmmCpuFeaturesLib/Ia32/SmiEntry.asm @@ -1,5 +1,7 @@ ;-------------------------------------------------------------------------= ----- ; ; Copyright (c) 2009 - 2017, 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 BS= D License ; which accompanies this distribution. The full text of the license may b= e found at @@ -29,7 +31,7 @@ MSR_EFER_XD EQU 0800h ; ; Constants relating to TXT_PROCESSOR_SMM_DESCRIPTOR ; -DSC_OFFSET EQU 0fb00h +DSC_OFFSET EQU (FixedPcdGet16 (PcdCpuSmmPSDOffset)) DSC_GDTPTR EQU 48h DSC_GDTSIZ EQU 50h DSC_CS EQU 14h diff --git a/UefiCpuPkg/Library/SmmCpuFeaturesLib/Ia32/SmiEntry.nasm b/Uefi= CpuPkg/Library/SmmCpuFeaturesLib/Ia32/SmiEntry.nasm index 00c0f067..696af46 100644 --- a/UefiCpuPkg/Library/SmmCpuFeaturesLib/Ia32/SmiEntry.nasm +++ b/UefiCpuPkg/Library/SmmCpuFeaturesLib/Ia32/SmiEntry.nasm @@ -1,5 +1,7 @@ ;-------------------------------------------------------------------------= ----- ; ; Copyright (c) 2016 - 2017, 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 BS= D License ; which accompanies this distribution. The full text of the license may b= e found at @@ -25,7 +27,7 @@ ; ; Constants relating to TXT_PROCESSOR_SMM_DESCRIPTOR ; -%define DSC_OFFSET 0xfb00 +%define DSC_OFFSET (FixedPcdGet16 (PcdCpuSmmPSDOffset)) %define DSC_GDTPTR 0x48 %define DSC_GDTSIZ 0x50 %define DSC_CS 0x14 diff --git a/UefiCpuPkg/Library/SmmCpuFeaturesLib/X64/SmiEntry.S b/UefiCpuP= kg/Library/SmmCpuFeaturesLib/X64/SmiEntry.S index 1f9f91c..de0f71b 100644 --- a/UefiCpuPkg/Library/SmmCpuFeaturesLib/X64/SmiEntry.S +++ b/UefiCpuPkg/Library/SmmCpuFeaturesLib/X64/SmiEntry.S @@ -1,6 +1,8 @@ #-------------------------------------------------------------------------= ----- # # 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 BS= D License # which accompanies this distribution. The full text of the license may b= e found at @@ -35,7 +37,7 @@ ASM_GLOBAL ASM_PFX(gStmSmiHandlerIdtr) # # Constants relating to TXT_PROCESSOR_SMM_DESCRIPTOR # -.equ DSC_OFFSET, 0xfb00 +.equ DSC_OFFSET, (FixedPcdGet16 (PcdCpuSmmPSDOffset)) .equ DSC_GDTPTR, 0x48 .equ DSC_GDTSIZ, 0x50 .equ DSC_CS, 0x14 diff --git a/UefiCpuPkg/Library/SmmCpuFeaturesLib/X64/SmiEntry.asm b/UefiCp= uPkg/Library/SmmCpuFeaturesLib/X64/SmiEntry.asm index ad51e07..3e4e080 100644 --- a/UefiCpuPkg/Library/SmmCpuFeaturesLib/X64/SmiEntry.asm +++ b/UefiCpuPkg/Library/SmmCpuFeaturesLib/X64/SmiEntry.asm @@ -1,5 +1,7 @@ ;-------------------------------------------------------------------------= ----- ; ; 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 BS= D License ; which accompanies this distribution. The full text of the license may b= e found at @@ -40,7 +42,7 @@ MSR_EFER_XD EQU 0800h ; ; Constants relating to TXT_PROCESSOR_SMM_DESCRIPTOR ; -DSC_OFFSET EQU 0fb00h +DSC_OFFSET EQU (FixedPcdGet16 (PcdCpuSmmPSDOffset)) DSC_GDTPTR EQU 48h DSC_GDTSIZ EQU 50h DSC_CS EQU 14h diff --git a/UefiCpuPkg/Library/SmmCpuFeaturesLib/X64/SmiEntry.nasm b/UefiC= puPkg/Library/SmmCpuFeaturesLib/X64/SmiEntry.nasm index bcac643..8425499 100644 --- a/UefiCpuPkg/Library/SmmCpuFeaturesLib/X64/SmiEntry.nasm +++ b/UefiCpuPkg/Library/SmmCpuFeaturesLib/X64/SmiEntry.nasm @@ -1,5 +1,7 @@ ;-------------------------------------------------------------------------= ----- ; ; Copyright (c) 2016 - 2017, 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 BS= D License ; which accompanies this distribution. The full text of the license may b= e found at @@ -29,7 +31,7 @@ ; ; Constants relating to TXT_PROCESSOR_SMM_DESCRIPTOR ; -%define DSC_OFFSET 0xfb00 +%define DSC_OFFSET (FixedPcdGet16 (PcdCpuSmmPSDOffset)) %define DSC_GDTPTR 0x48 %define DSC_GDTSIZ 0x50 %define DSC_CS 0x14 --=20 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel