From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on061e.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe40::61e]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id EE5F821AE3CBE for ; Thu, 25 May 2017 07:32:47 -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=pf63FgflqywCBCxBpk0gkPepR07OWVjMxfMeosxTDag=; b=W9gkWs5l5HEuYEzMJibnsOivn/eiV0UwIbE2qF07nPib6Iu/auc+Mils6c5L+ak/DhhEvSTbaH7QSWV/9D+qT4GhNIGyn1Nd/dPhXNKTkiH0YkDu4qrKjdHUhbrK1I1AAfFlXIbVEsnHYXdwuhnQW5Pr5+3yF0Dlwi6hFRATag8= 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 CY4PR12MB1240.namprd12.prod.outlook.com (10.168.167.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1101.14; Thu, 25 May 2017 14:32:46 +0000 From: Leo Duran To: CC: Leo Duran Date: Thu, 25 May 2017 09:32:30 -0500 Message-ID: <1495722752-17445-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: CO2PR05CA0073.namprd05.prod.outlook.com (10.166.88.169) To CY4PR12MB1240.namprd12.prod.outlook.com (10.168.167.15) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PR12MB1240: X-MS-Office365-Filtering-Correlation-Id: 5da2dfbf-d21a-4aac-b4c7-08d4a37ae98d X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(201703131423075)(201703031133081); SRVR:CY4PR12MB1240; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1240; 3:77btb+T/+kpUJqOGGOMKw+WRgg5mHiBaV9zk/E1eEoEK6ZAgszknrxMzgrPYvgNScrptdnoEAkA0V1pGMGUkpJ1nm0AvDf7Y51lNdFsyFQNQsH4PeXq7/1Wcj53Uyd+Use0Qfjo9Da8V4GBx5qFcSiBI0sOLyjz0By2hJnvSyPGX0zgNLa5WCJrTsVN2CvL2gG0bgKI2mZiKPlSYraFi9DYFVjVUE1edmxKklbFbKrgmu5Pp4yQfqmnkrhg9yZkXT9RV/DEfKxjaWSF21NqoaJMZE3IsrYthTswMuXUHNuW51nuWE47i5UyjZFXRRaYIqOQjXQng6HlyuNg1a7tvraIXhTSl/7KFO+nuZPq6s0w=; 25:cCId2wnK1VbUTnqXkr6TPnzg9L/azISzOM0WjVhOApQCAapTKxaJ/0Gr8lde/obpbWPcOgtWsJM+2JyGIQYYYvKb9ggveCsQ5HukWkO0jwrCnZf7iOgTqUmGP2MOn9IIJ//MxNGf0+h4U5r44bPp95izx1bNaOWh58qX2CXfsnrs+qGvJf0FAU/IBs7UCzirNdtdh8qwQRtTWBfX9cn4r/sTHHlb09ZAhvm2PPq0sQEsCUjmKvvv0EMoVxYMyfQW/4s3Sruc14VCPcmH0vnHFZCDXnpY7o0abMusmJWduXAYPMkkceiYctFgcjAJJE+p1H3pZc/HsnLMFwmmh/w0/tq5cS432Vf2/nhugTeyaG1smQ/zx8niFc/nkyYuflcRpOS6tW4acoHWkeYbzUA2nUCCtr5f6ZAfVcoIDNoZzDagxTRAjaIpKo0bYICUAp5CoEJh5WCqxu6ZCO6ebjsT3FfGWYjeuCb+exh+aMi76co= X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1240; 31:Izb1Cb2yzADAmQpNYb3Zp77d7Gm9usijwSN7pVp/tGLrprOI6cE8RUh4rYljpeXqWr+W9aD1EyOGd4cEoaivHjJeiAqfcaj6ltXrnMsiQvAzPJrddKwW47ug7RcXws8WLiCuPctcmfbIkNqiWA15N6b/P5w4KX+Rf63NDiwBMVkk3uLk6SrvkJwNDHGB4EROoJvp2H1VGI+TA2AXayhude8sZcj6HdB+AUmobhBnXB8=; 20:g89uwVUVhw2RuhWKOR0r0dbvci3JqI1A74rxTx2kbyFjxPV6HsnJIydHJdj03VQDSC5b/B7WfPscc11da1xDC/R7nQW0ijXB3ZWiJMcV3K7vs9Pyvus3U5s74/9amJ2i/oyRZZEsWOfIs6IWXI/qlqx2V3Rj6uB7gy6X6gxQEkfqBQljrRBfSDUwrbmh8JlRUMvUQMDBNszitiUlkTbV0oGAhDJU7UTgbqSO9w/81+o29EbkePpnxd2oaox42VGO6z2sej/e0pZnroFWlGkAcJzvXvJjA9M/OWgXBGG2Z+xLNt0J376ZmZMA/q2e+02VQyQT9T9/YRXkt/tV0Fq3dGkBDs3RtJQBQpuQPsCNE4JzRlCzozlMos3AZD6C4MTOubnTnAAsqJuvixg+W5WSDjCnHACAxSltBCvw7XLZORc4E472Q/l7+PevNUPCWIf7bKuNOUi2sAeYrOdAjwDfiO/Xl8qPh8DIoUb+dHRShuhFeHm4rPHavG6q3Ah+hKIh X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(162533806227266); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(10201501046)(6055026)(6041248)(20161123560025)(20161123562025)(20161123558100)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(6072148); SRVR:CY4PR12MB1240; BCL:0; PCL:0; RULEID:; SRVR:CY4PR12MB1240; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1240; 4:N4/t+Ya2vQwQDrTGijx7/qxczydiF1bUhJ4F7R+MCrmBlqnzTny7e9X59Efp9bd3gRexO2v8VHHtKDTA91HdV8Z9dZItfzn2xE8cqlGFSpBmTeb1rbBGRptHX3+OD49/TjbC9QORvmMLwf+23DnjKFuDfw5AqFgmYBun6QeTzlWcwBcRhteo9tmyV7mG4v4LKj/OMnTYEWoUa+Zc58JTt0dc0QYm7FoYSEL/LbpkvHundDMnRQjbE8uNdBdagHfbUrfeGSTf4Nkg8gfHYDppdHRL5583RmwppEoretyPMHlLJfCxjB0rjw0KMjha9yQc/tT+8XDdpGrxxfcNMekwyjB6AGbDFq6nkp/se1vJuqSSkDXldSpXVd2AjTe1AJaCvYWOjwUJlR+HGkuz4k6CNcwzCqx8FFRYsevUvC38B4FkFHCr8JZhAmG+4PReNXbHFCh9Bj27ezPXjcs7pf+220FOlDjxcU/f9ePDR+Cd9GJhX/gF0sNatTOsKjb4TSxC211xolUfkGmtFHx8odXPqYohhNJWkjOupdtGx6+/fY4xA/T5drvq9c784HYmiD8gASWNKzAeOKAudsYYkk0BiugLsavotGR5ShcojquQcp53vfAIpfhj6KN9xUdUV3GQMJgt3iheolEqSVWeVkaR/97uZxd04KdqoBaxU5kkOCPQ7/3YucPeOFejAVW+Wyqq6I8ZgmkcrfHK+n2cZTefkYkO9XSqymwGaggv+Ev0I0+zJfrETMY9C6XR82i0GSfsfakOlJyPbXoiYr0obSBk4JFW/X0QnnB2Qrzkp1yVyO8+4vRhwol+bTBtbFaOKy/6DPUAPMzqr2YCINu0CZuhiNoPFlaWp2feH3MpcbRiU4w= X-Forefront-PRVS: 0318501FAE X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39860400002)(39850400002)(39400400002)(39450400003)(39840400002)(39410400002)(48376002)(2906002)(478600001)(50466002)(47776003)(5660300001)(36756003)(2351001)(3846002)(86362001)(6306002)(53936002)(966005)(6116002)(6486002)(38730400002)(7736002)(305945005)(4326008)(33646002)(8676002)(25786009)(53416004)(50226002)(5003940100001)(6666003)(189998001)(42186005)(6916009)(66066001)(81166006)(50986999)(110136004)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR12MB1240; H:leduran-Precision-WorkStation-T5400.amd.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR12MB1240; 23:fYXcMaagnqAfTqqrHiyJWpl6tXdzOCJE62cnyLg1i?= =?us-ascii?Q?3addxD2l38EckP9KpeZClP/STPEMyZ23F6fzvRXqLGA3kky3fr+YeMFh0fln?= =?us-ascii?Q?R43GgiQDgV0UGAf9rjQBajN6PTtIFUQ+nIort/CDW+IZ3QDr7s3VuKEGAcjV?= =?us-ascii?Q?P+Jo9BNYDhW3Xtm2Yy+VaysDzVswJnsQY2Selzno9x0jMjD/9WGZbcjAoGxL?= =?us-ascii?Q?SiwSx6GD58Q0mg96ZtYi/jitgWSu/Di3I1rhla8iidglaQyuTO/vGwNuIukJ?= =?us-ascii?Q?z5KmcfxH3M8o2t/dot1PfmW8qjQIjIJGoQnrUPcGxCjWXQp5WywH3K41lM0y?= =?us-ascii?Q?UCX90MjEq0bSa93C+KX3s5YPl6e2tw1h6OcXoFAV+ZzQOGGXyEEJO261Ne1d?= =?us-ascii?Q?lzklxLAa+fsODRXLyCn21Mww/nhjkghXPNs8hpyPgzd7+RcixdejYyZvDJui?= =?us-ascii?Q?vRUz8NswpDlZ1ZrpxuuzEA/AHSgt0D+J2go1r7wtAlOEd2ohopsq+oR0kgq7?= =?us-ascii?Q?Ve1I5GMa2CYnm8zE1olpIpnFBDaGmMDfHzD6ATH5z8cWT20Fau0+Q92YgB0M?= =?us-ascii?Q?X2/oD2c8BnqmK1YXPd/bMNLjqSBKHooAnAV4nhLwVWjaW+9fys+NfhnyOvh0?= =?us-ascii?Q?3bjWuSzEuNR05kgri3dCLs+FRZcdaPxGOwvkROIsn4oqy9HeBVAs69YbTqEL?= =?us-ascii?Q?uRaHFw0bxXu2pUmXP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fuMeIF0xvQ9Pha5p6zwnV8OKSYzPb0XVA+BqIOHqXtanfXgT9ErUgm+HSYU7K8Mp+8BGUGjPTFlHBqYcipSyU6Fhuhara8p9iLW27BXCFK5qB4w9rC9JgM+yij4jnPJnfrLENtTqRATCW65DhfTLmyxxfRjh8MN7IroO8PsM2No=; 24:rvVlkzfOLO+hpXb59VOWWHybnt9Mb+K8tTABJ7wN7QinrL19hVm1MX3B88IpEWdfbA3XLq06rnf+jpz/KzMQQX91kQLbgbxSGnxQWD+PKVs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1240; 7:am3Hl1zHwaRO2peQ2WIzpwXbifuWYbtONs3R8nHjWIP82WEYJKdyWWn5r1J5YskYK/5WHoyaPPPMpktEGXfUVrQ+s6gFhwlh4cxERGB4RnTLBtY2AdZFroPJwYx8R+bo3SJJdBlXNcXyqYhPt/erWJvyPeMBthFMSI2h0jznMahSM/NgEBiC08i+cK3cMa0FCnxr0M2rfN1t9Z7RT2JrwdTXU6irEiGag/Pt9tv4xhPstSsx5Quu7veVhrXYg/cbGd2GB9RyIo02Xs5KM0OOJJqVXMXMWoLunotuXiAHRNBAj73yeQdDUm9XKHPH/5oMRsJq4PCR/+gEalTxgKazow==; 20:McZoN0vBbcDkyKulbHgV4G4n+Ijz9NMbMN4yYnj1oxY5y6Q2RgVdgIgbuxzufKWd4euTScMyQkbVnZasu2DaaV5hLuRTv/SrH1G03gbwjEIEocM50EZV40uBi/gRK9L7etoDbDEXvUH90W6AvDxj2+mxi4mWSS3792TNpUaaI8HRZ7N7oJ1YD8BfNLDK4BRP4X3MZQSKISS2ON0I2rMqYj+5aL7uJzVoskWNLYPMBhCouE0XGelqzz/+3IULjvrG X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 May 2017 14:32:46.2815 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1240 Subject: [PATCH v2 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: Thu, 25 May 2017 14:32:48 -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 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 | 265 ++++++++++++++++++++- UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.c | 85 ++++--- .../BaseXApicX2ApicLib/BaseXApicX2ApicLib.c | 85 ++++--- 3 files changed, 354 insertions(+), 81 deletions(-) mode change 100644 => 100755 UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.c -- 2.7.4