From f1219ad8e614465b91eb9dee4bf7150ba0e55845 Mon Sep 17 00:00:00 2001 From: Karthik Kantamneni Date: Tue, 11 May 2021 11:19:14 +0530 Subject: [PATCH] qcacld-3.0: Increase QDF nbuf history for Lithium targets For some of the stability issues triggered by H.W, by the time host detects it most of the QDF history is getting overwritten to avoid this increasing QDF nbuf history. So that there will be less chance of events getting overwritten. Change-Id: Ia4bad1a175976af2e56126b56ae8c92a988e4289 CRs-Fixed: 2942868 --- Kbuild | 3 +++ configs/default_defconfig | 1 + 2 files changed, 4 insertions(+) diff --git a/Kbuild b/Kbuild index fcdba8e0b41c..47240406bf5e 100644 --- a/Kbuild +++ b/Kbuild @@ -3488,6 +3488,9 @@ cppflags-$(CONFIG_WLAN_FEATURE_DP_RX_RING_HISTORY) += -DWLAN_FEATURE_DP_RX_RING_ cppflags-$(CONFIG_WLAN_FEATURE_DP_TX_DESC_HISTORY) += -DWLAN_FEATURE_DP_TX_DESC_HISTORY cppflags-$(CONFIG_REO_QDESC_HISTORY) += -DREO_QDESC_HISTORY cppflags-$(CONFIG_DP_TX_HW_DESC_HISTORY) += -DDP_TX_HW_DESC_HISTORY +ifdef CONFIG_QDF_NBUF_HISTORY_SIZE +ccflags-y += -DQDF_NBUF_HISTORY_SIZE=$(CONFIG_QDF_NBUF_HISTORY_SIZE) +endif cppflags-$(CONFIG_WLAN_DP_PER_RING_TYPE_CONFIG) += -DWLAN_DP_PER_RING_TYPE_CONFIG cppflags-$(CONFIG_WLAN_CE_INTERRUPT_THRESHOLD_CONFIG) += -DWLAN_CE_INTERRUPT_THRESHOLD_CONFIG cppflags-$(CONFIG_SAP_DHCP_FW_IND) += -DSAP_DHCP_FW_IND diff --git a/configs/default_defconfig b/configs/default_defconfig index dc55b2a829b0..e014f47f07fa 100644 --- a/configs/default_defconfig +++ b/configs/default_defconfig @@ -1064,6 +1064,7 @@ ifeq ($(CONFIG_LITHIUM), y) CONFIG_WLAN_FEATURE_DP_TX_DESC_HISTORY := y CONFIG_REO_QDESC_HISTORY := y CONFIG_DP_TX_HW_DESC_HISTORY := y + CONFIG_QDF_NBUF_HISTORY_SIZE := 8192 endif CONFIG_WLAN_FEATURE_DP_EVENT_HISTORY := y CONFIG_ALLOW_PKT_DROPPING := y