Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932680AbeAIXoQ (ORCPT + 1 other); Tue, 9 Jan 2018 18:44:16 -0500 Received: from mail-dm3nam03on0043.outbound.protection.outlook.com ([104.47.41.43]:35456 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753225AbeAIXoO (ORCPT ); Tue, 9 Jan 2018 18:44:14 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Thomas.Lendacky@amd.com; Subject: Re: AMD EPYC microcode update bug? To: Gabriel C Cc: LKML , Borislav Petkov References: <997def1f-c8d6-15e3-3505-2a4a78b072ab@amd.com> From: Tom Lendacky Message-ID: <13930998-4e26-d986-f01d-4d9ff4db0a07@amd.com> Date: Tue, 9 Jan 2018 17:44:08 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [165.204.78.1] X-ClientProxiedBy: BN6PR18CA0003.namprd18.prod.outlook.com (10.175.188.13) To CY4PR12MB1144.namprd12.prod.outlook.com (10.168.164.136) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 0de8a3f6-ff05-4a31-4f93-08d557bae343 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(48565401081)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020);SRVR:CY4PR12MB1144; X-Microsoft-Exchange-Diagnostics: 1;CY4PR12MB1144;3:oyEdhnz5igW+Mk6HWTJ0LQkuL47PMZ6jhxQRPYiG0O9QU3LXqqd6HmLglw/G6zXGiMmdLNB2LBBM9Y95awOpC8s4U96eQQVn8b8hqSHrtKRlLO2SfDqsw1RU565bIxTSbwZN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7qkqflJSioODgpkomgr4ERDcyvEzIrCVpyotHy1TQvhSFSxJQmccpYM4ufQdy2Fy4ZRuk70Mo0Vsl1/7pLf95L7jKCytHWG1Ybi2iJSRzpXqB7yXW4oNBICkGgA3oT6HVqogT/bm0tDChDCOnmG1qO3fBSVJSKYBmIw/EQwCEVuT7FhVmNcdlrF0UFtKo7xcYOlaBf4Wkm+N/EPAxzVFUBzmqZOxTBdCj4WY;4:hNy3g6YrWLTfl26+/EfgswWc6wgU9e1Sh5HOUSai9hbccoGK/U2vZ1sdZIcN2CbipY4HkRyMVz/Z68CvzXfZUoTP4EpC/bAYOSqtUn9Wbybe9H37Q6+myRIjL81V1TBU9gBI8PbVfKqu1fA+QEcmeodrNUmZcDKX3rye7qe/Vv6TixteUVd3TL/hOcDIBiZ8oxSRTdoMcTAVhElNSTXGDLOowU5hqikB0u0ZNyKPcQVrij8D8k3isFMgt9d491SyczTsOHjOl/3rEbgloydfLL1bcclk0TkmoDhgH5hM1vNBR0ND2DCqw/8p3xl1V2P7 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040470)(2401047)(8121501046)(5005006)(3231023)(944501075)(10201501046)(3002001)(93006095)(93001095)(6055026)(6041268)(20161123562045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011);SRVR:CY4PR12MB1144;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:CY4PR12MB1144; X-Forefront-PRVS: 0547116B72 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(39380400002)(346002)(39860400002)(366004)(396003)(376002)(199004)(189003)(377424004)(24454002)(55674003)(3846002)(105586002)(39060400002)(86362001)(72206003)(25786009)(3260700006)(65956001)(50466002)(230700001)(316002)(15650500001)(2950100002)(65826007)(7736002)(31696002)(8676002)(5660300001)(6116002)(16526018)(6666003)(16576012)(6246003)(4326008)(52116002)(53546011)(83506002)(386003)(81156014)(59450400001)(76176011)(54906003)(6486002)(6306002)(77096006)(106356001)(6916009)(229853002)(68736007)(23676004)(31686004)(478600001)(2906002)(81166006)(36756003)(64126003)(90366009)(47776003)(58126008)(65806001)(2486003)(97736004)(53936002)(66066001)(8936002)(305945005)(52146003)(966005)(217873001)(6606295002);DIR:OUT;SFP:1101;SCL:1;SRVR:CY4PR12MB1144;H:[10.236.65.116];FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTRQUjEyTUIxMTQ0OzIzOk85VVBJZ0d6OExUK0d6MWp2SDBOaURKQmNT?= =?utf-8?B?NlhONThGV1JuQTZUNnpWQU4vVE9TUnZrTUI0SDlFMTBPT1gwdWVGMjVISzBT?= =?utf-8?B?UVhteXYzRXBuVktkcVRCN055ak4xL1FTWldBV2pjSkMzU0tNekpyR085bjAz?= =?utf-8?B?VHlMN1d3bnlvQkhGQXl5QnNScUlMSlZROUt3L1Z1SW9NMERsQmFFTVZXOWtp?= =?utf-8?B?UkkwSjluM2JQTnEvSDBlZlRwNDNxcFFYbDErQ2FPUmhDWjNkdEgyNXdKWWpi?= =?utf-8?B?aGVaYmtoSDRTcjg3aFpIbFhwWjN4bXEvZzQwV2tFNithWDRsNHNDQWwvR1RF?= =?utf-8?B?cmRBMHZkbGxtWFdOMllNK2hKQWhJbmtWTFZYS1I4WGhBL3dGMDJBOVdIRVlD?= =?utf-8?B?Y09VQTU0ZDl5UmllelhzbWZlUld3VXY4dnh5WVB0MHlHSXJaSjR5M0tsd1NO?= =?utf-8?B?K25JS3gzZDdVTklwMXRjRWkzOXNlMEpibWhkQXV1S2RZcjQyZFJzQXNGOSs1?= =?utf-8?B?ejBWd3d3MXZhMEJTOEthajhuTDRvZjlRMkFUMlJrVitwLzZWdjBsSnJ6a2Rm?= =?utf-8?B?NS82cTRvZzFDSXY4bzYrRj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NvZH+vWYuv/gpXR7 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jan 2018 23:44:12.5072 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0de8a3f6-ff05-4a31-4f93-08d557bae343 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1144 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On 1/9/2018 5:06 PM, Gabriel C wrote: > 2018-01-09 23:47 GMT+01:00 Tom Lendacky : >> On 1/9/2018 4:28 PM, Gabriel C wrote: >>> Hello , >>> >>> I'm testing an EPYC system right now with 2 EPYC 7281 16-Core Processors. >>> >>> I'm on 4.15.0-rc7 and tested an update to microcode_amd_fam17h.bin. >>> >>> First run was made by using the early microcode option with dracut[1] >>> so loading from a initrd. the driver reported 63 updated CPUs while CPU0 >>> got still old microcode. >> >> I'm guessing that memory encryption is enabled, correct? I've submitted a >> patch series to perform early initrd decryption for just this problem. I'm >> incorporating some minor feedback and getting ready to submit the next >> version. > > Yes is correct I use mem_encrypt=on and SMT on in BIOS. > > Can you give me an link to the patch series ? Here's the link: https://marc.info/?l=linux-kernel&m=151389377606957&w=2 Thanks, Tom > >> >> In the meantime, if you specify mem_encrypt=off on the kernel command line >> it should show CPU0 updated properly (with mem_encrypt=on and SMT enabled, >> I believe it really does get updated when the sibling hread is updated - >> do a rdmsr of 0x0000008b to verify). >> > > I give that an test in a bit , the box is running now some test for a > different EPYC issue :) > > ( https://community.amd.com/thread/224000 ) > > Regards, > > Gabriel C >