Re: [PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-20 Thread Catalin Marinas
Hi Chen, On Wed, Apr 20, 2016 at 11:18:54AM +0800, Chen Feng wrote: > Thanks for your reply. > On 2016/4/12 22:59, Catalin Marinas wrote: > > On Mon, Apr 11, 2016 at 12:31:53PM +0200, Ard Biesheuvel wrote: > >> On 11 April 2016 at 11:59, Chen Feng wrote: > >>> On

Re: [PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-20 Thread Catalin Marinas
Hi Chen, On Wed, Apr 20, 2016 at 11:18:54AM +0800, Chen Feng wrote: > Thanks for your reply. > On 2016/4/12 22:59, Catalin Marinas wrote: > > On Mon, Apr 11, 2016 at 12:31:53PM +0200, Ard Biesheuvel wrote: > >> On 11 April 2016 at 11:59, Chen Feng wrote: > >>> On 2016/4/11 16:00, Ard Biesheuvel

Re: [PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-19 Thread Chen Feng
Hi Catalin, Thanks for your reply. On 2016/4/12 22:59, Catalin Marinas wrote: > On Mon, Apr 11, 2016 at 12:31:53PM +0200, Ard Biesheuvel wrote: >> On 11 April 2016 at 11:59, Chen Feng wrote: >>> On 2016/4/11 16:00, Ard Biesheuvel wrote: On 11 April 2016 at 09:55,

Re: [PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-19 Thread Chen Feng
Hi Catalin, Thanks for your reply. On 2016/4/12 22:59, Catalin Marinas wrote: > On Mon, Apr 11, 2016 at 12:31:53PM +0200, Ard Biesheuvel wrote: >> On 11 April 2016 at 11:59, Chen Feng wrote: >>> On 2016/4/11 16:00, Ard Biesheuvel wrote: On 11 April 2016 at 09:55, Chen Feng wrote: > On

Re: [PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-12 Thread Catalin Marinas
On Mon, Apr 11, 2016 at 12:31:53PM +0200, Ard Biesheuvel wrote: > On 11 April 2016 at 11:59, Chen Feng wrote: > > On 2016/4/11 16:00, Ard Biesheuvel wrote: > >> On 11 April 2016 at 09:55, Chen Feng wrote: > >>> On 2016/4/11 15:35, Ard Biesheuvel

Re: [PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-12 Thread Catalin Marinas
On Mon, Apr 11, 2016 at 12:31:53PM +0200, Ard Biesheuvel wrote: > On 11 April 2016 at 11:59, Chen Feng wrote: > > On 2016/4/11 16:00, Ard Biesheuvel wrote: > >> On 11 April 2016 at 09:55, Chen Feng wrote: > >>> On 2016/4/11 15:35, Ard Biesheuvel wrote: > On 11 April 2016 at 04:49, Chen Feng

Re: [PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-12 Thread Catalin Marinas
On Mon, Apr 11, 2016 at 11:40:13AM +0100, Will Deacon wrote: > On Mon, Apr 11, 2016 at 12:31:53PM +0200, Ard Biesheuvel wrote: > > On 11 April 2016 at 11:59, Chen Feng wrote: > > > Please see the pg-tables below. > > > > > > > > > With sparse and vmemmap enable. > > > > >

Re: [PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-12 Thread Catalin Marinas
On Mon, Apr 11, 2016 at 11:40:13AM +0100, Will Deacon wrote: > On Mon, Apr 11, 2016 at 12:31:53PM +0200, Ard Biesheuvel wrote: > > On 11 April 2016 at 11:59, Chen Feng wrote: > > > Please see the pg-tables below. > > > > > > > > > With sparse and vmemmap enable. > > > > > > ---[ vmemmap start

Re: [PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-12 Thread Jungseok Lee
On Apr 11, 2016, at 11:49 AM, Chen Feng wrote: Dear Chen, > Hi will, > Thanks for review. > > On 2016/4/7 22:21, Will Deacon wrote: >> On Tue, Apr 05, 2016 at 04:22:51PM +0800, Chen Feng wrote: >>> We can reduce the memory allocated at mem-map >>> by flatmem. >>> >>> currently, the default

Re: [PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-12 Thread Jungseok Lee
On Apr 11, 2016, at 11:49 AM, Chen Feng wrote: Dear Chen, > Hi will, > Thanks for review. > > On 2016/4/7 22:21, Will Deacon wrote: >> On Tue, Apr 05, 2016 at 04:22:51PM +0800, Chen Feng wrote: >>> We can reduce the memory allocated at mem-map >>> by flatmem. >>> >>> currently, the default

Re: [PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-11 Thread Laura Abbott
On 04/11/2016 03:57 AM, Chen Feng wrote: Hi Will, On 2016/4/11 18:40, Will Deacon wrote: On Mon, Apr 11, 2016 at 12:31:53PM +0200, Ard Biesheuvel wrote: On 11 April 2016 at 11:59, Chen Feng wrote: Please see the pg-tables below. With sparse and vmemmap enable.

Re: [PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-11 Thread Laura Abbott
On 04/11/2016 03:57 AM, Chen Feng wrote: Hi Will, On 2016/4/11 18:40, Will Deacon wrote: On Mon, Apr 11, 2016 at 12:31:53PM +0200, Ard Biesheuvel wrote: On 11 April 2016 at 11:59, Chen Feng wrote: Please see the pg-tables below. With sparse and vmemmap enable. ---[ vmemmap start ]---

Re: [PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-11 Thread Ard Biesheuvel
On 11 April 2016 at 12:48, Chen Feng wrote: > > > On 2016/4/11 17:59, Chen Feng wrote: >> Hi Ard, >> >> On 2016/4/11 16:00, Ard Biesheuvel wrote: >>> On 11 April 2016 at 09:55, Chen Feng wrote: Hi Ard, On 2016/4/11 15:35, Ard

Re: [PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-11 Thread Ard Biesheuvel
On 11 April 2016 at 12:48, Chen Feng wrote: > > > On 2016/4/11 17:59, Chen Feng wrote: >> Hi Ard, >> >> On 2016/4/11 16:00, Ard Biesheuvel wrote: >>> On 11 April 2016 at 09:55, Chen Feng wrote: Hi Ard, On 2016/4/11 15:35, Ard Biesheuvel wrote: > On 11 April 2016 at 04:49, Chen

Re: [PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-11 Thread Chen Feng
Hi Will, On 2016/4/11 18:40, Will Deacon wrote: > On Mon, Apr 11, 2016 at 12:31:53PM +0200, Ard Biesheuvel wrote: >> On 11 April 2016 at 11:59, Chen Feng wrote: >>> Please see the pg-tables below. >>> >>> >>> With sparse and vmemmap enable. >>> >>> ---[ vmemmap start

Re: [PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-11 Thread Chen Feng
Hi Will, On 2016/4/11 18:40, Will Deacon wrote: > On Mon, Apr 11, 2016 at 12:31:53PM +0200, Ard Biesheuvel wrote: >> On 11 April 2016 at 11:59, Chen Feng wrote: >>> Please see the pg-tables below. >>> >>> >>> With sparse and vmemmap enable. >>> >>> ---[ vmemmap start ]--- >>>

Re: [PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-11 Thread Chen Feng
On 2016/4/11 17:59, Chen Feng wrote: > Hi Ard, > > On 2016/4/11 16:00, Ard Biesheuvel wrote: >> On 11 April 2016 at 09:55, Chen Feng wrote: >>> Hi Ard, >>> >>> On 2016/4/11 15:35, Ard Biesheuvel wrote: On 11 April 2016 at 04:49, Chen Feng

Re: [PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-11 Thread Chen Feng
On 2016/4/11 17:59, Chen Feng wrote: > Hi Ard, > > On 2016/4/11 16:00, Ard Biesheuvel wrote: >> On 11 April 2016 at 09:55, Chen Feng wrote: >>> Hi Ard, >>> >>> On 2016/4/11 15:35, Ard Biesheuvel wrote: On 11 April 2016 at 04:49, Chen Feng wrote: > Hi will, > Thanks for review.

Re: [PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-11 Thread Will Deacon
On Mon, Apr 11, 2016 at 12:31:53PM +0200, Ard Biesheuvel wrote: > On 11 April 2016 at 11:59, Chen Feng wrote: > > Please see the pg-tables below. > > > > > > With sparse and vmemmap enable. > > > > ---[ vmemmap start ]--- > > 0xffbdc020-0xffbdc480

Re: [PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-11 Thread Will Deacon
On Mon, Apr 11, 2016 at 12:31:53PM +0200, Ard Biesheuvel wrote: > On 11 April 2016 at 11:59, Chen Feng wrote: > > Please see the pg-tables below. > > > > > > With sparse and vmemmap enable. > > > > ---[ vmemmap start ]--- > > 0xffbdc020-0xffbdc480 70M RW NX SHD AF

Re: [PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-11 Thread Ard Biesheuvel
On 11 April 2016 at 11:59, Chen Feng wrote: > Hi Ard, > > On 2016/4/11 16:00, Ard Biesheuvel wrote: >> On 11 April 2016 at 09:55, Chen Feng wrote: >>> Hi Ard, >>> >>> On 2016/4/11 15:35, Ard Biesheuvel wrote: On 11 April 2016 at 04:49, Chen

Re: [PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-11 Thread Ard Biesheuvel
On 11 April 2016 at 11:59, Chen Feng wrote: > Hi Ard, > > On 2016/4/11 16:00, Ard Biesheuvel wrote: >> On 11 April 2016 at 09:55, Chen Feng wrote: >>> Hi Ard, >>> >>> On 2016/4/11 15:35, Ard Biesheuvel wrote: On 11 April 2016 at 04:49, Chen Feng wrote: > Hi will, > Thanks for

Re: [PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-11 Thread Chen Feng
Hi Ard, On 2016/4/11 16:00, Ard Biesheuvel wrote: > On 11 April 2016 at 09:55, Chen Feng wrote: >> Hi Ard, >> >> On 2016/4/11 15:35, Ard Biesheuvel wrote: >>> On 11 April 2016 at 04:49, Chen Feng wrote: Hi will, Thanks for review.

Re: [PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-11 Thread Chen Feng
Hi Ard, On 2016/4/11 16:00, Ard Biesheuvel wrote: > On 11 April 2016 at 09:55, Chen Feng wrote: >> Hi Ard, >> >> On 2016/4/11 15:35, Ard Biesheuvel wrote: >>> On 11 April 2016 at 04:49, Chen Feng wrote: Hi will, Thanks for review. On 2016/4/7 22:21, Will Deacon wrote: >

Re: [PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-11 Thread Ard Biesheuvel
On 11 April 2016 at 09:55, Chen Feng wrote: > Hi Ard, > > On 2016/4/11 15:35, Ard Biesheuvel wrote: >> On 11 April 2016 at 04:49, Chen Feng wrote: >>> Hi will, >>> Thanks for review. >>> >>> On 2016/4/7 22:21, Will Deacon wrote: On Tue, Apr

Re: [PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-11 Thread Ard Biesheuvel
On 11 April 2016 at 09:55, Chen Feng wrote: > Hi Ard, > > On 2016/4/11 15:35, Ard Biesheuvel wrote: >> On 11 April 2016 at 04:49, Chen Feng wrote: >>> Hi will, >>> Thanks for review. >>> >>> On 2016/4/7 22:21, Will Deacon wrote: On Tue, Apr 05, 2016 at 04:22:51PM +0800, Chen Feng wrote:

Re: [PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-11 Thread Chen Feng
Hi Ard, On 2016/4/11 15:35, Ard Biesheuvel wrote: > On 11 April 2016 at 04:49, Chen Feng wrote: >> Hi will, >> Thanks for review. >> >> On 2016/4/7 22:21, Will Deacon wrote: >>> On Tue, Apr 05, 2016 at 04:22:51PM +0800, Chen Feng wrote: We can reduce the memory

Re: [PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-11 Thread Chen Feng
Hi Ard, On 2016/4/11 15:35, Ard Biesheuvel wrote: > On 11 April 2016 at 04:49, Chen Feng wrote: >> Hi will, >> Thanks for review. >> >> On 2016/4/7 22:21, Will Deacon wrote: >>> On Tue, Apr 05, 2016 at 04:22:51PM +0800, Chen Feng wrote: We can reduce the memory allocated at mem-map by

Re: [PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-11 Thread Ard Biesheuvel
On 11 April 2016 at 04:49, Chen Feng wrote: > Hi will, > Thanks for review. > > On 2016/4/7 22:21, Will Deacon wrote: >> On Tue, Apr 05, 2016 at 04:22:51PM +0800, Chen Feng wrote: >>> We can reduce the memory allocated at mem-map >>> by flatmem. >>> >>> currently, the

Re: [PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-11 Thread Ard Biesheuvel
On 11 April 2016 at 04:49, Chen Feng wrote: > Hi will, > Thanks for review. > > On 2016/4/7 22:21, Will Deacon wrote: >> On Tue, Apr 05, 2016 at 04:22:51PM +0800, Chen Feng wrote: >>> We can reduce the memory allocated at mem-map >>> by flatmem. >>> >>> currently, the default memory-model in

Re: [PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-10 Thread Chen Feng
Hi will, Thanks for review. On 2016/4/7 22:21, Will Deacon wrote: > On Tue, Apr 05, 2016 at 04:22:51PM +0800, Chen Feng wrote: >> We can reduce the memory allocated at mem-map >> by flatmem. >> >> currently, the default memory-model in arm64 is >> sparse memory. The mem-map array is not freed in

Re: [PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-10 Thread Chen Feng
Hi will, Thanks for review. On 2016/4/7 22:21, Will Deacon wrote: > On Tue, Apr 05, 2016 at 04:22:51PM +0800, Chen Feng wrote: >> We can reduce the memory allocated at mem-map >> by flatmem. >> >> currently, the default memory-model in arm64 is >> sparse memory. The mem-map array is not freed in

Re: [PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-07 Thread Will Deacon
On Tue, Apr 05, 2016 at 04:22:51PM +0800, Chen Feng wrote: > We can reduce the memory allocated at mem-map > by flatmem. > > currently, the default memory-model in arm64 is > sparse memory. The mem-map array is not freed in > this scene. If the physical address is too long, > it will reserved too

Re: [PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-07 Thread Will Deacon
On Tue, Apr 05, 2016 at 04:22:51PM +0800, Chen Feng wrote: > We can reduce the memory allocated at mem-map > by flatmem. > > currently, the default memory-model in arm64 is > sparse memory. The mem-map array is not freed in > this scene. If the physical address is too long, > it will reserved too

Re: [PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-07 Thread Chen Feng
add Mel Gorman On 2016/4/5 16:22, Chen Feng wrote: > We can reduce the memory allocated at mem-map > by flatmem. > > currently, the default memory-model in arm64 is > sparse memory. The mem-map array is not freed in > this scene. If the physical address is too long, > it will reserved too much

Re: [PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-07 Thread Chen Feng
add Mel Gorman On 2016/4/5 16:22, Chen Feng wrote: > We can reduce the memory allocated at mem-map > by flatmem. > > currently, the default memory-model in arm64 is > sparse memory. The mem-map array is not freed in > this scene. If the physical address is too long, > it will reserved too much

[PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-05 Thread Chen Feng
We can reduce the memory allocated at mem-map by flatmem. currently, the default memory-model in arm64 is sparse memory. The mem-map array is not freed in this scene. If the physical address is too long, it will reserved too much memory for the mem-map array. Signed-off-by: Chen Feng

[PATCH 1/2] arm64: mem-model: add flatmem model for arm64

2016-04-05 Thread Chen Feng
We can reduce the memory allocated at mem-map by flatmem. currently, the default memory-model in arm64 is sparse memory. The mem-map array is not freed in this scene. If the physical address is too long, it will reserved too much memory for the mem-map array. Signed-off-by: Chen Feng