Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp116985imm; Fri, 31 Aug 2018 19:35:03 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYoCsy48bg4PcgssI3QmYusFsi1nu5YwdWsFXjdgoyq0Iiudb1NRVTksh4DJzRd3xgEbbFp X-Received: by 2002:a63:1316:: with SMTP id i22-v6mr16628165pgl.86.1535769303666; Fri, 31 Aug 2018 19:35:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535769303; cv=none; d=google.com; s=arc-20160816; b=M8zXaKo0vBqUEVXqm21Mxy7MU02DLEU0OiJwQNd4RRlmEDFb5QWTT2UAIzIDvaHck8 yE6+j6as00fzOTLwf1Bl/2QYCg4zdBG2xoVR6JFVTrSvoJfeSJIkEE65nflVDuAraHG8 zV+iP4SD60x6moX/bof3LKCprPCm/LQPZLe+eaKyM080TSve7/KoKRD7vf35DQbtLK23 VvBdowTdT0UYosaOAaZ5nbkOQ/RfuyAI0dkDI0YJDnflDa9DJUAPNVRXkD8BNiLkWnpz Zkq1yqEnqy7owvVKYHtVdPXfeBnBiUR9Xrsc3iPO+YspV1XQcx5hpfDo4yIFdoj0/cpx I5YQ== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=7IVdJCZesE+GyGpVkmsSILE2b5AramKbm74lPGv/IiU=; b=UsNJ7IhYm2tsCNm2uCYv6AjXsMvbztXe7pIh7FPNBd6g3f049v1MKeYAGET4SuTOTs QLKFc+57KrlD/A7I9l7BPQbNLA2aPODoyZe1FLwpGlaJgglMU58aDpgT9S1rEX7sjOFj NU2SLWn+pUB0oLBTVHFplKhqjUkaisRNooEmxtDLgSsB836886WEaXyA/OVxWrNMi3FO PF6V7svqCCx5ftUrS498hzHaSTtLX2SunedFGkcvLj8Sh56DbJvQ0D+p4lejSpFW8mSN 1E9fTG/kUGsVL5uSb2Pce1fxEBaGx9v0ZWAwgYxNdnLM+1h2DBrTd/B6vnhH0Eu9KvyQ DnMw== 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 m192-v6si11811234pga.410.2018.08.31.19.34.48; Fri, 31 Aug 2018 19:35:03 -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 S1726621AbeIAGoC (ORCPT + 99 others); Sat, 1 Sep 2018 02:44:02 -0400 Received: from ipmail06.adl6.internode.on.net ([150.101.137.145]:55719 "EHLO ipmail06.adl6.internode.on.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725821AbeIAGoC (ORCPT ); Sat, 1 Sep 2018 02:44:02 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2BY/QCh299ZAPQbsjFehV8ngy+DdYdpjj4BmDKCBEQBhHoEAgKEPlgDAQEBAQECDwEBATJPhR4BBTocIxALFAQJExIPBRgNJBMUigmuGYtugy2IbIE9AYMPhiwFkUaBEI5ulF0NcpIelyRWgQ9TIRmFb4IHMDeLVgEBAQ X-IronPort-SPAM: SPAM Received: from pa49-178-27-244.pa.nsw.optusnet.com.au (HELO mail.disenchant.local) ([49.178.27.244]) by ipmail06.adl6.internode.on.net with ESMTP; 01 Sep 2018 12:03:42 +0930 Received: by mail.disenchant.local (Postfix, from userid 1000) id 37429A380D; Sat, 1 Sep 2018 11:51:26 +0930 (ACST) Date: Sat, 1 Sep 2018 11:51:26 +0930 From: Kevin Shanahan To: Peter Zijlstra Cc: Siegfried Metz , linux-kernel@vger.kernel.org, tglx@linutronix.de, rafael.j.wysocki@intel.com, len.brown@intel.com, rjw@rjwysocki.net, diego.viola@gmail.com, rui.zhang@intel.com, viktor_jaegerskuepper@freenet.de Subject: Re: REGRESSION: boot stalls on several old dual core Intel CPUs Message-ID: <20180901022125.GO4941@tuon.disenchant.local> References: <74c5abc8-7430-5bc9-2f8a-a2205608bee7@mailbox.org> <20180830130439.GM24082@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180830130439.GM24082@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 30, 2018 at 03:04:39PM +0200, Peter Zijlstra wrote: > On Thu, Aug 30, 2018 at 12:55:30PM +0200, Siegfried Metz wrote: > > Dear kernel developers, > > > > since mainline kernel 4.18 (up to the latest mainline kernel 4.18.5) > > Intel Core 2 Duo processors are affected by boot stalling early in the > > boot process. As it is so early there is no dmesg output (or any log). > > > > A few users in the Arch Linux community used git bisect and tracked the > > issue down to this the bad commit: > > 7197e77abcb65a71d0b21d67beb24f153a96055e clocksource: Remove kthread > > I just dug out my core2duo laptop (Lenovo T500) and build a tip/master > kernel for it (x86_64 debian distro .config). > > Seems to boot just fine.. 3/3 so far. > > Any other clues? One additional data point, my affected system is a Dell Latitude E6400 laptop which has a P8400 CPU: vendor_id : GenuineIntel cpu family : 6 model : 23 model name : Intel(R) Core(TM)2 Duo CPU P8400 @ 2.26GHz stepping : 6 microcode : 0x610 Judging from what is being discussed in the Arch forums, it does seem to related to the CPU having unstable TSC and transitioning to another clock source. Workarounds that seem to be reliable are either booting with clocksource= or with nosmp. One person did point out that the commit that introduced the kthread did so to remove a deadlock - is the circular locking dependency mentioned in that commit still relevant? commit 01548f4d3e8e94caf323a4f664eb347fd34a34ab Author: Martin Schwidefsky Date: Tue Aug 18 17:09:42 2009 +0200 clocksource: Avoid clocksource watchdog circular locking dependency stop_machine from a multithreaded workqueue is not allowed because of a circular locking dependency between cpu_down and the workqueue execution. Use a kernel thread to do the clocksource downgrade. Signed-off-by: Martin Schwidefsky Cc: Peter Zijlstra Cc: john stultz LKML-Reference: <20090818170942.3ab80c91@skybase> Signed-off-by: Thomas Gleixner Thanks, Kevin.