From nobody Thu Dec 26 02:06:08 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 1507143773999152.8133033755388; Wed, 4 Oct 2017 12:02:53 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 955F520945BB9; Wed, 4 Oct 2017 11:59:23 -0700 (PDT) Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0066.outbound.protection.outlook.com [104.47.33.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id B298821CF58DE for ; Wed, 4 Oct 2017 11:59:21 -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:39 +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.66; 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=5tSB5KXfJ1cJnzs2cthP6mxgOVPeNKnS3oexkb32QnY=; b=ijGYl+N1+0aQn7P4N2wIPhMiAQ3YbG+5IVyXrwX15SwojVyx/4rUqewMWDpl0472a6FqhSOnauoyAcV26nsnrhS4xFYwncp6kWxzGtBsH7J02/eGjI4mHuL5fdWAxXKNWRO1Y6vm7x8kxOi1z9VSi4WG1wub5YCl1XCZyvZgoIc= 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:27 -0500 Message-Id: <1507143747-18377-6-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: 8c1c0d80-e37d-4d71-afe9-08d50b5a7c40 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:E6FFpacRa0MK0doY/QBPiluQAGYO6rw364z4tojne//CBDG9MoYYkgUd4iwTJVvUNzfk2n9N6mSgN6mIDge6optEpbRlFz72r9GKmLhKAIqmxGqy3c+z+P0t4WpQV/J8dTOL1ERNWeve+zUaJ2plsDImNIMBUHw2FH8Hp9EpFmsaDwGH1jxgDajJzckWOEIvcuPdk4SaK/n1qZAfhZy+ZIQkbxz2lHRRrEhaj6RqXkC2TI9z9ZoDBummh1Fd1nC2; 25:/PlBU+bBjINMMDTPcsxGCzYI4Sc7CSjUdRLkrBQ4sS4J3AC9GtSnko7UH3Y4iuDuc9GTrkcGLmdexVBBaj6ym9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ipbsS9EfsHgyK1sHHHgrOkGAxP0PSyOb6BqBphi6A2RgBjCxhV1eVj4G26uKeOlSvsLMZ0ctF8UEgkwP7MmeJf5C9dXVgVHiZiyuTRWSSuiYwJUax7LA8m4g/y3SdZLjEPF0IGIRcJwSNsNcUKdA0rBDde03xRGthwHSI5NTsgXsd/eYaSQQWE7MBG5roZL60WLO7WRy7nHSQeSZnQ5WUQbwQVFY6tRJXdUZ1D1j9qTKaNhXidIDxtkRdYe5wIMmzZ4A25yPxWt+Yal+fLvsvYXGlTVzhsTDeXSdWcca2BBGuVz3XNcWpT1U9oZaXE+E2xV0UupF71wdk8lNhHcGtmdkFaTRsDj762X6pHmzJGI= 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); 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:Yc54HSDD/sM4KuwgqADEN24MGG227qRCiP8gFsnnV?= =?us-ascii?Q?XzRKkYgOKfXf1lWImdZ0hfoMlX1hX/bm+Qqd5kz7w8z906w6Fuf2ted/EV/k?= =?us-ascii?Q?6JUevOmbX3KIrmQv0EVOMEnU2BZo6+QD959yMoj5aLps7TszH+UfNecDSDpI?= =?us-ascii?Q?bQbNMMBulNroy4dZE0FP3Oxa3415bY0fPs/VAKoH8Q+qFPunmrMGSFF/BFyS?= =?us-ascii?Q?c2JJLP1kO4YQlMzZz5zc9X+0nyS2yafamwPWTJRkK8YgmSM2wZ9+vZIqTPgw?= =?us-ascii?Q?+zQesA2vfEVVBG0d9xtSjCD+rFm/ggurniIVLR6D68TmW4pfuqb1/pFb+OFw?= =?us-ascii?Q?ju45+esLjPwHGQUMO7psyKQsMIZNUVkYk059IUQrAV4ZGG1AZj18eKtrh0RT?= =?us-ascii?Q?QAGgV8OF8zp8gv9Rr8kEhAkrYVWwFk3W0SIHW1ZpiNh4RSWwwe86AZCLeJ9z?= =?us-ascii?Q?v73TbtHshM4aRsLrQ9uKjqRlZXGzGS4B5N4jtl1T+KRFjYHUF6MtzSK5NWbk?= =?us-ascii?Q?e1ZMKPzfnNxEaRnPTi5nwilZTrDMxAyfoq3Nas4eOtX9GKvs5pm5aSNqKGCi?= =?us-ascii?Q?LAQ9OIY+gHqaflhBDAIp2ivIEZeUcY4fvscRLYFwrPyYZMd2LIu1hgjzglHF?= =?us-ascii?Q?3XxldHGVS7xXnh0/tdwHw4rLzflX6QHHwhKbVl9TfRCVw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WnFKQBskGwKHzgWGjbGVgY3VoYLQ==; 24:2UGuFLIHTvRXPlIxIRUY7C7xWgZa08koeyfCxLAP8RW9i8GdlyzJm1zAIpu3gaGSaFikdipbdHn4S6osk1gCAImwfzUylHlDB8XPDMeRAeA=; 7:anzZJuQfVoXj5QrObcjm/ZKBs1uhj94W2xGMflw1vIGmvvxnT2aK9TaFHtTYYCM0Nqwun1N8rVDWTs0LQcFf3g8yrZi+Ceu4rxh+0KGH3JtVhsoxo+FEVgYS1E8Lg0QCh3HYNwIcVPyIiG8CIVVDZZBcnST3RDoPxWYgpkfYEj9NrARNsgNrzRdQGhlMNdtLc/qYb+sRFCPmxEKI6RZdYq7Y/d+gk9VHuT0fKJr47mc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1246; 20:J7PIYxzTZYu8v4e3C5qi2XmyQv0c7GaTCJGNj75A2tPgOB4AyoOcv1vJgeIyeLo/71nh47yKS5f16udPHOx50sVPAXo1gsOqDOjlnuR4sYzAl5+adNMFUOq06Kb+MtZL3moqx2KjkMRIrirrgR0uitEy2HVp56pW/VWT26nXDE2xSdEWVpeXzx7v0ibG3VxDUcsZDk80gzJgbVpsNqKU/KZ1gTe0aImmaQ/X7KCUt+oP6V4UPgMXuLvmE5HZuzeI X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2017 19:02:39.7525 (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 5/5] UefiCpuPkg/SmmCpuFeaturesLib: Use FixedPCD on non-STM 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" 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.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.c b/Uef= iCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.c index 2d2bc6d..88f43b4 100644 --- a/UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.c +++ b/UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.c @@ -2,6 +2,8 @@ The CPU specific programming for PiSmmCpuDxeSmm module. =20 Copyright (c) 2010 - 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 BSD = License which accompanies this distribution. The full text of the license may be = found at @@ -224,7 +226,7 @@ SmmCpuFeaturesInitializeProcessor ( // // Configure SMBASE. // - CpuState =3D (SMRAM_SAVE_STATE_MAP *)(UINTN)(SMM_DEFAULT_SMBASE + SMRAM_= SAVE_STATE_MAP_OFFSET); + CpuState =3D (SMRAM_SAVE_STATE_MAP *)(UINTN)(SMM_DEFAULT_SMBASE + FixedP= cdGet16 (PcdCpuSmmSmramSaveStateMapOffset)); CpuState->x86.SMBASE =3D (UINT32)CpuHotPlugData->SmBase[CpuIndex]; =20 // --=20 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel