Re: [PATCH 2/2] riscv: mm: Define DIRECT_MAP_PHYSMEM_END
Paul Walmsley <[email protected]> Thu, 4 Jun 2026 16:34:49 -0600 (MDT)
| Newsgroups | dev.linux.lists.sophgo,org.infradead.lists.linux-riscv,org.kernel.vger.linux-kernel,org.kernel.vger.stable |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 9 Mar 2026, Vivian Wang wrote: > On RISC-V, the actual mappable range of physical address space is > dependent on the current MMU mode i.e. satp_mode (See > Documentation/arch/riscv/vm-layout.rst). > > Define the DIRECT_MAP_PHYSMEM_END macro based on the existing virtual > address space layout macros to expose this information to > get_free_mem_region(). Otherwise, it returns a region that couldn't be > mapped, which breaks ZONE_DEVICE. > > Cc: <[email protected]> # v6.13+ > Tested-by: Han Gao <[email protected]> # SG2044 > Signed-off-by: Vivian Wang <[email protected]> Thanks, queued for v7.2. - Paul