Received: by 10.192.165.148 with SMTP id m20csp3539907imm; Mon, 23 Apr 2018 08:13:23 -0700 (PDT) X-Google-Smtp-Source: AIpwx48la1Qrqvzk8kjD4uKySC/jsqc7bhs3/g7WKtp65GaAmfScwbYekqdXASl13Dzc5qiCuf8m X-Received: by 2002:a17:902:9881:: with SMTP id s1-v6mr21380095plp.350.1524496403048; Mon, 23 Apr 2018 08:13:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524496402; cv=none; d=google.com; s=arc-20160816; b=CxNKKQ9EWLX5Tx4vh2cLX5MMk4ad6cAeOGAQ9XKJOnrif1v9PKZgIgQ4nc+lYcOckn a4djfbuQP7kq+K4dxXRSVnV5b+fn9ei0NkbZOh+GfZQqJKfcC5knbcWwi9ACZW6pNJ0L 87XubqriR/WZXO+MFOXkb9Oq+5Y37C7xcKYOfMpbmSKAAJ9PsQQgN9qbWVF9mLtbzukX nmDE2MASzRtq7LCJZ9N9BZuX/+ld3DBk5Tybgm36WE7XyEBcgmNKrh2HY9w4oLa0r3HL JIlpI+ApaYkU96Jr6oSJyvGz+JmLkmBDEpJjpqs6dz0kz0acDNdv4u2KMyd+k8KD3/sY m4TA== 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=7L0YfQ8Ylo4lh+pYbsExXl8+o3Ham/TDchuivivEnzs=; b=QTCqDifuIhH5NZOH/K7t+YxUhNGSkk2Ufw9BUzpOfxW4kNVasPiI9xZ2N7Bq07g8ie sjWBTS0NYanIc4mntgJfTta2Mrhax5wCTICtBU/6mlT/tQD2Y1goA44xmlImCQS961+B 3KaxPPBi2fptFFBVMw8hqfjUznVtUEhMK8DfS997kLD7uOdh12D4vedbEjE30Polk+DC olp8nb9bAHiVPDEh1D7xjzq+94UA5TzmIa8u54rYd0J6n6sQPQNJlLok4YE+SFfDHLRV p8JWO6/n8dJFHCmZWIWY4D8UxYz7EC4ce4L5dIUzh8EMijXcJaTtfvYgRbyo71xqG/0C NGcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ZGetnawB; 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 w6si4023951pgb.481.2018.04.23.08.13.08; Mon, 23 Apr 2018 08:13:22 -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=ZGetnawB; 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 S1755756AbeDWPK6 (ORCPT + 99 others); Mon, 23 Apr 2018 11:10:58 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:48038 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755685AbeDWPKl (ORCPT ); Mon, 23 Apr 2018 11:10:41 -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=7L0YfQ8Ylo4lh+pYbsExXl8+o3Ham/TDchuivivEnzs=; b=ZGetnawB1dPpP2nFEDlReVpxu vLFDXXMo4FH2JlMiBFgPh7CvSiX2O6RaApUFYL+48tp932C3eEvaCALjMWRxikH2ixB9T1Qg6wcr5 ggntaWbS5+EMGVy/ce4/tcXVTY+o+7Yvq8LHTJA9wpCqDlTWHQfy9a+yFP95NtuzgkIuODrkaXfhJ 7fWCIaV7msO5uKK3m/OBpkqdCi0vFegh1fcEnv3CSfad7xuriblB/rk9gupWkDt6+jo2jTV2GRg17 DzzSeqnZqAT72fzKnVxnKeGQ05YFeBs9xO8A8+EGeXsMP13OLTo9g6Uow+IZYY2mQ+U1ivtsaSALi 40uDcPrtQ==; 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 1fAd6z-0002L2-5q; Mon, 23 Apr 2018 15:10:37 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 53300202A2A05; Mon, 23 Apr 2018 17:10:35 +0200 (CEST) Date: Mon, 23 Apr 2018 17:10:35 +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: <20180423151035.GP4129@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> <20180423140052.GO4129@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180423140052.GO4129@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 04:00:52PM +0200, Peter Zijlstra wrote: > On Mon, Apr 23, 2018 at 02:38:47PM +0200, Peter Zijlstra wrote: > > @@ -834,8 +857,12 @@ static int clocksource_unbind(struct clocksource *cs) > > if (curr_clocksource == cs) > > return -EBUSY; > > } > > + > > + clocksource_watchdog_lock(&flags); > > clocksource_dequeue_watchdog(cs); > > list_del_init(&cs->list); > > + clocksource_watchdog_lock(&flags); > > It works a lot better when this is _unlock(); > > > + > > return 0; > > } > > > > With that, and intel_idle.c modified to always issue the "halts in > idle" thing, my IVB comes up in hpet mode. Let me dig up a Core2 era > machine and see if that works too. OK, that was fairly painful, but the box managed to boot a modified kernel and seems to function correctly, lemme try suspend/resume.