[openwrt/openwrt] rockchip: remove 'swiotlb' parameter from boot script

LEDE Commits lede-commits at lists.infradead.org
Sun Mar 31 11:41:06 PDT 2024


hauke pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/f90b1d97784b382cf0fb06eec84f7b93cf05436d

commit f90b1d97784b382cf0fb06eec84f7b93cf05436d
Author: Tianling Shen <cnsztl at immortalwrt.org>
AuthorDate: Tue Mar 26 00:40:37 2024 +0800

    rockchip: remove 'swiotlb' parameter from boot script
    
    We have hardware IOMMU support and this is totally unnecessary.
    The given value is also unreasonable, it's too small and causes
    kernel panic in some cases:
    
    [ 5706.856473] sdhci-dwcmshc fe310000.mmc: swiotlb buffer is full (sz: 28672 bytes), total 512 (slots), used 498 (slots)
    [ 5706.864451] sdhci-dwcmshc fe310000.mmc: swiotlb buffer is full (sz: 65536 bytes), total 512 (slots), used 464 (slots)
    
    This parameter seems to be added by mistake, so remove it.
    
    Fixes: e35c7ab51fd1 ("rockchip: merge bootscript")
    Signed-off-by: Tianling Shen <cnsztl at immortalwrt.org>
    (cherry picked from commit 50e6c8ae8df55532fb70c281bd238b9b1cf1fdaf)
---
 target/linux/rockchip/image/mmc.bootscript | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/rockchip/image/mmc.bootscript b/target/linux/rockchip/image/mmc.bootscript
index 60b59e1b6b..ea6ee8c73d 100644
--- a/target/linux/rockchip/image/mmc.bootscript
+++ b/target/linux/rockchip/image/mmc.bootscript
@@ -8,7 +8,7 @@ elif test $stdout = 'serial at ff1a0000' ;
 then serial_addr=',0xff1a0000';
 fi;
 
-setenv bootargs "console=ttyS2,1500000 console=tty1 earlycon=uart8250,mmio32${serial_addr} swiotlb=1 root=PARTUUID=${uuid} rw rootwait";
+setenv bootargs "console=ttyS2,1500000 console=tty1 earlycon=uart8250,mmio32${serial_addr} root=PARTUUID=${uuid} rw rootwait";
 
 load mmc ${devnum}:1 ${kernel_addr_r} kernel.img
 




More information about the lede-commits mailing list