Received: by 10.213.65.68 with SMTP id h4csp234766imn; Tue, 20 Mar 2018 02:02:16 -0700 (PDT) X-Google-Smtp-Source: AG47ELus90i2PrQZbHf3Qe1V3AcmrDk+RFx5V1/vt6YnW3tUqIqGbtXo3ffnjHNft0gkxT6NBN5l X-Received: by 10.99.154.81 with SMTP id e17mr11653952pgo.311.1521536536813; Tue, 20 Mar 2018 02:02:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521536536; cv=none; d=google.com; s=arc-20160816; b=nccybtgWiw/E3posOj9fo+P9VUNokQLIcTjW8aoNe40NOFkTts5RIMwEtQ5zW284Xe xgmcur++LK8yIbVpC0Mn3OUqhjjUOLmfp8ULeGG3z7PlAHCsYunIXpnphG40Mc/7r4tW JYd/BhzHlCD8u752pep9CaprxuuLiF5QqdUrgG6Z2mql0b5XMI78F0pfDii2f/1BD63b 8jlviVuTPZr6H5nFOZxoYA31a6iQL627qIejAR7SIaAuKiAEr/JyzUOIL8xTQ62o8H3c AAqcp9NjD2fac2Ufrv5Ca/zFGFOCkGnyj0lklBgr4cY7+qNUKj4clRdvHu5yPx0pcOmt O4zQ== 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 :arc-authentication-results; bh=9hWyJ6beDzysuNpoY0synCbgUGiFej+MkEa4Co8gfBc=; b=qV7cqK56dtlr6Xuft9/zdSpTbUVag99+pAuMDeH/VB6xmaHes7eOc8DxfyHZmR6ixS lDPeKgvokqXoqzowCPhfXJOWyv8akT/E9FT+yPBAdoJqitrXniJcrD0kerU0M0bo3F66 WliZ1EqYCU//svHrv/Fr823O1kCe2pb9S3n06sFX0H5+jnJwaS3ZLGMQtS9pAhW7VAfY ycpVniR1WzCbu1pYxQ47bnRR8/IlMzBUB7fvGDl5W1vBxE05d3wZuM7BMofkWaShkqot IDnblDS0F0BQXbrLxqOr3Q+6rzlBjaN+Dnx+kHiCE5KmDRbUixwRTs92aMkFKjaIGTzC 4OqA== 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 3-v6si1200645plt.124.2018.03.20.02.02.00; Tue, 20 Mar 2018 02:02:16 -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 S1752454AbeCTJAi (ORCPT + 99 others); Tue, 20 Mar 2018 05:00:38 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:34052 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751790AbeCTJAg (ORCPT ); Tue, 20 Mar 2018 05:00:36 -0400 Received: from hsi-kbw-5-158-153-52.hsi19.kabel-badenwuerttemberg.de ([5.158.153.52] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1eyD7p-0003lz-OC; Tue, 20 Mar 2018 10:00:09 +0100 Date: Tue, 20 Mar 2018 10:00:09 +0100 (CET) From: Thomas Gleixner To: "Liu, Changcheng" cc: hpa@zytor.com, peterz@infradead.org, douly.fnst@cn.fujitsu.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86/ioapic: don't use unstable TSC to detect timer IRQ In-Reply-To: <20180320084255.GA187704@sofia> Message-ID: References: <20180320084255.GA187704@sofia> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 20 Mar 2018, Liu, Changcheng wrote: > In rare case, the TSC is every unstable or can't sync with > real time hardware clock. What does that mean? > After setting "tsc=unstable" in command line, system should use > delay_without_tsc to detect timer IRQ. Or system could panic as shown in > below log: tsc=unstable has nothing to do with TSC being usable for delay loops unless your TSC is completely broken. Please explain more detailed in which way this TSC is defect in the hardware. Aside of that is this production hardware or some experimental silicon? > diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c > index fb43027..27b1bae 100644 > --- a/arch/x86/kernel/tsc.c > +++ b/arch/x86/kernel/tsc.c > @@ -36,7 +36,8 @@ EXPORT_SYMBOL(tsc_khz); > /* > * TSC can be unstable due to cpufreq or due to unsynced TSCs > */ > -static int __read_mostly tsc_unstable; > +int __read_mostly tsc_unstable; > +EXPORT_SYMBOL(tsc_unstable); Even if we decided to do that, there is no need to export that symbol ever. Thanks, tglx