Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4430241ybz; Mon, 20 Apr 2020 23:58:23 -0700 (PDT) X-Google-Smtp-Source: APiQypL6X8nsOu1y9x1s3+SuVTJ+q8mqR9UTsKsmCsVXbOc+0DOd77o2iEYiF82Q/Y0Wf1oPCb6+ X-Received: by 2002:a05:6402:b03:: with SMTP id bm3mr16933441edb.299.1587452303100; Mon, 20 Apr 2020 23:58:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587452303; cv=none; d=google.com; s=arc-20160816; b=wM7GNMdv/n7oh3O3D91AdLp9vUq1Smp47DOV1TiVp6RUbKqT39uu/n33PE/1PQt5lq 16izPnOTs1fpEqC0zZyMSNC/zw1EYddzGVx9NjimkNHWO/5vWdylvm1yLS7VrITUh/2t bIXeTPtZZi01wTEFU4VN7rRmSmiULpKIzfxVk8nOYl1NpjXj8N20AmJ3TYAdDbFACAIn mInMDY690lWUgtzDl3vhvmcD/j/Qqa1+J9D0zpUpve7siL4anHZ4OK4kwhWCqm4Dx+L0 EfnrFPD8rPsjBcQ9bSPAhGvRZLSnErzf5FWG6EC3w7eP2fZxvFjxDfQSK5MfDHhNdOuh zPFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=KQZJC6KX1xpBYQjH9gTCok37HzkmIIMid4Gimdkdk0o=; b=n7wrlfIzaJXioceRbCeoA+zOBtKP/0ART6GcT+3+V6lUDgFkERD1ZdKvvXpZ1ixplz Mjb57pENt+ZRtgulLlLCnwA+SJykCaV0jIaYVV5n6yCWnouBnMS5reB9rfAgG3MKFrCA H6D+03mAaQicQFzsLrtkyq+nxAgBCf2Q34/xcbrLuMXV40bbXVLtAh/zMufLWLxxcRvI T0iXN+ZDmxFrjzKAUL1NP5xNebN5KXMBTiR0EllSzJE6u10cPpgbnwpc1Regw5VjWlUv 2Aal21NQnutPAZbGjfBxT2nRlh3FEuv51XAl/1C/52s5VQWIKZwYBDZ8toEHWWDniO0y JC0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=NIYyPwlg; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a25si994918ejr.32.2020.04.20.23.57.59; Mon, 20 Apr 2020 23:58:23 -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=@c-s.fr header.s=mail header.b=NIYyPwlg; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726563AbgDUG4t (ORCPT + 99 others); Tue, 21 Apr 2020 02:56:49 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:49149 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725940AbgDUG4t (ORCPT ); Tue, 21 Apr 2020 02:56:49 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 495vW20DBVz9v16V; Tue, 21 Apr 2020 08:56:46 +0200 (CEST) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=NIYyPwlg; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id 46KdLJppvgXh; Tue, 21 Apr 2020 08:56:45 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 495vW15Gmwz9v16T; Tue, 21 Apr 2020 08:56:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1587452205; bh=KQZJC6KX1xpBYQjH9gTCok37HzkmIIMid4Gimdkdk0o=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=NIYyPwlgeGjxnLgTYHY6DhRJMQYOTm1aESrLGiO/ANRDXn4gnetiIbleE+xtmS+80 gnd1a2nd+DGOAQvjUZaUurJ1ZceeONg2tg0bqPwSNpQz8L9pkXInLTRSPOfMAFh2Jq qa3sR9Wz4Sf9NxKAQppJEgwrgv2S8Ut9sLmNq0Xw= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id BC2518B783; Tue, 21 Apr 2020 08:56:46 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id Afw_vswuFQPo; Tue, 21 Apr 2020 08:56:46 +0200 (CEST) Received: from [192.168.4.90] (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 060D98B774; Tue, 21 Apr 2020 08:56:44 +0200 (CEST) Subject: Re: [PATCH v7 0/7] powerpc: switch VDSO to C implementation To: Arnd Bergmann Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Nathan Lynch , "linux-kernel@vger.kernel.org" , linuxppc-dev , Thomas Gleixner , Vincenzo Frascino , Andy Lutomirski References: From: Christophe Leroy Message-ID: <268ff4cf-2f30-fead-fef5-e8e5f8f17aba@c-s.fr> Date: Tue, 21 Apr 2020 08:56:35 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 20/04/2020 à 21:57, Arnd Bergmann a écrit : > On Mon, Apr 20, 2020 at 6:56 PM Christophe Leroy > wrote: >> >> This is the seventh version of a series to switch powerpc VDSO to >> generic C implementation. >> >> Main changes since v6 are: >> - Added -fasynchronous-unwind-tables in CFLAGS >> - Split patch 2 in two parts >> - Split patch 5 (which was patch 4) in two parts >> >> This series applies on today's powerpc/merge branch. >> >> See the last two patches for details on changes and performance. >> >> Christophe Leroy (7): >> powerpc/vdso64: Switch from __get_datapage() to get_datapage inline >> macro >> powerpc/vdso: Remove __kernel_datapage_offset and simplify >> __get_datapage() >> powerpc/vdso: Remove unused \tmp param in __get_datapage() >> powerpc/processor: Move cpu_relax() into asm/vdso/processor.h >> powerpc/vdso: Prepare for switching VDSO to generic C implementation. >> powerpc/vdso: Switch VDSO to generic C implementation. > > This all looks fine, but I'm a bit puzzled why you don't add a > clock_gettime64() implementation in the same series. Isn't > that the main purpose of doing all that work? Yes that was one of the objective, be able to add that as a second step. First objective was adding the missing clocks and increasing maintainability. I can add a patch for that now, it looks easy, but how do I test it ? vdsotest from Nathan doesn't seem to test that. > > Without it, any 32-bit user space has to go through the system call > for time()/getttimeofday()/clock_gettime() when built with a > modern libc. > How modern ? I have glibc 2.28, the only symbols it seems to know are (extracted with 'strings') : __vdso_clock_gettime __vdso_time __vdso_get_tbfreq __vdso_getcpu __vdso_clock_getres __vdso_sigtramp32 __vdso_sigtramp_rt32 __vdso_gettimeofday Christophe