From patchwork Tue Jun 27 15:00:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Lendacky X-Patchwork-Id: 9812259 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BD1A8603F2 for ; Tue, 27 Jun 2017 15:03:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A368F28401 for ; Tue, 27 Jun 2017 15:03:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 94B1B28464; Tue, 27 Jun 2017 15:03:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 45F5B27FAD for ; Tue, 27 Jun 2017 15:03:28 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPrz9-0005kX-1U; Tue, 27 Jun 2017 15:00:59 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPrz7-0005j9-Dl for xen-devel@lists.xen.org; Tue, 27 Jun 2017 15:00:57 +0000 Received: from [85.158.139.211] by server-5.bemta-5.messagelabs.com id F4/5B-02177-82372595; Tue, 27 Jun 2017 15:00:56 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA1VSa0hTYRjed87ZdjRPfG6mbyMtV8NcTruTERF BpUFh9qPsR3pmp220W+fMsH5004oMswuWDimzErTECNPI0FRG5KUiZaP6UXiJLi4MBaUoOmdn qf17nu95nvf5XnhpUnNepaO5Qg/HO1m7XhVJWdOSM01JQnbO8ony1evu/LhNbUIZvtZfRBbap 7Q5za7CPKX1/peAyl0xp3DgZz11ErVHlKBImsLFJDy48EgpEYSvImgIXCElosFnCRgOnFWXoA hahVPAH5wgJKzF+yEwVUtKOAZXEzB4DUsBEgdV0PayVyUJBF4A1TV3QyYKG6CsuTsUZnAGjPU VhXAEzoSLn56FPBrxvbRjPFQ2DydAXX+xUvZHw4vKYaoE0WJBMjQ+SZOeSbwQWoJVoSjgRdAy OamS/gD4HII7n85Q8swl4B1/rZZN8eDrq6JkvAOCw6/U0kzAi6G7eKec7SCg4aOPlEmfCkav9 yM5YISy0qdhYVANVc/PozBRQs9oVbi7mYKpyzeVcsQODVPl4Xgm1HmvhuO9Shhq6KBk8h7D+/ Ex6hIyeWct651Z1jtr2WpE1qOlAscf4XjTyvRUM2+zWD0O1mY3rVi+JtXBCQJr4eysWUjNdzk eIvEuTigU6DHqb9rZiebThH4ecw+yczRzza4DR62sYM3lC+yc0ImSaBrX+E7v1lFOl5PTA2Pg RVs0z1m4woM2u3hn/5xAR+ljGL9blBnBzToEm0WWulGiLo75flgUsCRYC5zTsX8X+gbF67QMU igUmig3xztsnv/1ryiORnotky61R9mcnunpX8ViQiymbmRJxR52RtKdRFlGs29PLLHRgNmkZS Wbt+j8q26n3Hqr3ZxY3lNZVL2/9sOHrYbagZGiPPPn9YMvrsTUKJ+U/dnQZErOed1W08p845b 5fya0Zvzarm3kY/eO9Oyqz+eOV8zJPTYR54a1XfEFx+mEu2ldddvaD61Pb4kdKX73uc14qvdt 85rLQ4qh33pKsLIrjCQvsH8BvgEHN5wDAAA= X-Env-Sender: Thomas.Lendacky@amd.com X-Msg-Ref: server-2.tower-206.messagelabs.com!1498575654!84708219!1 X-Originating-IP: [104.47.41.73] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.19; banners=-,-,- X-VirusChecked: Checked Received: (qmail 61327 invoked from network); 27 Jun 2017 15:00:55 -0000 Received: from mail-dm3nam03on0073.outbound.protection.outlook.com (HELO NAM03-DM3-obe.outbound.protection.outlook.com) (104.47.41.73) by server-2.tower-206.messagelabs.com with AES256-SHA256 encrypted SMTP; 27 Jun 2017 15:00:55 -0000 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=9JdqfmLVHYCrg0v5+Pitg9yzHyZd77lR0BvWKOO0Q9c=; b=C/0BVxmp5KkveqNWIQQFy98l787qFtUHmqDKZ2ngYeF7SZVgMsTv2qC7umMe4PlrqDxfsjqc1U82IqXUH9B30QhdJjWhRiEfpifNeD+nxVKbqNKi7v+UhQgW3eaC2TsvlR34s79krRFMoHzYSWdjvxhxN14b5tft/JjT6BkRI7I= Received: from tlendack-t1.amdoffice.net (165.204.77.1) by DM5PR12MB1146.namprd12.prod.outlook.com (10.168.236.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1199.15; Tue, 27 Jun 2017 15:00:48 +0000 From: Tom Lendacky To: linux-arch@vger.kernel.org, linux-efi@vger.kernel.org, kvm@vger.kernel.org, linux-doc@vger.kernel.org, x86@kernel.org, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, xen-devel@lists.xen.org, linux-mm@kvack.org, iommu@lists.linux-foundation.org Date: Tue, 27 Jun 2017 10:00:45 -0500 Message-ID: <20170627150045.15908.23856.stgit@tlendack-t1.amdoffice.net> In-Reply-To: <20170627145607.15908.26571.stgit@tlendack-t1.amdoffice.net> References: <20170627145607.15908.26571.stgit@tlendack-t1.amdoffice.net> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: BN6PR04CA0037.namprd04.prod.outlook.com (10.174.93.154) To DM5PR12MB1146.namprd12.prod.outlook.com (10.168.236.141) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 06e7a50f-7457-45dc-6adf-08d4bd6d4d46 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(48565401081)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506067)(300135500095); SRVR:DM5PR12MB1146; X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1146; 3:4dOYug6xvHmrxTGYEOM6qvgnFJN1FYv6cB4NJNaH8LMB4Ro1GOr3GAZ2oyx6ZpkXECUi1lEqDorMKopVVe6gS1dRMZXIocE/H76Ka/BcK6+mAoh0YJdGXdsFKCYxRNTPXfTKRL+gLn12nn9DgYyVKobd/kbn/xvbxnVjPUcmtxnhdV+C9kdHDN/bnARcwNsOi3EPC9qBpQh2c8wf/RfuIYrRO2URo3XvIZ2tlWiPVToe0FDQtHHWdORXPxTYYVJ0CWoNEQZ/ScdQrPz0Vmi4CSVGQ2nvgwyPYC0YcESL3uRhJulIBOyKf3dbuSW2uWGVOKvv7b5KVUuJAjRF0C+5E+OewFmIGrtIW1t4baE5yYv8tLVW2iIj93QQt8FcOEnYsx5nPniyJKlxph652zSirw9nrqsBuFHYo7UyqX9XiutVGDDwO5Lojbr51UMlQpgfOLWQC2XKAXWO2NhPQstV/e4TktvGpVt7HO1S3APpgkY+5fESQiMATz9Fu9uvcbhOIMyd0dNr58d8ydvHqhI/8KMeV5Ya7A7gXAn4d7I6Vp3Fc1i5ikgBi5PHr68ZoMk2cIzjbvhcE0/Ah2tqJi0K6RwJWYdvrmVx2+H7vmaeaxsF3sar6HoO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KBd93ptVZN67LoOXJnVNIBHT+cdc7iGd2J3avuhqMpmJt1lmQFOzvj/Oz8VBNCk7zvRy1H4otfjCE98K3MdN9n95D1lJlsTM= X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1146; 31:DpvjzqwXMCECDUuzyw4mHu8Co4bhw/tZyB1jJUOEkOPGaLKho3ChaExZ2xi9HscQlJADmYKbFHpyKw7sCz+hRro+HVIFj/OVuKD2NQ9jW1L5kEDdp/a/Mxx0cvr+wI1b5+aKenm7OmqGFoAK8B66oAdkAmMFU+98s/5fc3QkHccA76jAXUDgMH9b0ZukEi+TK5mw6DWTm0N/KC8y7hcUQe9EGwPCTuywHdBybsdErUPImCIQUc4eMN45BINson+R8mDK6aGGqFF8FB7+wP1ftK0o81dkiDypAY+DlRAlZAPCJXx7VKuLwLfTJS66MGD7L7uAfB/Tyq+VVlR/ZU4DKFdii/VddHVgLkoGQaUB4B7og2gWmZhhlg4I4tVFmhGTu0W0MdsWRVkVGKIJCYp9/I5meoF3OgSwHExcMRaPGo6DzHVlNy9Uck9fKrQD2Khhgm1+LEAj5IVLHUCZqsvXL022pZJ/m7SmrACxOuEE7ElyoPTOroZYR1Ih3V+/XdwDj63eye8IRcsLM1WBQtf6wv+nuJpTInk/yUEq85lWtocHBV5XeRPWPXct867//wqjnJlqRSsVbbaQUsvMEwPWg10qs672TI0LIlcqPmi6kQB3ptCgve7EGpqARHK72bSaLVoii2b00pSUEeI2uR22zqXmhDeKYS14PxfKp5g6rcA= X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1146; 20:pBQgFZZPDrcKS6qXcP5nd0QEISmfQXGdegruAUBqApyeOMGiIDv5cbr7gq4JMnCuMrTWHYOx8oPs+CDN5Q9n3RSUZbElbXxCCnf5kvZd906T/srqFayu4ot78R0bfK5QrxCpdzxH7/jPq8gJhh9nQxot+SWToeTxvAniK9u13l9ryXWqJzJIt+smO1L/odGCFGggcIeFc+3scOSUoskU+AUSKMkEK9QNa4Be5XLL8KXtjhhfhW67MhHpB2xp3urtmPGR5OmUEQndiHoMcm5oj94ImteCMr8ARGybwZR9NdpshhOxlu2OxsYAfvtPEkZvWQoLbTlK/KMOKE1tsuic6GvfJx4y0JlUPE/VJzPxXw2uQgeWTbDnQ6wRd9zYn9UivgDvURKpUArp27mA+EIpctN+fG3bQokVyBKKmHAwb4o2wJHne+Zi09CuEh+S/n/eTpp3u3XujofM8+Z8woTHhp4KC4ncK0zbCuLYA6BoyRfqqiE6dmpfieJUvHMxGmV5 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(6055026)(6041248)(20161123562025)(20161123564025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR12MB1146; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR12MB1146; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTVQUjEyTUIxMTQ2OzQ6Ykg4ZVliY3JkSUpHY2lKQ21TaktwbDgvZHAr?= =?utf-8?B?ZEh4VGFkV3NUbEd2Z0lqR203cjhXYWpRQWxaUFB5Sys0VW13MWN6TUoydGZz?= =?utf-8?B?clo0RTdZeDJPd2d4WXhSbHVSbXdSQkhCUXJGb3dibnBndXBQR1BvODJlQXV2?= =?utf-8?B?dGJXeTJaVVVGSG54Nmk4SWUyRTBncVRzbG5oTEhTbVNyQVRlRlVvZDVMN1NC?= =?utf-8?B?VXNIeUZrbWdieDRQV3FSQ2ZOelVld1JvZ3FWS3dwem1Tc1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Ham5DRmdNQ0I2V1ZCQXh2eDJJZWorVS8zSzFVM3Vp?= =?utf-8?B?Rm5peVNoNnZSS3VFL0hEbTBRYzVmV2RHUWtqcFpQeHpOTzFvVnByQk90QXR1?= =?utf-8?B?Wnp4c3p6SzhSWmg2OHRCeWNBMmxCZzc3UUQxMnJwdXRRcnJPZE81UzJGSGww?= =?utf-8?B?a0p3b29pL05lVXpWOS9zb2c0emNjczVvdmMwekFCV1I4UTJpaUtwWmk0NEpH?= =?utf-8?B?UUxvYVlZOE9rczVIKzVLS1ZXekhkNXpxZkZiSWpWaER3bDlSZnBPWCsyWmxh?= =?utf-8?B?V2RON1Mrb0o0NENoR2plbEFMWE9oRHNOR0VUTk5WcUF2czhOQU5QRUJ0Mldr?= =?utf-8?B?WGlqTzZqVjdGdXJ2c1lrT2ZQYithWUJCc1BPWVpYNDZqYVJCbHYvKzhUMGkv?= =?utf-8?B?TVVnL1Q1eWQ4TFpjeDZVVWYrblc0S2dZbGxaM1Q0ZnNPN0RrZWROWE41UXk1?= =?utf-8?B?R0xZYkxwK21yQW5GQ0NiN28rc3p2aUVaanRVREQ3dVN5STFkK2tweUdNUnA5?= =?utf-8?Q?b+kuWyUOyW2rTkUPM=3D?= X-Forefront-PRVS: 0351D213B3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39850400002)(39400400002)(39410400002)(39450400003)(39860400002)(39840400002)(53416004)(5660300001)(1076002)(2906002)(33646002)(8676002)(97746001)(81166006)(42186005)(50466002)(86362001)(7736002)(103116003)(230700001)(6116002)(3846002)(305945005)(7406005)(7416002)(53936002)(6666003)(54906002)(9686003)(38730400002)(6506006)(55016002)(23676002)(25786009)(110136004)(2950100002)(47776003)(66066001)(83506001)(189998001)(478600001)(72206003)(4326008)(4001350100001)(54356999)(50986999)(76176999)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR12MB1146; H:tlendack-t1.amdoffice.net; FPR:; SPF:None; MLV:sfv; L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lAS8SJ7cBSdKK6kOVgXPJTfet6D+8Df+iHu153m/RfWJDT6KHz; 24:GHv6anGbDqDHpfwcDo7/DbPnCt4YRaQyo0xYm/w2gl9TDy7aLwDTJ0/bwQqBAMHo+k4ZPjgYzA18p6NyxwX01UXedT5dK4NDxCiPx2r0C40= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1146; 7:4rGNRxqamjhQ4ONf2pUOpNrFqtJOeCMhWEMWOrT+R30EMivil1/6Eovq9fyu4aNT7ICBi30jWKWtMTkHyWiP2X+dWQzfBFkjipa/bCVVUjFafJRHE7ZUQ2so049EBcNoVcHdlpLc74ayKvBGCnAk1w59sTCGba2DwOls9Y1vTL2LwfixJtdkp4lE7WK6PfPrbxo36DbEwpgR47yxq8AY/VS378OipcbNYhkYRkmvMPPfWzQzHy84kuAueYDVJ49fesaKG78NhlQg4N47OZKdKpcjlijn/CQcjXYXbXGtHyWEEjpmmX8eFdMJbo4x9LNo+e1TrwjOS+yS+paOcbi5j1SImes3Pu5k9jswJuH9kBwDGtaNhcbyfPkXercuH38UBAoC5lYLgI+YHjzc41Wyk/LijpLJ1+wNkIzNV5sxgAUAynrCrC9o1Itsu0rh+T4ZbQVZWHzORG52Vhf4jtAwveaG56VerMs36RGna+WfYlokEiqjsha+gVwnhTcv3GdUEul10Phz7biWlfhwYNZ5f2wI7hSusKpCTKL50nib5qTXKUrBaKGUIRTCIeDTeB2peGS3GOigvNaF0m5cjvr4xlXI2BJasUlZ+DJ2QapaDxJXeUDB10twdLrcm2LNcZDF9IcgwvgcRWPNOsMk818BljT++QiccHP9X7tyuxu8mI9hg70cwgL0KU36njoLpoZUy5F/vWYV1D5ijne8xQvaaxv9HbyrS8CTU2uZ3C26q4im4srs5BXtotX4iTHT5BvWZdCyojQuKBMFMZbqhNeammWnYEYZJVHHSakpZnE15Bc= X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1146; 20:ufVUpy86+dYMgkMFGYMa1if15YiMnpRfhdS32r7+a9oufwIJvZZXeDDPtgABdsxZfDK9UaGsCQQcRuy2LcG4c4s2BbXgxluajFUIJDRv35OA3giepUcSy1lGqPxEkWCkmAetCHAC8fPDgeSSR0buL9l6ragFQZHN4/Od+cPBOO6CUeWV6lu17K/WdZS3tHAaqLf0SAd59h0ZpY/cdDkf9xId0ilCy9La7IIy5tlUo3vTSaO4n4X6QC3xz++AbwbI X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2017 15:00:48.4365 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1146 Cc: Brijesh Singh , Toshimitsu Kani , "Michael S. Tsirkin" , Matt Fleming , Alexander Potapenko , "H. Peter Anvin" , Boris Ostrovsky , Jonathan Corbet , Joerg Roedel , Radim =?utf-8?b?S3LEjW3DocWZ?= , Larry Woodman , Ingo Molnar , Andrey Ryabinin , Dave Young , Rik van Riel , Arnd Bergmann , Borislav Petkov , Andy Lutomirski , Thomas Gleixner , Dmitry Vyukov , Juergen Gross , Paolo Bonzini Subject: [Xen-devel] [PATCH v8 26/38] x86/CPU/AMD: Make the microcode level available earlier in the boot X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Move the setting of the cpuinfo_x86.microcode field from amd_init() to early_amd_init() so that it is available earlier in the boot process. This avoids having to read MSR_AMD64_PATCH_LEVEL directly during early boot. Reviewed-by: Borislav Petkov Signed-off-by: Tom Lendacky --- arch/x86/kernel/cpu/amd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c index 5bdcbd4..fdcf305 100644 --- a/arch/x86/kernel/cpu/amd.c +++ b/arch/x86/kernel/cpu/amd.c @@ -547,8 +547,12 @@ static void bsp_init_amd(struct cpuinfo_x86 *c) static void early_init_amd(struct cpuinfo_x86 *c) { + u32 dummy; + early_init_amd_mc(c); + rdmsr_safe(MSR_AMD64_PATCH_LEVEL, &c->microcode, &dummy); + /* * c->x86_power is 8000_0007 edx. Bit 8 is TSC runs at constant rate * with P/T states and does not stop in deep C-states @@ -746,8 +750,6 @@ static void init_amd_bd(struct cpuinfo_x86 *c) static void init_amd(struct cpuinfo_x86 *c) { - u32 dummy; - early_init_amd(c); /* @@ -809,8 +811,6 @@ static void init_amd(struct cpuinfo_x86 *c) if (c->x86 > 0x11) set_cpu_cap(c, X86_FEATURE_ARAT); - rdmsr_safe(MSR_AMD64_PATCH_LEVEL, &c->microcode, &dummy); - /* 3DNow or LM implies PREFETCHW */ if (!cpu_has(c, X86_FEATURE_3DNOWPREFETCH)) if (cpu_has(c, X86_FEATURE_3DNOW) || cpu_has(c, X86_FEATURE_LM))