From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=helo; client-ip=104.47.37.48; helo=nam02-cy1-obe.outbound.protection.outlook.com; envelope-from=leo.duran@amd.com; receiver=edk2-devel@lists.01.org Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0048.outbound.protection.outlook.com [104.47.37.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 7F5772095E537 for ; Tue, 3 Oct 2017 15:05:23 -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=DThlCVBZjxvrKHFouh30DF3Z42fj/nrAm+/zQLC+AjE=; b=EdC4NysmxQa5QD+vV8s67FeWuJ5PgRLnSd7/BF7wVQGhCdhMHntDkFD5xg3DYvsG6k4ZAleru1TT9B9Ci6IQF1ADO+PAb9GVe8ibLwTz8/9+RjNGEu+WbGNKz1pozZJ0/Qs4gpaonij/pbbiXxGclwan7JK7278isu+9AUjPLoM= 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 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; Tue, 3 Oct 2017 22:08:41 +0000 From: Leo Duran To: edk2-devel@lists.01.org Date: Tue, 3 Oct 2017 17:08:20 -0500 Message-Id: <1507068509-5148-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: BN6PR17CA0020.namprd17.prod.outlook.com (10.173.147.30) To MWHPR12MB1246.namprd12.prod.outlook.com (10.169.204.150) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5b4ad395-2082-441b-c6f3-08d50aab4ec6 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:Qyqimwd3I3sWeQ6bzJZWDq0zlzIelKI2Jzh+y5HXc2QYg4cyeE2ZgULPx4Ce62fv1GGqrRgvrn0Gmv0VWUXqdNFj1Drw9yAmUTD0aaTUyBGwg+q80wVhuM3tLCwSqXDWD6LHEqsKIDGD1HiZr0o2HXqfBBSBCO0JWMsyCRce6vIx1UxDQxTv6zi6uRZEXzHTUf4EUQvSIb//8ZQVn2gVxsk5B0UkjLKe++6Wpo6qV3tN6crw5VA7UEZtaaQbDiEf; 25:cm0lyu7Kpr4YIrFVhecbgnOhCNEpCqZzwVo0RA+jctNfXuky7zFlb/Tt9TEFCFVr366PULl2jvJ73jSDG1J+J0rLbeOuA83jHdPf0ADD1yn0AeolKgA3/GcQ7QnT/cFC8Vd/K3PTV9sib9/QU2TQ3mprtUPzD3/RtObMMdyr7+cqwEBVH7KHMD6OM7LQiZF/UngZxsLH92BVAVBGPvt4iwgFYq2X3W7UuzdlYFu4oVKkCpTQsQbQaxKV31Rs+vf7k6IStQm68mrT49lR8d8oqP1vxOJaDj3TUClK5ycW2A7+U7Oba8jHOlvOl8olfcu5jDPdJD90NqJj2aC4muRwcA==; 31:WGVEdNTTXyeIEv0E86MIddr44glf6WOoVVKhmH63+hp5K7jsft19uyxg6vD4dBvegzhpA2nuLg6YptDxDEHm9qSpZP7vGcu7Q7ZLDRKGpK6RlPjNIv/UUbK7qjPXtf1lWxirW8wJM0zCFnGVDKtfPMNAUGXOcy1ucBDB5WqACoafCms+WyFc3mG7CTToUQnoWffvcnmUUdRbXhZhczTcehugdoOfb4BxbI7lQqGKAC8= X-MS-TrafficTypeDiagnostic: MWHPR12MB1246: X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1246; 20:TM730HbQC+erTGhzsSc70Udow+QCjah5sroYNNW7MRCHVI3hGV+Jmc3iskl87s2QhrQyGL8kzy6NrMmWfANVCNShaCDkv9L4MZfg+QxCvdOWVEjdNc38UNoamEXO9aWGCzyohF1BoUvAzkJIo/bN97K8IZUVzrm876vZmxf2SCZCzT9Lecibqhb9DOR1uzVcKCieOWlfqg7++x5frtmg/ikT9EnIvJrVOLBG3fvYlNk/JGlRbIQkXqZhgZVH7wCAxS+p/uvtFEfcJVHoD19FRgg5ljuptatJeul4kbG24N0JnojtGLT28YZIkOXbqsmy9MNE+yc37lk9HdTBJpQ1MZhUcQRuuJ8YspzK5r629xqUn3yg5JBaaHgdib3JMLLf4yjtYHyXus4FKhXFuHQ1k/mc2W8sQLqY1UlTozUyd1VlBImA+ttG8lGcwmqvx4LQfgzYVE0+H2ZY1SMj7R3H7MliFPiC4ohGK9Wwo+QEt7VG6/+abwSwqnUxJNWkxSQ9; 4:WFncmk0YuxyO9kwPSh742jhxSij6u5b/a1NLkEU6Zgcuv88lgDA4qS+6tu8CSWKphESqJjxCaghM6f0lYVjCh8dJV2Wvrub6bKv1/jd77+lMAdg+9MONnv4OiAoi2swGC4QhXESDN/2+Vx5MVAsrbo0FIx62hsEfKKFUtXsD3vZw7KC1VVLnYw4ePVUsktKdUbnlRzc+rP/Q2oc5xUP0lAE9y2kTC/0WsxLPtH5aQQRkeLG3Ja7xR8pbFOJJxIz5ELrAPnNFiECtyrDgJJATuPY6EHMlP/l6933sP4b5S4A= 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)(20161123564025)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(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: 044968D9E1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(346002)(39860400002)(199003)(189002)(48376002)(5003940100001)(47776003)(50986999)(68736007)(66066001)(25786009)(101416001)(6486002)(86362001)(33646002)(478600001)(16526018)(5660300001)(3846002)(6916009)(50466002)(7736002)(6116002)(2906002)(6666003)(105586002)(2351001)(53936002)(81166006)(106356001)(97736004)(4326008)(16586007)(36756003)(8936002)(305945005)(81156014)(189998001)(2361001)(53416004)(50226002)(316002)(8676002)(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:4KFJpb5eMOeGomlFlNNLEU0xmVSy2va+8QT0gYK+g?= =?us-ascii?Q?pb6CN+nx7HJYZWS1N71WqHeackETwAL3vyU5n/3j2e07cWy41hRn65a3e0sT?= =?us-ascii?Q?443ZvtJ3FvXf9i4Dyp/fxxQjMyomHbA9CvAFmjMIfRMUyhMXb02plTucQosa?= =?us-ascii?Q?XPsMHaZUHCRMRaFRskwltFkjHm2fyxyQa0g6ZUSkJwLxMQGMeNGGfV5oWExs?= =?us-ascii?Q?zRwS0spZRVOMf+rP27ukjGQ9PURTe5YcdFdZ/iZ5dITHQEOJ5MJhab0aMLS+?= =?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Zw7l98WDeh3H/95ERnHr+rf+zEeOLTNyN7LpGLCxZ/6laAsAed87Qu5u+eVxefBD4lm/wXZN7K2FdMjFM9UsPobhf77FSMTV449+CWqBY2M X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2017 22:08:41.5284 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1246 Subject: [PATCH 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:05:23 -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. 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 | 5 +++++ 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, 74 insertions(+), 14 deletions(-) -- 2.7.4