aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/c++/clang.cpp
diff options
context:
space:
mode:
authorAnup Patel <[email protected]>2022-04-12 03:33:35 +0000
committerPalmer Dabbelt <[email protected]>2022-04-21 22:10:39 +0000
commitd5fdade9331f57335af97dbef61cf15b4930abc1 (patch)
tree6f679f8322ff9804b0ee55e2cc466407c2090a0a /tools/perf/util/c++/clang.cpp
parentcpuidle: riscv: support non-SMP config (diff)
downloadkernel-d5fdade9331f57335af97dbef61cf15b4930abc1.tar.gz
kernel-d5fdade9331f57335af97dbef61cf15b4930abc1.zip
RISC-V: mm: Fix set_satp_mode() for platform not having Sv57
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: 011f09d12052 ("riscv: mm: Set sv57 on defaultly") Reported-by: Mayuresh Chitale <[email protected]> Signed-off-by: Anup Patel <[email protected]> Reviewed-by: Atish Patra <[email protected]> Cc: [email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'tools/perf/util/c++/clang.cpp')
0 files changed, 0 insertions, 0 deletions