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.87; 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-cys01nam02on0087.outbound.protection.outlook.com [104.47.37.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 8377A2095E537 for ; Tue, 3 Oct 2017 15:05:24 -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=qBdjx50mYh4GDowZAdE75uz6zdleFM0BvZsvjDFj+FE=; b=B0MeypWLiGMX3VlUfcNit2erlembjB7soiTHLAbAJgaZlksbbfNLydSgKwibr8Rbyaf6B7VivlmvtR73bCYdwDLVRrdOKscNkidlnrD84y6yOCLMVvwZ9Iri+niJztG6OVBAPl+/xSw1hIMu0uGHXcsMNK1IvVumO+PnyfvtbB0= 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:42 +0000 From: Leo Duran To: edk2-devel@lists.01.org Cc: Leo Duran , Jordan Justen , Jeff Fan , Liming Gao Date: Tue, 3 Oct 2017 17:08:21 -0500 Message-Id: <1507068509-5148-2-git-send-email-leo.duran@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507068509-5148-1-git-send-email-leo.duran@amd.com> References: <1507068509-5148-1-git-send-email-leo.duran@amd.com> 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: 58b731e8-29b6-4051-9603-08d50aab4f98 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:tkIMOTHLMvj80BQob6Gnzl7epmCBzxcyXMwZKmXXAILrtIrx9fW1yAVZi4Kle/OC4argxdwpwXy/OlNTm0+DnFlRofBuVRp4PjDBtEK+sJFVFdY5ZZazRSQoeSjPZBLn7ZeZfL8DGLP2mBPx6iZg88/bQQn4524YBBUOWPCgm55SW2AoFu3fy5+DDB5UT5hXIfiwhAzh+t+uiCdM9qqA4L9cYcQt5R4l8tyPwNFhCSLCSR6LLLYr5/EiGmRz2Gck; 25:WtaFcvnhbbb51Dmj19W6hj7U7U/FzS2cbQJ9zZAScfL3I0y316DhB893/TGajzmBuEHyluREcVX1hkqeFJWI1lIyJFUfpNj6SLmG28vG6KOJKFkLA4HIS6XvLyjC+g571GuJNmw0L6gQ7DqTKtIfQF+vhv7FhAN4GIzHQxdSCcJmRxJJOyLCiMpalquKk4sRQq4SS/+TZy3wChhxhwUt7kLa7PEgJmLVxwruH4UcfJVhoRF9z701p7JKAsFLnIgRXN6YMIK0xtvSSYNG23kBB5/5z3boEy6L/IhNyGwO5S+rwJXMc+iQu/t6jX1+bSG5crH1a5lpGv5QofwqWwmZcQ==; 31:boFpn6kdIU96mGrPKjPAIG56hsgkXRcE8RSrWfxi5hS/U7x0/xZQESkeTmHGJX9ULKJIShlHOr2mGLvmaN4m/BEIoybDw1HDVOfOxyuLX4nlVc23Ci9HgZroi5FLxmKkVttC2rY7Giy2S9T1ek6+oP58gGLY9FFzJGLMWt/9PGzNZM1xd0c3qMa8rsie4niwanhlFZEKsc0kM7Y1dvEWb5IkNM/YC2agOthncyNOguI= X-MS-TrafficTypeDiagnostic: MWHPR12MB1246: X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1246; 20:K7TUwV+xcEj4zz4AOkCKVRo7K7NHIOcC9GQxpx0k3Y6/zjqgVQyTQBfbyesv2VjCJ6wKI3MOVzN3s6Et31QlAXjITbGZGCvm8JJ9Uj/DS2vZLdYuwRBQue7YRQKe+PPSKHMBv6AczWXyYqt5WVi8p7xCB4RfaM9flRBwQ6rtCTBb/VC/69rg6FRvD9xHfORW5JeLJ0qmywCGWl4Xw/SIDiVFXHi2JiC7+hptbgLB0eT6d5GzKRLdzOKy+qquH2OXHk7opjhM42KcndRvRqhlKjFbp6lpPTwcvSTObxChKxdYjZ76sQzc4EaV1RdTd+GnVnsXuDe6Zn+gJPkFUSg1c94uYfa31Av4e1AhBxJYGSke3W2+Vbs+3nAxRSPahqR7IzTNy9G2xkQVRRu/jhkBbwNZtse1Gi5nQ+I9aguno9dhalgDPoXwixUCY29jzBfL/AnG5G6VQwWnbOmlC0OvJqMh47qhE8fOSCfla32oV3S3i9wH9dScgVLSEdTdqMDR; 4:T3qDahuC47x0h7XBrsDMfsdy4gxB0YO9CTN2xAIdAVsW6PfiYMkzV4awtosfmY/cdU0m7VzPI8NmCmEoE1pz5la6xGFIpe1fu+4hAu7clMyVlx6Oq6Ps0xWvlk8UW2dEckdKz5ZQC6OnQGtinaPO47cg+FfanH1XGdxTSdBFkRPm/3HegB7dhS27MVX1/4i+8akOWGtJWprFEfJx1O8eqYtqXpsV3hxs1rIumR4hMP28HFpiF4EGgguLJxXEg61/6byeXir3nmOXlQIUabC/zM3mFMqak0wQ4VBhTnP5vfeZYTmI3TO98mgrHnpfdfolNRTulYPah8iqUxCUjYNF47bv2aWJlafXadzg2rUtm8s= 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)(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)(76176999)(50986999)(68736007)(66066001)(25786009)(101416001)(6486002)(86362001)(33646002)(478600001)(2950100002)(16526018)(5660300001)(3846002)(6916009)(50466002)(7736002)(6116002)(2906002)(6666003)(105586002)(2351001)(53936002)(81166006)(106356001)(97736004)(4326008)(16586007)(54906003)(36756003)(8936002)(305945005)(81156014)(189998001)(2361001)(53416004)(50226002)(316002)(8676002); 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:INSI+G5YpfTo960db4rOShynhayDTB1RLhXXsjIDt?= =?us-ascii?Q?2WGOJEMxYZVLigk/5+LZjCa0/sB99P02Sc332KyHlbvXrUacjUY46QlJULtH?= =?us-ascii?Q?giiBhdvR3Ty6MPptyZBDuz8y/0HIWmYR6VDNZwT8SNdx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osticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1246; 20:DT0a+hBjIkKdE7c+WJOBwu7vJhFtQQyP/hA5u4LwzxLpQoitCwXeJjLZ1c6ewQW8f1mjxwr7VXuyG9khJsa8bO/7gTT6ZSAajWQJlJvXZkylXHdE7k1bI92gFhjwj/mUKorpO9S+hO6r1TeqNcn2fxeCdPOh8hCeqX7+XvNy8nNcz58sDzykwi6KGhsD9pVpAJoOUAKI1eRnd6nHJQUmiGdIsRqXBvxKkIFrIzK/4z/YrypIQaq4ODNQf0lj/8LC X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2017 22:08:42.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 1/9] UefiCpuPkg: UefiCpuPkg.dec 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:24 -0000 Content-Type: text/plain Introduce 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: Jordan Justen Cc: Jeff Fan Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Leo Duran --- UefiCpuPkg/UefiCpuPkg.dec | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/UefiCpuPkg/UefiCpuPkg.dec b/UefiCpuPkg/UefiCpuPkg.dec index 3bd8740..c92c56e 100644 --- a/UefiCpuPkg/UefiCpuPkg.dec +++ b/UefiCpuPkg/UefiCpuPkg.dec @@ -2,6 +2,7 @@ # This Package provides UEFI compatible CPU modules and libraries. # # Copyright (c) 2007 - 2017, 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. @@ -204,6 +205,14 @@ # @Prompt If CPU features will be initialized during S3 resume. gUefiCpuPkgTokenSpaceGuid.PcdCpuFeaturesInitOnS3Resume|FALSE|BOOLEAN|0x0000001D + ## Specifies the Offset of SMRAM Save State Map from SMBASE. + # @Prompt SMRAM Save State Map Offset. + gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSmramSaveStateMapOffset|0xFC00|UINT16|0x32132113 + + ## Specifies the PROCESSOR SMM DESCRIPTOR Offset in SMRAM. + # @Prompt SMRAM PSD Offset. + gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmPSDOffset|0xFB00|UINT16|0x32132114 + [PcdsFixedAtBuild, PcdsPatchableInModule, PcdsDynamic, PcdsDynamicEx] ## Specifies max supported number of Logical Processors. # @Prompt Configure max supported number of Logical Processors -- 2.7.4