Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1454349imm; Mon, 3 Sep 2018 00:26:51 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZzUTcy0h/os87XkqjQJ4mqdUcLumJ9lST8U2Ar+YbRclCIMDDXXHrr9mXklYKKmNEI85oK X-Received: by 2002:a63:1125:: with SMTP id g37-v6mr10489776pgl.187.1535959611814; Mon, 03 Sep 2018 00:26:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535959611; cv=none; d=google.com; s=arc-20160816; b=xEZUJr1h1im1Ol+Rpy3BwO1Tc2fETTvUNN7PMJtaXJ2TWZI9OorINOktqQXEmeq2on OQ1k7r/FAJvK28ReG1Or5gYmqx15DPFgAuTLZb8RXlFF1yjNeGNRsP6ibrrIZxb0Trlk 5HTCkE7qx9nAhf/0Lx4bJojhL++p9CYd8CsQgAyRXQmv9Ke83Cz0nWF/6mhCo86ctG/3 EVoVHaZqle3E4k0new8yfp7ifnLyuZKPm+XX1Ubs9bmXKX1puIlFdERPt3fI/oBfE55i jF5efHiqo7K1dYEnj/zuI9PhzSMg6/K2OWHtE7LLQkKLTJtPgM1BX5Y18MnQDw6S2Rz8 JvKA== 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:dkim-signature:arc-authentication-results; bh=yBsUIgUoPik/3KlRQnmvHUuE/MeBnkctniuaPTCzbnI=; b=BrbPsj3BiLdhu3P2ZH0MD/qT8KjweMW4WGv9MAQDyYu5CCku2+Kh5Seiscqg/807ej yhvBB+8AWG/UqbRON1O+L2FJvaroL/4sww0/M0NdETEbIEeEtIHm13wGvTQANMkFx/us dKNKaB52bE1BYy07GZ9AKOJwbt8Gbja+7ORQWwjQiAqi4cpKZfB5cWHHMdPovMiZw5Hz qR3Jt6lUS91jptptc0rjBh7GtAYtGsrFM52Pxssv0lJUWV0TP6Ie/H+5X3MahJb8jPaP nq/sD5H2GwLOSp90E9zTE4kp1oGDHgJbfFGpBQnewgPYvVGJgSTZK8zcmjax9cgFvFT3 GLBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="Za/gXSoZ"; 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 l2-v6si17342489pgb.417.2018.09.03.00.26.37; Mon, 03 Sep 2018 00:26:51 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="Za/gXSoZ"; 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 S1727093AbeICLoO (ORCPT + 99 others); Mon, 3 Sep 2018 07:44:14 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:51482 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725869AbeICLoO (ORCPT ); Mon, 3 Sep 2018 07:44:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=yBsUIgUoPik/3KlRQnmvHUuE/MeBnkctniuaPTCzbnI=; b=Za/gXSoZ3ZVUXNP7dfKHpEA+O svel1f2Nt5sVDsOmXMIyqIqsOxBNOjixuHveXZVy5bv5Mtl0jDUxDMSSqAv6ROipNIinYDGqF9fqP 5LgLWgOeJlZBmx6XCFb1o+NCZMYbl8GyBWYYJ3O+68+jMY6Ey85kNScISyR0JJbdl+auEJymnNzw9 VzqWkGOrSnwzGRyKEStG2hT4GYCfOQZNCWpWBkd6CvpdfzOnsTYHAGtfE5zuGQlfP+eT9C/DsXpjx dwG2aaMkH6DrAEmbdfVPywudeoEa65j9mXEn8uCtLp+8rQDdvXC5e7eHThxAHjmJUxRRoX1cF7szo HYEmsdc4A==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fwjEU-0003h7-3E; Mon, 03 Sep 2018 07:25:10 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 6DD8B205F864C; Mon, 3 Sep 2018 09:25:06 +0200 (CEST) Date: Mon, 3 Sep 2018 09:25:06 +0200 From: Peter Zijlstra To: Kevin Shanahan 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: <20180903072506.GS24124@hirez.programming.kicks-ass.net> References: <74c5abc8-7430-5bc9-2f8a-a2205608bee7@mailbox.org> <20180830130439.GM24082@hirez.programming.kicks-ass.net> <20180901022125.GO4941@tuon.disenchant.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180901022125.GO4941@tuon.disenchant.local> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Sep 01, 2018 at 11:51:26AM +0930, Kevin Shanahan wrote: > 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. Yes; Core2 doesn't have stable TSC. > Workarounds that seem to be reliable are either booting > with clocksource= or with nosmp. nosmp is weird; because even on UP TSC should stop in C state. processor_idle (acpi_idle) should mark the TSC as unstable on Core2 when it loads (does so on my T500). > 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. I cannot find stop_machine usage there; either it went away or I need to like wake up.