From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=helo; client-ip=104.47.40.53; helo=nam03-co1-obe.outbound.protection.outlook.com; envelope-from=leo.duran@amd.com; receiver=edk2-devel@lists.01.org Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0053.outbound.protection.outlook.com [104.47.40.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 439A921CF58DE for ; Wed, 4 Oct 2017 11:52:44 -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=8JJiOsbn2U/yc/baOYenSlI4HDLTIITCHn3ZOrM3HAQ=; b=ZUWY0iUjDFUWe/pHbLArwhPf2cnjhdxOXU19clUUxxRfjw/lwAO7n4ylRacecf4Su8PFNCKsgE32iwCbdWnOdzX7c3Vg9c1pjFX/ZYwldt+wubyDd3sloPUq0tvyVhszP+pK1EN2AX3tPEZvlyaS6tvfYKJZLgJ+mIiTnVpSBn4= 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 CY4PR12MB1237.namprd12.prod.outlook.com (10.168.167.12) 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 18:56:05 +0000 From: Leo Duran To: edk2-devel@lists.01.org Date: Wed, 4 Oct 2017 13:55:52 -0500 Message-Id: <1507143357-18181-1-git-send-email-leo.duran@amd.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: BN6PR03CA0062.namprd03.prod.outlook.com (10.173.137.24) To CY4PR12MB1237.namprd12.prod.outlook.com (10.168.167.12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7c3b274d-e183-4744-5acb-08d50b59911f X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:CY4PR12MB1237; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1237; 3:ObG8YrcLr/eAYqguG4Ul3+VGJWEU7BJ4J/vvsqKGyJLhuAqnkKGtNNOJwz9vM8hXGLOEUOMnW0zliutcDZWC8UWLp0vsy5VdwY+PMs0+8ralNt3+VjEjQwLgAX2BdzvRwG+3Vyq5zTEJ0YgY4Yz1P+THd3zOuhMBOtT2R6ZiJvnTJF1FaN7/EC5hCykv9K6uYMpZT2oPXCoQ+I2/8s3Etl+7qKgx+teu9lfeCcxticAqSd8bICvTzHPaAkr8M8BX; 25:VLnoByjPrT2nUQh3msP5wzxPzBZeNd2zgTsMBtIuYxa4BL9i6O0AygcOF3tCgUYB0m51DC8eRJBQye4xyrC3vOnt4799pkXo+eZzddxP7K96C0pS/d8aXxSmBQKFh1NAJewugymmS0N+UDy3FM6eAnMkdBHkOw08rKVMLwHNjZnnN7jTKyQaZ5dQ6PYhFH6q/KjHKUt3Ck4EeSKX2iwZpic66RXItP3oCK51n7TxoqY++F7Ugmre+sMQbZAF2P1MeynuwyjKAOJ56cJ6RIkpRE3hHVSU8B5Nucrho2EC4JOV7YQeK6XVXCMbsBidOnrCJJpV6w5QOXSR6sTBrg5vnA==; 31:isX8kihSt1doSeDTe4fnUttpLwlAQt3npim8Fu+EIPPk5gplQa3Mf0tKLSbBrfaXSAusosb3Pi5J7zsmmmTeC3e7Xa3lwDalwYDLzx1EnrUgTmHFUlmJmFCMNVZeZlRlxzix9PXniteS+fZCmQ6AmecuJhcGpZ4FZxidJTn207jeW/MxcNzaxB7fQ//EuTJ7Cvv5IQrpxUDLiEMs2jb4PeyvoUtMlJnILoBgiCPcFZw= X-MS-TrafficTypeDiagnostic: CY4PR12MB1237: X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1237; 20:bnR/2eno30HxDkrWHQW7rxtjsabYICPXC508HUZOzDzItHXZ8rf9uWyMOXENmnW6KrP+LosrPebZaOHuM1h3cvMs+cLNvF7mlTZMOj6wkgLbNG+Hu4PlTiFCgFuqyXNGuQPgCmBjqcCHQgoDDQo6Xf4HQmMgsYaQZ5TqhFjgGMO7SdHAHxdMdqMcfYh6gFBoE9+22fxc4H8XUl8FzaNHb9zvMDr/UGreubCWSRBisZL9fntwlzmE61i2J0G7Rk5ynqv2im+ZItX0FK422xurOWEXcXbLjZMobY1vEpWHSBkxvWX6m5d7hY3VKH/wPrWLG+zD8zZbNzBB5/SOMzgfuD9YdQMax/+7esFcHD1HDXKRXT551d0SaZq47Dh5QU6ExkFat4sx8zHoCkZpCVt2/GuBHaJ+W2ftXwVAAzvqlI0MmfTyKhEDE+XCptPvYSYAYJQKwmfRLtCVXa5lzCoR8OJbvlsRh/9CTpOckpigX3sATYLuwpsaeL+Zaz4ttvsQ; 4:N0KPgfMUervD7qW5idhkxxi/hgM/BaQTRbh19+Yb6tONs9ADgTT3r0CZ8ZUIufkTFDrq1ocbpzDXgC5gXHPf0XPzycx9Z4SBy/cruCA+oycVteEd6fZGLCCln2urqCPr8SI8O/iDY6DjaXc2lWygNB2G+R89wUWSxUrhyP8RuWRQ+2abxz7FLnr8XWfIk8hb60971mQLQboqxOj3BK37y/7cDfOOCfon2I6UCIMRnuGoN638YAQ5sOcLPYzFDUgxUPG3hEnbxeN9b9lJDiIKdAV2ons2mG8d1EaOA8NBgT4= X-Exchange-Antispam-Report-Test: UriScan:(788757137089); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(3002001)(6055026)(6041248)(20161123560025)(20161123562025)(20161123555025)(20161123564025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR12MB1237; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR12MB1237; X-Forefront-PRVS: 0450A714CB X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(39860400002)(346002)(199003)(189002)(478600001)(66066001)(16586007)(316002)(97736004)(6486002)(47776003)(50226002)(305945005)(36756003)(6666003)(2906002)(189998001)(86362001)(53936002)(5003940100001)(101416001)(68736007)(50986999)(81166006)(50466002)(8676002)(48376002)(8936002)(53416004)(25786009)(2361001)(2351001)(33646002)(5660300001)(7736002)(6916009)(106356001)(6116002)(105586002)(3846002)(81156014)(4326008)(16526018)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR12MB1237; 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; CY4PR12MB1237; 23:+/ehlxe9yvHhSffnAr01v9B154s3dVMyYgu3D16bH?= =?us-ascii?Q?39b+3wpJgSVAWBOnnVd+1SYYOHV10qXGSrQwTCX/fFwtVz3qGkS84/zNHnwL?= =?us-ascii?Q?QxAGL6qWKFxVjlq2t7jIoEQ5UyVyu4yQeO3/fhnzspCvZicAamuEUEBrd76Y?= =?us-ascii?Q?mwQ88ETBd9wwWL1R2r9XHfAdywJ17QBGD1GgvRd4IGhH4CUhPaiYev0ePxoD?= =?us-ascii?Q?/Z8pAJoeEe2qR3eZ560BCG6I6Ry0+/XCUFnCq5+3RFUNlcgUTEVKUrZ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2We83ahpwEwRQKLMcTtTNVf35HQE55StxodNBnVK7xePnwoZSwLJ7syZsozpCC0SQNZugL+ZoqRNZwEa4XTaTlpw/LkoY1GIyH X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2017 18:56:05.3632 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1237 Subject: [PATCH v3 0/5] Enhanced SMM support for AMD-based x86 systems. 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:52:45 -0000 Content-Type: text/plain This patch-set introduces a couple of FixedPCDs to replace Intel-specific macros, and better support AMD-based x86 systems. 1) PcdCpuSmmSmramSaveStateMapOffset - SMRAM Save State Map Offset. 2) PcdCpuSmmPSDOffset - Processor SMM Descriptor Offset in SMRAM. OvmfPkg and QuarkSocPkg: Changes since v2: The intent of this revision is to maintain compatibility with existing packages. To that end, changes to OvmgfPkg and QuarkSocPkg are reverted. Moreover, pertinent macros are replaced in the C code, rather than on header files that are shared globally. Leo Duran (5): UefiCpuPkg/UefiCpuPkg.dec: Create FixedPCDs for SMM support UefiCpuPkg/PiSmmCpuDxeSmm: Consume FixedPCDs to enhance SMM support UefiCpuPkg/PiSmmCpuDxeSmm: Use FixedPCDs to enhance SMM support UefiCpuPkg/SmmCpuFeaturesLib: Consume FixedPCD to enhance SMM support UefiCpuPkg/SmmCpuFeaturesLib: Use FixedPCD on non-STM library UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.c | 4 +++- UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf | 5 +++++ UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLibStm.inf | 5 +++++ UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/Semaphore.c | 4 +++- UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiEntry.S | 4 +++- UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiEntry.asm | 4 +++- UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiEntry.nasm | 4 +++- UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c | 10 +++++----- UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h | 2 -- UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf | 4 ++++ UefiCpuPkg/PiSmmCpuDxeSmm/SmmCpuMemoryManagement.c | 4 +++- UefiCpuPkg/PiSmmCpuDxeSmm/SmramSaveState.c | 4 +++- UefiCpuPkg/PiSmmCpuDxeSmm/X64/Semaphore.c | 4 +++- UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.S | 4 +++- UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.asm | 4 +++- UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.nasm | 4 +++- UefiCpuPkg/UefiCpuPkg.dec | 9 +++++++++ 17 files changed, 61 insertions(+), 18 deletions(-) -- 2.7.4