Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4557605imm; Tue, 11 Sep 2018 13:56:41 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbW/SxZvMGminJllybX1k2ccM0HAnfvQxsPzg2vqPh5AI6jNIW7xbamyDAsDg9qV0q2jlBm X-Received: by 2002:a62:d085:: with SMTP id p127-v6mr31285270pfg.119.1536699401259; Tue, 11 Sep 2018 13:56:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536699401; cv=none; d=google.com; s=arc-20160816; b=UdpAT6Jg2dLMWXfn3wl8KgRkYZUngyRHx7MBSC0NxM6Nf/RrG9OtVdCipPQ47wsWiR JUACJIworTjeV7w8SBdu3rAngkmnJ9GX+YaA9SYfXvPFRSrfvmYEmfC5V+ZLGvgWtTcK 7I8aDoGXzFTu3K4m8nyqLVnNGS309E118ATkWaH0KIh+1vp7LWDBtjq/wgXAUgPpKNZx yYnYJ1gVn/qsfbpMGElzmygRT9Fyk27K1WX5tqkUqAkg9XSCiH7CBVW5ZgZWIKbnk5/i WN+Kj55jp4Kh0iaI2tRFMt/BDxuOjlIOGzukuhl9fvrb9P5zfhsL9+2GrWWwqJtL+Fbj l+Hw== 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=Zy0cp+0J8bqi2Pr5rC8y+RbjRhnyAc2tMoMsuyDIFzs=; b=Yn4R1iZi0VRK9uvl5QwPxvkJ+0uXfVyrdb2vuWwIJLtBfw0Qq2YoO/WJfe4nMH1wqx O5oBxPF6485AKhEJHY/2I6z4YX7ULvpwP4qTN+9q9wq4TTWPpYdkQHLdFe4w0ID83mat Imn/l+Ea+oyXz1zAsZEk0XunWOcznw9GXOtRgSmy4bznarboSMAkXpFrBOnXe2MYTda9 p9wByyFmLAdGpktQlvcW99KDBcNbTmqTiGVgEp3APOPRJJJhhd5FC6TbdnZyd6hMFBIz 3O0AAkASH0dzXDUHNBqfdM7+HJ4cXHORcpDEjDtvLbAElXu0q6UjQZLji5XlhuLtF8lB Ej8w== 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 b61-v6si5248764plc.499.2018.09.11.13.56.26; Tue, 11 Sep 2018 13:56:41 -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 S1727649AbeILB5O (ORCPT + 99 others); Tue, 11 Sep 2018 21:57:14 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:42411 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726850AbeILB5O (ORCPT ); Tue, 11 Sep 2018 21:57:14 -0400 Received: from p4fea45ac.dip0.t-ipconnect.de ([79.234.69.172] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fzphd-0005jP-Pc; Tue, 11 Sep 2018 22:56:06 +0200 Date: Tue, 11 Sep 2018 22:56:05 +0200 (CEST) From: Thomas Gleixner To: =?ISO-8859-15?Q?Ville_Syrj=E4l=E4?= cc: LKML , Dou Liyang , Pasha Tatashin , "H. Peter Anvin" , Peter Zijlstra Subject: Re: [PATCH] Revert "x86/tsc: Consolidate init code" In-Reply-To: <20180911121548.GW5565@intel.com> Message-ID: References: <20180910121925.27682-1-ville.syrjala@linux.intel.com> <20180910140710.GR5565@intel.com> <20180911121548.GW5565@intel.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-931252212-1536698711=:1427" 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-931252212-1536698711=:1427 Content-Type: text/plain; CHARSET=ISO-8859-15 Content-Transfer-Encoding: 8BIT Content-ID: On Tue, 11 Sep 2018, Ville Syrj?l? wrote: > On Mon, Sep 10, 2018 at 06:53:54PM +0200, Thomas Gleixner wrote: > > On Mon, 10 Sep 2018, Ville Syrj?l? wrote: > > > > Good: 1718674.70 BogoMIPS (lpj=2863311530) > > Bad: 859455.59 BogoMIPS (lpj=1431852151) > > > > while both kernels agree on the CPU frequency of 996MHz. This pretty much > > smells like the 32bit LPJ conversion bug which got fixed in rc3. Does the > > problem persist with rc3? > > Indeed looks to be fixed by commit 17f6bac22493 ("x86/tsc: > Prevent result truncation on 32bit"). Not a surprise. That was pretty clear when I looked at dmesg because bogomips were very bogus for both variants. So can you now understand why I prefer a proper bug/regression report with as much information as possible over a revert patch which lacks a proper explanation and does not even fix the underlying issue at all? Reverting that patch as you can see from bogus mips solves exactly nothing. It's pure chance that it booted. You could have spared my and your time by 1) checking whether the problem persist in the latest upstream -rc first 2) Providing useful information upfront I don't care much about your time and how you think what's the best way to get a discussion started, but I care very much about my time being wasted for pointless discsussions which can be avoided more or less completely. > I suppose we just got very lucky with older kernels. The problem got initialy introduced with commit dd759d93f4dd ("x86/timers: Add simple udelay calibration") but this was not fatal because it only affected the very early boot and was fixed up by the correct LPJ calculation in tsc_init() before any serious user was affected. I'll whip up a fix for the affected stable kernels nevertheless. Thanks tglx --8323329-931252212-1536698711=:1427--