Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8835277ybl; Fri, 17 Jan 2020 01:53:01 -0800 (PST) X-Google-Smtp-Source: APXvYqxsuI+1E+hRRKxX9z6Muf7lxBz3S51UjDcRhNSJeQ/erJJ3HJUI0ZdgmEGrNSFRgr2mjCtR X-Received: by 2002:aca:ab50:: with SMTP id u77mr2704530oie.36.1579254781832; Fri, 17 Jan 2020 01:53:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579254781; cv=none; d=google.com; s=arc-20160816; b=PMGyE+VnppdmUtwjXKGAS2qK3XtiLp2oXp8dqLE6KB8LGEZVmoFp/5nZeIU+kax95t n4SLqdSmBM7OXQY8X8jpQsIwZgrnFuneod1jkG8eqPJMEvIQmPQPYmA26s3s/Dx4SRHg pBxI9QAn9z0FcBK0uk2IXlONNb/TN03c2ZSh0sfZ0IY7OdojJ+34l7ovu/J+l/1IVfBq /R2scD4n9DRacAgfiWjbznP4DwwMwwb05ZsKs9URlb9wf6Ow86pAVUAgYjnEdFTw2KYn LKwozeWK4Ii1MmWBerUmBWdKFRJ8l5qajGeHWJgAwFLPy8zKeN8ylg8E0b4xqKzuwunr qG1g== 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=9zDNZlzTkeycpSWCb0TYhvoG++VQ0gIX3RE4mUEvdOg=; b=bcl7A3mOO0OCmVVm5gx1axHqzoT/e9kNKz7xsytiVRzbulxhMUXBG73Ct7Pj262KzY MVAzVfG1cVactropsyGOgK1oCaeJa2CUkbDKXYOBu3x0mT/OLMji+9BigRO0GI2DSqq8 YHfnjyu8XQaVX3+tt/VIcI+quKdQ+vIYVOJW/a7/nmRp9C2Luw8lsZiSkVjY0LelgeAg hoH5xp6ZE6cxd9Cpg9jgdXDHlN5rBj9k+8NEuP4Mk5xxzA3fpaK32C468B4HukLINfyf EWTk/CiDcj3f5s5AgUEwl7PAsMATXL2kYJth1Xg97EEdYbxlGga4ZaCwZId3P8gSv5Ky RSOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=i9BMvz3E; 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 m9si12940983oie.148.2020.01.17.01.52.50; Fri, 17 Jan 2020 01:53:01 -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=@c-s.fr header.s=mail header.b=i9BMvz3E; 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 S1726979AbgAQJux (ORCPT + 99 others); Fri, 17 Jan 2020 04:50:53 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:6126 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726053AbgAQJuu (ORCPT ); Fri, 17 Jan 2020 04:50:50 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 47zbL80nqyzB09b7; Fri, 17 Jan 2020 10:26:56 +0100 (CET) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=i9BMvz3E; 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 SBcmuNiYkyF6; Fri, 17 Jan 2020 10:26:56 +0100 (CET) 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 47zbL76pYtzB09b5; Fri, 17 Jan 2020 10:26:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1579253216; bh=9zDNZlzTkeycpSWCb0TYhvoG++VQ0gIX3RE4mUEvdOg=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=i9BMvz3Et5VUQDFvPy+FmGSkBzSFXqfiloNAGK6ETWirQC9BSIX++qp5CDw2aZert 7ZvsFo1ljH6SQeneQhVz/i5r8XjA4pPDw6RSVCjw8z88fAGEB5eOFuEaHhNOp6Saa6 njr+TNa2sSfV/s65M9dLdazSTLW/6PBL5xvi/9Nc= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id F18298B83E; Fri, 17 Jan 2020 10:26:56 +0100 (CET) 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 QrD_JOibNVgE; Fri, 17 Jan 2020 10:26:56 +0100 (CET) Received: from [172.25.230.103] (po15451.idsi0.si.c-s.fr [172.25.230.103]) by messagerie.si.c-s.fr (Postfix) with ESMTP id C07418B83B; Fri, 17 Jan 2020 10:26:56 +0100 (CET) Subject: Re: [RFC PATCH v4 00/11] powerpc: switch VDSO to C implementation. To: Segher Boessenkool Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , nathanl@linux.ibm.com, arnd@arndb.de, tglx@linutronix.de, vincenzo.frascino@arm.com, luto@kernel.org, x86@kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org References: <20200117085851.GS3191@gate.crashing.org> From: Christophe Leroy Message-ID: <345e2772-cde9-7d86-874e-347db1453c80@c-s.fr> Date: Fri, 17 Jan 2020 10:26:56 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: <20200117085851.GS3191@gate.crashing.org> 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 17/01/2020 à 09:58, Segher Boessenkool a écrit : > Hi! > > On Thu, Jan 16, 2020 at 05:58:24PM +0000, Christophe Leroy wrote: >> On a powerpc8xx, with current powerpc/32 ASM VDSO: >> >> gettimeofday: vdso: 907 nsec/call >> clock-getres-realtime: vdso: 484 nsec/call >> clock-gettime-realtime: vdso: 899 nsec/call >> >> The first patch adds VDSO generic C support without any changes to common code. >> Performance is as follows: >> >> gettimeofday: vdso: 1211 nsec/call >> clock-getres-realtime: vdso: 722 nsec/call >> clock-gettime-realtime: vdso: 1216 nsec/call >> >> Then a few changes in the common code have allowed performance improvement. At >> the end of the series we have: >> >> gettimeofday: vdso: 974 nsec/call >> clock-getres-realtime: vdso: 545 nsec/call >> clock-gettime-realtime: vdso: 941 nsec/call >> >> The final result is rather close to pure ASM VDSO: >> * 7% more on gettimeofday (9 cycles) >> * 5% more on clock-gettime-realtime (6 cycles) >> * 12% more on clock-getres-realtime (8 cycles) > > Nice! Much better. > > It should be tested on more representative hardware, too, but this looks > promising alright :-) > Yes. Now the challenge is to get VDSO32 buildable on PPC64. The big issue is that in most powerpc/include/asm/*.h , CONFIG_PPC64 is used to know if the build is a 64 bits build or a 32 bits build, so VDSO32 build fails. I don't know how this could be easily fixed. Christophe