From patchwork Wed Apr 20 08:40:25 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Motohiro KOSAKI X-Patchwork-Id: 721041 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3K8eVI3004471 for ; Wed, 20 Apr 2011 08:40:32 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752423Ab1DTIkb (ORCPT ); Wed, 20 Apr 2011 04:40:31 -0400 Received: from fgwmail5.fujitsu.co.jp ([192.51.44.35]:53144 "EHLO fgwmail5.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751340Ab1DTIk3 convert rfc822-to-8bit (ORCPT ); Wed, 20 Apr 2011 04:40:29 -0400 Received: from m4.gw.fujitsu.co.jp (unknown [10.0.50.74]) by fgwmail5.fujitsu.co.jp (Postfix) with ESMTP id 5E9343EE0C7; Wed, 20 Apr 2011 17:40:27 +0900 (JST) Received: from smail (m4 [127.0.0.1]) by outgoing.m4.gw.fujitsu.co.jp (Postfix) with ESMTP id 3FD9445DE56; Wed, 20 Apr 2011 17:40:27 +0900 (JST) Received: from s4.gw.fujitsu.co.jp (s4.gw.fujitsu.co.jp [10.0.50.94]) by m4.gw.fujitsu.co.jp (Postfix) with ESMTP id 1359B45DE52; Wed, 20 Apr 2011 17:40:27 +0900 (JST) Received: from s4.gw.fujitsu.co.jp (localhost.localdomain [127.0.0.1]) by s4.gw.fujitsu.co.jp (Postfix) with ESMTP id 066B01DB803E; Wed, 20 Apr 2011 17:40:27 +0900 (JST) Received: from m105.s.css.fujitsu.com (m105.s.css.fujitsu.com [10.240.81.145]) by s4.gw.fujitsu.co.jp (Postfix) with ESMTP id B9DDD1DB803B; Wed, 20 Apr 2011 17:40:26 +0900 (JST) Received: from m105.css.fujitsu.com (m105 [127.0.0.1]) by m105.s.css.fujitsu.com (Postfix) with ESMTP id 79670608006; Wed, 20 Apr 2011 17:40:26 +0900 (JST) Received: from [127.0.0.1] (unknown [10.124.101.92]) by m105.s.css.fujitsu.com (Postfix) with ESMTP id 6C8865E8004; Wed, 20 Apr 2011 17:40:25 +0900 (JST) X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.3.1 Received: from KOSANOTE2[10.124.101.92] by KOSANOTE2 (FujitsuOutboundMailChecker v1.3.1/9992[10.124.101.92]); Wed, 20 Apr 2011 17:40:43 +0900 (JST) From: KOSAKI Motohiro To: Pekka Enberg Subject: Re: [PATCH v3] mm: make expand_downwards symmetrical to expand_upwards Cc: kosaki.motohiro@jp.fujitsu.com, Christoph Lameter , James Bottomley , Michal Hocko , Andrew Morton , Hugh Dickins , linux-mm@kvack.org, LKML , linux-parisc@vger.kernel.org, David Rientjes , Ingo Molnar , x86 maintainers In-Reply-To: References: <20110420161615.462D.A69D9226@jp.fujitsu.com> Message-Id: <20110420174027.4631.A69D9226@jp.fujitsu.com> MIME-Version: 1.0 X-Mailer: Becky! ver. 2.56.05 [ja] Date: Wed, 20 Apr 2011 17:40:25 +0900 (JST) Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 20 Apr 2011 08:40:32 +0000 (UTC) > > btw, x86 don't have an issue. Probably it's a reason why this issue was neglected > > long time. > > > > arch/x86/Kconfig > > ------------------------------------- > > config ARCH_DISCONTIGMEM_ENABLE > >        def_bool y > >        depends on NUMA && X86_32 > > That part makes me think the best option is to make parisc do > CONFIG_NUMA as well regardless of the historical intent was. > > Pekka This? compile test only. --- arch/parisc/Kconfig | 7 +++++++ include/asm-generic/topology.h | 4 ---- include/linux/topology.h | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/arch/parisc/Kconfig b/arch/parisc/Kconfig index 69ff049..0bf9ae8 100644 --- a/arch/parisc/Kconfig +++ b/arch/parisc/Kconfig @@ -229,6 +229,12 @@ config HOTPLUG_CPU default y if SMP select HOTPLUG +config NUMA + bool "NUMA support" + help + Say Y to compile the kernel to support NUMA (Non-Uniform Memory + Access). + config ARCH_SELECT_MEMORY_MODEL def_bool y depends on 64BIT @@ -236,6 +242,7 @@ config ARCH_SELECT_MEMORY_MODEL config ARCH_DISCONTIGMEM_ENABLE def_bool y depends on 64BIT + depends on NUMA config ARCH_FLATMEM_ENABLE def_bool y diff --git a/include/asm-generic/topology.h b/include/asm-generic/topology.h index fc824e2..932567b 100644 --- a/include/asm-generic/topology.h +++ b/include/asm-generic/topology.h @@ -27,8 +27,6 @@ #ifndef _ASM_GENERIC_TOPOLOGY_H #define _ASM_GENERIC_TOPOLOGY_H -#ifndef CONFIG_NUMA - /* Other architectures wishing to use this simple topology API should fill in the below functions as appropriate in their own file. */ #ifndef cpu_to_node @@ -60,8 +58,6 @@ cpumask_of_node(pcibus_to_node(bus))) #endif -#endif /* CONFIG_NUMA */ - #if !defined(CONFIG_NUMA) || !defined(CONFIG_HAVE_MEMORYLESS_NODES) #ifndef set_numa_mem diff --git a/include/linux/topology.h b/include/linux/topology.h index b91a40e..e1e535b 100644 --- a/include/linux/topology.h +++ b/include/linux/topology.h @@ -209,7 +209,7 @@ int arch_update_cpu_topology(void); #ifdef CONFIG_NUMA #ifndef SD_NODE_INIT -#error Please define an appropriate SD_NODE_INIT in include/asm/topology.h!!! +#define SD_NODE_INIT SD_ALLNODES_INIT #endif #endif /* CONFIG_NUMA */