From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=helo; client-ip=104.47.33.89; helo=nam01-bn3-obe.outbound.protection.outlook.com; envelope-from=leo.duran@amd.com; receiver=edk2-devel@lists.01.org Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0089.outbound.protection.outlook.com [104.47.33.89]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id D71BE20945BB9 for ; Wed, 4 Oct 2017 11:59:17 -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=/V4zS6gcS4j0G7So/ifNWqKvMW4c76iTJEw+WnnGPMU=; b=IrLK46zhrcCKEXd57h5r15slTVt0wTPANlUcCJYlXvo+MOiz9zHbxx+tPQ3PzaLN1Fjgn/E2S9YDprb3yivGzXlLLsCVvJs3HOO4HF/1f3CS5Q3/v+k8cX1eVI9a0EhBoUW7kITNiBOnYk1JGx/N2SnIMc1njdgJAVn3XNE42Ho= 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; Wed, 4 Oct 2017 19:02:37 +0000 From: Leo Duran To: edk2-devel@lists.01.org Cc: Leo Duran , Jiewen Yao , Ruiyu Ni , Michael D Kinney , Jordan Justen , Liming Gao Date: Wed, 4 Oct 2017 14:02:24 -0500 Message-Id: <1507143747-18377-3-git-send-email-leo.duran@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507143747-18377-1-git-send-email-leo.duran@amd.com> References: <1507143747-18377-1-git-send-email-leo.duran@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: MWHPR1701CA0004.namprd17.prod.outlook.com (10.172.58.14) To MWHPR12MB1246.namprd12.prod.outlook.com (10.169.204.150) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 888f379e-3911-40f7-e8c5-08d50b5a7ab4 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:15v+bvyiP41UfoIwRnnUZDNy/PKYHVIJchuseSYl1u7zn/mCYT4ChcuqCv7U2vexddfWIunKbUEW3L5R2ty2WAaTsDdY+sKDveaWIvbO5UKRvM7QM8KqqTew6iwI/x+6tt3IZpkeSs/T56uU0Wv62tvFqlJ6UATCNsTLAUZDFK5gMiXdsMwvgrdQFBG8VfDxLOz/yVuKO2rGKurrxrv5WSWFv4juClb3UEr6//w0D6XNd29YgzfKAWkUHCl6ihrA; 25:dOsKr2mSD5UbJi4IzDAJbzCNDI+FMOy75ARuBrvL6wNOVChWbZaKt/OQBums0AMPtQkrplT0fwDXiCqcGJ3gL78NJZyuERKF75FAurCvAGJaK71gfhBS/oGD5BioRip/4EFGoaUokAY5hSWhCAul2gYmEFX+IGzk4p+u4vw7QQFjf9XNw5D7xAbMH7c/QgOtGZ9/82pUzCsquxVTcJCdc865Ec02rikO+OnWnIR190/9Wk77nLOrExBbijZZYQXhNGLN5MraLBjU/6xRm9Om4KDkf+PlkhOnRdP2VHXfIKgkN8FKwAmfF5vMd0VmcW4UwaB3o9TjVQpS+gjOWSkoeA==; 31:iwtHAQFJRFszBiJpKb0yhm6rxOmmHGoaXnDTM0NJagBdlSJx4zFUI/wPgBdt2H9oLBIhvakdnEgqckgPoLxghhhhWgCCAifHwo8aCRJ1C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Ph6kJtq7Yinv28= 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)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123555025)(20161123558100)(20161123560025)(20161123564025)(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: 0450A714CB X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(6029001)(376002)(39860400002)(346002)(199003)(189002)(5003940100001)(48376002)(3846002)(76176999)(50986999)(47776003)(66066001)(68736007)(25786009)(86362001)(33646002)(478600001)(2950100002)(16526018)(50466002)(6916009)(2906002)(6486002)(7736002)(5660300001)(6116002)(101416001)(6666003)(2351001)(105586002)(36756003)(106356001)(53936002)(81166006)(16586007)(4326008)(54906003)(189998001)(81156014)(50226002)(8936002)(305945005)(2361001)(316002)(53416004)(8676002)(97736004); 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:fw4Ukx/eD+9rrRZ4IxozxPSQISovh4Kuy/KCvjq7X?= =?us-ascii?Q?PG5TWGAW2Jdo4tGI5P1mwOWJ8YDXC5Ts7spOOWe1Xajz2EWiYTml8G7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TcW0aiBqQeL9pODLB+0Wc/2ur0JyDyjlTGTw+m4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1246; 20:NmARshL2CdBC9BqHqQyfHYcOm1BQy5qOsSpJdWBM7rYm3pV9yaZM1DnuRFXUz/KIZ4pBAT52PZ9iUJ0HHpy/3R8kyYisMr2yjTZa6ijU8BJKAGA7a95oEddIQjaWwh+6ZfzM6nt5W4qkLk5mRlrpCzry+jXa2hJWUUW4Vny/VTQihgoRn+Yz6Bhj/g9BA4OPyEz8x3dt+CVNejc+bxF1XTE+dG+a5b2O9Yg32VXInnWhNW8dSVuf1BkItDHH4Wiv X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2017 19:02:37.1431 (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 v4 2/5] UefiCpuPkg/PiSmmCpuDxeSmm: Consume FixedPCDs to enhance SMM support 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: Wed, 04 Oct 2017 18:59:18 -0000 Content-Type: text/plain Consume 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/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