Re: [PATCH 4/7] RISC-V: Update page tables to cover the whole linear mapping

2019-03-28 Thread Logan Gunthorpe
On 2019-03-28 4:03 a.m., Anup Patel wrote: > I understand that this patch is inline with your virtual memory layout cleanup > but the way we map virtual memory in swapper_pg_dir is bound to change. > > We should not be mapping complete virtual memory in swapper_pd_dir() > rather we should only

Re: [PATCH 4/7] RISC-V: Update page tables to cover the whole linear mapping

2019-03-28 Thread Anup Patel
On Thu, Mar 28, 2019 at 3:06 AM Logan Gunthorpe wrote: > > With the new virtual address changes in an earlier patch, we want the > page tables to cover more of the linear mapping region. Instead of > only mapping from PAGE_OFFSET and up, we instead map starting > from an aligned version of

[PATCH 4/7] RISC-V: Update page tables to cover the whole linear mapping

2019-03-27 Thread Logan Gunthorpe
With the new virtual address changes in an earlier patch, we want the page tables to cover more of the linear mapping region. Instead of only mapping from PAGE_OFFSET and up, we instead map starting from an aligned version of va_pa_offset such that all of the physical address space will be mapped.