Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1438105ybl; Thu, 22 Aug 2019 14:44:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqwmi7M3Xc0S900zMHQ2QrsMADjrNaAsMRr4NwjKFiDK5gHVrNZGkqxXCt0x7Cwgzqym6YVe X-Received: by 2002:a17:902:ff02:: with SMTP id f2mr922385plj.99.1566510242311; Thu, 22 Aug 2019 14:44:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566510242; cv=none; d=google.com; s=arc-20160816; b=aVEgr1ARUvxR2E3JtxRuwYlnjj+C+wUV9DT+prCgvVVsffeIzWC+I0T2NJ+sO/TxeK XEy18hC8Mvbx9vER/V7CGJyauit0+XLoiB9P7EIwfAIFYNXCtPTic0OlVdzTQhFwHXKe TRQxZd18CXdLIU6ftHk6H35LFk49efXrqPSjLwbwt0LrtaS1oh6yJ2f5Erkvp87wwFac rjP/9mbhjIEsjivg6n13IJsUVs1oTcYZ1NAE2AoHb0DzllN9KVNx1it6siXuYGa2KSiH sKcuBfXwFxMT7HPCw/VoB6CJsinw1utiwxgIcPMPs2KNv23gzYMfsoLrk791OtnzkhkA L15g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:subject:from:message-id :dkim-signature; bh=Kdm5BN3MSh4jmd1gvQf5NOGQGIfy+jba9n23a8nT9D0=; b=z+RvSUy8rYTryYi1uhxUhY4R19wKIhVfK7O7CD4X5Xv6J7b4fP4MF/FFHrv56EOqpb vbVFxH+dr0BnBGZ1cXRjRTqliiwnNHu5t/gXVxRTIh6n4gOoKDUz5oTdrPAnE2yB/Uit SYhZLjQMJGulNaa9UjAVyFwVKyVu/rgBunJNXjuBKzkMJ/+kEmvvqo7piEFckTrgN/At Pf+Z0FyriWC9WzE1+LEl3CeXe6EHCa2JB0N3wbhyGBTZ2eTQau17KwsjcrIZ7pjMGwq6 sUD2RAO8LaTxiIFm3dIUzRaA8L14ZByx4c1i82/hvrZUERIKF20KnZfxyx0ime0Oj2BA 8Qfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=B+jtpOPd; 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 a24si677363pfi.205.2019.08.22.14.43.47; Thu, 22 Aug 2019 14:44:02 -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; dkim=pass header.i=@c-s.fr header.s=mail header.b=B+jtpOPd; 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 S1732889AbfHVQeD (ORCPT + 99 others); Thu, 22 Aug 2019 12:34:03 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:19398 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730610AbfHVQeD (ORCPT ); Thu, 22 Aug 2019 12:34:03 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 46DqqC6cmCz9v0d2; Thu, 22 Aug 2019 18:33:59 +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=B+jtpOPd; 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 oQlzQ3FpwLRp; Thu, 22 Aug 2019 18:33:59 +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 46DqqC5b0Dz9v0d4; Thu, 22 Aug 2019 18:33:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1566491639; bh=Kdm5BN3MSh4jmd1gvQf5NOGQGIfy+jba9n23a8nT9D0=; h=From:Subject:To:Cc:Date:From; b=B+jtpOPdcqq2126W9BjzD62GByRF8IzigU7Zz5okxFmURHa5u7ptX6FduM8M41k6K yhP2L7vwHc1efdFz1kAzdzewmKxyTk+gyY6eXycNbAhrlLbguzq+y3W+vyqJTHYZSg s2fc3l2KFTtQSVmsTQCpv3TkesPfx1VOJV0mMDaA= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 766FF8B84C; Thu, 22 Aug 2019 18:34:01 +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 WsNVxstKHuCt; Thu, 22 Aug 2019 18:34:01 +0200 (CEST) Received: from pc16032vm.idsi0.si.c-s.fr (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 39D158B81D; Thu, 22 Aug 2019 18:34:01 +0200 (CEST) Received: by pc16032vm.idsi0.si.c-s.fr (Postfix, from userid 0) id DDCD66B730; Thu, 22 Aug 2019 16:34:00 +0000 (UTC) Message-Id: From: Christophe Leroy Subject: [PATCH v2 0/8] powerpc/vdso32 enhancement and optimisation To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Thu, 22 Aug 2019 16:34:00 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series: - adds getcpu() - adds coarse clocks in clock_gettime - fixes and adds all clocks in clock_getres - optimises the retrieval of the datapage address - optimises the cache functions It puts together the three patches sent out earlier allthought they were not presented as a series, hence the 'v2' tag for now. v2: - Used named labels in patch 2 - Added patch from Vincenzo to fix clock_getres() (patch 3) - Removed unnecessary label in patch 4 as suggested by Segher - Added patches 5 to 8 Christophe Leroy (8): powerpc/32: Add VDSO version of getcpu powerpc/vdso32: Add support for CLOCK_{REALTIME/MONOTONIC}_COARSE powerpc: Fix vDSO clock_getres() powerpc/vdso32: inline __get_datapage() powerpc/vdso32: Don't read cache line size from the datapage on PPC32. powerpc/vdso32: use LOAD_REG_IMMEDIATE() powerpc/vdso32: implement clock_getres entirely powerpc/vdso32: miscellaneous optimisations arch/powerpc/include/asm/vdso.h | 2 + arch/powerpc/include/asm/vdso_datapage.h | 6 +- arch/powerpc/kernel/asm-offsets.c | 7 +- arch/powerpc/kernel/head_32.h | 13 ++++ arch/powerpc/kernel/head_booke.h | 11 +++ arch/powerpc/kernel/time.c | 1 + arch/powerpc/kernel/vdso.c | 5 -- arch/powerpc/kernel/vdso32/Makefile | 4 +- arch/powerpc/kernel/vdso32/cacheflush.S | 33 ++++++-- arch/powerpc/kernel/vdso32/datapage.S | 32 ++------ arch/powerpc/kernel/vdso32/datapage.h | 11 +++ arch/powerpc/kernel/vdso32/getcpu.S | 13 +++- arch/powerpc/kernel/vdso32/gettimeofday.S | 125 +++++++++++++++++++++--------- arch/powerpc/kernel/vdso32/vdso32.lds.S | 2 - arch/powerpc/kernel/vdso64/gettimeofday.S | 7 +- 15 files changed, 183 insertions(+), 89 deletions(-) create mode 100644 arch/powerpc/kernel/vdso32/datapage.h -- 2.13.3