From nobody Thu Dec 26 01:40:19 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 1507143761293719.9629772454016; Wed, 4 Oct 2017 12:02:41 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 70AB220945BC0; Wed, 4 Oct 2017 11:59:18 -0700 (PDT) Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0063.outbound.protection.outlook.com [104.47.33.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 8388621CF58DE for ; Wed, 4 Oct 2017 11:59:16 -0700 (PDT) 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:36 +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.33.63; helo=nam01-bn3-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=OaU0uy9QjG2qMsUWpJGZdxnTAUB7qFZSPqoq5cezzcg=; b=f8cIc6Kf62s7ormYHuHhD9htmti1kg38hE0VFIzX5Xit2Vc3IyHhzyrz4WmaO+X7fIz2JqifaiaZTnl5G4I3Vr2mU9JCWMQ/Eyf2ic7l2dDGwrRj8zZWAi7yE5TOXehS9ljFIY+i8c10rQ+pVDh9pA2/Xa6kSOM+LoEw0LWcAG4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=leo.duran@amd.com; From: Leo Duran To: edk2-devel@lists.01.org Date: Wed, 4 Oct 2017 14:02:23 -0500 Message-Id: <1507143747-18377-2-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: 8a4bc37f-293d-41cd-b453-08d50b5a7a1e 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:ekL+yT/zLvntM1ULEPCJ+Qr4q5KzuTlsoxWjUi4tg/1Y3hWzRxR/iCFKQYa9YkZaBK8a3fROklDmIRZ7PVa0FtH4fb+qLxSI/VdJJuatVD8zUmPA9GX2jrfc8kJPZJ1cUm6ALZ0dBRT7HtLR+lVAJbNUVurfdHXH+JyHEPBLO7XGcqT7EEtsasJ7sPlPWbZUGvFh+lVFL6VA//A6b7wWKBVgUE/GtzJfZwGtriF36BJV8z3sEossF/wf7/r2sTew; 25:4+wpynF9IpDbYotn2q3SBx2rAu9QRKCGBn09UPv+7uKZGsNnH+zqi1nKMs1oWB57bZl0I+ntleA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5sTM8WzAoeHH+LaW5Zf1jnDWa3mb; 4:ox+d/hCst6sVeajOzJR7ZNhsREyKxFKB6kTPqck4Qvjg6aprrU224H/2cVHYJMN+rxmgb2F8Z6jkW/KmUk+kywqjr6CxVUGo9/VlWL7M6zcUzFgTbKYoP8QgRFWRhGtRnym1eUPQBKiwGcYZ7QaOc1/8ct93LFo7PfiC3qMGVV+P1qXKNxvrAnReqWndZFpNuipydkDl5X3zL7OxGw9488MSYYx1lgY7UADKz72tGH8xvViM8TWJixwv1hlTLzbxe73bzkXAqRABx3U+HN/cT09ANyPNjiKKAX/VD6s9xwxNl+1fwuG4W7DJos2K2tderLWjn6Eo8lwNKOVcopQVAoMDHP78Id+t7ZTtpNMYAwk= 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)(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:VnEvcIkkUwu6jERAYi4X85gWb2yIjKGZKP2fzR9WY?= =?us-ascii?Q?rHR+Joj8Z8rDLBfXWW72xvcD3wMjA2gdZ6WGoMZrlO4bWi1taKemAZg/C4ti?= =?us-ascii?Q?lzFeaaZ4F64GygRyxlva3OGjbVj7rgFrgWB2lQVYj6u1sjC2whlhK4ryWSLN?= =?us-ascii?Q?EBjwnpfX/VxNHmpqbyz8iIAMnvjN86Hsze+ioCaH2Rt+xFK9da1k4Jm4lsmd?= =?us-ascii?Q?zqeUyzcYb9I24emKUv0A8OFWIpaRKF2zMCdx2ypvhpFbj+S5C9hMFoxa7srA?= =?us-ascii?Q?ZGVRH7K5dtyDtReL0NTSEh2hTnxB8TMMSDCisGk5nql1otc7BG+sh9b//YAQ?= =?us-ascii?Q?JK3+qxM7So53ZJKb6Flp8KX6eQfpLLyiHPAJ82KJ+NKgWDbMerkzFMcwL53G?= =?us-ascii?Q?wENvSZmWw2VCMXp/85k/TvmVSQum9JygUsvMSEUIEZce16PLcJWgVQF+WwDK?= =?us-ascii?Q?W0mu8FHzfrSfFUDWYT3P8GZvUffnZXkRgCWXn8UzuuOWW+X744rv/nJFGK94?= =?us-ascii?Q?FtA+K1Mc6JzAMEhGTLYA0x61TGHBuLdxbMmR7EctJo/Z/6vMkKhchMTaKy8+?= =?us-ascii?Q?Yb8hwQtEnTGAOZM3kkLAngjOLqRHqLE9/5AiqNY9VGwQqkHsCs78SivnksdO?= =?us-ascii?Q?Ta7qFzjrjaRPFSscK6SYRsD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QFFJ4//ORuQT7np0RCYKsFzT7hPfy7eDqumz4iEc+YgqCflnQGe4cA1Q==; 24:pwK7PbPeN/RIOfnZCya2bGz94DDErWNKD0tJcVnJXkzrfybDqwKyPtP0oaOksGQoaxGGFHpyKJoWPd4Vg+K9H2xPxCCxKbHIesJihVu9mEM=; 7:KXS+BN+IpajVpemhb+fBiUF598cAU5eQdByliLCdfMfCIsC08O0kgoj8hmCPjSW2mYv0QZcCJ11R3wO3yOegSoSouSm10XwBulecKm9tnFiQYZJf7aQ/Ab+R4LlzEQbGsHZ689wxFHQSlHAugo1zWuR+ITUcYp3KwAu/FrjLWwLkvSXXvCnqSlZJatRQU1uIT/vQ1fRbTbGaUV+cjm4VJvK/r7HxMpYUpIkhVAJopx0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1246; 20:LhVFkzhk5TR+R/yilKHyBWQ5zgzRxF3KKiAZJvGbeUdKIxZqvSrKZEXVj2Sjw9ome18udQuQUGkQf1CjtYpMkTcTKP7zo3y/1c9+dcJ6vTGzHotuZXzGUGfBxwngfJZ3snQvASBt20176vmpazMvWJK+0ulCeHQRw7BUZulIm2ogJ4ypSMENM1c/y1oGJlJbgn5JIg4pF23k9qSjurfF/ufLLn2GYrwNHE/hD/Z3Zok3LeThlckXHg9F3oDouAnX X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2017 19:02:36.1744 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1246 Subject: [edk2] [PATCH v4 1/5] UefiCpuPkg/UefiCpuPkg.dec: Create FixedPCDs for 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: , 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/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 availa= ble under # the terms and conditions of the BSD License which accompanies this distr= ibution. @@ -204,6 +205,14 @@ # @Prompt If CPU features will be initialized during S3 resume. gUefiCpuPkgTokenSpaceGuid.PcdCpuFeaturesInitOnS3Resume|FALSE|BOOLEAN|0x0= 000001D =20 + ## 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 --=20 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel