Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1497725imm; Mon, 3 Sep 2018 01:56:11 -0700 (PDT) X-Google-Smtp-Source: ANB0VdadLImCWYCtA0Q6HpBWGgAwutVsbip2Pt7YrsrXz1ZzZpjPh0QJoT/hsiSoxG5L62sC+k1y X-Received: by 2002:a62:9645:: with SMTP id c66-v6mr28542709pfe.56.1535964971616; Mon, 03 Sep 2018 01:56:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535964971; cv=none; d=google.com; s=arc-20160816; b=pxwZkGPNdb6BCddMTkQZ1Sp6kH40szy076vir9o/xaNrOel5DyCCvJkJhxEAzo4Cpr F6CGVDpLD/KeDsrN2P6mven22vpT7fIfncBKcl65zsOQ8ruNeiI5at8865zXEnWPapZu sp4KZK/9pq3Ls96NM0J4I6/Q90PN/ApcYDfG1znOZ0P4lsUdY8t0yBTGh8BnFVzUJ9hc 2SLLJGF8duLbQVkY7Q0CyGOsS8cQ1d8Eh8Fv8yf/X+ASlu8TZv8MPY94PIzCFFCSSFbG DJnrsUfgT+XSjiv3LHAtxeFYI/0cmo2apJSdcE5h4zZKHbmIeUhInuLplAygwa7TJz4r JDFw== 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=+Zpx/cSPEiP3ssw0Vb2g9dyiMRBRZClIJ8aUw3VU/4I=; b=DenWyimIAXaRIkHHopD1WBr3ZyHJc8pA0rwh8f9p61dCJOEzPZpdGyh22V9/4Pvtzg 9wxN1DK7DL5JiZc2kHZgjEsrYJoKYIfWlmcoHwbFU+PAjg2J1C+D5CV22iJB3C+wlfeo /nBgCO55Q5sFZsDGnUCtNOg1nbj+dHpezcZ3ItAG6FuLVHo65fNOelMI7ogYWFCCPoTT K3zojdfGoENkkrkK3UU4p/8H2uYr7vGXXhq1RPfjey+XRMwCje/o8hE3gFnv0AbJ6X3H mNVJVC2tVQtVVpLSEVgdTBLRc48YPEfKwYoYi+147c2gKOYkbos84PR5Qrp7+b5EpceU AaMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=ikr40iz2; 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 q129-v6si16243674pga.217.2018.09.03.01.55.57; Mon, 03 Sep 2018 01:56:11 -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=merlin.20170209 header.b=ikr40iz2; 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 S1727339AbeICNN5 (ORCPT + 99 others); Mon, 3 Sep 2018 09:13:57 -0400 Received: from merlin.infradead.org ([205.233.59.134]:34864 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726160AbeICNN4 (ORCPT ); Mon, 3 Sep 2018 09:13:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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=+Zpx/cSPEiP3ssw0Vb2g9dyiMRBRZClIJ8aUw3VU/4I=; b=ikr40iz2RIbGO3HR4CVcaU/zk O+mqyJY+vQPF4IJGzbN79rcPBdEDdXdZZtUOEBYkM7FCx17xWZY4FxQWtPnRILK4H4xQn+UQtpe/m vRs6FaybUJk18OlOjFac7M7X5jRwLyl8lYUcPP3ylvNI8oRgH4pgV+TuhyhPLuBTov4quH+Q4spSI buLgLg0GPXxtn93hmwocVjhyUQs18OQAzD2lvsmqzPImJ5sBCmpfpuvg6/HocuZgGNYT4yFptMoAZ HHeG7P+TXvdu6Xbo8IZajttyccPxkd7vcMRkcEWqQvvW5/UDdxmjZI4xE1/4dJEVG99h3yBhElMn1 ObnFQCiVA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fwkcq-0006hg-CR; Mon, 03 Sep 2018 08:54:24 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 293EF2024EB0A; Mon, 3 Sep 2018 10:54:23 +0200 (CEST) Date: Mon, 3 Sep 2018 10:54:23 +0200 From: Peter Zijlstra To: Thomas Gleixner Cc: Kevin Shanahan , Siegfried Metz , linux-kernel@vger.kernel.org, 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: <20180903085423.GU24124@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> <20180903072506.GS24124@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Mon, Sep 03, 2018 at 09:38:15AM +0200, Thomas Gleixner wrote: > On Mon, 3 Sep 2018, Peter Zijlstra wrote: > > On Sat, Sep 01, 2018 at 11:51:26AM +0930, Kevin Shanahan wrote: > > > 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. > > timekeeping_notify() which is involved in switching clock source uses stomp > machine. ARGH... OK, lemme see if I can come up with something other than endlessly spawning that kthread. A special purpose kthread_worker would make more sense than that.