• Palmer Dabbelt's avatar
    Merge patch series "riscv: fix debug_pagealloc" · 855ad0f7
    Palmer Dabbelt authored
    Nam Cao <namcao@linutronix.de> says:
    
    The debug_pagealloc feature is not functional on RISCV. With this feature
    enabled (CONFIG_DEBUG_PAGEALLOC=y and debug_pagealloc=on), kernel crashes
    early during boot.
    
    QEMU command that can reproduce this problem:
       qemu-system-riscv64 -machine virt \
       -kernel Image \
       -append "console=ttyS0 root=/dev/vda debug_pagealloc=on" \
       -nographic \
       -drive "file=root.img,format=raw,id=hd0" \
       -device virtio-blk-device,drive=hd0 \
       -m 4G \
    
    This series makes debug_pagealloc functional.
    
    * b4-shazam-merge:
      riscv: rewrite __kernel_map_pages() to fix sleeping in invalid context
      riscv: force PAGE_SIZE linear mapping if debug_pagealloc is enabled
    
    Link: https://lore.kernel.org/r/cover.1715750938.git.namcao@linutronix.deSigned-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
    855ad0f7
init.c 43.3 KB