mirror of https://github.com/torvalds/linux.git
When Sv57 is not available the satp.MODE test in set_satp_mode() will
fail and lead to pgdir re-programming for Sv48. The pgdir re-programming
will fail as well due to pre-existing pgdir entry used for Sv57 and as
a result kernel fails to boot on RISC-V platform not having Sv57.
To fix above issue, we should clear the pgdir memory in set_satp_mode()
before re-programming.
Fixes:
|
||
|---|---|---|
| .. | ||
| Makefile | ||
| cacheflush.c | ||
| context.c | ||
| extable.c | ||
| fault.c | ||
| hugetlbpage.c | ||
| init.c | ||
| kasan_init.c | ||
| pageattr.c | ||
| physaddr.c | ||
| ptdump.c | ||
| tlbflush.c | ||