Re: [PATCH] RISC-V: Use non-PGD mappings for early DTB access

2020-11-06 Thread Bin Meng
On Fri, Nov 6, 2020 at 4:52 PM Anup Patel wrote: > > On Fri, Nov 6, 2020 at 1:30 PM Palmer Dabbelt > wrote: > > > > On Tue, 03 Nov 2020 22:37:13 PST (-0800), Anup Patel wrote: > > > Currently, we use PGD mappings for early DTB mapping in early_pgd > > > but this breaks Linux kernel on SiFive Unl

Re: [PATCH] RISC-V: Use non-PGD mappings for early DTB access

2020-11-06 Thread Anup Patel
On Fri, Nov 6, 2020 at 1:30 PM Palmer Dabbelt wrote: > > On Tue, 03 Nov 2020 22:37:13 PST (-0800), Anup Patel wrote: > > Currently, we use PGD mappings for early DTB mapping in early_pgd > > but this breaks Linux kernel on SiFive Unleashed because on SiFive > > Unleashed PMP checks don't work corr

Re: [PATCH] RISC-V: Use non-PGD mappings for early DTB access

2020-11-06 Thread Palmer Dabbelt
On Tue, 03 Nov 2020 22:37:13 PST (-0800), Anup Patel wrote: Currently, we use PGD mappings for early DTB mapping in early_pgd but this breaks Linux kernel on SiFive Unleashed because on SiFive Unleashed PMP checks don't work correctly for PGD mappings. To fix early DTB mappings on SiFive Unleash

Re: [PATCH] RISC-V: Use non-PGD mappings for early DTB access

2020-11-04 Thread Atish Patra
On Tue, Nov 3, 2020 at 10:37 PM Anup Patel wrote: > > Currently, we use PGD mappings for early DTB mapping in early_pgd > but this breaks Linux kernel on SiFive Unleashed because on SiFive > Unleashed PMP checks don't work correctly for PGD mappings. > Not sure why this is an issue with Unleashed