Received: by 10.192.165.156 with SMTP id m28csp557477imm; Thu, 19 Apr 2018 03:50:17 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/h+Ec67g2GZmV0SfAVL9sSmK3DPa+dfAF+eDFYVu+LvcJRidJIwrg1ZBHE8Uz6dGcatdjt X-Received: by 2002:a17:902:5a46:: with SMTP id f6-v6mr474099plm.85.1524135017440; Thu, 19 Apr 2018 03:50:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524135017; cv=none; d=google.com; s=arc-20160816; b=w77AsWd9UzMegb3yOUX4h9rt7gMhVGfGuRUPdsYzAceoeYWCu+G8n5Izaf1Ya2wXwz faasrF6ONPTb/vS5kINVFK6hMzq1upcHqNCzpy2vsGeuZSCPyoIJyqfStxXxRC/XxVKP kD/zqDYUjwJpc81pBCHINhRd2bD/n9c2/ObMsOFrYWThpMGkFgBzoBlaCWVNDJQ20Km4 +Hu0ig5hC9TFaeOe6JxNvI9cC8/xecNF6XGfAuzp5BYxO9BGkefVHg19upZ02Zmc2eKC 8WLFvdePQff/Km+DMxS3UJtf+rEksIY4yAmYYPruBKbSOjnN6HLmxwTLJjN48cQOXAPJ YZjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=Ro4C4JDwDroho+zqS3r8ijIKXyZWYpirZt9z2NIhO78=; b=IdichPHmhMJpqv2lOOl5acWPYSQs/7v5S93KNbrJ3jGe/wL0sDVVN2DWKg1l1R6RSH dZwn1eAp8cgYp4d0BWSqLhdtNy0OOUszI2BEqoHAjulM8Q1T+IbNg9gEGQ40gCfhU6Ed I7X0nSsac1fs4cIvm0HhFLo1zm7p2c+ykIoqUtgDJRYsBoY8q3TIqctRZ10yjvOMG/8i JrQlzhHt43z/1cQMFfs9u/dFhZr/YJcj/OgU+/hmGkxiPEgm5n11S/8yCPDO+Nekn8xK 7rcGgslY5lPhkh1Fn6VOIWj3vDW6J2Sjb+l8WyBBryUDzYpT1gTJR0pzZR+mYn1/Ws36 hqtQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t16-v6si3132921plo.485.2018.04.19.03.50.03; Thu, 19 Apr 2018 03:50:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752255AbeDSKsh (ORCPT + 99 others); Thu, 19 Apr 2018 06:48:37 -0400 Received: from mx2.suse.de ([195.135.220.15]:41764 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751151AbeDSKsg (ORCPT ); Thu, 19 Apr 2018 06:48:36 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 06F28AD2A; Thu, 19 Apr 2018 10:48:35 +0000 (UTC) Date: Thu, 19 Apr 2018 12:48:29 +0200 From: Borislav Petkov To: Vitezslav Samel Cc: "Raj, Ashok" , Greg Kroah-Hartman , linux-kernel@vger.kernel.org Subject: Re: 4.15.17 regression: bisected: timeout during microcode update Message-ID: <20180419104829.GE3896@pd.tnic> References: <20180418081140.GA2439@pc11.op.pod.cz> <20180418100721.GA5866@pd.tnic> <20180418120839.GA5655@pc11.op.pod.cz> <20180418122212.GA4290@pd.tnic> <20180418135330.GA23580@araj-mobl1.jf.intel.com> <20180419053531.GA2224@pc11.op.pod.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180419053531.GA2224@pc11.op.pod.cz> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 19, 2018 at 07:35:31AM +0200, Vitezslav Samel wrote: > > - Can you remove your builtin microcode, > > - rename the /lib/firmware/intel-ucode so we don't find it during late loading. > > - let the system boot completely > > - then rename the intel-ucode back for this test. > > - write 1 to reload and see if that update succeeds or fails? > > Just tested, it fails. Can you apply the below patch, do the exact same exercise and catch the output? Over serial console or netconsole or if nothing else, do a video of the screen with a phone and upload it somewhere? Thx. --- diff --git a/arch/x86/kernel/cpu/microcode/core.c b/arch/x86/kernel/cpu/microcode/core.c index 10c4fc2c91f8..374ec1d75d89 100644 --- a/arch/x86/kernel/cpu/microcode/core.c +++ b/arch/x86/kernel/cpu/microcode/core.c @@ -553,6 +553,8 @@ static int __reload_late(void *info) enum ucode_state err; int ret = 0; + pr_info("%s: CPU%d\n", __func__, cpu); + /* * Wait for all CPUs to arrive. A load will not be attempted unless all * CPUs show up. @@ -560,6 +562,8 @@ static int __reload_late(void *info) if (__wait_for_cpus(&late_cpus_in, NSEC_PER_SEC)) return -1; + pr_info("%s: CPU%d reloading\n", __func__, cpu); + spin_lock(&update_lock); apply_microcode_local(&err); spin_unlock(&update_lock); @@ -571,9 +575,12 @@ static int __reload_late(void *info) } else if (err == UCODE_UPDATED || err == UCODE_OK) { ret = 1; } else { + pr_info("%s: CPU%d returning 0x%x\n", __func__, cpu, ret); return ret; } + pr_info("%s: CPU%d waiting to exit\n", __func__, cpu); + /* * Increase the wait timeout to a safe value here since we're * serializing the microcode update and that could take a while on a -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --