Re: [PATCH v8 21/46] x86, mm: setup page table in top-down

2012-12-05 Thread Konrad Rzeszutek Wilk
On Wed, Nov 28, 2012 at 12:16:16PM -0800, Yinghai Lu wrote: > On Wed, Nov 28, 2012 at 9:50 AM, Konrad Rzeszutek Wilk > wrote: > >> /* > >> - * Iterate through E820 memory map and create direct mappings for only > >> E820_RAM > >> - * regions. We cannot simply create direct mappings for all pfns

Re: [PATCH v8 21/46] x86, mm: setup page table in top-down

2012-11-28 Thread Yinghai Lu
On Wed, Nov 28, 2012 at 9:50 AM, Konrad Rzeszutek Wilk wrote: >> /* >> - * Iterate through E820 memory map and create direct mappings for only >> E820_RAM >> - * regions. We cannot simply create direct mappings for all pfns from >> - * [0 to max_low_pfn) and [4GB to max_pfn) because of possible

Re: [PATCH v8 21/46] x86, mm: setup page table in top-down

2012-11-28 Thread Konrad Rzeszutek Wilk
On Fri, Nov 16, 2012 at 07:38:58PM -0800, Yinghai Lu wrote: > Get pgt_buf early from BRK, and use it to map PMD_SIZE from top at first. > Then use mapped pages to map more ranges below, and keep looping until > all pages get mapped. > > alloc_low_page will use page from BRK at first, after that bu

[PATCH v8 21/46] x86, mm: setup page table in top-down

2012-11-16 Thread Yinghai Lu
Get pgt_buf early from BRK, and use it to map PMD_SIZE from top at first. Then use mapped pages to map more ranges below, and keep looping until all pages get mapped. alloc_low_page will use page from BRK at first, after that buffer is used up, will use memblock to find and reserve pages for page