From nobody Thu Dec 26 01:43:19 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 1507143373694167.473693109946; Wed, 4 Oct 2017 11:56:13 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id A372B20945BC3; Wed, 4 Oct 2017 11:52:49 -0700 (PDT) Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0069.outbound.protection.outlook.com [104.47.40.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id D29DF21CF58DE for ; Wed, 4 Oct 2017 11:52:47 -0700 (PDT) Received: from leduran-Precision-WorkStation-T5400.amd.com (165.204.77.1) by CY4PR12MB1237.namprd12.prod.outlook.com (10.168.167.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Wed, 4 Oct 2017 18:56:07 +0000 X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: Pass (sender SPF authorized) identity=helo; client-ip=104.47.40.69; helo=nam03-co1-obe.outbound.protection.outlook.com; envelope-from=leo.duran@amd.com; receiver=edk2-devel@lists.01.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=/V4zS6gcS4j0G7So/ifNWqKvMW4c76iTJEw+WnnGPMU=; b=yaiDo9n6Koxh4P1+1XRnhaJJg7XgQC9WuK2PNmKYmX77Se3Kv1MyfwCpizKpKZ9eJd4hsLyKgTPYdj7Az6mRqLJtr1b3bCFLvAr0sVMT8NcNHsVJWiH0ihfFqiVvvFg8GsWlGlowFkNsck2roB6MmLFlQOxjCcX50YACBY1NElM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=leo.duran@amd.com; From: Leo Duran To: edk2-devel@lists.01.org Date: Wed, 4 Oct 2017 13:55:54 -0500 Message-Id: <1507143357-18181-3-git-send-email-leo.duran@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507143357-18181-1-git-send-email-leo.duran@amd.com> References: <1507143357-18181-1-git-send-email-leo.duran@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: BN6PR03CA0062.namprd03.prod.outlook.com (10.173.137.24) To CY4PR12MB1237.namprd12.prod.outlook.com (10.168.167.12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bcdf3760-2590-4e6f-1172-08d50b599298 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:CY4PR12MB1237; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1237; 3:51H47wVnY+EYeyzsHDKXdwHIIbG7D2Po2TiI0EMEMZgbpBDaCrJU/J/sIJXqrJvTcyX1pXcxrNIQhxJRLVBdNI9AN0eMkvCim0t9bJNEz3VbLy2yV4njjOklEiWLfirKN4JZ15NDELk2p9uExKESJzUDPP+YoCalebiWz1sLV8RTh9h/6Rzg1r7826n7OxB139MpFtrCu7kJNKF3pnWjAaEd2H4AM2RaRm1BqdqON5nvfL1Hgjrxf4gNTDY593nT; 25:ZmjIds/nC0r43Y3/BWdJn4aA3JycooCasjeiWOxUhFqC0LyK2fB8mjo/FR1Nn4NMyWdoynkSKplbfgKJq+ayszyIbBLrfxh6pdwL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XwM6CtyA/rBAcP1SbunSJgxEDFS+DZqbHkMq3zYMun41tlFK2d7sS693/pCZRxKi6WXvpT3PE+zLcuWv/eso9OTZ0VDgdbOFrexstwyipm6UviHVcysg8qWEfGAQjerD8E4FX1hWUVj6DW4B1j11ieAjoqfG5u0lj/H0121VrRwA96Ddh8H2rbgn0jEaViL4o8bfKKeVDxH7UiGOKKrtloPaC+v+j6EHM0jJGSd5LYhS3x4+VT0bgizstzleDFzqX0S8X9+49Zp4/yTUunXjnWEX8ZL3PDBNNFf4cInXnZsQP2eoVAqd1H4bBGBmT83GNbLQqxAdc1Hz8lZABZGZd8Q5KPSiBQqpEY= X-Exchange-Antispam-Report-Test: UriScan:(767451399110)(788757137089)(228905959029699); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(3002001)(6055026)(6041248)(20161123560025)(20161123562025)(20161123555025)(20161123564025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR12MB1237; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR12MB1237; X-Forefront-PRVS: 0450A714CB X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6029001)(6009001)(376002)(39860400002)(346002)(199003)(189002)(478600001)(66066001)(16586007)(316002)(97736004)(6486002)(47776003)(50226002)(305945005)(36756003)(6666003)(2906002)(54906003)(189998001)(86362001)(53936002)(5003940100001)(101416001)(68736007)(50986999)(2950100002)(81166006)(50466002)(8676002)(48376002)(8936002)(53416004)(25786009)(2361001)(2351001)(33646002)(5660300001)(7736002)(6916009)(106356001)(6116002)(105586002)(3846002)(81156014)(4326008)(76176999)(16526018); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR12MB1237; H:leduran-Precision-WorkStation-T5400.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR12MB1237; 23:dGlrzyh3LcD7fPR6/dDazoE/K8mMnK6EwkSboYOq2?= =?us-ascii?Q?BMwtsXtdfnblRbCuFz5C3uYPemh8MBnp4Vh6pblE4tB6IT1zrIDe8Jc+VkAV?= =?us-ascii?Q?uBJRw6tqecRl5UbjtzzVhVd6KNizJeLoNdDsBlE8RBk+5DmX5tn7ZLa5jD73?= =?us-ascii?Q?OkL1PwG3LSwETAW5aM0BRMeaCjPODyyCD1hMyZDdMk+rJOJCoQECPfZqWZJf?= =?us-ascii?Q?l2HPb0RYqoocVpxWrAAib0xFt7WE2OBa2ZqaT6umZVzi+J6OLnNQSL+/bCm2?= =?us-ascii?Q?654mJJry/BrCwr40oBx691jOQ4ie7kCd7+5IenNw0GTGzhpzjSUwzkhi88Du?= =?us-ascii?Q?DFn9HgZeCozx+fRmAbmJ8YimZcZpIT5pEAcKSKMnH+96ydpivto03WbxsjS5?= =?us-ascii?Q?ixRzIQVp6PvHXCTqPhELzmnvOlTBZQ7ggpT/nv1DA0xeIBeJ3Z5LFgxCGZYR?= =?us-ascii?Q?9sUMC4350q0rqxeR7wTxfgIfWT7ZgfAHuxfsWYnZR0CipcdscNTAq1zZ4SAF?= =?us-ascii?Q?h562xXr6LJwo8JzH+Ah6N4hZpBho60STasARCvVenRNlilEqd3cW1mvFkKPs?= =?us-ascii?Q?e+N5m03O+ov+1ju0ppl8VKSxL2Rv/2sfOHf5rAxiGncNho/7RqHkmQjuDe1q?= =?us-ascii?Q?sC0NAQFtZ1NI/Haxx3lMOR+F8SCp+QZi/yvhk6GpjkwS859MTZrqDfAvRTD8?= =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X5ZecUMaYFU/q1p4KDFOozoMrE6Q==; 24:Kjl099XhAqc5Ilhnud6/CnmmcwIWeKPHtWgPk+9SwZvnEx/5Vs0xZtUJOddV7BpiS/K2DUa6YZHt0snVDk8YwAqK0W7F9zyDNZUj/l19MtY=; 7:o5QVOTQINUAxjXFeT73+/d8u/edQnlgOAnvd0lAeNWVGYFoxYr7FOJmtFQzU02FJyJYJtIg5+b14C+gUNXzm7MWl5UEqJ/IyggFW6J1Rco+MN085vp8hupNQ0HXRLBhT1fGxb+zUUiHDrH8NlRY3tbju6VhyALLe3QQE2SPN21TA8OrXEBCmNfGkA7OFD5ljEzM99pI0SJC+HIHz9DGCWtgGC4J1z1W2v31E9dA90ec= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1237; 20:ZHQQAFfTWrUnj9CKUBSw98j2DuzmTGgwywswTZC5FmXYj0szsGQspjPUdpzrg782iPAigJhTqrtjIPvnjqqSqIiaC3S2hKHeW13t4rkOpq9lrEwAF8OXQrY2airu5hQGhAGTx4tpp1oY9cN6pePTs09Bqt9wu1e8TMHIH1AarkPcGKuI1VBs3S92jM5YZcUBeRM7ENzrNLojQ2cfdgn11QLXdVB38DI4wyxFxFWu6tamU71T0GC34Nnl5aFJlxue X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2017 18:56:07.3633 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1237 Subject: [edk2] [PATCH v3 2/5] UefiCpuPkg/PiSmmCpuDxeSmm: Consume FixedPCDs to enhance SMM support X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ruiyu Ni , Jordan Justen , Liming Gao , Jiewen Yao , Michael D Kinney Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Consume a 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