Received: by 10.213.65.68 with SMTP id h4csp239926imn; Tue, 20 Mar 2018 02:11:15 -0700 (PDT) X-Google-Smtp-Source: AG47ELsgCoTa4vnoetAc2bobRHOn9rWL0PHcR6ytL7tbEBjDtib6S77xn5RdBU4V3IfeszmAq6ez X-Received: by 10.101.69.133 with SMTP id o5mr11496164pgq.156.1521537074993; Tue, 20 Mar 2018 02:11:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521537074; cv=none; d=google.com; s=arc-20160816; b=jScAWxq9m9oMDict66B9hHIBrY8T511N3V7Wixsioosn4Qi/AZGxekq4Mph5mQTnjv xFd3+V9uGWPCG17lQz64R3oi77SkNtKLdU6fADGANlVAdbPILfkyxah6RqiRqI7Maixp cC+pPLlyZc0jv973bkylpi/mq6glvxtZMSPESwgj85XK9CVdqOmEZCARJfopLr1cwEFH 7CeXL9lrfXJXKoXZX7+v/HQeBY1n190bO+oF1pwYL3D3MH0c4B8LtOejwHwWjyp9i52G 5UZXAnGi8dx1YRZ00NmXz+Vp4b5whJ1cx+A85ArWgr+rb7YarfkAuByjsKK35PmxzWXs Fi2Q== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=6UQXQWdnubxF7Qyz9TZ66o0OO34eSmbypCyZKCjz4zg=; b=VcPp96uJWZjaQSmMorGRHzUevXeKyTllJrl3HXfs8I7Sxj5C7M2Aj6A00IdRa6lBUz qRbbZjWpjWyhDJMV7Z7x+gC4KuXEWHiguX+/eqV7PC80f9tColp2WNIIgZS7ALdA9sHh c2l4TsPRLmBjM+80Kb5D84m2I3dX2RcQKDv6zGwZx3COyZpYLEuc3zDG2lTcONMqauGD bTiZUNey9PwMUe8cTS8O3eSSvObGSr8bQIbJqM4EM8i2UHcaD1bFAap+wEcnNbGy8FYv dF4wjJAmc1dXaOiAeQfZdPZWCnEnFm2ggY+YPrYMUv0WrWM2DgtNrPFaAMPYsyeaTqtw 7+DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=JYw8ShAE; 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 h190si884449pge.13.2018.03.20.02.10.57; Tue, 20 Mar 2018 02:11:14 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=JYw8ShAE; 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 S1752167AbeCTJJj (ORCPT + 99 others); Tue, 20 Mar 2018 05:09:39 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:55064 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751533AbeCTJJi (ORCPT ); Tue, 20 Mar 2018 05:09:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=6UQXQWdnubxF7Qyz9TZ66o0OO34eSmbypCyZKCjz4zg=; b=JYw8ShAEG6ccmI1SQVicicOe4 8MopJzI7p2i2hN4Cq7O6VKAQzGkmLdfCIbUbM6PIdf7xACv9LZ8IGQ9dihq0yDAnwa5rh2nFK+0Iw WxmDTcVNg1QaZaqcd8pZyN+mT4fpnpHpxBTJEjGh/HBk13zM5aF0Ep1JuyQlGAUuafdfq4cyiW8Qi MLbBpnvlJwm72XLJaP6HLlwbN6+a9BPgECPv63jj6v3SjpLEDOwQQSi67CWszmwKq+bSzgXY+6mGz oGNjsj7z0hD5thoY1HREACfMA+YduDn0ERy7peYftksq6+idfMKo/2i8ydWUdvRRtmTF8kwoUfQGa pQRba9iOQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1eyDGv-0003b7-Ii; Tue, 20 Mar 2018 09:09:34 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id BB40D2029F86F; Tue, 20 Mar 2018 10:09:31 +0100 (CET) Date: Tue, 20 Mar 2018 10:09:31 +0100 From: Peter Zijlstra To: "Liu, Changcheng" Cc: tglx@linutronix.de, hpa@zytor.com, douly.fnst@cn.fujitsu.com, linux-kernel@vger.kernel.org, "Stanton, Kevin B" Subject: Re: [PATCH] x86/ioapic: don't use unstable TSC to detect timer IRQ Message-ID: <20180320090931.GQ4043@hirez.programming.kicks-ass.net> References: <20180320084255.GA187704@sofia> <20180320084929.GP4043@hirez.programming.kicks-ass.net> <20180320085835.GA56497@sofia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180320085835.GA56497@sofia> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 20, 2018 at 04:58:35PM +0800, Liu, Changcheng wrote: > On 09:49 Tue 20 Mar, Peter Zijlstra wrote: > > On Tue, Mar 20, 2018 at 04:42:55PM +0800, Liu, Changcheng wrote: > > > In rare case, the TSC is every unstable or can't sync with > > > real time hardware clock. > > > > However did you manage that? Please provide _FAR_ more details. > [Changcheng] TSC is simulated and HPET is hardware implemented. > TSC can't sync with HPET. When running linux, the TSC grows too > fast and HPET can't trigger periodic timer interrupt in time which > is used to update jiffies. How is that not utterly broken, and how is that even allowed behaviour as per the SDM ? If the TSC is so utterly broken as to not function according to spec, you should not advertise the TSC, at which point you'll find that it is _very_ hard to run modern linux on x86 without TSC.