From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755354AbeDWOA7 (ORCPT ); Mon, 23 Apr 2018 10:00:59 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:42462 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755010AbeDWOA6 (ORCPT ); Mon, 23 Apr 2018 10:00:58 -0400 Date: Mon, 23 Apr 2018 16:00:52 +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: <20180423140052.GO4129@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180423123847.GL4082@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.