Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3984717imm; Tue, 11 Sep 2018 05:18:48 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaryiyW4K2FfrIURZDLH+6x09kNulzLgsJZ1X+IUavNdrTJ62GsBVvbnoFf7H8QGDWxJEg1 X-Received: by 2002:a62:8a4f:: with SMTP id y76-v6mr29052940pfd.233.1536668328583; Tue, 11 Sep 2018 05:18:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536668328; cv=none; d=google.com; s=arc-20160816; b=n9Ejhq98W3SaoW7v7QF6Li2sl09yLkrpokxMT7swKLfLsOi3UiX9LUICihYEi5Qqxl WDSRqXfidz23RM3ywhPGI8jL4DSQbx57cviEI2kMfhZq3r/RMvbKcW0NgUsezt69v84w bEPn+j9C16JHsydq3MWmVavfKErYsTDIuwbM1Fljl2fCidv43En5fPvYkOCRszsylkPX h6ZQUyeGC+PdrTuYqDC3/aSey1C+f+glG5crBeT0j8dgMdNkVnw6OYjxX02vjpm7qL8i 0+9ds3AuZO1AGmaAfua8JyfnGizGmRtQ6R5P3P7sprUSJKa/jO9xcuEUNWxJ1s+1d1tF HHCg== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=NuGypCzqLCgIofCmKLOd+3Mb/pUUEVFt+U/QeWNrNwc=; b=TKNG/CXk+FeNJSRIY/KpnTxaimsvnrTmPV5G+w7RorJ4QA6GzfSJt1NTwAbLBC80f8 INlL42HGV+lqdkX1sA2tI5NaWJv+rl1sQJNygR51+PjCSPy0pmTqbBJcP1s1/rPplPsB FIlYUvXK7sLwLwP0RQKxjbXfJ02i6xAFmvH4Lw3nujFRvSmMaWNi5ORGT+WATV2gUYzq QBq2nF9Kqyh5lCyp3UvfI0H2C/KoHfLGwWA7mQpu+wmIQZ+vYJHus0T/bHd1csCQ6wBY oLKJZIpACeNwC7GVgsUq8KzQyQhYN7eseSuj+yZRJnmgvRnJcaP5YYfboXDCim/3aIhn cZ+g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e11-v6si20060573pga.150.2018.09.11.05.18.33; Tue, 11 Sep 2018 05:18:48 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727781AbeIKRPN (ORCPT + 99 others); Tue, 11 Sep 2018 13:15:13 -0400 Received: from mga17.intel.com ([192.55.52.151]:59277 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726647AbeIKRPM (ORCPT ); Tue, 11 Sep 2018 13:15:12 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Sep 2018 05:15:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,360,1531810800"; d="scan'208";a="89459500" Received: from stinkbox.fi.intel.com (HELO stinkbox) ([10.237.72.174]) by orsmga001.jf.intel.com with SMTP; 11 Sep 2018 05:15:49 -0700 Received: by stinkbox (sSMTP sendmail emulation); Tue, 11 Sep 2018 15:15:48 +0300 Date: Tue, 11 Sep 2018 15:15:48 +0300 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: Thomas Gleixner Cc: LKML , Dou Liyang , Pasha Tatashin , "H. Peter Anvin" , Peter Zijlstra Subject: Re: [PATCH] Revert "x86/tsc: Consolidate init code" Message-ID: <20180911121548.GW5565@intel.com> References: <20180910121925.27682-1-ville.syrjala@linux.intel.com> <20180910140710.GR5565@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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"). I both cherry-picked that on top of rc2 to make sure it really is that commit, and also tested plain rc3 to make sure it still works. And comparing the bogomips between the three relevant commits makes the bug pretty obvious in hindsight: Calibrating delay loop (skipped), value calculated using timer frequency.. 1718674.70 BogoMIPS (lpj=2863311530) Calibrating delay loop (skipped), value calculated using timer frequency.. 859455.59 BogoMIPS (lpj=1431852151) Calibrating delay loop (skipped), value calculated using timer frequency.. 1994.50 BogoMIPS (lpj=3322410) I suppose we just got very lucky with older kernels. -- Ville Syrj?l? Intel