Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964826AbbHKLVY (ORCPT ); Tue, 11 Aug 2015 07:21:24 -0400 Received: from mail-oi0-f41.google.com ([209.85.218.41]:36597 "EHLO mail-oi0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933838AbbHKLVV (ORCPT ); Tue, 11 Aug 2015 07:21:21 -0400 MIME-Version: 1.0 In-Reply-To: <20150810.210804.1413406155445559341.davem@davemloft.net> References: <1438960924-23628-1-git-send-email-james.hogan@imgtec.com> <20150810.152938.1076489414700359615.davem@redhat.com> <20150810.210804.1413406155445559341.davem@davemloft.net> Date: Tue, 11 Aug 2015 13:20:53 +0200 X-Google-Sender-Auth: E7ELc_VkBSq7eb_4cJD6qHzzDFw Message-ID: Subject: Re: [PATCH v2 00/11] test_user_copy improvements From: Geert Uytterhoeven To: David Miller Cc: James Hogan , "linux-kernel@vger.kernel.org" , Linux-Arch , Kees Cook , Andrew Morton , Michal Simek , Ley Foon Tan , Jonas Bonn , Chris Zankel , Max Filippov , nios2-dev@lists.rocketboards.org, linux , "linux-xtensa@linux-xtensa.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2165 Lines: 69 On Tue, Aug 11, 2015 at 6:08 AM, David Miller wrote: > From: David Miller > Date: Mon, 10 Aug 2015 15:29:38 -0700 (PDT) > >> Also, I think the tests you added and protected with MIPS ifdefs could >> equally be enabled on sparc64. > > James, as per this issue, I was thinking we could do something like this > so that the tests don't get messy: > > diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig > index cee5f93..48d20c8 100644 > --- a/arch/mips/Kconfig > +++ b/arch/mips/Kconfig > @@ -1922,6 +1922,7 @@ config CPU_MIPSR6 > > config EVA > bool > + select ARCH_SPLIT_VA_SPACE > > config XPA > bool > diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig > index 56442d2..4001d04 100644 > --- a/arch/sparc/Kconfig > +++ b/arch/sparc/Kconfig > @@ -80,6 +80,7 @@ config SPARC64 > select NO_BOOTMEM > select HAVE_ARCH_AUDITSYSCALL > select ARCH_SUPPORTS_ATOMIC_RMW > + select ARCH_SPLIT_VA_SPACE > > config ARCH_DEFCONFIG > string > diff --git a/lib/Kconfig b/lib/Kconfig > index 3a2ef67..149eb29 100644 > --- a/lib/Kconfig > +++ b/lib/Kconfig > @@ -62,6 +62,9 @@ config ARCH_USE_CMPXCHG_LOCKREF > config ARCH_HAS_FAST_MULTIPLIER > bool > > +config ARCH_SPLIT_VA_SPACE > + def_bool n > + > config CRC_CCITT > tristate "CRC-CCITT functions" > help I think this applies to a few more architectures. M68k already has a config symbol for his (CPU_HAS_ADDRESS_SPACES), which is set by classic m68k (not Coldfire) that has the "moves" instruction. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/