Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1245095ybl; Mon, 2 Dec 2019 00:00:21 -0800 (PST) X-Google-Smtp-Source: APXvYqwQTDVF0FB8LPKZ0i+I+VQf45be7u5BrWHvr2hnv7siwmxPxkCuPp2+7Y8MHda64qqrlW2K X-Received: by 2002:a17:906:1f12:: with SMTP id w18mr29744135ejj.63.1575273621635; Mon, 02 Dec 2019 00:00:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575273621; cv=none; d=google.com; s=arc-20160816; b=aatwTl81NcB7yaYB/W3bqjiDnjEr50pvQKHVVLK3xfmATVwVuNubjjE8ypzRq/7LOu A7tWQNPx9HFdHKU94LBrcfRPtxNZD03hDMBAoN5OynfvlWnRbNCMZIIWHuQgtYABTymz xJOefXAKgttz8Hlvk/M9llX2kese0htdsgeFo5fEvXZTSpPalIunamJNFjcieKgj7Y6r r4hFBZfVclVN2i1dMzu0ev8sLmfkSB685zzku4kubUMMu5z5GW8l/OxQWGCHPC4lM+Nf D5u26wjp2K3l7R1ORQ9lYvi+rmiXb5dFmrF1KeJUhFBCC57oJwm9kpCJnFF9OLBab27C El4A== 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=1VTYpgup2uhvlpjcEO1SnVZguqXhZuS72WEv23JiwbA=; b=fNm1JemppozYkkKehgsNVBu7mhb/UXFDHYshp6pTFIdl88J4hpsdIY9gRVqbapHo+N Ro+68S/oQHbr37+cac58QkXtXD4Bnl+79yaUpM/nf0o21qv5EAxy14WCYNSc2OhNPp+Q P+MLIx79dH41/WMh8N90Mmc5S3fmUTPzWc6T0nVgZGJVhcvHZcm+M8qKPhxbia1XMJBp nraZiIwO15WeTeIgtHDAWE32Eand8xTVY6u/9/67tNBnFtGldTDf9t0aXjjJwQHD54+q i715WpsZO7HQ+6/dqDWL7LZu6NapWo1XyMPvX9TFhGUjlWDJpDoPwPszkVDwAddbnELt pEVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b="Wgcjl/mH"; 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 p22si6491252edq.100.2019.12.01.23.59.57; Mon, 02 Dec 2019 00:00:21 -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="Wgcjl/mH"; 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 S1726399AbfLBH53 (ORCPT + 99 others); Mon, 2 Dec 2019 02:57:29 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:30266 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726030AbfLBH52 (ORCPT ); Mon, 2 Dec 2019 02:57:28 -0500 Received: from localhost (mailhub1-ext [192.168.12.233]) by localhost (Postfix) with ESMTP id 47RHX23YRzz9txst; Mon, 2 Dec 2019 08:57:22 +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=Wgcjl/mH; 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 wbr5-YSii243; Mon, 2 Dec 2019 08:57:22 +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 47RHX22Vzvz9txsp; Mon, 2 Dec 2019 08:57:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1575273442; bh=1VTYpgup2uhvlpjcEO1SnVZguqXhZuS72WEv23JiwbA=; h=From:Subject:To:Cc:Date:From; b=Wgcjl/mHdna71Mhb57OFol7QJB+1+UdR+t2AhxHSQvq8vBpA2A5Glo2m5qr2uPelT e4RAhzLNwNo79qCFf0Lu9wE0ahv+/Ce9uV9RKPEykg2l4kp08ZutxOjb4HoEXXl4D/ KMLb+VR8TSiz7fZIl9MZ4Qh0Jepwyx/Dk+Uy3wsE= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id EDB7B8B79B; Mon, 2 Dec 2019 08:57:26 +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 S44Rn1Yq615f; Mon, 2 Dec 2019 08:57:26 +0100 (CET) Received: from po16098vm.idsi0.si.c-s.fr (po15451.idsi0.si.c-s.fr [172.25.230.103]) by messagerie.si.c-s.fr (Postfix) with ESMTP id C7EEA8B79A; Mon, 2 Dec 2019 08:57:26 +0100 (CET) Received: by po16098vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 9857363600; Mon, 2 Dec 2019 07:57:26 +0000 (UTC) Message-Id: From: Christophe Leroy Subject: [PATCH v4 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, arnd@arndb.de Date: Mon, 2 Dec 2019 07:57:26 +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 v4: - Rebased on top of ceb307474506 ("Merge tag 'y2038-cleanups-5.5' of git://git.kernel.org:/pub/scm/linux/kernel/git/arnd/playground") - Fixed build failure with old binutils reported by mpe (patch 4) 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