Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3877835ybi; Mon, 15 Jul 2019 00:04:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQA42ueWJT+y83ZRRjDXGxG8pw+XYCoLkaM7+ifCyNQ2VVv1YWBoybHbnFswZ7nZT45NZB X-Received: by 2002:a63:d04e:: with SMTP id s14mr24162986pgi.189.1563174291048; Mon, 15 Jul 2019 00:04:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563174291; cv=none; d=google.com; s=arc-20160816; b=OQqt52Lwl/act9F7MPbME0QD/q+SS5Ln11RXTvPBOwkIoUBv5mC4S44RWOh1bj0nSm IWNlOkZJ8Ki3pM7EDkomNFZbroyRPk68DMsnCa4bGOK1RNMmBclol+DX2LnSShlj9vE4 tCmu+XqP7pYDj4d6g3grPIu8o2jjdHhNR2KWMRwp3kfhAdxqpk2Jp+MhCMC+7iuyxO9x DPFhW7DJbRCkP/roSlidtm9GZFb9KVkEOBDAqguerG3AokxvqwjSnTS1jcwEjOrbyNVe HSJMrKWlV1KPPMcjVIyqF0TDBd27ZpGG4jYQpuXGassZ7tju9tVPKzHE37zGFK3gdep/ 5LhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=BpoaOxGfNMV1uUxQQh5QntULfOBecgOiJBIXLSXdHB0=; b=yJ7OrzARZv3Ck+esXAnsRf01wNbSsE1YvicWh3jCYHhLtp3ArmFKpgIJRKEcotCvkz lif/B9NHlSp8oqePqUchvGPUl0T36vKhKQxkt2BiyW3ADwpLmZEDsa+Tnm8cavQoQGlB Vs/a6KPa6FgrFC7pbdaDg4gyo07W19bDpxD9AtXPcNRWN/NtMjNPcVceU+XkT7GQQdVY Tu4xoB4Trb7Kv8p9qffkBJvQOMR7zGG9XW0xYTHC61/ov2Ln2+qkVcPByzcp0r1sb9e7 cOJ9WHDeod49tK01kDb9l5SdePBQ2buREN5Hp4uxFdHhd55cXMMBL/T/fzcVVNJFNjdN gtNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eyDaA6O8; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r71si15710838pfc.152.2019.07.15.00.04.34; Mon, 15 Jul 2019 00:04:51 -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=@gmail.com header.s=20161025 header.b=eyDaA6O8; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729197AbfGOHCs (ORCPT + 99 others); Mon, 15 Jul 2019 03:02:48 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:35019 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725787AbfGOHCs (ORCPT ); Mon, 15 Jul 2019 03:02:48 -0400 Received: by mail-io1-f68.google.com with SMTP id m24so32495633ioo.2 for ; Mon, 15 Jul 2019 00:02:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BpoaOxGfNMV1uUxQQh5QntULfOBecgOiJBIXLSXdHB0=; b=eyDaA6O8qdMDP464A/UrDozJRid/hMgeGOKKhxC6blrPxvq2YvWfY0MHrhncdpA5Wh hMm4Pwi4t9FO/WttA4o1Grk33gdprdYCz5IRHc/NxkUiltA+NSE0FxNXUX4attutHOnS iADtb1q/8QCnSM8TBdF7877NYvUVGpc64wUnhsFRieiT4gCtHTWRbhkmMFGcP8rEie/D Qq37Nz6o1PgHIQK2Wg3W0DifDP4QKKnGo0Ngqc5vtyXmjF1FLouyK9GoQQbx3o7LhklB S2DhX6repo0k9Nk8wDEEgjdYkQscp3LFG4b/n/6ojL7Wi4ClqzEFFaZwqPN419cxkNRy n0PQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BpoaOxGfNMV1uUxQQh5QntULfOBecgOiJBIXLSXdHB0=; b=EzbZCvdMsgPF4xutR5Y7D4vJyYzc6cxcM16eLXC2yPoFJDO6mfQk7SrwRsiNh16gcg 5JQedtgE8qAhEUL4f4Cau3DLXe+TfLnAMP9ADoIsjStk0BDIgRyui+BR58Dv7rCvTEVg cDs/Sg8uYT2YGZ2WI6h2WEK8Q79JEawbSeNshaBdHMoWjcMfCyY9JJQScOxuwt94IaTs wJoD9HXKEkfMkYbe/Vzmu2ga/G1w9166+goDuA8gUegZ/OrHaJnDYyHsxLa17ylViTRY 2/BC/WI7Ig++TX9Kly4Jb6j+LxNhhoCdrSbmS+YyIRMb6MC95mI9rg9Q0yox27PBX1Vx P3ug== X-Gm-Message-State: APjAAAWgj0plGWUMJD+nLPwCZayAU4fhXVgJZ3kzsLrHFvccJLsvRRFA XCuX+CzdQF58gAzcW7DOu4ZA8JYzf5HGO1/o/fg= X-Received: by 2002:a5d:8404:: with SMTP id i4mr19926458ion.146.1563174167458; Mon, 15 Jul 2019 00:02:47 -0700 (PDT) MIME-Version: 1.0 References: <239d1c8f15b8bedc161a234f9f1a22a07160dbdf.1557824379.git.christophe.leroy@c-s.fr> <0e779b35cf66fd4aa5ec0ec09fb7820f6c518cb3.1557824379.git.christophe.leroy@c-s.fr> <87y30z94hp.fsf@concordia.ellerman.id.au> In-Reply-To: <87y30z94hp.fsf@concordia.ellerman.id.au> From: "Oliver O'Halloran" Date: Mon, 15 Jul 2019 17:02:36 +1000 Message-ID: Subject: Re: [PATCH 2/4] powerpc/32: activate ARCH_HAS_PMEM_API and ARCH_HAS_UACCESS_FLUSHCACHE To: Michael Ellerman Cc: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , Segher Boessenkool , Linux Kernel Mailing List , linuxppc-dev Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 15, 2019 at 4:49 PM Michael Ellerman wrote: > > 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' I think lib/pmem.c just needs to be moved out of obj64-y. > > cheers