Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11049733ybi; Thu, 25 Jul 2019 09:07:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqxjJF+Vo9fojFCQ5l6EEBxOWSlh44DwK7imzG1zZKX13TsUY+C2ubTXvDJBYR/jP1MSjYCf X-Received: by 2002:a17:90a:270f:: with SMTP id o15mr93575056pje.56.1564070851430; Thu, 25 Jul 2019 09:07:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564070851; cv=none; d=google.com; s=arc-20160816; b=DU6ZcnjlNIT/UXaHhSg4VgY3RFOgn/bSsdZtNH5us5AOHaQcvodNlElM9+Zwok88Bg n9SXCRDAe6HhymcjKG002zEdsd45sAL9YykCHIKF6ob8vuAPEDkHiNRTyHGYNB36F1YI nB18MN5CeicOzMZ3WRNeySUuCpVGLTJdTQ+PVHeWlb7Hpe5hXFsUbO7dgZvKzSFfxnjB sSJIt6+HZXpF/X7O1ho/tX2hInZGLp/ZQ0OFCFoE2FBaj9iK4Rv3vMpds3VZB0X0VQxV DN51Zo5pe58w8tRpzQ4F2oXOIzSE4DCjgGo+j6XH+cZQGrMapiN3fbhY/nwoaZEEE4hy zqiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-id:mime-version:user-agent :references:message-id:in-reply-to:subject:cc:to:from:date; bh=S0avMHx4N2bcblLFZYhjPXTFgIElgFeVtLJ1BvQxM2U=; b=E8VgioHNwqepZx9OdT4DAn3EKfPYdPfrwwWo1tc1OBP6MbvmBl2BMB9RrKlrGi2x1R 7hBb0DT9tLmy4040JTLxcgj51bVtYJrietr35dAensJirFpgcG4gU0l+zofWE2WBcb+1 JTNebj1eVZlWulPMD1rLEAzNflqmR/kCIQDNpz4+xK4s68qXf99kGG5D5D16pWGozA9p zfgRYYyTUMr8Muol5qz0DlVQnQ49IZsaKGw8Uu1n/xcU/BacRZpbVm9J6CxhxGMixlY3 gnsuUkAap1Y81v2vMWjoNWpM7wEVDCxtTRILsyBlgjmUr/A0vySsQfGr5R1dZPj8JuxP glGA== ARC-Authentication-Results: i=1; mx.google.com; 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 l35si16588813plb.186.2019.07.25.09.07.16; Thu, 25 Jul 2019 09:07:31 -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; 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 S2390555AbfGYJht (ORCPT + 99 others); Thu, 25 Jul 2019 05:37:49 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:45794 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727600AbfGYJht (ORCPT ); Thu, 25 Jul 2019 05:37:49 -0400 Received: from pd9ef1cb8.dip0.t-ipconnect.de ([217.239.28.184] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1hqaC3-0002BV-8U; Thu, 25 Jul 2019 11:37:47 +0200 Date: Thu, 25 Jul 2019 11:37:46 +0200 (CEST) From: Thomas Gleixner To: Rui Salvaterra cc: LKML , x86@kernel.org, Daniel Drake Subject: Re: [BUG] Linux 5.3-rc1: timer problem on x86-64 (Pentium D) In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-442860888-1564047204=:1791" Content-ID: X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-442860888-1564047204=:1791 Content-Type: text/plain; CHARSET=UTF-8 Content-Transfer-Encoding: 8BIT Content-ID: Rui, On Thu, 25 Jul 2019, Rui Salvaterra wrote: > On Thu, 25 Jul 2019 at 07:28, Thomas Gleixner wrote: > > > > The only reason I can think of is that the HPET on that machine has a weird > > register state (it's not advertised by the BIOS ... ) > > > > But that does not explain the boot failure completely. If the HPET is not > > available then the kernel should automatically do the right thing and fall > > back to something else. > > This may be a useful data point, the relevant part of the dmesg on a > pristine 5.3-rc1 with clocksource=jiffies: Duh. Yes, this explains it nicely. > [ 1.123548] clocksource: timekeeping watchdog on CPU1: Marking > clocksource 'tsc-early' as unstable because the skew is too large: > [ 1.123552] clocksource: 'hpet' wd_now: 33 > wd_last: 33 mask: ffffffff The HPET counter check succeeded, but the early enable and the following reconfiguration confused it completely. So the HPET is not counting: 'hpet' wd_now: 33 wd_last: 33 mask: ffffffff Which is a full explanation for the boot fail because if the counter is not working then the HPET timer is not expiring and the early boot is waiting for HPET to fire forever. > > Then boot these kernels with 'hpet=disable' on the command line and see > > whether they come up. If so please provide the same output. > > Fortunately (as I'm doing this remotely) they did come up. > With hpet=disabled… > > Linux 5.2: > available_clocksource: tsc acpi_pm > current_clocksource: tsc > > Linux 5.3-rc1 patched: > available_clocksource: tsc acpi_pm > current_clocksource: tsc That's consistent with the above. 5.3-rc1 unpatched would of course boot as well with hpet=disable now that we know the root cause. I'll write a changelog and route it to Linus for -rc2. Thanks a lot for debugging this and providing all the information! tglx --8323329-442860888-1564047204=:1791--