From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0059.outbound.protection.outlook.com [104.47.38.59]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id D04A021A143F1 for ; Fri, 16 Jun 2017 17:40:43 -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=cp5eBV3p1nToQcr2qCtcMB77jZuNeWEDT456tM/NCJ4=; b=v0+h+5ql3nXoU50QqT1JAB9SAF/bGLaioKNMZ184WVKiFyBm2WJqR07Zo13JGe/cKxGxOi/dlSBO4JTH649pilj7UeI8CCP0T7954Ib7/uSi+4nqp6Ve9Y4M1rIZ4QdLT+H0PZIcpxpqVJq2949HsaiffHif5uNTuksT9SpIYPk= Authentication-Results: lists.01.org; dkim=none (message not signed) header.d=none;lists.01.org; dmarc=none action=none header.from=amd.com; Received: from leduran-Precision-WorkStation-T5400.amd.com (165.204.77.1) by DM5PR12MB1243.namprd12.prod.outlook.com (10.168.237.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12; Sat, 17 Jun 2017 00:42:00 +0000 From: Leo Duran To: edk2-devel@lists.01.org Cc: Leo Duran Date: Fri, 16 Jun 2017 19:41:47 -0500 Message-Id: <1497660109-18243-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: MWHPR02CA0019.namprd02.prod.outlook.com (10.168.209.157) To DM5PR12MB1243.namprd12.prod.outlook.com (10.168.237.22) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM5PR12MB1243: X-MS-Office365-Filtering-Correlation-Id: b78623d5-ab85-4413-d5ca-08d4b519aa7d X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(201703131423075)(201703031133081); SRVR:DM5PR12MB1243; X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1243; 3:IzQGPA/SPowo+w9AmSe+Hg74lfhxbFvAcsxCW7JOfYQYefArJv708XMq3SRgY5LkfLPVYRDEMuKJ6jLabr2aNEN4lXMz0XHZSka6d7l554Yp8DrA2IbJnWfKq7UVz56jSmf69RPMTkOgY6hZbTpO0lTlmx4OS94aGScE6kK7Rm0PZlOhh/RGqzL1VuZ+o0CW8P3RCXpWhrHC4TodihV8H8Dfh21dfQf2w3oiPmmxijNnNVA9IvZKY0Yl384M1xdpQrGjdfJ6D5wVar2FbrOu7j0TWcSvRg+/fqh8amS5muQq1ptgehQJ67XAFf1vDFYXAFKaAJ91Jl7vQUD8Fgngso7rejv4aqZW7Wv1WhBlt3k=; 25:QNKmmPvpDfliqiUsDq6q0cYwSc/zb4jCZ/0piIamZrq9E5lTZ3R5grPkCAPVM+nfFZjpbIsaQNBt8JFHmGVxBxJIu30VLW9X4KWVLs+BqHg1+P28tgE1xhuIgyeImQFX/U4rNlXuDRrrQbDY0/YiyVOku9Q/e9D2QB1eb6LaLlN61vsWiZsUYYtBFk0GolA594S32bBaIxEJSwHqY1g8qopKkGaycV6AloMmTMVOcHjSIm0ImfAAphBPppnMlLFTzSSumArietcOR9NuaLx50815kVDSrRinXQYulhNCGMNI2X13do3vEcGCeOnrRRb+3FMUNCHnGbOloFoAeWsVeEuu+Jnw9hJZyJnviZ6SYNdz5jknAk7z3AoCZUpBkKFJzVOri2780K04lMXjR6KVs8PXVmSFt+g7ogw0blh9lXwAEd+xUnudGGQ1Ra2YiKpqeN3hhgHSe//lpDgu3Tk9enb2YeTz1Z1vy+ynG+IOqIA= X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1243; 31:MWErhHo5tXMaDZxoJUcjZVNZwwrDlmV9MJCOHMTZ/vtuacOToVdYsqlEbyh48xIgxg7zpLfLW70TpT6cPe0ds16GhWz7ODIKwuUbDCAAfkm5esgSyI0+Qe8F/FNRviNBHmETHtVLPOBidNy4UpcOAbHUfzgJzfCq90jyrSfnrRY1/Sr75SSXF6YGUnxsFxLr/hqTlmwsW08mbfVQZsWEEuucO143a4a3msU/tboUHNE=; 20:aUDVHDVdZ4WVaZ1v+Tw1eWAMG+VyeNXlogCBaKHXnfUWd5cO2tR44zkvmOEUh//dOnnC7QdZGfp+CsUc/KvqWDV502SYp4Rm18T1CevQYoqABoV/B1e9JcYTAEmL/PCzu2haPJEDqgGGKQrVAxwU3cHeJPV8SRbnLs0QyYZ75R7AA0ts1yvaguSO0oXrEMIwyEqEUUOyCUj46ILSDsgGJWQvShZVSX53q6o8k4p32RBpIfALy0azPtnNtjMjElaVwRT3PdAW8GbVMRc0puY9CYnEnyMRokXj8qydKYhOTOEQJHVrrbmHmKg9uyPUqCMf/KagBaKhFpuygAIwtC5GOSlX14mzHHiLsEnrdDZKDmaftiqkMV4UHrPUlowOboTVvEUYbJMASKM/EzNx6d9/9wq8oNgyBsKvjX9iEz1LCyuSaGo+zTzh5/jVWJBXyf4J8o7UWAAkikMdSUVDaGVBjYYHMT6OmTZj7tagxVIsCTcEOR+HU5fclmMehoz3JxK9 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(162533806227266); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(3002001)(6055026)(6041248)(20161123558100)(20161123564025)(20161123562025)(20161123555025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR12MB1243; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR12MB1243; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR12MB1243; 4:QoH1iLscgcgp8phHax7K/1GHZsy+iVPzTyxy8fv0Rz?= =?us-ascii?Q?9KtcoMPodlCbbrJOwhxj8/9mXD106l80ElS5ebze+hLPPO2PNoj7H/RHMwui?= =?us-ascii?Q?nYITAx90ipOAz5upMRi09grlqFtZU09mifAvJUk/wuty1x6OweH1+nqi7b0r?= =?us-ascii?Q?nrsVF6obg7696BWwzIRDkmfyRaWV9LdQuvRA52braz4ZMAbXirCkqD3tteEL?= =?us-ascii?Q?MX7yc7k8rEgc05XXsiwNfOP1Kj0UzdKKZMAZyt/qqbE9Hcv3eGcNCluudYAA?= =?us-ascii?Q?7ALbNPegB/j6MZwuKVjieGrOPC0WSp6BckYa14cS458H7U40CgwurQONONhM?= =?us-ascii?Q?gPMEa2Ef/ZJqBLNgPbDkofNEbtHEXRPvICDBmRm/6bv1QbPRFPIjA3e82FD5?= =?us-ascii?Q?gYkOXFnwZEz3n/3YehL5aqJvXRJWSjk6zZn/YrbmSMUzfqBMwR7KKCO0bqBf?= =?us-ascii?Q?CIsnVJgimGJxNt9hw5dFKvj2aFEWbs/x3bJ8c7fYWi1r8SPkUTo6nPQOkSHG?= =?us-ascii?Q?stxPcoikjfSGagB5mMzIXXy34GYBjEd2zxLWSBrin92qEKxinx9Kxf6LPygZ?= =?us-ascii?Q?DnefRKqO0oi+KYMEXCUxduaoYyoy4kyQ3rgQ8QeADw3WPX9zh8jUVrkbcrhj?= =?us-ascii?Q?GDQxecKDswJuYQ4WzhI9MClpQ80MwxfiX52UwJ0ft0YZLtttwfvDYJ3NG7BA?= =?us-ascii?Q?iom542QYVBd+qbHCNocgZmKA6I7Nf/u4gtUSsmkrr6rRRrOG7Z6UrkD8a8qC?= =?us-ascii?Q?u37RBUA/5P5T2p+P6aKTC+ZrLbNM/mgm6+fy+Mxj6jGScEoURVFjgK1KynOK?= =?us-ascii?Q?IQtTns3Mkeoxrg9SeWD/8o3IHG8o5uZG4XE7rNaSOB7OIwmiI6U25lMcJNtd?= =?us-ascii?Q?y3I+7RjpU6GL1j9B4tfazBjSzgY0VpAZG2Nnfp/H6+E43IuQAhmqhWSrC5uT?= =?us-ascii?Q?x5vJATdHzaC6w/QxAglGwlvYU6OfE4TNaAy8neqCSLsxG0dut1eOKxoIFGx9?= =?us-ascii?Q?LjGd/Km+o3wWgznvy7526izoj4+DmBbrmRCSmE0uoGg6sg8iAdcfZ7aieAgb?= =?us-ascii?Q?LOhHxYj2d01iIS7wfMR/96QRsv3T0Q37fyhzHRf22dxWUgxdBngM/ZHqGakN?= =?us-ascii?Q?dBGB0ZddbiI5xmOpfDN8FELEavcDWhSE+UdeZ0GnNostpQQYJrEKHmL3olil?= =?us-ascii?Q?sqXSmw8YIREl6laN5DLGoEXAsvQNd1im7/?= X-Forefront-PRVS: 034119E4F6 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39840400002)(39850400002)(39860400002)(39400400002)(39450400003)(39410400002)(6486002)(3846002)(33646002)(189998001)(110136004)(36756003)(5003940100001)(38730400002)(53936002)(81166006)(50466002)(47776003)(86362001)(2351001)(6116002)(2361001)(48376002)(66066001)(42186005)(25786009)(4326008)(478600001)(2906002)(53416004)(50986999)(7736002)(305945005)(6916009)(5660300001)(966005)(8676002)(50226002)(6666003)(6306002)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR12MB1243; H:leduran-Precision-WorkStation-T5400.amd.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR12MB1243; 23:GHOTWW6PQFgtmce7o8cMJ/beDyIC7/4+51bi8mnaB?= =?us-ascii?Q?yfU4jBAKCUe+63MwlINlqWD0sBNB65ok4w9M5OG+ZKuwWWQCm94rk4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pamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1243; 7:H+zlxDOzO50j6DMx+xJ2OGvYuEngOilgIqohCO7M7PL8tmYsAC1QMogS+7nqUpgPqUWnff+1Gn9xRUP49JLIIzV/QEwO+d1UuOeb/Lb2khwBc4NJBwzYI5JN8hdHj5NKOjnigGdmBhsWziKssN9VwqXeMvU/8YxE3q9EkH7FqzpjdjuzAPodzFWI8lI6ifq1YwO809ctvfoOr/F4+lJC+T3uHRZqE4fzqdLamL8StQ4JWj7edv5/pjeu83I7FI1pqyeOXTLk11jbC68Og4wPAVSkhR5HEBMtL/cSz+tCtbUY3W+ALaf0GWMgAro9Lh9upWhadk3B1fC0gD8hfnojRjsMDR5zvu+OBTOd/rHELuDLpPGGxMeN9Fw64rHA7djx2PJOFKQPcgZpB+69O0mrPsoLWWR6LoecMpD9D9RATuz30arjZzMgL2K51DcxKd16ZHu9kBjO3zTdTYvWj2kl3CSTr7HUddtntC4SsYlpy6PlrtvqiWwFirQWLaHdLF7EdwH5q5YxvAFClbZJcjmh9z83lUHoeGVVmMuCmph8x1+Quj6YjaGH4Z+hHVYM1m260iFrcgBa0h8//8gAl5JSmsugpfh9NMwkde8M6ZeA5f8JN+PSeSMXpjEGneRawuzc/M3iARzMKijPxwWaMyyWHI1+J+0cKiHNS7W8v6bdts2xBqeGN57krbU9BsHnr3K0P5UN/rkeEAIjKfWKuDmwfubl3Svf5QLgfElQ7vx48Vy5Xo5CUpomg57vx36gKHiqXbVJBa/uBopqciSOUQMoHJOthygSyBbLGCChjkJYFXo= X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1243; 20:+3kNRkwO1qSWqgJyNvRRFFX36454sDlx9dusTTFH6PWFugbTfiBjTszV5vDlnkFagd3RSRSwo9Agcyqnrt1WZTIGlyApIynb7H6QSuyutK4zKh1BYnGQiu05AUYqwEatfQ4g7kbqKzf5/+n7Qd6XwjPQMK0mzhMMHMWagcbIacjVDJ7qS0eqiiW/Hq3eEobqFKM2SMdIK1CwropsJIWgz2jD+jRt4H8rToUx3BHQcc1jXjq1E7o0WxNaSgsIaDTF X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2017 00:42:00.1828 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1243 Subject: [PATCH v5 0/2] UefiCpuPkg: Add CPUID support for AMD. 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: Sat, 17 Jun 2017 00:40:44 -0000 Content-Type: text/plain This patch-set requires and builds upon this submission: https://lists.01.org/pipermail/edk2-devel/2017-May/010867.html Changes since v4: - Use AUTHENTIC_AMD instead of GENUINE_AMD for macro names. - Add StandardSignatureIsAuthenticAMD() local function. Changes since v3: - Check AMD signature before checking CPUID_Fn8000_001E. Changes since v2: - Account for actual thread count (e.g., SMT disabled). Changes since v1: - Revert to (MaxCoresPerPackage = 1) when CPUID is not explicit. Leo Duran (2): UefiCpuPkg: Add CPUID definitions for AMD. UefiCpuPkg: Modify GetProcessorLocationByApicId() to support AMD. UefiCpuPkg/Include/Register/Amd/Cpuid.h | 599 ++++++++++++++++++++- UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.c | 157 ++++-- .../BaseXApicX2ApicLib/BaseXApicX2ApicLib.c | 157 ++++-- 3 files changed, 840 insertions(+), 73 deletions(-) -- 2.7.4