Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4514338ybi; Mon, 15 Jul 2019 10:05:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqzRMUf//H8dxBXwbIGPNDJrakhcgVoIDJ0JKvl9KCciZy9U1klhs+t8T+V7hsoVkfnDUyfn X-Received: by 2002:a17:90a:8a91:: with SMTP id x17mr30495464pjn.95.1563210349271; Mon, 15 Jul 2019 10:05:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563210349; cv=none; d=google.com; s=arc-20160816; b=sC0sC7gQXsq+uUfXuD22exPOM9qdua5mKh+indGENDD5I1OsWl+YvILNNZoasHmQ8Y P+FK/9qdvkBr0e2MTZ1ufrAMKXEEZiv0faW5U8el2HpxTJ0iNK/Dgsn16tevt8JSRi+Y 46S6q53outILhZJNXg670wdUJVwlb2xbQKu3d4uFB3V07okQ/VwmwJP7SDfIX6NDJqlc kCyGuHineQe3+r1B+bpIiwcQDRLXNyrtBEbN76s6mKSqJUwIaEHZ9umcE5KmDhkeWXle MdDVeiSHV4ag0Lf2AtF31dwbczUPQFFhXShUnoN0yf38KylcynwPT7ndKVyqzKOQweLi ZMLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-disposition:mime-version:user-agent:in-reply-to:references :subject:cc:to:from:message-id:date; bh=3o5MX93D5k9bVxZU4xuXdHJz/qNYoTMhGV1Gs56ZQ7s=; b=O3jXAA1I7PVeVq+wJXThQ6yCqDt3nhDKTL0EbtosYJnmZ/giQXQftMiIIMTDkPukyM MtDLeuLlJ8J781vrZkPfz5aNMZsxbgBDoupaP7KnqKAaf2QpI8ACfzLgNN4cX2Bngmiy vJnaWR/CRMFT29Tmy5/7ol/2YRBIj8MYl7Nu1ARl0B8IrP9LIALU8HnpPgWOwzb/HwHY nQfPEodYiDcZUW5oncCwl2i3Nu/kFbb5Y2mThKi/K1JyOjaA66Ykyr9XCPJUwa1+iTWM Nm5+NkcWfNeevdL9Q24jqQBWWbd3/8AvtTNUvCNlHY5A1d8KQOQv43ZXUQEUQwKRdZM9 lGFQ== 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 m129si17656751pfm.15.2019.07.15.10.05.32; Mon, 15 Jul 2019 10:05:49 -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 S1731578AbfGORDT convert rfc822-to-8bit (ORCPT + 99 others); Mon, 15 Jul 2019 13:03:19 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:18951 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731535AbfGORDS (ORCPT ); Mon, 15 Jul 2019 13:03:18 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 45nVGW70Kkz9v6sM; Mon, 15 Jul 2019 19:03:15 +0200 (CEST) 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 6-l72iaIQAXe; Mon, 15 Jul 2019 19:03:15 +0200 (CEST) Received: from vm-hermes.si.c-s.fr (vm-hermes.si.c-s.fr [192.168.25.253]) by pegase1.c-s.fr (Postfix) with ESMTP id 45nVGW5x2hz9v6sL; Mon, 15 Jul 2019 19:03:15 +0200 (CEST) Received: by vm-hermes.si.c-s.fr (Postfix, from userid 33) id 986702436; Mon, 15 Jul 2019 19:03:22 +0200 (CEST) Received: from 37.165.107.183 ([37.165.107.183]) by messagerie.si.c-s.fr (Horde Framework) with HTTP; Mon, 15 Jul 2019 19:03:22 +0200 Date: Mon, 15 Jul 2019 19:03:22 +0200 Message-ID: <20190715190322.Horde.n1joFeQA_2PKT82_Wohz2Q1@messagerie.si.c-s.fr> From: Christophe Leroy To: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Segher Boessenkool , Oliver O'Halloran , Paul Mackerras , Benjamin Herrenschmidt Subject: Re: [PATCH 2/4] powerpc/32: activate ARCH_HAS_PMEM_API and ARCH_HAS_UACCESS_FLUSHCACHE 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> User-Agent: Internet Messaging Program (IMP) H5 (6.2.3) Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Michael Ellerman a écrit : > 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' > Looks like arch/powerpc/lib/Makefile only builds pmem.o for ppc64 Moving it from obj64-y to obj-y should do it. I'll update the patch when I'm back in two weeks unless you can fix it before. Christophe