Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3016433imm; Mon, 24 Sep 2018 14:09:40 -0700 (PDT) X-Google-Smtp-Source: ACcGV60VeqN8CQ0DhBaqx4yVnMVMvGoko6QrIgibPpq7cKLS1X5FUOdaRIKSneZcfEAZmT75wCz/ X-Received: by 2002:a63:a309:: with SMTP id s9-v6mr511335pge.106.1537823380671; Mon, 24 Sep 2018 14:09:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537823380; cv=none; d=google.com; s=arc-20160816; b=S4IIIQQ91KusS5jowc7Fk99DNiUDlhjCWLHJanCYy4kAK3+yZBvo7AU+b5kWFME+tw mSUzaCoCReZdvvLkrCoxKoSCqfspwidaI0ZzWLHkxR7EeJSzm5zDqIoqfRXKqBK0jP1G q8j9QFspLU995QsPGOWhHf+bD1adBX9SlAzY2+6DQ5GjOklY3ydHED7FxgjOalyFMIjo yzVeD0jxxhZxw5ef022DvY787bdqNMyxFRGVjz0b/bmEzgDEK1tQHL87ezGXHrPXMpcV jmiThd22ndZ7gT9d23oeEuJ5WVL2nnQgIub1Vx7KPZ1GeQ/3qZrIyNWjkc8DBX04pXXv 2KhA== 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; bh=4zDodXbsZUsy2u0OQ08f+IIYrIUczPRmlYOGOO3BVDk=; b=pCPaGdauRx+kIPHAElDQQZF47qS2yYqma1jp4mB1BJogqkEGj5Enui+pftl02cu3uX 2b7LIO2PlfFa7Otq/Lh4ZHs0Cs5+2eAQhesDwA+9gPFsiDcU53xNvh/dgIyX9eFNDkn8 aKP0G59OWZvo5MpdUs8cyWvfgQXlLOl7bB1YIQ7k7gSGYKyuyuzKJob5fBo2iq2Ub5WH CPUDJ7eoW/DTFAlfTnhAc2QOJ0h8p7KYwvR0G0JdwP+uyCDunVlRJUCQR/2Ym4q7wMBj rI+VolvqsONOBapkDV8mTLvmq48Vgsq4g3FcWxJVo4bok8Xq6ttgI/uE3QivKmAFzdrN 6FDw== 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 68-v6si350512pga.113.2018.09.24.14.09.25; Mon, 24 Sep 2018 14:09:40 -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 S1728253AbeIYDNH (ORCPT + 99 others); Mon, 24 Sep 2018 23:13:07 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:35689 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726227AbeIYDNG (ORCPT ); Mon, 24 Sep 2018 23:13:06 -0400 Received: by mail-qk1-f195.google.com with SMTP id a189-v6so2788559qkb.2 for ; Mon, 24 Sep 2018 14:08:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4zDodXbsZUsy2u0OQ08f+IIYrIUczPRmlYOGOO3BVDk=; b=gV6zzo4dofF7HFCYGtacjvJVn8ILz1s/Hl1aPifw12Kp3HtZ3JmqbSK15m2rqF2UOp D1YI0/mvjE5LQZgFvJwHpyUkMxrLfG2085QdivDxEKqKEr1Jn8LU+RWgoMLeGsNVq0fg MwO/hpLw7QAGlBz/fu2l8OCYVlQ71tjXA2tEhywscUBb6h9noNxcz2/b39L8f+JcFtYK wXwK7YLRBUf0gxakcoH08Zt3ilM8CEPN1plvVkpEdPBBSYx56CXX+iplbsKHlts9B2Jf QpD0P62sjgOtz6ID8PkbrrCSnv7yM1AhQfLi+TtIChNnZxnhKgOkpIcLpYl/VdD2QzRP DxZg== X-Gm-Message-State: ABuFfohRPZpQg1FnSTYk+4mcybY/fCLr+yOC/Jo70+g2ohYYskE7K4p4 VJ2YYz0unT6kyZrj69uEyPJCT87y6f++ZYVz9oI= X-Received: by 2002:a37:c542:: with SMTP id p63-v6mr492329qki.330.1537823338999; Mon, 24 Sep 2018 14:08:58 -0700 (PDT) MIME-Version: 1.0 References: <20180914125006.349747096@linutronix.de> In-Reply-To: From: Arnd Bergmann Date: Mon, 24 Sep 2018 23:08:42 +0200 Message-ID: Subject: Re: [patch 00/11] x86/vdso: Cleanups, simmplifications and CLOCK_TAI support To: Thomas Gleixner Cc: Linux Kernel Mailing List , Andy Lutomirski , "the arch/x86 maintainers" , Peter Zijlstra , matt@softrans.com.au, Stephen Boyd , John Stultz , Florian Weimer , "K. Y. Srinivasan" , vkuznets@redhat.com, devel@linuxdriverproject.org, virtualization@lists.linux-foundation.org, Paolo Bonzini , Juergen Gross , Deepa Dinamani 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 Mon, Sep 17, 2018 at 3:00 PM Thomas Gleixner wrote: > > On Fri, 14 Sep 2018, Arnd Bergmann wrote: > > On Fri, Sep 14, 2018 at 2:52 PM Thomas Gleixner wrote: > > A couple of architectures (s390, ia64, riscv, powerpc, arm64) > > implement the vdso as assembler code at the moment, so they > > won't be as easy to consolidate (other than outright replacing all > > the code). > > > > The other five: > > arch/x86/entry/vdso/vclock_gettime.c > > arch/sparc/vdso/vclock_gettime.c > > arch/nds32/kernel/vdso/gettimeofday.c > > arch/mips/vdso/gettimeofday.c > > arch/arm/vdso/vgettimeofday.c > > > > are basically all minor variations of the same code base and could be > > consolidated to some degree. > > Any suggestions here? Should we plan to do that consolitdation based on > > your new version, or just add clock_gettime64 in arm32 and x86-32, and then > > be done with it? The other ones will obviously still be fast for 32-bit time_t > > and will have a working non-vdso sys_clock_getttime64(). > > In principle consolidating all those implementations should be possible to > some extent and probably worthwhile. What's arch specific are the actual > accessors to the hardware clocks. Ok. > > I also wonder about clock_getres(): half the architectures seem to implement > > it in vdso, but notably arm32 and x86 don't, and I had not expected it to be > > performance critical given that the result is easily cached in user space. > > getres() is not really performance critical, but adding it does not create > a huge problem either. Right, I'd just not add a getres_time64() to the vdso then. Arnd