From e06eb51744e2f16a4d00f09336a6716e5055b1d5 Mon Sep 17 00:00:00 2001 From: Jingxiang Ge Date: Wed, 10 Nov 2021 16:41:37 +0800 Subject: [PATCH] qcacld-3.0: Enable ce debug history always Always enable ce debug history feature, but there is difference for perf&debug build. On perf build, only ce2/ce3 histroy is enabled. And for ce debug history memory init/deinit happens when driver is loading&unloading, even it use when start module, this will help to check some cases when stop_module happens. Change-Id: I4b825f91bc9ede8372291f9d94cb7fae23942a49 CRs-Fixed: 3058735 --- Kbuild | 2 +- core/hdd/src/wlan_hdd_driver_ops.c | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Kbuild b/Kbuild index cc179618452e..10446e04efe5 100644 --- a/Kbuild +++ b/Kbuild @@ -3733,7 +3733,7 @@ cppflags-$(CONFIG_MORE_TX_DESC) += -DTX_TO_NPEERS_INC_TX_DESCS ccflags-$(CONFIG_HASTINGS_BT_WAR) += -DHASTINGS_BT_WAR -cppflags-$(CONFIG_SLUB_DEBUG_ON) += -DHIF_CONFIG_SLUB_DEBUG_ON +cppflags-y += -DHIF_CONFIG_SLUB_DEBUG_ON cppflags-$(CONFIG_SLUB_DEBUG_ON) += -DHAL_CONFIG_SLUB_DEBUG_ON ccflags-$(CONFIG_FOURTH_CONNECTION) += -DFEATURE_FOURTH_CONNECTION diff --git a/core/hdd/src/wlan_hdd_driver_ops.c b/core/hdd/src/wlan_hdd_driver_ops.c index 85fbcedbabb0..d7571f95f00a 100644 --- a/core/hdd/src/wlan_hdd_driver_ops.c +++ b/core/hdd/src/wlan_hdd_driver_ops.c @@ -626,6 +626,12 @@ static int __hdd_soc_probe(struct device *dev, goto dp_prealloc_fail; } + status = hif_ce_debug_history_prealloc_init(); + if (status != QDF_STATUS_SUCCESS) { + errno = qdf_status_to_os_return(status); + goto hif_ce_debug_history_prealloc_fail; + } + errno = hdd_wlan_startup(hdd_ctx); if (errno) goto hdd_context_destroy; @@ -650,6 +656,9 @@ wlan_exit: hdd_wlan_exit(hdd_ctx); hdd_context_destroy: + hif_ce_debug_history_prealloc_deinit(); + +hif_ce_debug_history_prealloc_fail: dp_prealloc_deinit(); dp_prealloc_fail: @@ -850,6 +859,7 @@ static void __hdd_soc_remove(struct device *dev) cds_set_driver_in_bad_state(false); cds_set_unload_in_progress(false); + hif_ce_debug_history_prealloc_deinit(); dp_prealloc_deinit(); pr_info("%s: Driver De-initialized\n", WLAN_MODULE_NAME);