Rockchip: RK3288: Disable VPU iommu

Due to bug in either hantro, iommu or general dma management drivers for ARMv7
buffers are not correctly flushed when being re-used.

To work around that, disable VPU iommu and increase cma memory size to be
sufficient for 4K H.264 decoding.

Signed-off-by: Alex Bee <knaerzche@gmail.com>
This commit is contained in:
Alex Bee 2024-12-15 12:53:18 +01:00 committed by Matthias Reichl
parent 3ce49a8aa5
commit 9e49fb0ac4
2 changed files with 13 additions and 1 deletions

View File

@ -25,7 +25,7 @@
GRAPHIC_DRIVERS="panfrost" GRAPHIC_DRIVERS="panfrost"
# kernel serial console # kernel serial console
EXTRA_CMDLINE="console=uart8250,mmio32,0xff690000 console=tty0 coherent_pool=2M cec.debounce_ms=5000" EXTRA_CMDLINE="console=uart8250,mmio32,0xff690000 console=tty0 coherent_pool=2M cec.debounce_ms=5000 cma=384M"
# set the addon project # set the addon project
ADDON_PROJECT="ARMv7" ADDON_PROJECT="ARMv7"

View File

@ -0,0 +1,12 @@
diff --git a/arch/arm/boot/dts/rockchip/rk3288.dtsi b/arch/arm/boot/dts/rockchip/rk3288.dtsi
index 9ff190ab1d..1d5a4a68f6 100644
--- a/arch/arm/boot/dts/rockchip/rk3288.dtsi
+++ b/arch/arm/boot/dts/rockchip/rk3288.dtsi
@@ -1298,6 +1298,7 @@ vpu_mmu: iommu@ff9a0800 {
clock-names = "aclk", "iface";
#iommu-cells = <0>;
power-domains = <&power RK3288_PD_VIDEO>;
+ status = "disabled";
};
hevc: hevc@ff9c0000 {