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.44; 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-cys01nam02on0044.outbound.protection.outlook.com [104.47.37.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 0B0CC2095E537 for ; Tue, 3 Oct 2017 15:05:26 -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=xNLGiti0uBAa8Le2kCSLk/ntq37CedWbQFuu4no7OAY=; b=DEto/FHa+fLjqWBkmwcvF/G8jVvcx7xZHTyT5uxJfsczcuAqL4JE+fL1Z1eP1KMpFZV+ziKBE7WmE0MEQmA8A0Xjd8FZmtl4ZBwoYFie5tzvKBtm8OJ0zmmbLadLlbX4Ea4er82fsZ4oDtNPEhfSrMza7Foov9SwNHWI55ND4pI= 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:44 +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:22 -0500 Message-Id: <1507068509-5148-3-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: a72c34d6-74f9-432e-4f5f-08d50aab5095 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:Tt20SPhTOcx7RLEQqreGgVBQ7Cr5obqfOTgSQ50Q45Z5YM0gdDjdzryqnXFNdacU9BBguPfR6kePjRg8VK7owViQtVMAQmW0YGMVJu+bxwIS4TASz2hkJEVTAcxF5v4X4SlwFsPr1OnlZdvt9BhgHJwwAijXZ7A+0BJ8OY1W8U5O1ytNKEKwYDfoUo9OSz+FmHQspEPNbV7sZN6RD/Z0wlEHRh3SujneBAC5eJwuAQKwfqYlKQDSAAL+H8U8i+xy; 25:Un2T7y5CH34ay4fH7GUBtzx39UCnbawxpmIBCat+FOexzz2AzA5NFKez1nAeSedO3t3rkmykPjTk2oXUvlRndKrHh159Gkqslx+V6rj8kxuWJPQQP0BjQjG+224+rY4BPaZPIP1QV6RN47a4HMltsTi4e8zlECuIghTw5Tzf1SDWsa7D6+6zwfCtiWBbRKEusSQbkFX6F3Irnc882BAZHse43u+eU7FMziiiL0jWn8adQTIC5FwXd4CYDlL4+hTfOCJRXMGSsIEvzSigP1QDf5VjpZTOX42qHJwIfjqPKSDBX3PDhER38ZFyULNZQw78r0YHArEonqdNdq36M/ZfPw==; 31:MJmVqq7uz7xGsk52TV3iSmT0ZYcmCgFm3v8082lpezWNQVS97TWz70dqJXJAJBmCXkxSkeYkZXubvpbvqTh0kXnbmfmA9zHgg130hUBlhVKD/lJvyELbphnguaZNWT+X0nefcUGXOVmeLbYs9C8tsec6jpi/gCYLxZyxV2LuOpksgD8DmKaB419QOfotpEgjpF4aUHf7aEjHq/xERsrBCeOVQQF30a/7IT5TvdZXxTY= X-MS-TrafficTypeDiagnostic: MWHPR12MB1246: X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1246; 20:NDjUEVLj1wvQBu2DEFRl+FItmJ5MQwimcjKr5uzkwKQR5Flb2fQvK1sdEtXoz3cdi8bQGDehkC6stJUE52l7zduGHhSPVCQXpMTDYNl+WkH4m3GHS8rixfuOUidJmohvBoILkjAVe+rAq77Q60Cceq+VAcCzULnuE6Sts4LHCvXLDF9WtSSbsW8tIe9eS17of8NlREpBO3Dk0RCsYCWwMFqmuR5Bn+bdXHd7uQhO5Raez/fU5Zf02KemDz/dmEsd50UgeGyygSyD6IysFtLfffnV+xQ64AVub8Whk6OFQarxwem/1dw0pQ2xXeiQfG/yvl+qsupM2ZmOU93qUM7Q2Zi8fmGiOkJL9uIqsmYnpWUV0clD6kHynhCRn9U8bCZTk5crnVugC8DaysAM6fZCMJqqGMZB1lddLMUKbNXkwSS0GC3j33IqdZFyRf9aNTOi29YzhKiYXDEebI7h0FVqOe+hQZC3mEe6LRyQkjNqL9CvEED1BoI3/ZMGL3MdBSev; 4:4HwSM/TIXxZojXABW7eqiamBf95S0cvpB4KZJlC9E6nOrz1F3ixrnt445jZhXzctEVLLZF8pPJcIDN0NgqUGf5i3kDt/cnOHqy6bdSBKODSGwFh07Lg1SdHVSD0v13hJyk4/jrWYJCGnnrDW6S8vBflMZY0oOK1J3GJToOWqABAO84IJ8OPs8KqSScSJd+Oxz77bUu93lD/oJuOVrW1A1dRRVXPXNjtcRM+AHVcCA7sB9zhxgjXCRgcEhAZ7fzHQsakwqEF1Hv1t4uElNReMVY8Df7Y+FKnDHhAYztuRGRgt8h6TF5Jd6w1Cravq+f7u8qbIX9u4/96/KEqOnZJayoj4lcCCHjT+o/qMp8WxWX0= 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)(6029001)(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:wnJf7lTp3RL04wg6SzKOyMDLhYaAp8vk5MWgJ/FKe?= =?us-ascii?Q?kJZMxFgMnxYGqhvtgDCAvEEck9HPoaoTwJvznPqOqMKlc+qMxVBbB/kRJWNc?= =?us-ascii?Q?+Ln4g51EH07PYVSTaUCqNuO0sKk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k9F8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1246; 20:3iPc7QN+tJRv5DWEnXVCmKok/gfMVpyGEW8a2XtTFlQd1tY/89hYQNj7dpmWKDW+V+FG1O4Y6MFczGHztGsyX6dhTjlVTQUID+3Vzsnyiko92JXoi4VQ9td8L9kD6483B5fd+BO92WKqAogCZ6dfWZZRSe9TCPiavuE5zcEqLbTVr2Y+WHr725k6NdKSr+XokCx5lK3gb9qflWYJbuZkxVJFh+1hki3eSEyT4Fh8apaU+XW1G3W8BHxz+Sojt2/A X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2017 22:08:44.2003 (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 2/9] UefiCpuPkg: PiSmmCpuDxeSmm driver. 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:26 -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/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf b/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf index 099792e..bf237f7 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf @@ -147,6 +147,10 @@ gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmProfileRingBuffer ## CONSUMES gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmFeatureControlMsrLock ## CONSUMES +[FixedPcd] + gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSmramSaveStateMapOffset ## CONSUMES + gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmPSDOffset ## CONSUMES + [Pcd] gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber ## SOMETIMES_CONSUMES gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmProfileSize ## SOMETIMES_CONSUMES -- 2.7.4