Received: by 10.192.165.148 with SMTP id m20csp3605403imm; Mon, 23 Apr 2018 09:13:45 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+RPhng1BE1KV/Qa6r8P3vItwZv9SoG/tBiB6Hb3PDpoHnMgiEbeH3DA4+gXdzV3TjcfP/x X-Received: by 2002:a17:902:6086:: with SMTP id s6-v6mr21228193plj.307.1524500025275; Mon, 23 Apr 2018 09:13:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524500025; cv=none; d=google.com; s=arc-20160816; b=emXhsNw3JG/30+JNdzK15cp4miQIrHbWE9ZYnGOip7gf6NpcV4mz+ylSsfSC4s1Lmg yP3yWfrQAFQ398KWeOiDcnzRvS/IwL3k4t22En++KqtN1YWPbkGNRx5pEtT9VwyXKU/p mebHt+w64bFM7eGZxb84v5znkVxBsaClnHgk7HUBPUj9m/KW84qsNA5w75ydnLwTKBlt DkfnzV0mrV99qFtPmQK9444QzRCZP5Lqo4pxGJceZuOXitZCYV9KXm1+BekCgn+Piqgp pwqggws9SOjvtanJVkzFM1wEB2emxRyqQWzozXt0C8zzZU9wdBd9GbpUgugefgo/0+fw 9Wkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=OfZNx/PlA+KXZQBKz0cPBiwM/HOE2JytEZQHDdRhI0I=; b=HY99bNIqWqxL6DaS2zQnVnkw+3cNostf4ndjiiEngXezEz65D1BeTDBLYdlSfmq7ui ID/CAvKWxk9WveMUWU5iB2PxijWOervqpDI/wGoRz244zZXG6gTmuQhGWU9IHURNR8xv Da/k9b8dSUlS0iG/KpcyEU1fwFMDHKoJ1MRCKdcinvjTaqJXGyCY5GbpNeypL0mjXoNM 4opIjUHtTI4v25Wjss+cc/kxFZZxqErhAvcI84m7VnNS+g9W1MvCB/V7941F6yl+u5Uf H5L2n14r85MJCpuznWjjqS7ZlWsp5JqmkUSH5NjDU1/4KG+8OGjqO78Ctsy7pVDKKpLx +2VQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OtRwxB0D; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t12-v6si10006875ply.353.2018.04.23.09.13.30; Mon, 23 Apr 2018 09:13:45 -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=pass header.i=@gmail.com header.s=20161025 header.b=OtRwxB0D; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755619AbeDWQMO (ORCPT + 99 others); Mon, 23 Apr 2018 12:12:14 -0400 Received: from mail-yw0-f196.google.com ([209.85.161.196]:37587 "EHLO mail-yw0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755306AbeDWQMN (ORCPT ); Mon, 23 Apr 2018 12:12:13 -0400 Received: by mail-yw0-f196.google.com with SMTP id u83-v6so5046037ywc.4 for ; Mon, 23 Apr 2018 09:12:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=OfZNx/PlA+KXZQBKz0cPBiwM/HOE2JytEZQHDdRhI0I=; b=OtRwxB0DLvZbsJEgEb9I34iK2HeF5+5g1ExX9F28gF4ieV+Ahav5EAmwUrNjGtDobq swIcZUJpqR8jAwqXEHm098BFmPQLuSd1oUd5TkW3SZUpuDs6xPq2FsZuvprhqrCB25AI 9pFxiMrKk+fhN+zZ2R3RqkpUKXoYVdbB0qnlUiTgd0qKp2WPGq1zFUENfXT/W8pu5lim o3PJn/7qUxd/4/JdPEi1jBgRTmiC2fehDIFq7k4yjwprqep31ZBr6b7th2/dr5hwBVbf RPyKuBB3XltzIegW/qrmyG12F2zDKxwUkn3AcFfMRvOvIgP+KdFU5wpxc7IpmMacZgXX 9U+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=OfZNx/PlA+KXZQBKz0cPBiwM/HOE2JytEZQHDdRhI0I=; b=fTacKYFx6xinRPVmtnQAeJxtY7R5rYtB6by5NyLf89Y5Nh65ztKSpciR36CfMBiXZz wInZtkvTQR18CKLc//7fj8P4lhWJincGp7OIvSVAK77D54aGRatxIVQv/k3tm74ZEaYT ndoetgRt32KkbmcVPwysSKCnR7+Z+pS2M79aTvYFSv6KrU+o+EtI6Tzo3WOFzCB/Lu5D iMVhXQSmeq3eg1U4JEdjUZt5CtuNLt9WPtxjWgPgE0+hKG1aiXSqBH333AE/joDQSUdm k/byXANiiV1D+0LRokxqgsm43Y/yJO4+Bb899lMklc2cu+BrcvmHFPizFnk7dH7kP6M2 +9ag== X-Gm-Message-State: ALQs6tBp1B3N32+fxtQp8NRXE/zV8cfAmXKiC3gxVl2tcVWOXmR3w1am I9HU0N3V2vxbmfra2l4x+u7w6qVmhL+Q6fXQQQ4= X-Received: by 2002:a0d:ee81:: with SMTP id x123-v6mr6064011ywe.239.1524499932953; Mon, 23 Apr 2018 09:12:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.13.213.201 with HTTP; Mon, 23 Apr 2018 09:12:12 -0700 (PDT) In-Reply-To: <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> <20180423151035.GP4129@hirez.programming.kicks-ass.net> From: Diego Viola Date: Mon, 23 Apr 2018 13:12:12 -0300 Message-ID: Subject: Re: Experiencing freezes with kernel 4.16.3 on a desktop with E5500 CPU (bisect included) To: Peter Zijlstra Cc: linux-kernel@vger.kernel.org, tglx@linutronix.de, len.brown@intel.com, rui.zhang@intel.com, "Rafael J. Wysocki" Content-Type: text/plain; charset="UTF-8" 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 12:10 PM, Peter Zijlstra wrote: > 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. > > I can confirm that applying Peter's patch to the 4.17-rc2 kernel and changing kernel/time/clocksource.c:864 to _unlock solves my problem. Peter, thank you so much, I appreciate your help a lot. Diego