Re: [PATCH v2 10/13] arc: use FLATMEM with freeing of unused memory map instead of DISCONTIGMEM

2020-11-16 Thread Mike Rapoport
On Tue, Nov 17, 2020 at 06:40:16AM +, Vineet Gupta wrote: > Hi Mike, > > On 11/1/20 9:04 AM, Mike Rapoport wrote: > > From: Mike Rapoport > > > > Currently ARC uses DISCONTIGMEM to cope with sparse physical memory address > > space on systems with 2 memory banks. While DISCONTIGMEM avoids was

Re: [PATCH v2 10/13] arc: use FLATMEM with freeing of unused memory map instead of DISCONTIGMEM

2020-11-16 Thread Vineet Gupta
Hi Mike, On 11/1/20 9:04 AM, Mike Rapoport wrote: > From: Mike Rapoport > > Currently ARC uses DISCONTIGMEM to cope with sparse physical memory address > space on systems with 2 memory banks. While DISCONTIGMEM avoids wasting > memory on unpopulated memory map, it adds both memory and CPU overhea

[PATCH v2 10/13] arc: use FLATMEM with freeing of unused memory map instead of DISCONTIGMEM

2020-11-01 Thread Mike Rapoport
From: Mike Rapoport Currently ARC uses DISCONTIGMEM to cope with sparse physical memory address space on systems with 2 memory banks. While DISCONTIGMEM avoids wasting memory on unpopulated memory map, it adds both memory and CPU overhead relatively to FLATMEM. Moreover, DISCONTINGMEM is generall