Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8495798ybl; Thu, 16 Jan 2020 18:05:04 -0800 (PST) X-Google-Smtp-Source: APXvYqyMFbGVYIp1kEsflT6Rx/vz0fvAFsI0LjoWtUZkP/5wTZM6R0kb/9BoyoY/RSUepBCrHqjo X-Received: by 2002:aca:cc08:: with SMTP id c8mr1742141oig.42.1579226703870; Thu, 16 Jan 2020 18:05:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579226703; cv=none; d=google.com; s=arc-20160816; b=INSF9dXvBG7kFDWKg9ck/2xm8JcH9f+HfyXX/m3VQwKFfNh3tItzgG325SftU0KOrY 75amBDMs9PNhxcyCrjjIklTfV6MrJrL3DNppmkhMFjp4kNf4EUghb3Dtky46laLlGVOZ PSRI9DgaBRFWqlTuIepx0dSPeUQuUxx+T+EkwrLKTtr1kHb3WtCdZ9rZXz7ZZg9aLYST 2OgW0E2NAqx7H0odYsyuei5fHF2rN3TT2N8E8PJf3XxdNl9Za6S63inMhm2sfdm4rGLB ZNMqbLxoKrVadTzUN+TQ/S+gZCEuW4xgSWlRVWEAHBWoiBjcnSA5juxpsFvaFCFcTqL7 v1kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=tptfOuWt3qHls1vy2njVLwk0RgIsmauB+IiYttavzEA=; b=h6CMj+9zx7txbBnSmEuTxEOBPdkU7FxwmsEREUDcdv67DMPxPy9/xn3GgCw6lTtCL9 VtE88KVpMv3h8JLNauPtTIM0P72N/A20f2CzlWN5fdF+HoGI6UBPkuMuc85OT9Zzytvf zxtSAxNNPzKH0HAj0Kq35GlC725M42SBrlCnLlED9RSVQJnMAnEny2uH+UZML3zAamaZ rE5nD44Qw++GcBqXKtqMCFXSP9hdxNQqNnjUUDNhMDlyZj1jLVMD1HIsRS3rmD5mzp8Y W0aWRS8e9smKLSMCI88qCm9wTtosE4SfaFJklZa5tGQb+Pjat6D9htPQzX9So7rE+vND yvfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=L+rMfwJV; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p5si13821446oto.116.2020.01.16.18.04.50; Thu, 16 Jan 2020 18:05:03 -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=@kernel.org header.s=default header.b=L+rMfwJV; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731497AbgAPUUF (ORCPT + 99 others); Thu, 16 Jan 2020 15:20:05 -0500 Received: from mail.kernel.org ([198.145.29.99]:38550 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727022AbgAPUUF (ORCPT ); Thu, 16 Jan 2020 15:20:05 -0500 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0AB0C2081E for ; Thu, 16 Jan 2020 20:20:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579206004; bh=oko1vr6NZIkbqblBi6ADclwFu8hYoUF6zOgs+mmCjwY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=L+rMfwJVUI9W+d2CoFvavrawmV6XxbnS/C5pFOW3GNaz/dDJWJPZM8duGoLOAL4lG Z02NHO/8MGKmfFb7GIu6L6UBs5VQJuL2gCzfJtQIf5HIZsqZ0+yd6MnHhIphnFuyoZ f3RLMs/ybk1B0MMAwdTLCraQ7qACz4TRbZO2ykR0= Received: by mail-wm1-f42.google.com with SMTP id q9so5124735wmj.5 for ; Thu, 16 Jan 2020 12:20:03 -0800 (PST) X-Gm-Message-State: APjAAAXIOeAdWHYffJJKftFocKyW3tv5jiwtrT9dxnVnxyQyfIPFKGj6 NQ3NF6GUufaPVfm8qb1H/soLO2pPPelGu7YaPzUaGA== X-Received: by 2002:a05:600c:20c7:: with SMTP id y7mr794016wmm.21.1579206002474; Thu, 16 Jan 2020 12:20:02 -0800 (PST) MIME-Version: 1.0 References: <1b278bc1f6859d4df734fb2cde61cf298e6e07fd.1579196675.git.christophe.leroy@c-s.fr> <874kwvf9by.fsf@nanos.tec.linutronix.de> In-Reply-To: <874kwvf9by.fsf@nanos.tec.linutronix.de> From: Andy Lutomirski Date: Thu, 16 Jan 2020 12:19:50 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH v4 08/11] lib: vdso: allow fixed clock mode To: Thomas Gleixner Cc: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , nathanl@linux.ibm.com, Arnd Bergmann , Vincenzo Frascino , Andrew Lutomirski , LKML , linuxppc-dev , linux-arm-kernel , "open list:MIPS" , X86 ML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 16, 2020 at 12:14 PM Thomas Gleixner wrote: > > Christophe Leroy writes: > > Can you please adjust the prefix for future patches to lib/vdso: and > start the sentence after the colon with an uppercase letter? > > > On arches like POWERPC, the clock is always the timebase, it > > Please spell out architectures. Changelogs are not space constraint. > > > cannot be changed on the fly and it is always VDSO capable. > > Also this sentence does not make sense as it might suggests that > architectures with a fixed compile time known clocksource have something > named timebase. Something like this is more clear: > > Some architectures have a fixed clocksource which is known at compile > time and cannot be replaced or disabled at runtime, e.g. timebase on > PowerPC. For such cases the clock mode check in the VDSO code is > pointless. > I wonder if we should use this on x86 bare-metal if we have sufficiently invariant TSC. (Via static_cpu_has(), not compiled in.) Maybe there is no such x86 machine. I really really want Intel or AMD to introduce machines where the TSC pinky-swears to count in actual nanoseconds. --Andy