+++ /dev/null
-From f3336b48cf9d3f2d1fc78e3289c0ded2f00876ee Mon Sep 17 00:00:00 2001
-From: Vivian Wang <wangruikang@iscas.ac.cn>
-Date: Sat, 6 Jun 2026 20:17:54 -0600
-Subject: riscv: mm: Define DIRECT_MAP_PHYSMEM_END
-
-From: Vivian Wang <wangruikang@iscas.ac.cn>
-
-commit f3336b48cf9d3f2d1fc78e3289c0ded2f00876ee upstream.
-
-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: stable@vger.kernel.org # v6.13+
-Tested-by: Han Gao <gaohan@iscas.ac.cn> # SG2044
-Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn>
-Link: https://patch.msgid.link/20260309-riscv-sparsemem-vmemmap-limits-v1-2-f40efe18e3cd@iscas.ac.cn
-Signed-off-by: Paul Walmsley <pjw@kernel.org>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- arch/riscv/include/asm/pgtable.h | 10 ++++++++++
- 1 file changed, 10 insertions(+)
-
---- a/arch/riscv/include/asm/pgtable.h
-+++ b/arch/riscv/include/asm/pgtable.h
-@@ -60,6 +60,16 @@
- */
- #define vmemmap ((struct page *)VMEMMAP_START - (phys_ram_base >> PAGE_SHIFT))
-
-+/* Needed to limit get_free_mem_region() */
-+#if defined(CONFIG_FLATMEM)
-+#define DIRECT_MAP_PHYSMEM_END (phys_ram_base + KERN_VIRT_SIZE - 1)
-+#elif defined(CONFIG_SPARSEMEM_VMEMMAP)
-+#define DIRECT_MAP_PHYSMEM_END \
-+ ((vmemmap_start_pfn + VMEMMAP_SIZE / sizeof(struct page)) * PAGE_SIZE - 1)
-+#elif defined(CONFIG_SPARSEMEM)
-+/* DIRECT_MAP_PHYSMEM_END is not limited by VA space assignment in this case */
-+#endif
-+
- #define PCI_IO_SIZE SZ_16M
- #define PCI_IO_END VMEMMAP_START
- #define PCI_IO_START (PCI_IO_END - PCI_IO_SIZE)
nfsv4-include-may_write-in-open-permission-mask-for-o_trunc.patch
exfat-bound-uniname-advance-in-exfat_find_dir_entry.patch
ntb-epf-fix-request_irq-unwind-in-ntb_epf_init_isr.patch
-riscv-mm-define-direct_map_physmem_end.patch
kvm-vmx-grab-vmcs12-on-cr8-interception-update-iff-vcpu-is-in-guest-mode.patch
udmabuf-fix-dma-direction-mismatch-in-release_udmabuf.patch
i2c-core-fix-adapter-deregistration-race.patch
+++ /dev/null
-From f3336b48cf9d3f2d1fc78e3289c0ded2f00876ee Mon Sep 17 00:00:00 2001
-From: Vivian Wang <wangruikang@iscas.ac.cn>
-Date: Sat, 6 Jun 2026 20:17:54 -0600
-Subject: riscv: mm: Define DIRECT_MAP_PHYSMEM_END
-
-From: Vivian Wang <wangruikang@iscas.ac.cn>
-
-commit f3336b48cf9d3f2d1fc78e3289c0ded2f00876ee upstream.
-
-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: stable@vger.kernel.org # v6.13+
-Tested-by: Han Gao <gaohan@iscas.ac.cn> # SG2044
-Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn>
-Link: https://patch.msgid.link/20260309-riscv-sparsemem-vmemmap-limits-v1-2-f40efe18e3cd@iscas.ac.cn
-Signed-off-by: Paul Walmsley <pjw@kernel.org>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- arch/riscv/include/asm/pgtable.h | 10 ++++++++++
- 1 file changed, 10 insertions(+)
-
---- a/arch/riscv/include/asm/pgtable.h
-+++ b/arch/riscv/include/asm/pgtable.h
-@@ -81,6 +81,16 @@
- */
- #define vmemmap ((struct page *)VMEMMAP_START - vmemmap_start_pfn)
-
-+/* Needed to limit get_free_mem_region() */
-+#if defined(CONFIG_FLATMEM)
-+#define DIRECT_MAP_PHYSMEM_END (phys_ram_base + KERN_VIRT_SIZE - 1)
-+#elif defined(CONFIG_SPARSEMEM_VMEMMAP)
-+#define DIRECT_MAP_PHYSMEM_END \
-+ ((vmemmap_start_pfn + VMEMMAP_SIZE / sizeof(struct page)) * PAGE_SIZE - 1)
-+#elif defined(CONFIG_SPARSEMEM)
-+/* DIRECT_MAP_PHYSMEM_END is not limited by VA space assignment in this case */
-+#endif
-+
- #define PCI_IO_SIZE SZ_16M
- #define PCI_IO_END VMEMMAP_START
- #define PCI_IO_START (PCI_IO_END - PCI_IO_SIZE)
module-decompress-check-return-value-of-module_extend_max_pages.patch
exfat-bound-uniname-advance-in-exfat_find_dir_entry.patch
ntb-epf-fix-request_irq-unwind-in-ntb_epf_init_isr.patch
-riscv-mm-define-direct_map_physmem_end.patch
kvm-vmx-refresh-guest_pending_dbg_exceptions.bs-on-all-injected-dbs.patch
kvm-vmx-grab-vmcs12-on-cr8-interception-update-iff-vcpu-is-in-guest-mode.patch
udmabuf-fix-dma-direction-mismatch-in-release_udmabuf.patch
+++ /dev/null
-From f3336b48cf9d3f2d1fc78e3289c0ded2f00876ee Mon Sep 17 00:00:00 2001
-From: Vivian Wang <wangruikang@iscas.ac.cn>
-Date: Sat, 6 Jun 2026 20:17:54 -0600
-Subject: riscv: mm: Define DIRECT_MAP_PHYSMEM_END
-
-From: Vivian Wang <wangruikang@iscas.ac.cn>
-
-commit f3336b48cf9d3f2d1fc78e3289c0ded2f00876ee upstream.
-
-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: stable@vger.kernel.org # v6.13+
-Tested-by: Han Gao <gaohan@iscas.ac.cn> # SG2044
-Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn>
-Link: https://patch.msgid.link/20260309-riscv-sparsemem-vmemmap-limits-v1-2-f40efe18e3cd@iscas.ac.cn
-Signed-off-by: Paul Walmsley <pjw@kernel.org>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- arch/riscv/include/asm/pgtable.h | 10 ++++++++++
- 1 file changed, 10 insertions(+)
-
---- a/arch/riscv/include/asm/pgtable.h
-+++ b/arch/riscv/include/asm/pgtable.h
-@@ -89,6 +89,16 @@
- */
- #define vmemmap ((struct page *)VMEMMAP_START - vmemmap_start_pfn)
-
-+/* Needed to limit get_free_mem_region() */
-+#if defined(CONFIG_FLATMEM)
-+#define DIRECT_MAP_PHYSMEM_END (phys_ram_base + KERN_VIRT_SIZE - 1)
-+#elif defined(CONFIG_SPARSEMEM_VMEMMAP)
-+#define DIRECT_MAP_PHYSMEM_END \
-+ ((vmemmap_start_pfn + VMEMMAP_SIZE / sizeof(struct page)) * PAGE_SIZE - 1)
-+#elif defined(CONFIG_SPARSEMEM)
-+/* DIRECT_MAP_PHYSMEM_END is not limited by VA space assignment in this case */
-+#endif
-+
- #define PCI_IO_SIZE SZ_16M
- #define PCI_IO_END VMEMMAP_START
- #define PCI_IO_START (PCI_IO_END - PCI_IO_SIZE)
module-decompress-check-return-value-of-module_extend_max_pages.patch
exfat-bound-uniname-advance-in-exfat_find_dir_entry.patch
ntb-epf-fix-request_irq-unwind-in-ntb_epf_init_isr.patch
-riscv-mm-define-direct_map_physmem_end.patch
riscv-mm-unconditionally-sfence.vma-for-spurious-fault.patch
mm-fix-mmap-errno-value-when-map_droppable-is-not-supported.patch
selftests-mm-fix-and-speedup-droppable-test.patch
+++ /dev/null
-From f3336b48cf9d3f2d1fc78e3289c0ded2f00876ee Mon Sep 17 00:00:00 2001
-From: Vivian Wang <wangruikang@iscas.ac.cn>
-Date: Sat, 6 Jun 2026 20:17:54 -0600
-Subject: riscv: mm: Define DIRECT_MAP_PHYSMEM_END
-
-From: Vivian Wang <wangruikang@iscas.ac.cn>
-
-commit f3336b48cf9d3f2d1fc78e3289c0ded2f00876ee upstream.
-
-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: stable@vger.kernel.org # v6.13+
-Tested-by: Han Gao <gaohan@iscas.ac.cn> # SG2044
-Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn>
-Link: https://patch.msgid.link/20260309-riscv-sparsemem-vmemmap-limits-v1-2-f40efe18e3cd@iscas.ac.cn
-Signed-off-by: Paul Walmsley <pjw@kernel.org>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- arch/riscv/include/asm/pgtable.h | 10 ++++++++++
- 1 file changed, 10 insertions(+)
-
---- a/arch/riscv/include/asm/pgtable.h
-+++ b/arch/riscv/include/asm/pgtable.h
-@@ -86,6 +86,16 @@
- */
- #define vmemmap ((struct page *)VMEMMAP_START - vmemmap_start_pfn)
-
-+/* Needed to limit get_free_mem_region() */
-+#if defined(CONFIG_FLATMEM)
-+#define DIRECT_MAP_PHYSMEM_END (phys_ram_base + KERN_VIRT_SIZE - 1)
-+#elif defined(CONFIG_SPARSEMEM_VMEMMAP)
-+#define DIRECT_MAP_PHYSMEM_END \
-+ ((vmemmap_start_pfn + VMEMMAP_SIZE / sizeof(struct page)) * PAGE_SIZE - 1)
-+#elif defined(CONFIG_SPARSEMEM)
-+/* DIRECT_MAP_PHYSMEM_END is not limited by VA space assignment in this case */
-+#endif
-+
- #define PCI_IO_SIZE SZ_16M
- #define PCI_IO_END VMEMMAP_START
- #define PCI_IO_START (PCI_IO_END - PCI_IO_SIZE)
watchdog-apple-add-apple-t8103-wdt-compatible.patch
tracing-prevent-out-of-bounds-read-in-glob-matching.patch
nfsv4-include-may_write-in-open-permission-mask-for-o_trunc.patch
-riscv-mm-define-direct_map_physmem_end.patch
module-decompress-check-return-value-of-module_extend_max_pages.patch
exfat-bound-uniname-advance-in-exfat_find_dir_entry.patch
ntb-epf-fix-request_irq-unwind-in-ntb_epf_init_isr.patch