kernel: bump 5.4 to 5.4.48
[oweals/openwrt.git] / target / linux / ramips / patches-5.4 / 0013-owrt-hack-fix-mt7688-cache-issue.patch
index 75c93c7e506aeafff1900358cd6e1bb212cae3b8..6b1cc15158fe6817cfecf32776827f22b38a7831 100644 (file)
@@ -10,15 +10,16 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
 
 --- a/arch/mips/kernel/setup.c
 +++ b/arch/mips/kernel/setup.c
-@@ -652,7 +652,6 @@ static void __init arch_mem_init(char **
+@@ -652,8 +652,6 @@ static void __init arch_mem_init(char **
                memblock_reserve(crashk_res.start,
                                 crashk_res.end - crashk_res.start + 1);
  #endif
 -      device_tree_init();
-       sparse_init();
-       plat_swiotlb_setup();
-@@ -760,6 +759,7 @@ void __init setup_arch(char **cmdline_p)
+-
+       /*
+        * In order to reduce the possibility of kernel panic when failed to
+        * get IO TLB memory under CONFIG_SWIOTLB, it is better to allocate
+@@ -770,6 +768,7 @@ void __init setup_arch(char **cmdline_p)
  
        cpu_cache_init();
        paging_init();