Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4210602ybg; Tue, 29 Oct 2019 03:54:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqz8mAEsgwnUnTobaVX+PEACpJZRPHKy+RNL5GbkgDkky56nVuGxuY2GhU4eupgfxCakzaLe X-Received: by 2002:a50:8a88:: with SMTP id j8mr25519013edj.35.1572346459752; Tue, 29 Oct 2019 03:54:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572346459; cv=none; d=google.com; s=arc-20160816; b=Xg5+W/cwQJpvhsqAx5pOPzDMNlkvrdAjWyMyXkhIj1YuLVkKwsTP0BIE6hDjEABH+Z mD7YkWY9FSt2OWFCic+2TojUGyLXy6sXR1EOC6vApt73In3KJsz9l3U3ENuBvpcsmUlh 4Sh14eMFCwEW++KD3FGL+5akwRB3kihZJ9aJnmJlIq9FdFpY2GI2NeyDo3XQJq0iGKL+ GKrgwrw/NPJwLyeT677sY9CwU0DsTKemlgl0QCGVC7GytO0xf6hiGOMzaUJbHS9p/e/h LutE7iNHXr6LQfoWIABwsc4Ij2u/1VUfe7T10AaF11CpBdATbaeh6j+TGT/uOhmy4lqc dBWA== 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=P+2AjEXR23xT7K0XGXHw5fnf3v2rAlKDulVBaGhTKhM=; b=o6jXyjmYl26ULOZh9aRZOJgDvB/btOIrWLZbykeoHciR97gIrBLBFWEHJ7/l9MvQ5i YWhbVVDBd9TVv04jjFtBYc/a2DmO614WPkNc6eqrF0sbcvPyCULLIzxlEPa1Tr58V7if pnBkwDDTc9GWXVM2ffd3uQfebWcZGIb1PUBEWxCWcyG+Jzmd4KVq4oE0zGwjL//RT/cN s3IRgC+p2gGNzUAYICACzBYYn0edMp1hWfUI6a8Nrj4vHp+cmN+y9fxL3vfiC48v5UbS dgXoVw2Vhaoy1tvxyev2QdpQIofSH0502L0ZXb6P3vLHyfzLfmC+rrdDu+hhLLE8xax8 ZgsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=ZnRDMih+; 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 u24si6474384ejr.220.2019.10.29.03.53.55; Tue, 29 Oct 2019 03:54:19 -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=ZnRDMih+; 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 S1733244AbfJ2JxS (ORCPT + 99 others); Tue, 29 Oct 2019 05:53:18 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:27101 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733128AbfJ2JxH (ORCPT ); Tue, 29 Oct 2019 05:53:07 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 472RjF0jdCz9tyh0; Tue, 29 Oct 2019 10:53:05 +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=ZnRDMih+; 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 FegPIguYciNV; Tue, 29 Oct 2019 10:53:05 +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 472RjD6kRQz9tygy; Tue, 29 Oct 2019 10:53:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1572342784; bh=P+2AjEXR23xT7K0XGXHw5fnf3v2rAlKDulVBaGhTKhM=; h=From:Subject:To:Cc:Date:From; b=ZnRDMih+ttNEq1o2wyXRU7OxSGZg8AjIKFErAb9l3N2ChbWi1aGZQOD2aSdeca1IK +/ahq0rZtTs59SOA6/7ed/H2QvrdUqXIaN1egiTmUnnycNnJhNg3k1ucCeHyZ4dWtD RuVMGDC2CIbtNDRdKFLQBrEb7+x7XI4nQ4Bzy8JA= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id ED2758B84C; Tue, 29 Oct 2019 10:53:05 +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 qt91em1JhDRG; Tue, 29 Oct 2019 10:53:05 +0100 (CET) Received: from localhost.localdomain (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id BAD0F8B755; Tue, 29 Oct 2019 10:53:05 +0100 (CET) Received: by localhost.localdomain (Postfix, from userid 0) id 4B98C6B6FD; Tue, 29 Oct 2019 09:53:05 +0000 (UTC) Message-Id: From: Christophe Leroy Subject: [PATCH v3 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: Tue, 29 Oct 2019 09:53:05 +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() on non SMP ppc32 - 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 v3: - Dropped the 'fast syscall' hack for getcpu() on SMP. - Moved get_datapage macro into asm/vdso_datapage.h so that it can be used on PPC64 as well. 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 on non SMP 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_datapage.h | 16 +++- arch/powerpc/kernel/asm-offsets.c | 7 +- arch/powerpc/kernel/time.c | 1 + arch/powerpc/kernel/vdso.c | 5 -- arch/powerpc/kernel/vdso32/Makefile | 4 +- arch/powerpc/kernel/vdso32/cacheflush.S | 32 ++++++-- arch/powerpc/kernel/vdso32/datapage.S | 31 +------- arch/powerpc/kernel/vdso32/getcpu.S | 23 +++++- arch/powerpc/kernel/vdso32/gettimeofday.S | 124 +++++++++++++++++++++--------- arch/powerpc/kernel/vdso32/vdso32.lds.S | 2 +- arch/powerpc/kernel/vdso64/gettimeofday.S | 7 +- 11 files changed, 164 insertions(+), 88 deletions(-) -- 2.13.3