[PW_SID:1064189] riscv: patch: Avoid early page_to_phys()#1585
[PW_SID:1064189] riscv: patch: Avoid early page_to_phys()#1585linux-riscv-bot wants to merge 1 commit into
Conversation
Similarly to commit 8d09e2d ("arm64: patching: avoid early page_to_phys()"), avoid using phys_to_page() for the kernel address case in patch_map(). Since this is called from apply_boot_alternatives() in setup_arch(), and commit 4267739 ("arch, mm: consolidate initialization of SPARSE memory model") has moved sparse_init() to after setup_arch(), phys_to_page() is not available there yet, and it panics on boot with SPARSEMEM on RV32, which does not use SPARSEMEM_VMEMMAP. Reported-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Closes: https://lore.kernel.org/r/20260223144108-dcace0b9-02e8-4b67-a7ce-f263bed36f26@linutronix.de/ Fixes: 4267739 ("arch, mm: consolidate initialization of SPARSE memory model") Suggested-by: Mike Rapoport <rppt@kernel.org> Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "riscv: patch: Avoid early page_to_phys()" |
|
Patch 1: "riscv: patch: Avoid early page_to_phys()" |
|
Patch 1: "riscv: patch: Avoid early page_to_phys()" |
|
Patch 1: "riscv: patch: Avoid early page_to_phys()" |
|
Patch 1: "riscv: patch: Avoid early page_to_phys()" |
|
Patch 1: "riscv: patch: Avoid early page_to_phys()" |
|
Patch 1: "riscv: patch: Avoid early page_to_phys()" |
|
Patch 1: "riscv: patch: Avoid early page_to_phys()" |
|
Patch 1: "riscv: patch: Avoid early page_to_phys()" |
|
Patch 1: "riscv: patch: Avoid early page_to_phys()" |
|
Patch 1: "riscv: patch: Avoid early page_to_phys()" |
|
Patch 1: "riscv: patch: Avoid early page_to_phys()" |
PR for series 1064189 applied to workflow__riscv__fixes
Name: riscv: patch: Avoid early page_to_phys()
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1064189
Version: 1