summary refs log tree commit diff
path: root/arch
diff options
context:
space:
mode:
authorneil.shi <neil.shi@quectel.com>2023-05-23 17:39:45 +0800
committerPierre-Loup A. Griffais <pgriffais@valvesoftware.com>2023-11-02 16:05:17 -0700
commitcf0e9db9d0ebae11545c0403e9f216ffc94fa6a3 (patch)
treea19e4a313ea293f50d332c4c1a8c5a1c560d2491 /arch
parent44f76134707e8773f9ea2c86e0e01d8347fd3e43 (diff)
downloadlinux-cf0e9db9d0ebae11545c0403e9f216ffc94fa6a3.tar.gz
wifi: ath11k: reserve CMA memory space under 4G
 When bringing up napier, we're seeing MHI SYS_ERR.
 By debugging, reason should be host is sending
 FW memory physical address over 4G space as a
 response to REQUEST_MEM QMI event.

 Fix is to reserve CMA under 4G so that FW memory
 allocated is under 4G. This solves MHI SYS_ERR
 and napier is able to scan/connect/ping.

Signed-off-by: neil.shi <neil.shi@quectel.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
index 892609cde4a2..b38bec4142e2 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
@@ -1234,7 +1234,7 @@ void __init setup_arch(char **cmdline_p)
 	early_acpi_boot_init();
 
 	initmem_init();
-	dma_contiguous_reserve(max_pfn_mapped << PAGE_SHIFT);
+	dma_contiguous_reserve(max_low_pfn_mapped << PAGE_SHIFT);
 
 	if (boot_cpu_has(X86_FEATURE_GBPAGES))
 		hugetlb_cma_reserve(PUD_SHIFT - PAGE_SHIFT);