From 8bb5d19acdf12b36952c654aaa5795972fc95646 Mon Sep 17 00:00:00 2001 From: Zoltan HERPAI Date: Mon, 2 Jun 2025 22:06:24 +0000 Subject: [PATCH] starfive: visionfive2: add CMA entry into board DTS This entry is present in the SDK kernel and is poked by the bootloader. Signed-off-by: Zoltan HERPAI --- ...rfive-visionfive2-add-dma-pool-entry.patch | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 target/linux/starfive/patches-6.12/1025-riscv-dts-starfive-visionfive2-add-dma-pool-entry.patch diff --git a/target/linux/starfive/patches-6.12/1025-riscv-dts-starfive-visionfive2-add-dma-pool-entry.patch b/target/linux/starfive/patches-6.12/1025-riscv-dts-starfive-visionfive2-add-dma-pool-entry.patch new file mode 100644 index 0000000000..437266cc6d --- /dev/null +++ b/target/linux/starfive/patches-6.12/1025-riscv-dts-starfive-visionfive2-add-dma-pool-entry.patch @@ -0,0 +1,31 @@ +From 928a660ec1124853d2dae074e74ec7b20fe9bac2 Mon Sep 17 00:00:00 2001 +From: Zoltan HERPAI +Date: Sun, 1 Jun 2025 16:02:38 +0000 +Subject: [PATCH] riscv: dts: starfive: visionfive2: add dma pool entry + +In the VF2 SDK there is a reserved memory for a shared dma pool, which is +also updated by the SDK bootloader. Add this node here as well. + +Signed-off-by: Zoltan HERPAI +--- + .../boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi | 9 +++++++++ + 1 file changed, 9 insertions(+) + +--- a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi ++++ b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi +@@ -25,6 +25,15 @@ + e24_mem: e24@c0000000 { + reg = <0x0 0x6ce00000 0x0 0x1600000>; + }; ++ ++ linux,cma { ++ compatible = "shared-dma-pool"; ++ reusable; ++ size = <0x0 0x20000000>; ++ alignment = <0x0 0x1000>; ++ alloc-ranges = <0x0 0x70000000 0x0 0x20000000>; ++ linux,cma-default; ++ }; + }; + + leds {