Re: [PATCH v2 1/5] x86: get pg_data_t's memory from other node

2012-12-02 Thread Jiang Liu
On 11/23/2012 06:44 PM, Tang Chen wrote: > From: Yasuaki Ishimatsu > > If system can create movable node which all memory of the > node is allocated as ZONE_MOVABLE, setup_node_data() cannot > allocate memory for the node's pg_data_t. > So when memblock_alloc_nid() fails, setup_node_data()

Re: [PATCH v2 1/5] x86: get pg_data_t's memory from other node

2012-12-02 Thread Jiang Liu
On 11/23/2012 06:44 PM, Tang Chen wrote: From: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com If system can create movable node which all memory of the node is allocated as ZONE_MOVABLE, setup_node_data() cannot allocate memory for the node's pg_data_t. So when memblock_alloc_nid() fails,

Re: [PATCH v2 1/5] x86: get pg_data_t's memory from other node

2012-11-25 Thread Tang Chen
On 11/24/2012 09:19 AM, Jiang Liu wrote: On 2012-11-23 18:44, Tang Chen wrote: From: Yasuaki Ishimatsu @@ -224,9 +224,14 @@ static void __init setup_node_data(int nid, u64 start, u64 end) } else { nd_pa = memblock_alloc_nid(nd_size, SMP_CACHE_BYTES, nid);

Re: [PATCH v2 1/5] x86: get pg_data_t's memory from other node

2012-11-25 Thread Tang Chen
On 11/24/2012 09:19 AM, Jiang Liu wrote: On 2012-11-23 18:44, Tang Chen wrote: From: Yasuaki Ishimatsuisimatu.yasu...@jp.fujitsu.com @@ -224,9 +224,14 @@ static void __init setup_node_data(int nid, u64 start, u64 end) } else { nd_pa = memblock_alloc_nid(nd_size,

Re: [PATCH v2 1/5] x86: get pg_data_t's memory from other node

2012-11-23 Thread Jiang Liu
On 2012-11-23 18:44, Tang Chen wrote: > From: Yasuaki Ishimatsu > > If system can create movable node which all memory of the > node is allocated as ZONE_MOVABLE, setup_node_data() cannot > allocate memory for the node's pg_data_t. > So when memblock_alloc_nid() fails, setup_node_data() retries

[PATCH v2 1/5] x86: get pg_data_t's memory from other node

2012-11-23 Thread Tang Chen
From: Yasuaki Ishimatsu If system can create movable node which all memory of the node is allocated as ZONE_MOVABLE, setup_node_data() cannot allocate memory for the node's pg_data_t. So when memblock_alloc_nid() fails, setup_node_data() retries memblock_alloc(). Signed-off-by: Yasuaki

[PATCH v2 1/5] x86: get pg_data_t's memory from other node

2012-11-23 Thread Tang Chen
From: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com If system can create movable node which all memory of the node is allocated as ZONE_MOVABLE, setup_node_data() cannot allocate memory for the node's pg_data_t. So when memblock_alloc_nid() fails, setup_node_data() retries memblock_alloc().

Re: [PATCH v2 1/5] x86: get pg_data_t's memory from other node

2012-11-23 Thread Jiang Liu
On 2012-11-23 18:44, Tang Chen wrote: From: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com If system can create movable node which all memory of the node is allocated as ZONE_MOVABLE, setup_node_data() cannot allocate memory for the node's pg_data_t. So when memblock_alloc_nid() fails,