From nobody Thu Dec 26 01:43:17 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 1507143770664802.7870851157937; Wed, 4 Oct 2017 12:02:50 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 559222095E529; Wed, 4 Oct 2017 11:59:21 -0700 (PDT) Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0089.outbound.protection.outlook.com [104.47.33.89]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 4572F21CF58DF for ; Wed, 4 Oct 2017 11:59:19 -0700 (PDT) Received: from leduran-Precision-WorkStation-T5400.amd.com (165.204.77.1) by MWHPR12MB1246.namprd12.prod.outlook.com (10.169.204.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Wed, 4 Oct 2017 19:02:38 +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.33.89; helo=nam01-bn3-obe.outbound.protection.outlook.com; envelope-from=leo.duran@amd.com; receiver=edk2-devel@lists.01.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=JjggMK9DKTh/r2FYuPhdALLtEs14jNhkM2McMOLFJWY=; b=3wEhLNVSOgMSya8OfaskM7bTbpXPmmdHeQw8B8JKxxRlT8tfT7s1kqUkxwy2oDBCvyJEn6wGhq/6+/KDGlGT1agfRih6L8akzNeJatFN34o43eGxyAi0xbYg1kQOyEhW562/TjJp8THjAjoeuWNzSzTWIbtNHSZ26SuUuU38Fmk= 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 14:02:26 -0500 Message-Id: <1507143747-18377-5-git-send-email-leo.duran@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507143747-18377-1-git-send-email-leo.duran@amd.com> References: <1507143747-18377-1-git-send-email-leo.duran@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: MWHPR1701CA0004.namprd17.prod.outlook.com (10.172.58.14) To MWHPR12MB1246.namprd12.prod.outlook.com (10.169.204.150) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 98d3fb1f-068f-4c03-a288-08d50b5a7bb1 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:MWHPR12MB1246; X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1246; 3:uYrc6oPE2DHvr3FEx/U/UEieGkVf0zdRCO2GOqGGd8Y/htEtimSvUMOa4zvYiPj2hteqBrnZRTNaePe6fZp1BThhx3JFIrTGgZ45id0CvayF0xyqlIAeCGtv04Z54Kdq65sXTIWGEWIwgAZuq8qD88FzqKbAsi5PaugWdqvg1gbXWBHNUV0NJfQ4f3rpZggWd+bMQrFz6mJWd9NoRF4FKnLnwIKwiSS762i7shFNyiMtSAPB79cztmSZNYMqzfVN; 25:RlgixO9R/LurQqVbDlACJIpHDBl2mNhStuZb86SRwDy5ruMeEM2HoEpC8Aukrq8zexyXO0fmXtiwc5ogrFXQkac/Ahz+hCXAgxho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lE0dEY9i7xjqiLHxagTPCO+OzQlWecvBAxSj0ojGJeuFJXJIRmDBj43hIsGbUL0bf6/IUyhzG8NA6qLCEEx91rWgsCq4cd2MSyeOh6rrhEY6eDn2u20unQrykTv9SAxDdTxViMAlww7kJhw2JFDoeRkgsjkwLs6dV0OPER+x6H7JgNMaAOp7hGqukn36JA7oEGX2hHeQzdEEy380Y/OtTxY2nBiPjVA1AwkHVL12OUuoFU/loc2je7U3SZ9rHF81AD+35WuwKU7+/Yc49Wy2UCbdhjDrRxCObaxEpsaoqAMrIXv07HzjyWQ6J0u3ufHpIzJturNQOcDnnhG2hmA2Ac/lYAEGC5k= 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)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123555025)(20161123558100)(20161123560025)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:MWHPR12MB1246; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:MWHPR12MB1246; X-Forefront-PRVS: 0450A714CB X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(39860400002)(346002)(199003)(189002)(5003940100001)(48376002)(3846002)(76176999)(50986999)(47776003)(66066001)(68736007)(25786009)(86362001)(33646002)(478600001)(2950100002)(16526018)(50466002)(6916009)(2906002)(6486002)(7736002)(5660300001)(6116002)(101416001)(6666003)(2351001)(105586002)(36756003)(106356001)(53936002)(81166006)(16586007)(4326008)(54906003)(189998001)(81156014)(50226002)(8936002)(305945005)(2361001)(316002)(53416004)(8676002)(97736004)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR12MB1246; H:leduran-Precision-WorkStation-T5400.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR12MB1246; 23:V9i9/WbWg+xhPo8E80Mf8Z0CrngV3oGGqLn9oeavW?= =?us-ascii?Q?nbkIvyQQgenn6VpzpBUXfcbKVV6TM1Z9x9TKIk6QknvSH4eA013Auuct03Jt?= =?us-ascii?Q?959ZVDDJyTK8QXkSvB2W9IzJs9wxi/5jOQzt9dY7+iQXNT6JLVLOWBeSTpJC?= =?us-ascii?Q?ZtQWjspXWLGiW7wdn5/djemzdyTI+1eNlNjAkceCNFJx5oVN/eLVbPJ8zDDX?= =?us-ascii?Q?eFSlL9XIrVuGnMTtgXVbbT1ns/WLp+C5TWR0LE3DlJMfX8C4RLMrAhvqhIRO?= =?us-ascii?Q?6cD9lGNxfkbWXDaPZHeoqC0EA6cjpw1CPoQykiPP4xQjH/g7j9vKIRzafuYs?= =?us-ascii?Q?UgFuG5pWp9afb+JV9YDTwItfGcKVsBW3YMEq71YD3gZOoAKNDZpE2tmOoqFe?= =?us-ascii?Q?nr4bS7ihhmphwp8+vp/d/MVE86q42/VU0S98HuKR5Kh3KI7D8wjs/fMPJwMa?= =?us-ascii?Q?8OhnG1kNGqa/Q6tx8l1gbewZgqhbEYPUqQvewZRl67LZDNAn9kTutk6duaX7?= =?us-ascii?Q?b9Na1VAdDv4YhSateaGSXmivrUsdQ/6Jba5S+XQ/sxCRGCMbradAYhkP333U?= =?us-ascii?Q?kOCY8OJ7kwMdH92ehcCjQyYZRDahTJTx+J81WuVMtRTpCfiMgJc5epQnn1fg?= =?us-ascii?Q?ewMOnfDxMx8BQ6uPKesL6b4NKngrhi94QGzQvbBU0SixVJXPqrcVZrUNvjBH?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tchb4yc8/lJ0f9b5UxQiyB3s4nwaBklREm5sR9E/uziBPlCg==; 24:cDtRb9MFcpHRn/cMOxiegZN+AUk0EEKJXK4tZentXNtDEXL/EdlvD5g8Qyjbm0yWbeVJC+O7vIFv5JoudFtvdfdaykhpNMA/quUD3h+BOLM=; 7:m+QLfrz8QnqOI7dntw35TFP3sDz8/5m3qtRwztcFuXvNmo2lFot74lypZvIJRB0xGLI+mwc7zjjondMVBlBq2SeaxHO63Lr04UKCqO1CQ2MOXVO3T+acmb0ngPa6wcvW8L6OHmb6mPVjWHiYHy2714mvaBCaasDT07VPSxJ+zJ7iJNeh9W9kXh291YlVkGGGK6L5zdzcqF5y5Gkv4Y0j3N+VhmqEqZhQxq5my3iXspI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1246; 20:PPuI4Fg8ilStxzAeiRbyug39Wco8LI8Xxlqv/CInZV78q+yVAPRQngn07wE2+QQLHM+mF70TU3GbEZF4kbF2+i8pYUnneEjnmFbf95wizgyinLW/CZrNn5ZqwPBhTv17dXG1+Dnz6XZv39tMRybE5DZdpfoYkedj2qYuQ70wO6HPYRcFpJFfw81ynDAE5+WJC2FszLhizcHkaYYeApP9m/XfCHAUmvVtIGhwSPsfYMrnbWjPNJuqPDuuMd1EMSeh X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2017 19:02:38.8306 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1246 Subject: [edk2] [PATCH v4 4/5] UefiCpuPkg/SmmCpuFeaturesLib: Consume FixedPCD to enhance SMM support X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ruiyu Ni , Jordan Justen , Liming Gao , Jiewen Yao , Michael D Kinney Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Consume a FixedPCD to replace Intel-specific macro. The new PCD will allow SMM support on AMD-based x86 systems. PcdCpuSmmSmramSaveStateMapOffset - SMRAM Save State Map Offset. Cc: Jiewen Yao Cc: Ruiyu Ni Cc: Michael D Kinney Cc: Jordan Justen Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Leo Duran --- UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf | 5 +++++ UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLibStm.inf | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf b/U= efiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf index 77908b0..1be2671 100644 --- a/UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf +++ b/UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf @@ -2,6 +2,8 @@ # The CPU specific programming for PiSmmCpuDxeSmm module. # # Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.
+# Copyright (c) 2017, AMD Incorporated. All rights reserved.
+# # This program and the accompanying materials # are licensed and made available under the terms and conditions of the B= SD License # which accompanies this distribution. The full text of the license may = be found at @@ -36,5 +38,8 @@ MemoryAllocationLib DebugLib =20 +[FixedPcd] + gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSmramSaveStateMapOffset ## CONS= UMES + [Pcd] gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber ## SOME= TIMES_CONSUMES diff --git a/UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLibStm.inf = b/UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLibStm.inf index db8dcdc..a91e9ed 100644 --- a/UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLibStm.inf +++ b/UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLibStm.inf @@ -3,6 +3,8 @@ # is included. # # Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.
+# Copyright (c) 2017, AMD Incorporated. All rights reserved.
+# # This program and the accompanying materials # are licensed and made available under the terms and conditions of the B= SD License # which accompanies this distribution. The full text of the license may = be found at @@ -78,6 +80,9 @@ gEfiAcpi20TableGuid ## SOMETIMES_CONSUMES ## System= Table gEfiAcpi10TableGuid ## SOMETIMES_CONSUMES ## System= Table =20 +[FixedPcd] + gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSmramSaveStateMapOffset ## CONS= UMES + [Pcd] gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber ## SOME= TIMES_CONSUMES gUefiCpuPkgTokenSpaceGuid.PcdCpuMsegSize ## SOME= TIMES_CONSUMES --=20 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel