Re: [PATCH v3 3/5] arm64/mm: Create initial page tables in init_pg_dir

2018-08-15 Thread Jun Yao
Hi James, On Fri, Jul 06, 2018 at 03:41:07PM +0100, James Morse wrote: > I missed one: head.S has a call to kasan_early_init() before start_kernel(), > this goes messing with the page tables, and calls pgd_offset_k(), which pulls > in > swapper_pg_dir. This one is enabled by CONFIG_KASAN. > > So

Re: [PATCH v3 3/5] arm64/mm: Create initial page tables in init_pg_dir

2018-07-06 Thread James Morse
Hi Jun, On 06/07/18 09:58, James Morse wrote: > The series so far fails to boot from me. This is because the kaslr code tries > to > read the kaslr-seed from the DT, via the fixmap. To do this, it needs the > fixmap > tables installed, which early_fixmap_init() does. > > early_fixmap_init() cal

Re: [PATCH v3 3/5] arm64/mm: Create initial page tables in init_pg_dir

2018-07-06 Thread James Morse
Hi Jun, On 02/07/18 12:16, Jun Yao wrote: > Create initial page tables in init_pg_dir and then create final > page tables in swapper_pg_dir directly. This is what the patch does, but doesn't preserve the why for the git-log. Could you expand it to describe why we're doing this. The series so fa

[PATCH v3 3/5] arm64/mm: Create initial page tables in init_pg_dir

2018-07-02 Thread Jun Yao
Create initial page tables in init_pg_dir and then create final page tables in swapper_pg_dir directly. Signed-off-by: Jun Yao --- arch/arm64/include/asm/pgtable.h | 2 ++ arch/arm64/kernel/head.S | 4 ++-- arch/arm64/kernel/setup.c| 1 + arch/arm64/mm/mmu.c | 24