Received: by 10.192.165.148 with SMTP id m20csp3638141imm; Mon, 23 Apr 2018 09:46:40 -0700 (PDT) X-Google-Smtp-Source: AIpwx49mdFArY/daQF3jDu3yr5Un7czWWSz/fdKtRIBm9z1pQdFow3/mkf3PvnMoCtVCLQSOLIza X-Received: by 10.99.135.198 with SMTP id i189mr17171591pge.2.1524502000004; Mon, 23 Apr 2018 09:46:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524501999; cv=none; d=google.com; s=arc-20160816; b=Ge3w0w1OiWDyqzUWhbexeGOIB+gn6cXPK99TYoI0cummMGXGs5fsTs+f8HQEoLvJG9 rFSfsF7DzghCBwatDmkSjLAgJdEKpW4AC3WqbNHibJTBDWqPHesxFSQW8127+bdxOZqe vxe6RCDoeFiw2vVC3IJ63vwL4ujQnAqsNAA3cifDFQConrCO5yj3cCyAH+OFhKrJ1oRf dI4BDMLoxBJ5aVQpcsYIWqXAcJmiOp18d51gF/tbHsnaeg3R5zHE+WMgMTBuAf09QKU7 pkPIiVmgKCM4m4y96HutpvJdPjUAGPHnX1fI+Ka0LWLCK+gLEyrAEuCGX+o8fxF//pP+ u9hA== 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=L9HejSR0tUsFnCWOVmdcCbVpORdtbmmuSuluiuks67E=; b=qcw3YjQCiy3lxnlln/rJnPqObqMH8StiiviMNY1179T2P/gLFmxIq1IGnbNvPxENiM y42++8DoOaiI4k1+0OoEJPFHw+ow9djyETj00cWlit9ze0QMxPjvPU5SFdQWCMy9RkTQ tlQKsaQEOLFCD9VsGUbo7dmGBmc9kXtGgNimat30rUHb8LvI1mSRrjHIIQH1FPVZU1kN f5Aswl/ASkLUiSZnm5Mn2Wa5QdmPBAcNUbxS7WMP9Z01b5Tz4j6ZnnbsFBVBYzSehYI9 xUFG+0KN9MliP+MOVNNInNtxRWJXSHc9oG6CHHFWKuV/CqkqyDTOBy6UJoWMIfZgWjDW I8ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=oULyf67g; 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 w66si12154379pfj.144.2018.04.23.09.46.25; Mon, 23 Apr 2018 09:46:39 -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=oULyf67g; 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 S932224AbeDWQoe (ORCPT + 99 others); Mon, 23 Apr 2018 12:44:34 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:33952 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932207AbeDWQo3 (ORCPT ); Mon, 23 Apr 2018 12:44:29 -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=L9HejSR0tUsFnCWOVmdcCbVpORdtbmmuSuluiuks67E=; b=oULyf67gM7Z0971mTnPlRCQgO 2KbYIY+EtckfUJrEQyxdUGdhIw/xJJdTDfDabacORYuMpMRByuZ/gLfwZLeCY6sEHC2zAa8SO5EEd cHJ/Hvmf90NAGXLfjhpSsuNIs0R9JlafQMelQV2sWkZtjQCm8CyMIUoB3MOsDEL5iVlzgsbRwr5MA Ttk/vZPbrzHHNJJ8QNcpJ2oxwAMD1DXT3J7TvBURsqaWuB/GErRRrNGZFMbMmgE0W/ZuS9bUP1jqJ 6CMcQ5jPUrqNtPiySEnd8jCr0tQiF8wZr2EhjKG/mx6WDYCd42iBPvl0IUHrfHUF/APiV1Rgsgov3 2ZoH3v37A==; 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 1fAeZm-000169-Qg; Mon, 23 Apr 2018 16:44:26 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 58DE9203BFAE2; Mon, 23 Apr 2018 18:44:25 +0200 (CEST) Date: Mon, 23 Apr 2018 18:44:25 +0200 From: Peter Zijlstra To: Diego Viola Cc: linux-kernel@vger.kernel.org, tglx@linutronix.de, len.brown@intel.com, rui.zhang@intel.com, "Rafael J. Wysocki" Subject: Re: Experiencing freezes with kernel 4.16.3 on a desktop with E5500 CPU (bisect included) Message-ID: <20180423164425.GS4129@hirez.programming.kicks-ass.net> References: <20180423091633.GU4064@hirez.programming.kicks-ass.net> <20180423114850.GK4082@hirez.programming.kicks-ass.net> <20180423123847.GL4082@hirez.programming.kicks-ass.net> <20180423155801.GQ4129@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180423155801.GQ4129@hirez.programming.kicks-ass.net> 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 Mon, Apr 23, 2018 at 05:58:01PM +0200, Peter Zijlstra wrote: > Thomas, we could not find the de-rate stuff, but the above can be > simplified; what happens is: > > cs->flags |= UNSTABLE; > schedule_work(&watchdog_work) > kthread_run(clocksource_watchdog_kthread) Also, Thomas, do you remember why we spawn a short running kthread from a work ? Can't we simply run the whole thing from the worker thread? > __clocksource_watchdog_kthread() > if (cs->flags & UNSTABLE) > __clocksource_change_rating() > clocksource_select() >