From nobody Thu Dec 26 01:21:03 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+c1E1cByYNFQOsAuoUy7FI8vkNWQfbw4UIMAMyTAc5GpI+4o71Sq9Zl4M//UGirKCepUhbWGbdbani1I2JXqjoLMGNTnmFisrbRrnMOTdmlZVrovMHSgDPjNR2azawue5r/NHpd83p7lAK1dD8P8uNOpDOb+//OID5kJwaC2HKoIb; 25:tsbzK4LaxFHEDeSXA5APjNvSgAcS2C7j5NeRne6PryD3Hl7OSiSqM3Gtw2UPC2l5BjJ4L+3MAxbYcpjT9BbMS9zaCyTY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tUy4t6uTSrWE3/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/wQ0cN5vSVaje9mJTu6HAiNbKF+?= =?us-ascii?Q?J2JqWMTgXhxrwpzEt+MYY6g5eUN0dao2y+XqisQ44/OrTKzPdn3lS/bUVBej?= =?us-ascii?Q?cXQQzz1b/TmiOIXdXBNPqX4fgfnpHwjLRergwkj5nsvLiQa3U10GlccvnTf7?= =?us-ascii?Q?0RJDmdntX3P88d5AsGehy3Do87oh8jwwVBJ/IOyrKSTfyby7uaBS1wWT0lSY?= =?us-ascii?Q?OboIyP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53MTRIZIawuKCUbNOG5ugAw2A8u4JZfYwX6DUdndBUOY2w==; 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