Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4441104ybi; Mon, 3 Jun 2019 10:54:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqxj1Dq74Mbf9Zsif3qWsQsHUmFtFGxHMYAoJjnGF5G61QUJecoq1gjWwJz4eNehPy/08e1i X-Received: by 2002:a62:1ec1:: with SMTP id e184mr33174406pfe.185.1559584478640; Mon, 03 Jun 2019 10:54:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559584478; cv=none; d=google.com; s=arc-20160816; b=yTIAn3zp5cX+mAyKKZaTfoGV1mzcOIs4t7ZrGRLmcCVPvJVDLf1Ion21Uekn09Smwu B/qWmYBMJaMajoeQ2vHJHNjbFzyENlZIOIG7BaMTnaXEK7hEcKwMgYqf5UzXDDkzYvhD dWrndVl1iz9bm+b1oMbkcAZt/zkH0mPrrjX4NLLXS17abeNecOrEVdFqKE0sxjn4E3oj IF/VhLERIQxDExdf6RXRStWGVUoJDJ0hiz4mRIhA63L/oTCWVctOj4pl3CtnKgijq3MZ d8d7LB1h8xXqrZZMyQmtEuNHN64yPgCksZJ/s+Qo7ANeV4OjmeEOOnpAZPFvS3UxY6iv ppvQ== 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=Aj0cpcxQ2O6hFlX37bf2kO1xsusmBejE3Ar/NHpEoV4=; b=VcQZQCOBymmRgWXo5EhpgBQq4Lenywe//P10zG1gpV1Um+MSNQ51SQHKZ7eI5GyJUC ELtxYvypWoOvX4gPPC7Bmy1wTGb0G+LcW/Ui6kW+RQNquQJbQyI9Zl0KFyDBoYhcsI7n X5IdMmIt9K/iMAKttRqiQ4vluZ8OuG3nMycDc+AGIiytTnkMV8VO6DdR1hHFiz/ES7mk wYR7Ei+8RUENxwJftOUr6ju+frOIZKI1lhyTWvw1rIzjxAtIIt7XSchgxnemYjYUKfDt xVsthxhcUMlq+qDiRkOU+e8riJOUgT2tsgfTHrSb3GkYIm/fWkj5Z1D202ZOSeYvn4es kjqA== 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 e11si22076897plb.407.2019.06.03.10.54.22; Mon, 03 Jun 2019 10:54:38 -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 S1728376AbfFCRHw (ORCPT + 99 others); Mon, 3 Jun 2019 13:07:52 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:39222 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726502AbfFCRHw (ORCPT ); Mon, 3 Jun 2019 13:07:52 -0400 Received: by mail-qt1-f194.google.com with SMTP id i34so10264720qta.6; Mon, 03 Jun 2019 10:07:51 -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=Aj0cpcxQ2O6hFlX37bf2kO1xsusmBejE3Ar/NHpEoV4=; b=PrKCX00Qc7nd2X6YD1cxY0AuHzxAzf61VRgq4ZgBcdhJv0NSHaoIqArXe8WVsnbp5P 7fvj0wFK0gQMQ0ninVbQ2FvtYtezTEcQzLLMNfl+Y42qT76Q6Xfj00fDWhCglcgw+RHZ TABntafcN6GaDbYpnxFFfsEo7ONdm0kGGs2SQ9ATry8RW4HVLS+pV2ARCTX6r4maLoyz hlbUIS1sbFHqHTKrYBzadTW8FAAWmZXRQVDYd3kYUStScEn+zQz6vJ6atne21+2/nKiJ fUslK9Xnk7MUs6m/KD6xgK/drc+MJZynZkc13kZ3vjIQUxMd53P/3Kk5xL4HUi/8b7zb FSjg== X-Gm-Message-State: APjAAAUoyVvCHfmot5SutjaKdLjC55Tad7vnK7y9ekF7Ngz0FrxNv6FA kU4WJ4fkVwSrn8pIvmW1knp+uqpnp3+VXcO56tU= X-Received: by 2002:ac8:2433:: with SMTP id c48mr23290784qtc.18.1559581671050; Mon, 03 Jun 2019 10:07:51 -0700 (PDT) MIME-Version: 1.0 References: <20190530141531.43462-1-vincenzo.frascino@arm.com> <20190530141531.43462-18-vincenzo.frascino@arm.com> <200c39f5-3bff-cacb-57c9-e11c57df70f5@android.com> In-Reply-To: <200c39f5-3bff-cacb-57c9-e11c57df70f5@android.com> From: Arnd Bergmann Date: Mon, 3 Jun 2019 19:07:34 +0200 Message-ID: Subject: Re: [PATCH v6 17/19] mips: Add support for generic vDSO To: Mark Salyzyn Cc: Vincenzo Frascino , linux-arch , Linux ARM , Linux Kernel Mailing List , linux-mips@vger.kernel.org, "open list:KERNEL SELFTEST FRAMEWORK" , Catalin Marinas , Will Deacon , Russell King , Ralf Baechle , Paul Burton , Daniel Lezcano , Thomas Gleixner , Peter Collingbourne , Shuah Khan , Dmitry Safonov <0x7f454c46@gmail.com>, Rasmus Villemoes , Huw Davies 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, Jun 3, 2019 at 4:54 PM Mark Salyzyn wrote: > On 05/31/2019 01:34 AM, Arnd Bergmann wrote: > > On Thu, May 30, 2019 at 4:16 PM Vincenzo Frascino > > wrote: > > > >> --- a/arch/mips/vdso/vdso.lds.S > >> +++ b/arch/mips/vdso/vdso.lds.S > >> @@ -99,6 +99,10 @@ VERSION > >> global: > >> __vdso_clock_gettime; > >> __vdso_gettimeofday; > >> + __vdso_clock_getres; > >> +#if _MIPS_SIM != _MIPS_SIM_ABI64 > >> + __vdso_clock_gettime64; > >> +#endif > >> #endif > >> local: *; > >> }; > > Same comment as for the corresponding arm change: I'd leave the ABI > > changes to a separate patch, and probably not add __vdso_clock_getres > > at all. > > Removing this would break ABI (would it really, it just replaces the > syscall ... so it is more of a user space expectation)? already present > in arm64 before this series. What I meant is that we should only keep clock_getres() in the vdso for architectures that already have it, to keep the ABI unchanged, but not add it to new ones. At the moment, arm64, nds32, ppc, riscv and s390 have clock_getres, while arm, mips, sparc, and x86 don't. Also: on 32-bit architectures with 64-bit time_t, the series only adds clock_gettime()., not clock_getres(), so user space should stop assuming it's there. Arnd