Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp989351imd; Thu, 1 Nov 2018 08:35:47 -0700 (PDT) X-Google-Smtp-Source: AJdET5c+2x9E5NODYmtlO0fIA3GmP9PSJ+aHrT/UG51qTV5SZsNQAfPTTQ5zupZBLhDhkNCkvnft X-Received: by 2002:a62:2bd4:: with SMTP id r203-v6mr6513216pfr.105.1541086547293; Thu, 01 Nov 2018 08:35:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541086547; cv=none; d=google.com; s=arc-20160816; b=LE9nb+JQ8FgssIyWjvPvFHj25futmBtKRZcO2GwR23+GsxDg43io8R6/YXSap23hXA mp+YR1ppI6bbMw6kBwv735yG7iaKgGHA3Th3bEtO10rt3tgBf/ud924/G97YFV2yJAZB ZvTLIxbeqnt+ToXJJQEHfvz+AZ7QJw0RAjE0hd/7Ub8M7LM0eM9ZTFWElOLaLRHMLAkq nnGk24jgN761k34byY4V+X2ykg/pD+6k71yR+SEKlSSEPps0oVjfXFKISh5kuTRDSt1p 0C/aJN87o0LDmFDSET2JfQmpqqwTzvHXERhj09xwLQCRK71tMoF0t9sO+ShoAOmQckeB KMtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=0UyOg/IcASbpQxdGdch9t1AQK9bk8Lbn/IqoH6O5Zeo=; b=ThuHfnoR3fra/o4lA9Whoqe1uieoq7aZfO0ejjHgxYlER1I14XwzNlZ0pfdGc/qGp6 /BSSdcqztPiQuCl6aIVjdswkQ/2/IrFT44JgoyFIgEW14xhV2WxP9NMavBqlBjCAKuYs vGHGJp7HhYKJ6KXVtTctWEamsa/3AWnHEZCnwZF4RVlPanr7itfOM9yZJ62wbjry15dg t4FSsuZEvYrJFuyEeHnSXFRtpXvzNL0/rEcQ8+AOjt7ZeYYYCNyp0acjRavw2Er9ebRR xlPeY52t0zMFHF8vtrrU0DvoNJqZR/3g8AdjEVWD7wpzX8h5T4CcugR4fMTAcMdo5mOR zt/A== 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 a31-v6si29280853pgl.280.2018.11.01.08.35.31; Thu, 01 Nov 2018 08:35:47 -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 S1728861AbeKBAhx (ORCPT + 99 others); Thu, 1 Nov 2018 20:37:53 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:57664 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727996AbeKBAhx (ORCPT ); Thu, 1 Nov 2018 20:37:53 -0400 Received: from p5492fe24.dip0.t-ipconnect.de ([84.146.254.36] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1gIEzD-0006MS-97; Thu, 01 Nov 2018 16:34:19 +0100 Date: Thu, 1 Nov 2018 16:34:18 +0100 (CET) From: Thomas Gleixner To: Daniel Vacek cc: x86@kernel.org, Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , LKML , Peter Zijlstra Subject: Re: [PATCH] tsc: make calibration refinement more robust In-Reply-To: <1541085133-32534-1-git-send-email-neelx@redhat.com> Message-ID: References: <1541085133-32534-1-git-send-email-neelx@redhat.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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 Daniel, On Thu, 1 Nov 2018, Daniel Vacek wrote: Please use 'x86/tsc:' as prefix. git log path/to/file usually gives you a reasonable hint about prefixes. > -#define MAX_RETRIES 5 > -#define SMI_TRESHOLD 50000 > +#define MAX_RETRIES 5 > +#define TSC_THRESHOLD (tsc_khz >> 5) This breaks pit_hpet_ptimer_calibrate_cpu() because at that point tsc_hkz is 0. Thanks, tglx