[PW_SID:1084988] riscv: mm: Do not probe satp mode limit if known in FDT#1809
[PW_SID:1084988] riscv: mm: Do not probe satp mode limit if known in FDT#1809linux-riscv-bot wants to merge 2 commits into
Conversation
Some systems may only have memory at such a high address that an identity mapping cannot be made in Sv48, or even Sv57. To avoid crashing while probing satp mode support, trust the mmu-type property from FDT and avoid probing if it is set. For example, if a CPU supports (up to) Sv57 but the SoC it is on only has memory starting at 128 TiB, an identity mapping cannot be made in Sv48. If the user specifies "no5lvl" on the command line, set_satp_mode() will attempt to test Sv48 support and crash, since the virtual address is too high. Instead, given the correct FDT CPU node property mmu-type = "riscv,sv57", set_satp_mode() can pick the maximum allowed mode from command line and FDT, namely Sv48, without probing. Handling of mmu-type "riscv,sv57" in set_satp_mode_from_fdt() is added since it is now needed. Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "riscv: mm: Do not probe satp mode limit if known in FDT" |
|
Patch 1: "riscv: mm: Do not probe satp mode limit if known in FDT" |
|
Patch 1: "riscv: mm: Do not probe satp mode limit if known in FDT" |
|
Patch 1: "riscv: mm: Do not probe satp mode limit if known in FDT" |
|
Patch 1: "riscv: mm: Do not probe satp mode limit if known in FDT" |
|
Patch 1: "riscv: mm: Do not probe satp mode limit if known in FDT" |
|
Patch 1: "riscv: mm: Do not probe satp mode limit if known in FDT" |
|
Patch 1: "riscv: mm: Do not probe satp mode limit if known in FDT" |
|
Patch 1: "riscv: mm: Do not probe satp mode limit if known in FDT" |
|
Patch 1: "riscv: mm: Do not probe satp mode limit if known in FDT" |
|
Patch 1: "riscv: mm: Do not probe satp mode limit if known in FDT" |
|
Patch 1: "riscv: mm: Do not probe satp mode limit if known in FDT" |
94a07a2 to
f190ec6
Compare
PR for series 1084988 applied to workflow__riscv__fixes
Name: riscv: mm: Do not probe satp mode limit if known in FDT
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1084988
Version: 1