From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0046.outbound.protection.outlook.com [104.47.33.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 979AE21A08D6A for ; Tue, 6 Jun 2017 08:58:05 -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=2NyDpbFqsMEMeBTDv9xoBZRomgx4pzjo7zIkdX2GTrU=; b=Gq/2iqHCJ2M4RD9JmjgUnGx5JV0DrjFoHMsv03FOlrlna8tySP/4VDmYYvecqsl9hL3ZN+s9hO22aXW5115RYoIvNwE+rhJdvXKh35jwaJCsJ2AxNFaqH+iJ89kDYDsGUCY20kRbF+JJ/npJC++7MMUGBARdM2384WDkaDsFVhA= 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 CY4PR12MB1237.namprd12.prod.outlook.com (10.168.167.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10; Tue, 6 Jun 2017 15:59:11 +0000 From: Leo Duran To: edk2-devel@lists.01.org Cc: Leo Duran Date: Tue, 6 Jun 2017 10:58:59 -0500 Message-Id: <1496764741-6327-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: MWHPR14CA0009.namprd14.prod.outlook.com (10.173.227.19) To CY4PR12MB1237.namprd12.prod.outlook.com (10.168.167.12) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PR12MB1237: X-MS-Office365-Filtering-Correlation-Id: 54225f56-bf84-42a5-c68a-08d4acf4f8e3 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(201703131423075)(201703031133081); SRVR:CY4PR12MB1237; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1237; 3:VECcFjERR8RNS6us/UEIPq/RbffG37YOlPygDRdpPs1GV9cIy9VdAQ+WlrwcPN4AIx5avtgfB4FkXckKwJZhKLigM8IkVIkXO0o8s8ydM2ymqQV9kfQ0gyD10Tjqj31ME84pcE5zi9kQHkR0I5nKj1tFxT2aW8IvxvLa/cd0/s76Ld3XnvLAjoDoZlDf7dETwLUmeKW2UpWw6v7ORfPRFt9Q8rBBmkqbmP8ryv46ks3sfp/g7o0Ryx4jX5pCui71R0eJXgcY4Z6dWrQ7yKxErJw4RIlu080pm8RXLJjUFttVeeSH6+1/PGKEDkS2edwscRGJT+wPM7dtzqYBfU90i9uvU70Uw/gXf0p7G1TWauk=; 25:hjuik/GB0JlSl/TXAv9IxV5imuzKRzeHGpgvbZF+QbS9i6WuT1DoPHl+NeHYekVLs7NMHEh3kd4jmPZyEHeaco1OuSU6VNS9shnzCQKH4G0WlX5PztKzpiNQU5v36HHYhFe/AO4PXjpH43e3ZNDStNG+a+o5Y7cmUSSrn6lGkb4YBsWTK/xoHfzGIU1q76TLXgVt33um+n/5iczL3D8Y7kPYfp7aMg6VWnLC1wpMlyNVKdBnv/qdycr1lk+91GvzARpkLgM9ryYLm4MewHDi5a08VpimREkl7CHsshyHXt2FTz1mfyJjdySKbnFJj/uDBIpbCMjdCTKORtJroVJXacv6lNKnhZ5ylvYuHxY7HIYZhtyV3h5RkJ5k+zfgFyEIfY47knqBAigZFi941LiMF4qqvRnuAuag6F3nZXvrQi4ens+9Lq+SmyT5E9e5FmaQIyR8qAFPyMva1fhkh1ko0Nx/j8tXUNzSCePnYkfz78E= X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1237; 31:57SpKG/GELQbPtcjdVaO1+rqxWKTT+9ZaS0SGzsktUcF3E5I3l4Vgv2DePnHBZytWJexGtaVK2azuprUGCmmqqJ8avoPY9a8MeELyzWs6mui2s15id5xxqVixKeE4zVu/ORe5lSLO5ZmNXljXmjHKTxb9JY2ucfb/e2gT65eK6+jPtfdk2v6ltDWPiV3tyOTgBp7/Q4REeImnJTl6iQuoXByguu7vyL3GRNELFR+i3U=; 20:bXs75hYmXeqqkYY4Gb/TuoqOF6ia0PQpDU0yoYuX1Na2z6fhr2a/57uTu9vLEzhilZlywOTHVv8i/AksXG1O5TnpMZx3xKAJpk56Dp2drEC67V4h8tFmoZ4tCCU6wiaxAVG05dCDWLB5BelO53vaS6/18j40Lyff7IOqijVdE05w6Kw6+xtxWbb54mVG03mWt4rUqaUZPEVu0ySda34RX65tww39okMKzElOSBGH6uxt4h3Bd17d25oiCFaW5mOEHqmD6hC52aIh9R8mRtraYFn2bx4diV/3iOR1mF2axwbZJe2vspilgIAetngjnZZg+JCDQWfNmwFIjguR8+2/PIhvNoFzCTRxkiC4nK+TOxpA3X89B9TEsoewbk576Fr6qtQ6sDg76idOcjUB5pZdSZpKyEfkIlXblORt6hcKK6VP9jyBs2mOzKxxzDR/aPyQFu6y1/07IX+/p+5sBl1bOrDzPgSIDFMiacQBx2kFOMCjdjRh1GwdauZueT/D+xYr 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)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(6055026)(6041248)(20161123555025)(20161123560025)(20161123558100)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(6072148)(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-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR12MB1237; 4:7jTRcV40108jBCy/YyL1lKSwQfMS26xHMTHfBOOb2g?= =?us-ascii?Q?5nCHNVtnkISnV71GciNJBothuywJLohCSMVumGRugqWj/QbvCbSc3630InJw?= =?us-ascii?Q?/tmzFGIOhaY1WB6LGClecrNIasvAkSCGZ9ZsBOhDmCph3rWay7q0Koubnlz8?= =?us-ascii?Q?G6adAMHUhBVfRr+FqiNEWaXQw8ZOihFdd+OxwKJRkv6rMeuz1HtXOYQjY9id?= =?us-ascii?Q?C2TQba8OGBcFt+kDrygJWuob+E2bXaUcqpfJCBiQy8fTX7dox5d7i4743QZm?= =?us-ascii?Q?r88X/1+ta/K6w7RIXmQp1yDQH1dI8T3DDsAbXiOEZQzYBpcA6oM02pcDqGu6?= =?us-ascii?Q?Vy0gyzXf1LXc8DiKKce1KAuYfiX7FVxgAEzIisIZ/2Ej0An05Fnr8A/uAwYP?= =?us-ascii?Q?OzTNJMAr35sxSUBG7EaE2xgjBvtkp9KGSqRihNZ5lQp8UFVJSzS/VyYSRQ3z?= =?us-ascii?Q?+Wsjg8DXbujAnF42bbX0MfkbYKgmhEsZXqwLGEMfmNN+f3OEDliVOW2cogiq?= =?us-ascii?Q?vQBTfB4oLPsXdkeu/SOlpo1XVu/ginTC88o2s9IPYrhSmgELFAe6O0FyH/qZ?= =?us-ascii?Q?pkHWYb3SUyFdJG84gX69g+w8q2jIhaHHFnAJIrZGjD06bddI2aX75K7BCgR9?= =?us-ascii?Q?DcfZlOm6ueoW5bRJukwUPBgh/q5hxbZJm/809jiSY8MegxhAY1BLsVf0U3dl?= =?us-ascii?Q?F6RsAUVYZibmXc/ywP4bHteSd0JEFwbWNMfw8olpB6CoSCNqTYMN/t1eMKAM?= =?us-ascii?Q?TMYqC1z3R6UyShB0NlL7mWwrxExREFNWyeTqLc0ItZfSsc0FMRA7gSCGD0d4?= =?us-ascii?Q?c5vCr4e+jF+65gYEjKKQ1wJSPjE9I9yodJk5cvnO4FZPEvKwklUG9JN22ePD?= =?us-ascii?Q?zdHf3GCqY61Ab7monlAUr41d6b51q6q4+COfDO6tedT+o+NBYDyzvMDgpRTh?= =?us-ascii?Q?XIuofVw3SnHxdFL30nwNMfm+oxw0MxT3RqyVAzKkrGZLjZkA/mX2aVZxwdxJ?= =?us-ascii?Q?dwysTe+cIbpycR0Crwmo+cIT8Ec0e+fd/dVdwLu9r+1uhvWkHYTV518MDXxM?= =?us-ascii?Q?4R3BBik/gGrWiS0wLCP7o0m5+WnXzlU5YRtBmTCBT6N1mkG0rXPfEFx/JMSr?= =?us-ascii?Q?ACIKpuJwnpJkW0x1Ur47rMV+icKrWv66SJHtBimZbqO4RLRJ8BYw+lbYpiol?= =?us-ascii?Q?Sn7ZKcDK8ISun+Y14l14cgNXOweW8DIvRR?= X-Forefront-PRVS: 033054F29A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39860400002)(39410400002)(39400400002)(39840400002)(39850400002)(39450400003)(5003940100001)(305945005)(38730400002)(7736002)(110136004)(48376002)(81166006)(2361001)(53936002)(5660300001)(33646002)(189998001)(6306002)(2351001)(6116002)(53416004)(6486002)(2906002)(47776003)(966005)(36756003)(3846002)(42186005)(86362001)(66066001)(478600001)(8676002)(6916009)(6666003)(25786009)(50226002)(50986999)(4326008)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR12MB1237; H:leduran-Precision-WorkStation-T5400.amd.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR12MB1237; 23:2aSFoGg1MMSOAVPjV7Of3inaeYCzc++TgIgQe9P6b?= =?us-ascii?Q?x/PXi92UVdtdkn1P8hLVgrQRnurRyC/2R5r26Wl0TBK4/68ld2DsoxQR30YJ?= =?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r8LN4arLSueb+W9cfpi+CuQteoFqRBkCButG5oYM2fVnTR9Eslyn/bcqkrnhlYuZeTFXssOuWr6c01k2LU7+921RCaUZ+MuKLSMZQ9X/Ifd02VtXzFKf6tVYyNRL7nj1jQ5XJf4UzF94EaYQ1yvVeVlb8ag+HJgle+LEH5AXPr+Yn1kZWnd4H/mJko1earvfWfjvZg+dVoLH4igJSXgrGpUS; 24:JI4QDJhH0PhKkLAbs+X/S8zXwefINiGh30fO5LtqkhQq98fLjELNb7dh9oM3WLycdbeytZWcPpkWbU63ts9RuSvIUJPYuaZI3kvZIW7IEIo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1237; 7:GNSxhU1fficzuB4Myea9ODmCdqVVEWpyZbJm3DoxQKED83NtA8GOKWCMieYTQefyG4gqPm+7fvFT/vm16EziPVC58641LgGTJyZWe7s6M3VGy/l+fxpihBoEX3w1EpyqHXNsI+ZFMqR8TPmHB1UuG9hVErDjdJHiq/kTNciKP2XHD6w/iri4RfMONc/WVSRK/4qAaV8Q1y99d7pyPM3vFFvWKWF+JieTrNOF+ht03lncrpTH2YTgDiXtLzhoAZjMD1m21x27pL+PV8bHS8VAa3NJK/Q8CaMR3dyHpa/9F9O8l+B5X0vC9uOIT8IEIHXmNYft3sMrcNvpaGXFVOyZAg==; 20:03//zZDSeLWyXrXUayQlbVB/cSLql4zD+W8MKks8/mQG0hKNcZ+TQ0oMQ3u3eunm13q4EyLfqNXHPQrRqwq1VPl6WzZyaqFHSivcXpCud78iOwXRIHQQcLk5Tg5KH4JyrEknBTrbZzy6j8un8dx7D5DxcBHq9DYenvOIv40gp8c+WEozpVRAPxCjw2FJ6AQufaDqqIUmCm00T1G1NOwubGOFUHux/LRrIju8r3Tp2Z6QSx+PJzX3FzGNmr/JExnn X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jun 2017 15:59:11.0632 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1237 Subject: [PATCH v3 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: Tue, 06 Jun 2017 15:58:06 -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 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 | 574 ++++++++++++++++++++- UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.c | 130 +++-- .../BaseXApicX2ApicLib/BaseXApicX2ApicLib.c | 130 +++-- 3 files changed, 749 insertions(+), 85 deletions(-) mode change 100644 => 100755 UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.c -- 2.7.4