Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3865482ybi; Sun, 14 Jul 2019 23:50:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6HCFOqGviJqFPH6uFa8+dHkyHoySpkMkekB+/2UJaDaYqNTmy0lVSgwskqjMv4zs+q7cC X-Received: by 2002:a63:db45:: with SMTP id x5mr13682284pgi.293.1563173438013; Sun, 14 Jul 2019 23:50:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563173438; cv=none; d=google.com; s=arc-20160816; b=Q+zjfyfWhVvVefwSdUFE8CqOQAMy9xB6wxnR2LPIFrLPsMgiy51YmTWaQEFrZit/xX eBc2u5sUOabN7fwJrvfGHAH7hGCprchpM1f/o5WapVsaOnCCrw5NHuHrzm8TuK0DNoyY R1FbypA/81HYCDp5yiKL5MdTmzKlOJ6jF4S7Pr681HIXf5jGlxMYRHWRrMT8kmDXaQmE +S4gVRG9ZJQFjCwVp36dE0dsIYohqpumf5F1cDuy6vJLRbXcSNDZAgEL2S8hytV8vShd KxtWxFMglpwPSSXbykkWgREp9BX4P/Vhu20GCPetgsc8i7/DuW9QU170jF1q6QQqqdoI jt0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=Uif8dVFqI3pIk647wm9ba8pWDn3G1qRPtw9YyJ7Nqhg=; b=s1PTvlUk6PrbavT2LnDXmUhiwPbajy0nkOluII9dhlTfS3NaUdWQEPFar8afpQ14mS EfsvXdWO2nyEwGh3L6YizcaMhXf6UbWP5GqzDAmsWlkZDzZiV58zxCh1WT3p0dULdwYS Nt1Qm7vrmvHBFWrJpIVEyZQJ/+7yh5/CeMQ6QXWQ2rzGbJA71Kr+ddy5AzSXV1//FZLy 7RRIyGrC+iHBZX2+XT2WOvmZ/nKJIwhFoddaww7wOPcgHlN/ZAp32ibT3kM+e1C2BmKK TGSJYiKsE2bc0PxWJTYnTAmGddZGB8c/fvUfQvQoIm0nHX6OI8+6BC5W4d1sEqAcUjns Fi+g== ARC-Authentication-Results: i=1; mx.google.com; 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 6si15602224pgb.201.2019.07.14.23.50.17; Sun, 14 Jul 2019 23:50:37 -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; 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 S1728933AbfGOGtl (ORCPT + 99 others); Mon, 15 Jul 2019 02:49:41 -0400 Received: from bilbo.ozlabs.org ([203.11.71.1]:35277 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725787AbfGOGtk (ORCPT ); Mon, 15 Jul 2019 02:49:40 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 45nDfV4TBTz9sND; Mon, 15 Jul 2019 16:49:38 +1000 (AEST) From: Michael Ellerman To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , Oliver O'Halloran , Segher Boessenkool Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH 2/4] powerpc/32: activate ARCH_HAS_PMEM_API and ARCH_HAS_UACCESS_FLUSHCACHE In-Reply-To: <0e779b35cf66fd4aa5ec0ec09fb7820f6c518cb3.1557824379.git.christophe.leroy@c-s.fr> References: <239d1c8f15b8bedc161a234f9f1a22a07160dbdf.1557824379.git.christophe.leroy@c-s.fr> <0e779b35cf66fd4aa5ec0ec09fb7820f6c518cb3.1557824379.git.christophe.leroy@c-s.fr> Date: Mon, 15 Jul 2019 16:49:38 +1000 Message-ID: <87y30z94hp.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christophe Leroy writes: > PPC32 also have flush_dcache_range() so it can also support > ARCH_HAS_PMEM_API and ARCH_HAS_UACCESS_FLUSHCACHE without changes. > > Signed-off-by: Christophe Leroy > --- > arch/powerpc/Kconfig | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig > index d7996cfaceca..cf6e30f637be 100644 > --- a/arch/powerpc/Kconfig > +++ b/arch/powerpc/Kconfig > @@ -127,13 +127,13 @@ config PPC > select ARCH_HAS_KCOV > select ARCH_HAS_MMIOWB if PPC64 > select ARCH_HAS_PHYS_TO_DMA > - select ARCH_HAS_PMEM_API if PPC64 > + select ARCH_HAS_PMEM_API > select ARCH_HAS_PTE_SPECIAL > select ARCH_HAS_MEMBARRIER_CALLBACKS > select ARCH_HAS_SCALED_CPUTIME if VIRT_CPU_ACCOUNTING_NATIVE && PPC64 > select ARCH_HAS_STRICT_KERNEL_RWX if ((PPC_BOOK3S_64 || PPC32) && !RELOCATABLE && !HIBERNATION) > select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST > - select ARCH_HAS_UACCESS_FLUSHCACHE if PPC64 > + select ARCH_HAS_UACCESS_FLUSHCACHE > select ARCH_HAS_UBSAN_SANITIZE_ALL > select ARCH_HAS_ZONE_DEVICE if PPC_BOOK3S_64 > select ARCH_HAVE_NMI_SAFE_CMPXCHG This didn't build for me, probably due to something that's changed in the long period between you posting it and me applying it? corenet32_smp_defconfig: powerpc64-unknown-linux-gnu-ld: lib/iov_iter.o: in function `_copy_from_iter_flushcache': powerpc64-unknown-linux-gnu-ld: /scratch/michael/build/maint/build~/../lib/iov_iter.c:825: undefined reference to `memcpy_page_flushcache' powerpc64-unknown-linux-gnu-ld: /scratch/michael/build/maint/build~/../lib/iov_iter.c:825: undefined reference to `memcpy_flushcache' powerpc64-unknown-linux-gnu-ld: /scratch/michael/build/maint/build~/../lib/iov_iter.c:825: undefined reference to `__copy_from_user_flushcache' powerpc64-unknown-linux-gnu-ld: /scratch/michael/build/maint/build~/../lib/iov_iter.c:825: undefined reference to `memcpy_flushcache' cheers