Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2453816ybl; Mon, 20 Jan 2020 03:17:04 -0800 (PST) X-Google-Smtp-Source: APXvYqw5wCDR/AO6Lq954TCHbCYNu9XjxGFDS7s7TLUX02IBFC/rFWv8FfVDHzenWl2h2GAYWWPN X-Received: by 2002:a05:6830:4a7:: with SMTP id l7mr14819029otd.372.1579519024097; Mon, 20 Jan 2020 03:17:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579519024; cv=none; d=google.com; s=arc-20160816; b=w/eovFkQsymuGADMolP8hsKlf2zV5jd/35JvyV+z2j6QZmPmZ5QPOH6ke8qo1P0el7 k/hNRLxXddaDhdobgI+Ef8X07l2ipW160pB7pb4mq5fAJUX2nvOFm+WUI1/LOCvq08V8 E/wJLXRmTvWCzA5JSZsKGWjkTqPVPbHdBrRQTVyyCPr4OS7FZUN1iRhoiKsz/MG/XvIL UAAVc63XQazfB5FQ3P2vzMYXunB6pE2ceVSPr+Mmek2WeHqRdvj6zVuMtOWfTA6Qcyix eKVIqjQpjIiUjkVIy6eOSxPaUPtspln7HViF1/Gwrj4kx3Nn+VxTm6PuKAPLX3wt+q3B gPng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :feedback-id:references:in-reply-to:message-id:subject:reply-to:cc :from:to:dkim-signature:date; bh=ztKRnJXh6SC9VjPoU9v3xTYeT7azpddtQ73Cs29v3ZA=; b=VajjPxdrIz4BGcZ/kNM0q7iHBvskecJnBkQh8Th/4HYVDbtgKJZeltpDsQvtLZwnkw PZMddT7tA4XGnLSi3TaKvwVOuydycnrd2mKkStcAroKO9qlCkRMNy9y5uduaqgl+QXbp kK3gsRLAd7ADAeiQCUxRIM3dUX743r/5oMe/poOfGvghGsGMEpC1nlUvK6mv0N5l7b8A 2ST9OsrdO4Bx1ymJAF6qwDXGBKWTrPyrJTus9kbnHQe4VTqUBRhZN3mxsPCHNh3hWVAw DcPcznbkdfTmlnLHyjj8319uaoGmaCvYyvcgLbFwcI+vZ/WQzMWeTfa3YRGNcN/srf1/ HgaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=default header.b=FNAQnMPK; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j9si20104647otn.294.2020.01.20.03.16.52; Mon, 20 Jan 2020 03:17:04 -0800 (PST) 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=@protonmail.com header.s=default header.b=FNAQnMPK; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726867AbgATLPi (ORCPT + 99 others); Mon, 20 Jan 2020 06:15:38 -0500 Received: from mail-40135.protonmail.ch ([185.70.40.135]:39919 "EHLO mail-40135.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726728AbgATLPi (ORCPT ); Mon, 20 Jan 2020 06:15:38 -0500 Date: Mon, 20 Jan 2020 11:15:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=default; t=1579518932; bh=ztKRnJXh6SC9VjPoU9v3xTYeT7azpddtQ73Cs29v3ZA=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References: Feedback-ID:From; b=FNAQnMPKiZHQFi5GsUcTJhLQQwpgOYod+IpJ+duXQwjRQdFs0selSq+Psm162r6EC f+y17mZdQr/t9lq3W+np8sYsJISoHzK9vPtWLM+oJXGZ7rHrxz9jUuR7kSKyVXTFpx bBlvnl6ih7pd6CXJ4rQ4zBnT6MUyMdojiGCAh2dQ= To: Andy Lutomirski From: Krzysztof Piecuch Cc: "corbet@lwn.net" , "tglx@linutronix.de" , "mingo@redhat.com" , "bp@alien8.de" , "hpa@zytor.com" , "x86@kernel.org" , "mchehab+samsung@kernel.org" , "jpoimboe@redhat.com" , "gregkh@linuxfoundation.org" , "pawan.kumar.gupta@linux.intel.com" , "paulmck@linux.ibm.com" , "jgross@suse.com" , "rafael.j.wysocki@intel.com" , "viresh.kumar@linaro.org" , "drake@endlessm.com" , "malat@debian.org" , "mzhivich@akamai.com" , "juri.lelli@redhat.com" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" Reply-To: Krzysztof Piecuch Subject: Re: [PATCH] x86/tsc: Add tsc_tuned_baseclk flag disabling CPUID.16h use for tsc calibration Message-ID: In-Reply-To: <6BFAC54D-65CA-4F8A-9C5B-CEFB108C90FD@amacapital.net> References: <9rN6HvBfpUYE7XjHYSTKXKkKOUHQd_skSYGqjXlI0jTIk4nqLoLUloev1jgSayOdvzmkXgRNP8j_mgcikMJy6L_JN_vJhUJn9vD9xm_ueSo=@protonmail.com> <6BFAC54D-65CA-4F8A-9C5B-CEFB108C90FD@amacapital.net> Feedback-ID: krphKiiPlx_XKIryTSpdJ_XtBwogkHXWA-Us-PsTeaBSrzOTAKWxwbFkseT4Z85b_7PMRvSnq3Ah7f9INXrOMw==:Ext:ProtonMail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,BAYES_20, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.protonmail.ch Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday, January 17, 2020 4:37 PM, Andy Lutomirski = wrote: > Wouldn=E2=80=99t it be better to have an option tsc_max_refinement=3D to = increase the 1%? All that is in the commends about it say that: * If there are any calibration anomalies (too many SMIs, etc), * or the refined calibration is off by 1% of the fast early * calibration, we throw out the new calibration and use the * early calibration. I still don't fully understand why the "1% rule" exists. Ideally it would be better to get the early calibration right than risk get= ting it wrong because of an "anomaly". OTOH if you system doesn't support any of the early calibration methods oth= er than CPUID.16h (mine doesn't support either PIT or MSR) "tsc_max_refinement= " would allow you to control max tsc_hz error. If you think that would be better please let me know.