From nobody Thu Dec 26 01:40:50 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 150707032972720.134421768461266; Tue, 3 Oct 2017 15:38:49 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 93F4A21E7820D; Tue, 3 Oct 2017 15:35:25 -0700 (PDT) Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0068.outbound.protection.outlook.com [104.47.32.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 8CF1F21E78207 for ; Tue, 3 Oct 2017 15:35:23 -0700 (PDT) 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:42 +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.32.68; helo=nam01-sn1-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=+otr5KT/b1q9xgKCg9NbMBGo96uTvGzOqcC19Rl7DnI=; b=GyZTSSPjD+W6L5Kce5EWJ9h214dPZLF5djKdR8jECKfkPYBf1nlbxINv4MQjBbZF/c+biT45L6BUsZCwa8Mkn5SQ1J4yCiQQ9xABVfs1eDpvOnhpJZVFr7Ue8S72KrBMfpjr5/rP6/DRiHfW20EGaNdhj5pHzxeDxl2T7AJR3Rg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=leo.duran@amd.com; From: Leo Duran To: edk2-devel@lists.01.org Date: Tue, 3 Oct 2017 17:38:18 -0500 Message-Id: <1507070305-6727-3-git-send-email-leo.duran@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507070305-6727-1-git-send-email-leo.duran@amd.com> References: <1507070305-6727-1-git-send-email-leo.duran@amd.com> 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: 2c277913-3b4b-4e47-a207-08d50aaf8044 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:NWcDiF6QecKBnEWs7cvHz5heW/S52A/6edmtKe3TwLxeSogtedplPuglQoIafDb4u3C2jczwG06OiskyRm0Qi4KZHBUssZFeA51WFStO6syWOe1qJmMi8Im0KLCySJjrpg8kbnw5whk6sq8quf6tLl1uosCs6AyLTjuLpBGLqiAwlU2tUP0pKJJ5w204bBSsPVuGUfR7/AP+SLV3RngH8916kJsOKJYynuhHbF95ARxrWkqa48sxr6neuvOZkJUE; 25:JCsFzqDqNh92mE94uupS6K5In8D7t7eaPwAzBcvlxGfhF2D3N92+3PPORWViw22CtYNCXUMLuOvFB7fFbIL5CqfwNZuquk+LaQAV1QqP/d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o/; 4:LocyzZORwEy9rnXgcK+ZXC5JTqh3q//MEM2aa6Zzoi8MaZyFiuk7t6fIsGpLgTvdWlxTCQIPtfevW72KUSL8EqHYXZAC/TZvozMhk+gEhtgLHFBmdhpIG8PNRhUR78/BkTZQ+h63nZ//ocKZgqeaPiqR5IVKik+Vvb/cxiIYXd0Zw/tvwaIddAXqb5WB+UP1FA2X1GRNopC8sJJovdfc4fFTHOGdI7fqVjBU+Z9Ywno/KlCtLcILPk4ovacwzbexzMm9Dlt+j38nmnksGxs8V81a2hb0ruVIExPeSyvDR2wkA0wkVlaupkcMZb5R4cHiQU7giVOapNkcW+uPp3Dd/BotIH/1/wHjCG+bNVYTUZA= 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)(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)(6029001)(346002)(39860400002)(376002)(199003)(189002)(305945005)(189998001)(6116002)(106356001)(53936002)(7736002)(2950100002)(76176999)(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)(54906003)(81156014)(81166006)(478600001)(6486002)(316002)(16526018)(66066001); 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:tobMltbXn2xukM8gquNCJPYijn3gzX9FYat4y8cFP?= =?us-ascii?Q?54RNIgpO/HCTJ6qwoHQF/0Bd9LRyYUwNKrndBZA7UmpRSm7vgrh/JLLOoXij?= =?us-ascii?Q?j29SxOT2M2gGEhbVbUwPWBOJbafrtMAn2mrLqTh9qcbEB7n2Wtn51HNvgkfh?= =?us-ascii?Q?XS4IVELA0rs26NfEaYk7L4zkMxyXWPHtonUesHEbxl9sZ3qmvC2FEhIajQG2?= =?us-ascii?Q?x9haIy0zTAGmqjNu6WSgMdCPHPB5p80PKe4E9eJJo/oUjFfW6YLtld4cnhmW?= =?us-ascii?Q?5rKBX4JO1/ABIObHjmOxJBtbdy2SdWQEPgywOwJfCZyMKC0I/kJrR7CU52xN?= =?us-ascii?Q?ShaQs0EUa/zU1pUILzDQRizlchdouQl2umM6Kll7y4RT0mgsLdDhpvkBZKBi?= =?us-ascii?Q?LsDdeaRDVfDWbI+Lj2MAxLRHTkrbeiJfPSTodvLZIzVyV44JStKJmZ/HP/Fe?= =?us-ascii?Q?MEz4pHLV4QqfGKf7Hqubn0oi0MqPj/7PTXJyITjwVJr6Ayaw7Nvi1SfD83cP?= =?us-ascii?Q?iRSfPhCVAJPoxWh69hqI0Pn920m7vMQ6pn1HhEZK9a7Np45fAngS2FvmISII?= =?us-ascii?Q?8IXacIJRc40jJwDcj0wzvIHOw5j/JD3F5xqymMzpB+ySbxnv7fexGPRmsdDW?= =?us-ascii?Q?VTpSopJ3ER5mRNXt9Z0YQo98T8nq9vZ1uXlnhHi/q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r4NUotCTY8qvr9mNcidVT7mKB5tJIRYg8kWaOeA==; 24:7lgEJEqVALfQeYSM8GEj78BdG6LDq+Mb/E4gZMSFzaEHagMnuFPzFHQr1prLuqQnnYKwMA3/7FEApHR5Iwq4VufFks1TmVrFE7rc6hz9CwA=; 7:59NvcUBZCwpKthzG90WxtZmMERYguQLQDE3KFBZQ5ed/xyU97XvbXXia1EQ6oxbCYHsRqH/SUmKbc9hvG6FbQAJcKaFaOuc75wQ5UAvc1Yh6/M8rvr33M6wO9D41y21XEtdv3cbXvJxu4aorwR/fUQrnmKZ2SA4fyZYch7tn+zUz0+umPxuWsKH/exSd8l8wYtD+zohNSLxZFhF+Pn7oDjsRQ6F8xX22WjKtYKRS6MM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1239; 20:AzC7qXAqyf8zwlSC/DYfqnRybeKpRpt4w8hyWEiy2A5usJWRt4U8tQ4W6acVXEmmlEIpgLtrroFXD/Z9Pe+GWyLSX7R6CVYvBU5oEnYnBWyCifFmGwxcqvi0DFnjZaom+U63Bq8qAKW8AEUa0GILLgUSMZDN56ZHEqTrG6aO/LHjSQvX0pFPAG6esDbAtbhv3l5mpxHrqXe9d4Tw9qCPz0IvDO42jcIfaUX99QG5AUzS1eX5b9+KTSzwRCT2YthF X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2017 22:38:42.3610 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1239 Subject: [edk2] [PATCH v2 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: , 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" 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: 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/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf b/UefiCpuPkg/PiSm= mCpuDxeSmm/PiSmmCpuDxeSmm.inf index 099792e..bf237f7 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf @@ -147,6 +147,10 @@ gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmProfileRingBuffer ## CONS= UMES gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmFeatureControlMsrLock ## CONS= UMES =20 +[FixedPcd] + gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSmramSaveStateMapOffset ## CONS= UMES + gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmPSDOffset ## CONS= UMES + [Pcd] gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber ## SOME= TIMES_CONSUMES gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmProfileSize ## SOME= TIMES_CONSUMES --=20 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel