Skip to content

[PW_SID:1084988] riscv: mm: Do not probe satp mode limit if known in FDT#1809

Closed
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw1084988
Closed

[PW_SID:1084988] riscv: mm: Do not probe satp mode limit if known in FDT#1809
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw1084988

Conversation

@linux-riscv-bot
Copy link
Copy Markdown

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

Linux RISC-V bot and others added 2 commits April 5, 2026 01:35
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>
@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: mm: Do not probe satp mode limit if known in FDT"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 135.54 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: mm: Do not probe satp mode limit if known in FDT"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1105.27 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: mm: Do not probe satp mode limit if known in FDT"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1626.03 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: mm: Do not probe satp mode limit if known in FDT"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 25.07 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: mm: Do not probe satp mode limit if known in FDT"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 26.35 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: mm: Do not probe satp mode limit if known in FDT"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 4.95 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: mm: Do not probe satp mode limit if known in FDT"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 82.95 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: mm: Do not probe satp mode limit if known in FDT"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.26 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: mm: Do not probe satp mode limit if known in FDT"
kdoc
Desc: Detects for kdoc errors
Duration: 0.95 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: mm: Do not probe satp mode limit if known in FDT"
module-param
Desc: Detect module_param changes
Duration: 0.28 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: mm: Do not probe satp mode limit if known in FDT"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.25 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: mm: Do not probe satp mode limit if known in FDT"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.33 seconds
Result: PASS

@linux-riscv-bot linux-riscv-bot force-pushed the workflow__riscv__fixes branch 3 times, most recently from 94a07a2 to f190ec6 Compare May 1, 2026 02:14
@linux-riscv-bot linux-riscv-bot deleted the pw1084988 branch May 2, 2026 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants