Эх сурвалжийг харах

qcacld-3.0: Enable SMMU Translation for IPA

Enable SMMU translation in waipio target if
IPA is enabled

Change-Id: Ib41c164bb0eaf7e3d58386013a46db8dd601f9f0
CRs-Fixed: 2943929
Ananya Gupta 3 жил өмнө
parent
commit
22a74f3eb7

+ 7 - 0
configs/default_defconfig

@@ -902,6 +902,13 @@ endif
 endif
 endif
 
+ifeq ($(CONFIG_ARCH_WAIPIO), y)
+ifeq ($(CONFIG_IPA_OFFLOAD), y)
+CONFIG_ENABLE_SMMU_S1_TRANSLATION := y
+CONFIG_SMMU_S1_UNMAP := y
+endif
+endif
+
 ifeq ($(CONFIG_ARCH_SDX20), y)
 ifeq ($(CONFIG_QCA_WIFI_SDIO), y)
 ifeq ($(CONFIG_WCNSS_SKB_PRE_ALLOC), y)

+ 3 - 0
core/cds/src/cds_api.c

@@ -36,6 +36,9 @@
 #include "wlan_hdd_power.h"
 #include "wlan_hdd_tsf.h"
 #include <linux/vmalloc.h>
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 9, 0))
+#include <linux/qcom-iommu-util.h>
+#endif
 #include <scheduler_core.h>
 
 #include "pld_common.h"