Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp766332pxy; Wed, 28 Apr 2021 13:51:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8DxlJ8wF8YZ5ufKDeW6HCqdMvRnnPRGulx/IAEYqe6YuDBGFMmisuDCziTXuyfisoWi2i X-Received: by 2002:a17:906:2557:: with SMTP id j23mr657636ejb.153.1619643074218; Wed, 28 Apr 2021 13:51:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619643074; cv=none; d=google.com; s=arc-20160816; b=cpAyegJQFGjWRKXkdLRv8/1m5GWnlDGqEwJ9YsD6nwOY1WumNIHXuc4j9+P3AYbxM0 H5qUru8R+hiaD0BEcnbtyzYW50pF/ZYHYfpYhhSIyHyFUWnIBVR6JGVSgHlyijy2o7yS 7VXHN2/yatNxOuxXRWZp1pqvlKwbpGwcgMA9p3x1eUO6mGM89Ph0HYFIL+YltiTzvuBE g1X6HZM2G2ZiiDymLhhvUxoCVv2Y2E1hb/aImThbWoPn0m+i/ISIN7OmEli5PJnEj9uu VQIVYDqiZ9+vq1ZG4qa59LxkSgI4pzp3JFyTnAZy0IQ8ysIeuIIJFT7GleGu6EUDiR6u ud+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=5uES+rTqUZ9pQ5unUa2AcUhQ/cbr0Z7u7rT0zVMi434=; b=v0Dzm9+8FmSH8PlapqrJRqXZ87fWxKKQCpn7elqI48dCNr1eRjnKylIjB2PRXu/0PQ PQjUKy7oa5KYEV6P7FZkvjPp28/phJd83TFVJwcpcqMQSJ+yf9qNflcftQ6UxUnuuUMW FPs3ieT146XXP+INOBAcgih7wuf21WVwo4CnLHqefZga3g6lbLG9GmgW0Vbya7B4Kk79 gktx33CaGQcYfgSc02lbWKe3VokoXw5tO4hfXdJNzp+fFckzpwuS8Gg1QLIrjDFSifFM xX25QHBSGIaSEOaKXsuhZ4lj7I/dfLhW8y4oxO/N85/wuOV6wAGTYfwVpwz3rJmslbUX vk9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=yMXY13I8; dkim=neutral (no key) header.i=@linutronix.de header.b=XPSjCxz6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n13si1152823ejk.5.2021.04.28.13.50.50; Wed, 28 Apr 2021 13:51:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=yMXY13I8; dkim=neutral (no key) header.i=@linutronix.de header.b=XPSjCxz6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241305AbhD1RBH (ORCPT + 99 others); Wed, 28 Apr 2021 13:01:07 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:49288 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229993AbhD1RBC (ORCPT ); Wed, 28 Apr 2021 13:01:02 -0400 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1619629216; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=5uES+rTqUZ9pQ5unUa2AcUhQ/cbr0Z7u7rT0zVMi434=; b=yMXY13I8gO5OoJyetS5t4ak6Xy5OFYV+nHM+adLSa+4cb9tX0R0O5hz82iRfSnvnqaHQJI Z6hDhDr5n4HK+wQQ0b5XJD56Q9CLztTjrOag4reQNAZQC39hq845DlmbGMYeGcF809X0yl yAAOL3AhSR2heoyhdMTFybNA5uFNreXsPT4QFxHdSPafPr3ZujFYr6bhrMxoZpVBg7Wl2q 1g9fmqfMquxeELR+EVRAJXQFFNU8e3O2g2gPPirHYqQ1gIY81WUUufJcU9G5i1pesLcc3W uuzxULHp4bg617srIqVWBn1rg19kwvdSLqWr/HiZX4g7ffgTAdL8tgRsVPofwQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1619629216; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=5uES+rTqUZ9pQ5unUa2AcUhQ/cbr0Z7u7rT0zVMi434=; b=XPSjCxz6k0LO55QbJQX5dNyBjeKy3Cxy4eecHSWjrRlqiGqkg1zPBTPsvS0mOq1/AQhsjH qN2yplt1kVzpavDQ== To: Peter Zijlstra Cc: paulmck@kernel.org, Feng Tang , kernel test robot , 0day robot , John Stultz , Stephen Boyd , Jonathan Corbet , Mark Rutland , Marc Zyngier , Andi Kleen , Xing Zhengjun , LKML , lkp@lists.01.org, kernel-team@fb.com, neeraju@codeaurora.org, zhengjun.xing@intel.com, x86@kernel.org, Paolo Bonzini Subject: Re: [clocksource] 8c30ace35d: WARNING:at_kernel/time/clocksource.c:#clocksource_watchdog In-Reply-To: References: <87y2d3mo2q.ffs@nanos.tec.linutronix.de> <87a6pimt1f.ffs@nanos.tec.linutronix.de> Date: Wed, 28 Apr 2021 19:00:15 +0200 Message-ID: <871raumjj4.ffs@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 28 2021 at 17:39, Peter Zijlstra wrote: > On Wed, Apr 28, 2021 at 03:34:52PM +0200, Thomas Gleixner wrote: >> #4 is the easy case because we can check MSR_TSC_ADJUST to figure out >> whether something has written to MSR_TSC or MSR_TSC_ADJUST and undo >> the damage in a sane way. > > This is after the fact though; userspace (and kernel space) will have > observed non-linear time and things will be broken in various subtle and > hard to tell ways. What I observed in the recent past is that _IF_ that happens it's a small amount of cycles so it's not a given that this can be observed accross CPUs. But yes, it's daft. >> I can live with that and maybe we should have done that 15 years ago >> instead of trying to work around it at the symptom level. > > Anybody that still has runtime BIOS wreckage will then silently suffer > nonlinear time, doubly so for anybody not having TSC_ADJUST. Are we sure > we can tell them all to bugger off and buy new hardware? > > At the very least we need something like tsc=broken, to explicitly mark > TSC bad on machines, so that people that see TSC fail on their current > kernels can continue to use the new kernels. This requires a whole lot > of care on the part of users though, and will raise a ruckus, because I > bet a fair number of these people are not even currently aware we're > disabling TSC for them :/ I'm still allowed to dream, right? :) Thanks, tglx