Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3817456ybz; Mon, 20 Apr 2020 09:59:54 -0700 (PDT) X-Google-Smtp-Source: APiQypKiVnv2DL7EZHl14ZuZ++L6gpYzeaicjK8f5LuAi/IfP73Ex8xetO1bBeg9Xjbtf0VNVHut X-Received: by 2002:a17:907:42d6:: with SMTP id ng6mr16742437ejb.265.1587401994472; Mon, 20 Apr 2020 09:59:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587401994; cv=none; d=google.com; s=arc-20160816; b=hKOn6Dhl0JwZGT6zvPWfx8m/abm77cGsoyYzqXEmtPZCdRW2ZCjJ83UjXeMkEvF4Vf gk7CmgZjc5t9NCRC2jlq7xAKUfQ13g5h/Fo9Q6vK2cwoRBEmWGoRl1lALixg70qHM0Mm i7lclB2cGL+MKjbEY2sOxS74gTwbogfryG3c/7XFH+dXitorJJZ7ty7dClDmaMOj63OM rRaNCYF8NYfEj0KtEQ7+786OZafddoJnh75ZFly2t8D+1xt/88Cshyqoe2s2NnHYrYQ/ 7A1yUxaW94wGqqifDo9lIiEH0ywrGVz0mJ8fjdeG8lEnznDIhrgvD65ZzketlChEz3oT en9g== 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=8naV2yT/3Jan/cCUl+F/6oqhH9CCJ3NWFXowyqtwq6w=; b=jN8k+ZaOZoaObfTx5IoTnYSHEjucOqXRHHb4akXPEBwu65Sq3v5sOyZoa2l6gaJAlp RHuyhdZWF1n6ihTYkA7MyPchKKemTAHxzOJD3oks8QK1BZUC4JzQKsAUpak9Ys0O7hZV lNdeh5UbQi6ix4QW0C88DlrtHGZn0brvUb24Fi12uhF5e3MWrl6jIp3W0ScGGQEpdAB4 SAv0Wt4U0fgLXubkuz8INeYlO1h+CikOYUke8bP9ErI3sy6zLgEJNe12nIPrndEuv/QW ryfomm5PzYFWh0utxGn4Iahh8fb6nHaEhUsUWiSZMrO+csywrUqBMuiz2gsZ3WcrSuu5 d4AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=YQPKLkFX; 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 q26si929185ejx.520.2020.04.20.09.59.29; Mon, 20 Apr 2020 09:59:54 -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=YQPKLkFX; 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 S1726209AbgDTQ4a (ORCPT + 99 others); Mon, 20 Apr 2020 12:56:30 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:54609 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725774AbgDTQ43 (ORCPT ); Mon, 20 Apr 2020 12:56:29 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 495XsL4DYJz9txct; Mon, 20 Apr 2020 18:56:22 +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=YQPKLkFX; 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 Ia95URVpRcFs; Mon, 20 Apr 2020 18:56:22 +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 495XsL3527z9txc3; Mon, 20 Apr 2020 18:56:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1587401782; bh=8naV2yT/3Jan/cCUl+F/6oqhH9CCJ3NWFXowyqtwq6w=; h=From:Subject:To:Cc:Date:From; b=YQPKLkFXDfTrLeqB/NJuI38QF3DCOQPs/c2fYFvpNucqXa0OrJ26C3kvhjKlJaDwx Z2dsNp1mhKVWCzRYLB3UK3VDoE2GgNKzWAgQt8v9Z6rSjaItTHrxaYDjBGupRRH0ia 8pj1YCKvBzyAV5hYb1s48pQ0vQcj36X3Yz5PkzrM= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 3A6838B78E; Mon, 20 Apr 2020 18:56:28 +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 PbCr7gej4BIK; Mon, 20 Apr 2020 18:56:28 +0200 (CEST) Received: from pc16570vm.idsi0.si.c-s.fr (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id E4B0E8B78D; Mon, 20 Apr 2020 18:56:27 +0200 (CEST) Received: by pc16570vm.idsi0.si.c-s.fr (Postfix, from userid 0) id A9AE7657AE; Mon, 20 Apr 2020 16:56:27 +0000 (UTC) Message-Id: From: Christophe Leroy Subject: [PATCH v7 0/7] powerpc: switch VDSO to C implementation To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , nathanl@linux.ibm.com Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, arnd@arndb.de, tglx@linutronix.de, vincenzo.frascino@arm.com, luto@kernel.org Date: Mon, 20 Apr 2020 16:56:27 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. [NOT TO BE MERGED] Export sysrq_mask arch/powerpc/Kconfig | 2 + arch/powerpc/include/asm/clocksource.h | 7 + arch/powerpc/include/asm/processor.h | 10 +- arch/powerpc/include/asm/vdso/clocksource.h | 7 + arch/powerpc/include/asm/vdso/gettimeofday.h | 175 +++++++++++ arch/powerpc/include/asm/vdso/processor.h | 23 ++ arch/powerpc/include/asm/vdso/vsyscall.h | 25 ++ arch/powerpc/include/asm/vdso_datapage.h | 50 ++-- arch/powerpc/kernel/asm-offsets.c | 49 +--- arch/powerpc/kernel/time.c | 91 +----- arch/powerpc/kernel/vdso.c | 58 +--- arch/powerpc/kernel/vdso32/Makefile | 32 +- arch/powerpc/kernel/vdso32/cacheflush.S | 2 +- arch/powerpc/kernel/vdso32/config-fake32.h | 34 +++ arch/powerpc/kernel/vdso32/datapage.S | 7 +- arch/powerpc/kernel/vdso32/gettimeofday.S | 291 +------------------ arch/powerpc/kernel/vdso32/vdso32.lds.S | 7 +- arch/powerpc/kernel/vdso32/vgettimeofday.c | 29 ++ arch/powerpc/kernel/vdso64/Makefile | 23 +- arch/powerpc/kernel/vdso64/cacheflush.S | 9 +- arch/powerpc/kernel/vdso64/datapage.S | 31 +- arch/powerpc/kernel/vdso64/gettimeofday.S | 243 +--------------- arch/powerpc/kernel/vdso64/vdso64.lds.S | 7 +- arch/powerpc/kernel/vdso64/vgettimeofday.c | 29 ++ drivers/tty/sysrq.c | 1 + 25 files changed, 444 insertions(+), 798 deletions(-) create mode 100644 arch/powerpc/include/asm/clocksource.h create mode 100644 arch/powerpc/include/asm/vdso/clocksource.h create mode 100644 arch/powerpc/include/asm/vdso/gettimeofday.h create mode 100644 arch/powerpc/include/asm/vdso/processor.h create mode 100644 arch/powerpc/include/asm/vdso/vsyscall.h create mode 100644 arch/powerpc/kernel/vdso32/config-fake32.h create mode 100644 arch/powerpc/kernel/vdso32/vgettimeofday.c create mode 100644 arch/powerpc/kernel/vdso64/vgettimeofday.c -- 2.25.0