From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0043.outbound.protection.outlook.com [104.47.34.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id AC86421A07A80 for ; Fri, 16 Jun 2017 15:55:51 -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=CWqSpVSA4ZokQXNCjfNmfnwKrGPjEUjqOfh/CMUUUus=; b=Tw8A3NxTgHbJ4Ggx8lqo0+NZV/OQ0GlqnTFr2VdBRkh86+6uXPf3KUPvuToz5peCeKMzawExFV9VlrYaOhmfIRIvFfVcyROTyGUb3KSUFHUm9s4hLKXrVS5sfVg8iaQbXjEYAEd5MEYNyufMIT3fcjAQoo3aqjgwqSqbga+kSYk= 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.78.1) by DM5PR12MB1244.namprd12.prod.outlook.com (10.168.237.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1178.14; Fri, 16 Jun 2017 22:57:09 +0000 From: Leo Duran To: edk2-devel@lists.01.org Cc: Leo Duran Date: Fri, 16 Jun 2017 17:56:58 -0500 Message-Id: <1497653820-15192-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.78.1] X-ClientProxiedBy: MWHPR1701CA0003.namprd17.prod.outlook.com (10.172.58.13) To DM5PR12MB1244.namprd12.prod.outlook.com (10.168.237.135) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f84d2967-edf4-48b4-3618-08d4b50b04e4 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(201703131423075)(201703031133081); SRVR:DM5PR12MB1244; X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1244; 3:H1Wx6lVP+D1ZqW44QUQRcC9pk5L/9bkeQeKdntd32B/rBccTz/3OZtJjM2uffoTU31olG8ndTUi4IE+4muhvF7GEqsz7OpfrPfNzuvyv/Chv2jrwZ2VLm4U2vhk7q0HwPNnW8yE46n18pakqGKhVhtLiww9vFye5q2CtMOGFZ38NSXnZHTxcwOXF7//kep2WKSD8wuRwtn5Z8comK/zhXdUp+AwjFt6K/7IH0h0K2NDoZ4eFZoiUMO7srNPVcZvIUZMiUOBPGKaH5/uXWbSYwFtNegh+tuzlIz3Wka2waQtkazNToijcwbnR5wzeBt4C2MYOX6GtUDdlNEI8LCQy5zoOuDQT9Cli9SR0I1oFyPg=; 25:OXgyNhGGxubNvjD8Cby9RjqMM+31Pdfeqt6MblwzhHIxOCzoXTbn0bVfQ8w6/bPxZkZ6tW5YqDj0Sng4mRC06zU+sgDiOSYPU2SFKmbogWkY6QEanJUslHW4V2C/jP00I/mghmMDQN/rN4VKSh7iqxA3XpgRPFSF8x2ZL0zLEeVpkY3hS5L06Dtot1lXBlDwAube0XNA1ADCIWa6TZBJ5YpyzDeERvqpx/6zJ/cyjFjyscmq8vYNn6ppVkx3YitrPDzfC98x7PY2hYeYzBPZV2luivFo8dTKPnc/zVL3LRKeoWeUmZxC3JhygHTsGnCv/XA8m+Gf1CZERQ8B0rUtr/UaFmw7rO5yVyQ/SiaS82Wa3KCQm5FV/J2dkZlMfq1iAOmHQ9a0Q98KuCAcTRJxU5TAQIVCj2UAJlZGYy4SsMLVV2NjPhfjjq0vYR493woztA/A0shv9tgWFswitB47r8/FJ2kBBaCbRd4Gu4lHnEM= X-MS-TrafficTypeDiagnostic: DM5PR12MB1244: X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1244; 31:vO8BerfharH/2YZ3BbXxiB7TQQaFRVQDhdvW7Bmsxqs1zdYLRhIrBogOjhg66iJTbGVssC09F9pBFtSStj6sLaSTOs/NmVAKOXguozefFMVb8jemjuJyh3zgTW1AXkSSL5RfgWF9j0k385MDrmn2GYuvZhAGqZs5PP6On3XRp7l71gXaaDcaZohQld+X0tuOZPejMzUlXwTZhKE/pF88efeMaZ6rHzVhUfaMmjlepvI=; 20:GiyaIq8hR5RCUBQqTEXKJZkF5bY2txfEQh20qPg8iQHX6L1F7eQ7XIc2qIGm8YRZruc4R4A5cYwSktDrgQSFbZOf0hx//ZoeiLp1F214iziJ/usOgXemXxYbbAWyyHFZ7RiFXsqLnIsWkTIDWAWmvrnaOy7kTCTqejyFuVcCttmQL/pWFOV1jJ1KUC1Ni5F4YkGnOIbrR8eL2adcm8tpoZkRVfYB3kc0KtxI5IoZu+HY9Tcxs5wAl1ceG4hxUyKEoLwDho3vTKzdEu4va1+aHfsYB93aMGqWOHQTI47hzs8177QfaB3iBIRHXOvN4M9rpGZWOqFJ2yT6DJ+GrkEBkTe7qSfUPZTZvhOkvmoHDudlAvmGjUdSIZ7Sox6C9fHhHgv8nMEWezNiDPwdHtAW2ILuHn7i252taV3XF9aAm5Y7erod4P+qXkaN7QLRuPNTWubmn6biU3Hw47C2EVFkF7F214MVxENN0oF8ba/t+tktws946xZ0zKlfvOZM3Pjp 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)(3002001)(100000703101)(100105400095)(10201501046)(6055026)(6041248)(20161123558100)(20161123555025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123560025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR12MB1244; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR12MB1244; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR12MB1244; 4:dT3ZJ5T6KQljNBlFEI4rVm8uvYbLCIPL8laxgCDJqr?= =?us-ascii?Q?45TZg49ax5hUb7sef/5zoLyYymcvKo6Qdj4OSaGUUgWI7S0BTE6maDtuGjIK?= =?us-ascii?Q?Rxda6/VwVsWoDMpNmqdzai/JCeMdcYBRCN9LY44OqUIJ1T79gb+O3HL0axTf?= =?us-ascii?Q?lMTYRZUqPU9QldDOGFBSyFpFhnBUal88yiUIq3FxgofLAzQT0unQ99aY8kv3?= =?us-ascii?Q?wOlmgmmTtUFCx6ZVASdZ/1rVfBNEE1EpAxsvU4S82EnddyWdtXu4xhLbN60W?= =?us-ascii?Q?qUPzt9U6mCQc3zLA0iCQFc/hyUxXeLtVkOA8WXH3G+npfeXft++MOgCJL3aM?= =?us-ascii?Q?ZF4OEJxeTTKaqjmOxGySbDBwyDV1Rzlq2NZg6ZApme1oTjA/BeBCxZYUD/TC?= =?us-ascii?Q?W3o6uaOW3os0pT3SnFBxmK5qjg2t6exiMnRKfub0g6aLXap6qsv5ex7p9dH9?= =?us-ascii?Q?go7OW4YKvd6LkS5CHjdQ2xJN51CkX+8nClEK3QUQ4e9mnI4fSiWESPkwXYsq?= =?us-ascii?Q?wKQZG0ehzUEO7XEIP+KTlKNf6yONZTlx7nvBqqelzUTEAIc0Pc+lzvfjgLsR?= =?us-ascii?Q?GOhunB4lPpHhxxjq/puJx5OOIExt2S/mp8KT/GzCl/D1PtSuTb2mv0VaQskA?= =?us-ascii?Q?/TZcjBJMnwnYlXy4uHVsI4HxKpgcJJ/SztYqHii3N6YOaxsWyLx7YIeFpnGk?= =?us-ascii?Q?5910nRF9NM9bDXiProGUQfg0Y5OjWXwZGEm7fuXdSiPoq9PQCPandhjWERph?= =?us-ascii?Q?D5noPPAqmpOn9WrJp7vjVy9yll1WTQoBHs9PGygIZ0ot8OC0rBwSfYMpWBDM?= =?us-ascii?Q?i8FkpwWjZ7PiUoS6yoSBr9tpaXOtr0yWnSlpSZ/kyszebE6xE7ryb0a8Ojaf?= =?us-ascii?Q?sbZLG6frztGdFvJ8+cM289u79VaI1IMo8lAEVwaWvnQ06ZItWEiJsgXmaIwV?= =?us-ascii?Q?yhj//+zEvojVoKb4hGbS6VzPabEHCazSagpUP/FQ9NAMfUyM0iqupsr09YHU?= =?us-ascii?Q?9jk66li4mNSr+3FKVIGplldJ5/69xV08Sfv+AqLvmhPgAC/U9q0jCo8EkBsF?= =?us-ascii?Q?h7YX20T24MuvmE4iWmDnveelJ8YMOzUqEvu6rRdpf2lbaSVZDdgO+5sOM2C+?= =?us-ascii?Q?R4mrbuT+Vn987U3NftaVyELwiE24P+bEhERBpI0JVEBbQLWlW8nt8/FPjQU5?= =?us-ascii?Q?ppLcoAxCc7n4vkC7ZaM9MbXcodouE1cGY0?= X-Forefront-PRVS: 0340850FCD X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39850400002)(39840400002)(39860400002)(39400400002)(39410400002)(39450400003)(110136004)(2906002)(5660300001)(38730400002)(8676002)(5003940100001)(6306002)(25786009)(53936002)(33646002)(81166006)(4326008)(86362001)(36756003)(6486002)(6116002)(2351001)(3846002)(47776003)(48376002)(66066001)(50466002)(50226002)(42186005)(478600001)(189998001)(53416004)(6916009)(6666003)(50986999)(2361001)(966005)(7736002)(305945005)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR12MB1244; H:leduran-Precision-WorkStation-T5400.amd.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR12MB1244; 23:S50b7AASdzmYWFuuF8lsRm2On8ZG3axRI4FSmwfyG?= =?us-ascii?Q?g5CLURwEtoJk21vqYz8DP+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?n8mkVyz2sxNEGr0PIWReso49JGd8ImUXtyKBbidNb/E8B9reP4So/lBVBXu9?= =?us-ascii?Q?OcZMwIn1FKjX2NDpCnidYx9irKy+NFWrEJ6vLvvew2mQ2EsFqW5JdiY8EvE7?= =?us-ascii?Q?XnQiw18eRY+fgxZN10hHSp4Scn293sJAuzLHLkDd3C94DTceQ=3D=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR12MB1244; 6:H2UvJCWmr8ge+QnGpa711HwuI4tP1s5ALhEDBXPcds?= =?us-ascii?Q?gKdtYZi6y/QS+sh9c5GIh3TsHEv+tC6i6VPEammLopsnW3GJCFRncAhWSRqs?= =?us-ascii?Q?8/WE+SJ9k4fl8dhA87DzLHdE23kNCx7lJcjeaIS3AwRqtR4MGU0zsdxMlGCg?= =?us-ascii?Q?tYQsL+PUoLM6x9alHG00OSkRIHwolM6H744mFE2r+NhtRXL9o0ghE2r7rKkE?= =?us-ascii?Q?oNLeVNRwHWMpiYXDp0JjH1micMItqEJ1WuJnyWjacd9aZP9ziRz8bVRmO+K7?= =?us-ascii?Q?kfQLr2zLZDr6Kenwb9G6W8xqBHxaXivVru2l4romkoo45Hb9RevrJGRlybN+?= =?us-ascii?Q?RgxQiLOtTFKDiRjcyYTdv3mueiq5BsJ+AqrP38Q49vsl0dt5FV1O+NfXuXZ2?= =?us-ascii?Q?IewuJh/ALw8cQq8cl8hQ1Lb+AHnNqU53vZJMs2ncZMjahQFit2LBtbg0MIr+?= =?us-ascii?Q?AqkCzpUU10syj4vPcROdmN40RrXLd9H+y4IXr4lX1V/DN3X0ZdLJEJSZC8IP?= =?us-ascii?Q?Vy4wzKDfz/Hnfg7qKhFpLDvLp2ptCx4P+hnOCGQev/B8yHR0WSwLzd7aid2H?= =?us-ascii?Q?12TRWAKzIxJ2ndAebM/HLpr6FNUruymPTnMMvJATDapLCt5djYhLL0cIOzIs?= =?us-ascii?Q?g6FndiCzas4AecJ/hjDH/1LE1xQjm5v8a9X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FU5H2fQ7fx52hPKC0wKHTlx9GoWInNHII74v55ewLC32QkararGytLBKmexWx4MSFvvsufF8rVb1WHPBnNBQZz6ZPjQhWbDYcFYqypT+ZJH3oOIlKJqvYRCsM7K8iITNCUgNHUJjrKB/7Y/0DWjBK X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jun 2017 22:57:09.3196 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1244 Subject: [PATCH v4 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: Fri, 16 Jun 2017 22:55:52 -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 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 | 140 +++-- .../BaseXApicX2ApicLib/BaseXApicX2ApicLib.c | 140 +++-- 3 files changed, 806 insertions(+), 73 deletions(-) -- 2.7.4