Re: [PATCH] riscv: mm: Move dma_contiguous_reserve() after NUMA initialization

From: patchwork-bot+linux-riscv

Date: Tue Jul 21 2026 - 20:13:28 EST


Hello:

This patch was applied to riscv/linux.git (for-next)
by Paul Walmsley <pjw@xxxxxxxxxx>:

On Tue, 14 Jul 2026 20:56:48 +0200 you wrote:
> Move the dma_contiguous_reserve() call from setup_bootmem() to
> misc_mem_init(), placing it after arch_numa_init(). This ensures that
> NUMA topology is initialized when reserving contiguous memory for DMA.
>
> Tested with CMA_SIZE_PERNUMA enabled and two NUMA nodes on QEMU:
>
> qemu-system-riscv64 \
> -machine virt \
> -nographic \
> -smp 2 -m 512M \
> -numa node,nodeid=0,cpus=0,memdev=m0 \
> -numa node,nodeid=1,cpus=1,memdev=m1 \
> -object memory-backend-ram,id=m0,size=256M \
> -object memory-backend-ram,id=m1,size=256M \
> -kernel arch/riscv/boot/Image \
> -append "console=ttyS0 earlycon loglevel=7 cma=16M"
>
> [...]

Here is the summary with links:
- riscv: mm: Move dma_contiguous_reserve() after NUMA initialization
https://git.kernel.org/riscv/c/76e885f2b89d

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html