From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 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 D912F21E781E1 for ; Tue, 3 Oct 2017 15:35:21 -0700 (PDT) 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=clRf1mQ5/jnRZzudCV8qg1qF/pPG8vniGOykZglHsRg=; b=493UnDGKTlGMwXq+4uwGhZsuDeJe/gy3Cuux0eiaTUeXA/j6BZmQhZ/fr2tbKZvxfVKUVuK10RmSow+BFf2WJpFwenOeF45pM+bi8g9Iz1Za3ICEA2pmrfpkX/C5iCMuqEeBbvGYEz6WWMYFR7NESko/EVl9zcPaLcAGqsbImrE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=leo.duran@amd.com; 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:40 +0000 From: Leo Duran To: edk2-devel@lists.01.org Date: Tue, 3 Oct 2017 17:38:16 -0500 Message-Id: <1507070305-6727-1-git-send-email-leo.duran@amd.com> X-Mailer: git-send-email 2.7.4 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: 07b32662-12bb-4f3e-8703-08d50aaf7f26 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:dE9b2tX6M6bzoyDBbuRXppPVFdqB1osp+kPOEaVRh7mMEBimrPpXM01xlmZctoqtUvK5BC9uhxIha9TsKcG8dNxp848ISDxgEXKuRXWmodmhRxOHpI880EPFM9aHzMbMgLE3COD+KAY9pcBDvRrd4g/s72N1ALc5tf9qoe8ptHjmT9vGfGxvibimmbWvruGUT8374WK8rU5zhG07VhnMsi7PSLA4pdbQVxMm5gpcPwFE6m3aIM0ZS++EPD7SUxjd; 25:9rTscqqFxm/0lMMb2EUZKhnxd42Kh4SKXJ+s3nrJbQkgDEvsQ3KfuidpsZ7ftDzS52UysFBsIp12NVfX5XTq+dmG/u34Rdlc+X5OoBlZIFbL6DgZH66lvy1RyD9GJbApPZgUnogYpBsXSO0QlPWnYgzReYViFw+xdRCTQ60k+udD+Dnq9VPjb01qFEvW73eqV8olBvVAOJPSj4J/PWGw5pyp/fSbp3oo1aOufSjWYxcS2i4qSZYFKkyfK7luPjzxRZKlcyLbQ9EAjwC+py65a56/xN1ydVQLD0nPDC5Cfd+/uZBcz3pDeccvg1iYEMqiHskvSlQjE2rrls8OxX/dpA==; 31:ud/9TyIC8W3JnHCTuQYrzy0od6TYFMf91qTSiLrfZUXmBrPXKx8WFy9x0JMamMiMwIj02tcO9zWCoP0gf3hOYgUrmVd5dKynWUvHvwwuy/chxVH6xylWsbdiJx9bzlfkelDMPblOboxB6DMFMFMqLN+4rFFI+MhUOpMfS+xhRjvotXImloSBbcb4q2yxMNwa2pFVvnAvTejavlZ4ezfld200GFzmGitHgcncG9R3mJw= X-MS-TrafficTypeDiagnostic: CY4PR12MB1239: X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1239; 20:nM8JOaF98l8mSh0OaLaprBj71mJ9Bf7lydt6+T+2cadIjxHDcqh5izGba3DhS22q4NQo7YsyyXB54q2to0Xg4V9HQM57QU8tMphAvt++SQYzapAUsEEGa9yjUlP2dZT63qwfaUuHNmXNCjFb7DEtThuNP6bsSF0KSAgIz29qe8aND6CJ5uNjGlIq1lUjpVrzkvQkfhII/CEcr9ZxXCJYkzSa6bZ58Z8qnkfEoPHehNYYvwwemCu+pTyG5vC41rVyOGNglVIKtiNXLHhnvG3GiExhckjIsECnOw1WbBMBbOEBJmwKwrjQEa22pwo02r18KhG60z/n0uUrL3Qxp7f2desOjaOwXEKRCQ5FATVH5ivegNqY7D3LfikbXuXUZJMXZ3G5zmpoJ/MCKm48wHxjcrj2gl2k+uJJazmwhufNP9nUtcaJPI+Su4AMlBecDqtg7ko2MdXBRAfmK53uq6e26UsNtEUwT9Bl9ZxzHDL9PTKfI4qU1hy5b03WdH3ZvIEJ; 4:gase+An30ZsQa5YBDEjqtScyTLumhQk1YloJv3UwvnDER59kR/8mn14Tyl4ooOAAxRlB13bO8iFY+uSp2xmRBOBXoxP1zRHfYBI9K0CKO+MTAFzAYRxhe0WCpBkIJHfDebHWRkh5xjqQDNY1ol+G1isOProU+u0nYicUWwMCnZ2TsBp0/o31HY8sr+BhEB72IswBBp5EGAEf8F86X27gmupoQaXtOun75yhbphNRegIjKjO/1LDlNMWwROgSX3lWDpWrCW5gUbA68Lwg4UXcBSQJ8WhNtIu2eCyEaGIlDr8= X-Exchange-Antispam-Report-Test: UriScan:(788757137089); 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)(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)(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:ZMT7RmHAyOeRo81J/bDsVY3sKQG1UWMkEtnLlZ5Ye?= =?us-ascii?Q?CsjIVAwETqS/3uJYF1YjRbvsdTFWPfHPglMjs4KMAoYx0TxQZQMjvwrSuAAf?= =?us-ascii?Q?NGnsyO+W2Yn9g0lSm/5Lag0htP7FGzTYiouiuhSssI2CV5/x1mwoAKB7PWns?= =?us-ascii?Q?cxE8rDbr3NLodFYXD9XsQnmM+gtX9yy7HH08q9doKEw6Ky7y/bDNU/i+kMWC?= =?us-ascii?Q?UvaNGOiHi4h+q+LzLl0xAK9wLAJtmX7/3fjRKP5bgEfTvQx4prkEfNSOrseT?= =?us-ascii?Q?Pwavrd+J51WS+vZ1O8YFD26NghXjhVvdMOalO+zouoCnXN6cdP+xtDpICg4J?= =?us-ascii?Q?pMdeYGoMGkCKT4rVmbBaKAWDoC295X2ktAdqOPAIyL4bo73cxX7NwFUbe9nj?= =?us-ascii?Q?udzYsjpPFZ6L6l6VjmRWeaqYkF0DW/3w5wu+F+MmhqNUJhOIT/Fzt/tORBLf?= =?us-ascii?Q?phua+aAQNFwmXLd5n/GfAocfr7XnpAiIg97PTkGLHm51qYRh3VoqBEbp/yow?= =?us-ascii?Q?TgqY+1z0Urd3Q3BqY2D2I0MqSafmzFTWniEYgR5aarn9hA/CPeBuc4rw2ymv?= =?us-ascii?Q?sZ17XBHeWbDzybObgSGTX91xS7WnARo6+APSvWts+O2Nbs54HoAgSFbGp2H+?= =?us-ascii?Q?7hzaKdbcyC0C22Bdbn/OE6dRvwVtTsV3CXGtPEiwSQxNocXatpCUMA4ZjwD1?= =?us-ascii?Q?yOKZ/4pcVBefzaCdD8vaUfSY0ZvzBScTgJuQm//4Nf9AZYLkw4dKzrZqa7j8?= =?us-ascii?Q?wbuiz5PVmTKaqtcBUXKt46RL1tofTl3jTe2djs7jhDwTGOhfP2hGh05quNLl?= =?us-ascii?Q?y0tJsJZqNfPxtgmwfb3L6Te0f7llouVPTjA10avJj0K2B/a5wbwjhUo/DZ8v?= =?us-ascii?Q?akzVCwVCFnG2xgClPuCmDaNTJ+PTOoBbY+7AE3wiedfXz9vTAxyRtAyReTn5?= =?us-ascii?Q?ZAS7pl/fQh/nin9paPVljL2ZZ0j8g3dUXMCzf32tkatLgM6p/UbnAjeGdykw?= =?us-ascii?Q?aXGmNfWzIZFVY9qiCC+WZg97EGZhkipt2yikTj/tjU+cNmjJVIgbHnIyxM07?= =?us-ascii?Q?oIucebXs7KfEZOBsQjbFa04WpToAaLFjLqKF4ofghY4BvgSdA=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1239; 6:gyfE0rFSNUr828krKlP0yuE2FM7MJ5mgOSXmcsca3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6mY8yWQuzSnthHtqJTBzxH/27QYaoirWnnJsHimOn4T5535/EK0HOoa9M6Dc4l7XVdCwNgJ6w9 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2017 22:38:40.8610 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1239 Subject: [PATCH v2 0/9] Enhanced SMM support to AMD-based x86 systems. 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: , X-List-Received-Date: Tue, 03 Oct 2017 22:35:22 -0000 Content-Type: text/plain UefiCpuPkg: This patch-set introduces a couple of FixedPCDs to replace Intel-specific macros, for SMM support on AMD-based x86 systems. 1) PcdCpuSmmSmramSaveStateMapOffset - SMRAM Save State Map Offset. 2) PcdCpuSmmPSDOffset - Processor SMM Descriptor Offset in SMRAM. OvmfPkg and QuarkSocPkg: The PcdCpuSmmSmramSaveStateMapOffset PCD is declared just to resolve the macro replaced by the shared Library/SmmCpuFeaturesLib.h file. Changes since v1: Revision to Cc list for UefiCpuPkg. Leo Duran (9): UefiCpuPkg: UefiCpuPkg.dec UefiCpuPkg: PiSmmCpuDxeSmm driver. UefiCpuPkg: SmmCpuFeaturesLib library. OvmfPkg: SmmCpuFeaturesLib library. QuarkSocPkg: SmmCpuFeaturesLib library. UefiCpuPkg: Register/SmramSaveStateMap.h UefiCpuPkg: PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h UefiCpuPkg: PiSmmCpuDxeSmm driver. UefiCpuPkg: SmmCpuFeaturesLib library. OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf | 5 +++++ .../Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf | 4 ++++ UefiCpuPkg/Include/Register/SmramSaveStateMap.h | 4 +++- UefiCpuPkg/Library/SmmCpuFeaturesLib/Ia32/SmiEntry.S | 4 +++- UefiCpuPkg/Library/SmmCpuFeaturesLib/Ia32/SmiEntry.asm | 4 +++- UefiCpuPkg/Library/SmmCpuFeaturesLib/Ia32/SmiEntry.nasm | 4 +++- UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf | 5 +++++ UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLibStm.inf | 6 ++++++ UefiCpuPkg/Library/SmmCpuFeaturesLib/X64/SmiEntry.S | 4 +++- UefiCpuPkg/Library/SmmCpuFeaturesLib/X64/SmiEntry.asm | 4 +++- UefiCpuPkg/Library/SmmCpuFeaturesLib/X64/SmiEntry.nasm | 4 +++- UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiEntry.S | 4 +++- UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiEntry.asm | 4 +++- UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiEntry.nasm | 4 +++- UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h | 2 +- UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf | 4 ++++ UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.S | 4 +++- UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.asm | 4 +++- UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.nasm | 4 +++- UefiCpuPkg/UefiCpuPkg.dec | 9 +++++++++ 20 files changed, 73 insertions(+), 14 deletions(-) -- 2.7.4