From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (NAM12-MW2-obe.outbound.protection.outlook.com [40.107.244.43]) by mx.groups.io with SMTP id smtpd.web12.3752.1664531540324518507 for ; Fri, 30 Sep 2022 02:52:20 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@amd.com header.s=selector1 header.b=3lAtspo0; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: amd.com, ip: 40.107.244.43, mailfrom: abner.chang@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=btPNh3wqciwFwzypPV7aUikSdyUFiS5Y+4+qvH2mq3AoQvmxqtZPp17u+/YRWqbma8cgCf2JS9pGHHtNbAD4y9D7xbEoP0pEmqekBBLSh4IRAgEXCmezTUsiodBws4iq6TQt8SQK2DzB/nQVy2kAX96hLanYdxkzKFzEsjRmFApZX4pkZ2Y/D2n110G1r357hRa3FTpaajw0faANzg8B4LTFyw5sJfAI6OkhC+fnOoUD3beyYSy1Bf62f8UGulm9Q9Zkm6H0k/scB/XEATJT4bB2GEHFOMrrAObK755OubwUFEJhXhD5d0CPD9QyARJsnAFDa983x/F0jv5xPEs1ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=AlcklD/HU+sN0uC+Ru9VVI3fm1Mhwol6G/kCP45SbhE=; b=SXBRZJzvQ7dMvzov3X732hS0PN1IG9SucqzzxRPljP8DWfSaR4qkzQIsw/ZVkmsDviCasNV/44NV72guZutqCY8J+syffRs7r6sOfhAkB0T2ieGrshog5qMo9vcxM0vxHKuFPz0F7GHOk6KPvu+axHmbZUtt/3KJiZ7pCivlGAKf2hqlWND9h/uRxQNs4nR3+jfSyxTtmJNXDZbIp23b74XvKDI6x/a0nkqZSuaG5UKCHFp21Dw16d0J3UHcwQyyOPriLzkX6YE5OvtxqG/rBPYFLeezgYeApKzIGAw8zrT7+DUsmh39ABSXILXUEzDtAVqWDxJSvc1ym704P/hOxw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AlcklD/HU+sN0uC+Ru9VVI3fm1Mhwol6G/kCP45SbhE=; b=3lAtspo0O0xjPMTH4yXdZ8N5WjO3/FHySIgyEAjbgSFhm4eZuJrPLikylPBO6Ihzh7ITtrGsu94zOuBf9ahxTty/4DZgUSz2psdfzECA+c+dNM6TwRbTD1JZGkFv+jBTMJ9QRHwRg8g5XmzSVpqXsT/qp/boEe1bw6TE3meio64= Received: from DS7PR03CA0127.namprd03.prod.outlook.com (2603:10b6:5:3b4::12) by IA0PR12MB7650.namprd12.prod.outlook.com (2603:10b6:208:436::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.25; Fri, 30 Sep 2022 09:52:17 +0000 Received: from DM6NAM11FT066.eop-nam11.prod.protection.outlook.com (2603:10b6:5:3b4:cafe::26) by DS7PR03CA0127.outlook.office365.com (2603:10b6:5:3b4::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.23 via Frontend Transport; Fri, 30 Sep 2022 09:52:17 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DM6NAM11FT066.mail.protection.outlook.com (10.13.173.179) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5676.17 via Frontend Transport; Fri, 30 Sep 2022 09:52:17 +0000 Received: from TPE-L1-ABNCHANG.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Fri, 30 Sep 2022 04:52:14 -0500 From: "Chang, Abner" To: CC: Abdul Lateef Attar , Garrett Kirkendall , Paul Grimes , Eric Dong , Ray Ni , Rahul Kumar Subject: [PATCH 0/2] Reconstruction on SmmCpuFeaturesLib Date: Fri, 30 Sep 2022 17:51:56 +0800 Message-ID: <20220930095156.1827-1-abner.chang@amd.com> X-Mailer: git-send-email 2.37.1.windows.1 MIME-Version: 1.0 Return-Path: Abner.Chang@amd.com X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT066:EE_|IA0PR12MB7650:EE_ X-MS-Office365-Filtering-Correlation-Id: 9beebf3b-92ea-4438-801c-08daa2c975b8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eeOhQlQhWsto+G/2otYeeoUdMQNJvqnwSC2cPezxFFyWJZQ6R7iTBM90QN5thjTvz+YV990fQYidasquiXj6qxC+HeBD6fnvyAgZ9DdVDEZ2r2UQbAkoZl+BXFmEmzEdfK/ogNR27CAB+Yv7xL43mVYkfVnPk9uhianJvT/FHLqCKZDMrH9Li1xi/wEBF5nB8w8ER7TfyKeO6WA0Og6KJ9hY/YK7WdhZoHzD40yZmdHSACwua2O546TrRNXXOLJ7CLM0fwlSC1GEy6GaRF8gZWPJGzXEm4EgG8DRr3G3wfpuPuuj4XDoOu3+7tswOujsFGFfD6Lay1eixJ7sezktOGdOl9eiX2X7W3lsj7rxwkWO5CkNoM/48Wy4GlQVqpEWoCTRXoqdlqwTf5n6uFz2sZx8H1dbb1FRGc4HV82KoFj4pYWpQbxNU2jXpQKOwpl1C+vfJJyzq4wHztN6BKslboZK8VH1OThLsbz5AGNmFLHSbMV/vWNpy7U5Cf1L7R0A/TE7GshTRdo1TA42gEOURnTjUtTpg4dE6xyqYHCvtTF0H6BZbzWj2FdYE1N16FLiTBzKizBeO6OjZ7cdzMX2tdEjTfzaU9bYIcUNKxt44vVhGrBEsa/9TJX4MmbhKRs1YucHmTHc2UkZMU9W8esTgD7p+mZbl7b0hPL9Nby0ebyZ+AEplSbWGI3iMMBA3+B1dE5Fo1wzl3L6cMOejzThoF6LkGo++pm3VmmhWqZUYB0KzVPG/WlG9sfR5GM+hJJw9KDi4ryypp80GD60PoJLniqwimOpkQvaJNbyiSili3daMyuDjJ10OB6aWHk2F6RkNKBOAXvfKW50pFTJZEoZ6Q== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230022)(4636009)(396003)(39860400002)(136003)(376002)(346002)(451199015)(46966006)(40470700004)(36840700001)(5660300002)(81166007)(82740400003)(336012)(83380400001)(2616005)(47076005)(356005)(36860700001)(186003)(16526019)(6666004)(2906002)(40460700003)(2876002)(40480700001)(82310400005)(1076003)(70586007)(70206006)(478600001)(41300700001)(26005)(7696005)(426003)(316002)(8936002)(966005)(36756003)(54906003)(4326008)(6916009)(8676002)(86362001)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2022 09:52:17.2404 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9beebf3b-92ea-4438-801c-08daa2c975b8 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT066.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR12MB7650 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain From: Abner Chang This patch set is part of below BZ 3860: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3860 This is the reconstruction on SmmCpuFeaturesLib to accommodate AMD implementation of SmmCpuFeaturesLib. Intel specific implementation is stripped away from SmmCpuFeaturesLibCommon.c and put into IntelSmmCpuFeaturesLib.c. This patch set is the preparation for AMD SmmCpuFeaturesLib upstream. In the follow up pacthes, AMD will create a new INF file SmmAmdSmmCpuFeaturesLib.inf under \SmmCpuFeaturesLib,=20 AmdSmmCpuFeaturesLib.c for the AMD specific implementation. Signed-off-by: Abner Chang Cc: Abdul Lateef Attar Cc: Garrett Kirkendall Cc: Paul Grimes Cc: Eric Dong Cc: Ray Ni Cc: Rahul Kumar Abner Chang (2): UefiCpuPkg/SmmCpuFeaturesLib: Abstract arch dependent code UefiCpuPkg/SmmCpuFeaturesLib: Clean up header file inclusion in SmmStm.c .../SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf | 1 + .../SmmCpuFeaturesLibStm.inf | 1 + .../StandaloneMmCpuFeaturesLib.inf | 1 + .../SmmCpuFeaturesLib/CpuFeaturesLib.h | 6 + .../IntelSmmCpuFeaturesLib.c | 403 ++++++++++++++++++ .../SmmCpuFeaturesLibCommon.c | 391 +---------------- UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmStm.c | 3 - 7 files changed, 413 insertions(+), 393 deletions(-) create mode 100644 UefiCpuPkg/Library/SmmCpuFeaturesLib/IntelSmmCpuFeature= sLib.c --=20 2.37.1.windows.1