]> git.baikalelectronics.ru Git - kernel.git/commit
RISC-V: Use non-PGD mappings for early DTB access
authorAnup Patel <anup.patel@wdc.com>
Wed, 4 Nov 2020 06:37:13 +0000 (12:07 +0530)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Fri, 6 Nov 2020 08:03:47 +0000 (00:03 -0800)
commitb711280b784a8a54dee20dc67a6ab003f02d330b
treedb890abe5ec11634ed0b8fd001e4c307e96f89a9
parent3613a993e79305c04356cb1edd3b8cafd7c6a45b
RISC-V: Use non-PGD mappings for early DTB access

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 Unleashed, we use non-PGD
mappings (i.e. PMD) for early DTB access.

Fixes: 3f20f66701c9 ("RISC-V: Move DT mapping outof fixmap")
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Tested-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/mm/init.c