From 0487bf2417a09b893640709e2e1087d3887b8895 Mon Sep 17 00:00:00 2001 From: Govind Singh Date: Wed, 24 Aug 2016 23:08:57 +0530 Subject: [PATCH] qcacld-3.0: Log IPA handle during ipa pipe connect/disconnect Log IPA client handle to detect ipa client handle corruption during wdi connect/disconnect. Propagation from qcacld-2.0 to qcacld-3.0. Change-Id: I0ea2a3afdf9792ef118aafd68dfa4a99eca81eee CRs-Fixed: 1010176 --- core/hdd/src/wlan_hdd_ipa.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/core/hdd/src/wlan_hdd_ipa.c b/core/hdd/src/wlan_hdd_ipa.c index 1377b92d31b6..0207dd171c39 100644 --- a/core/hdd/src/wlan_hdd_ipa.c +++ b/core/hdd/src/wlan_hdd_ipa.c @@ -1769,6 +1769,10 @@ static QDF_STATUS hdd_ipa_uc_ol_init(hdd_context_t *hdd_ctx) /* Connect WDI IPA PIPE */ ipa_connect_wdi_pipe(&pipe_in, &pipe_out); /* Micro Controller Doorbell register */ + HDD_IPA_LOG(QDF_TRACE_LEVEL_INFO_HIGH, + "%s CONS DB pipe out 0x%x TX PIPE Handle 0x%x", + __func__, (unsigned int)pipe_out.uc_door_bell_pa, + ipa_ctxt->tx_pipe_handle); ipa_ctxt->tx_comp_doorbell_paddr = pipe_out.uc_door_bell_pa; /* WLAN TX PIPE Handle */ ipa_ctxt->tx_pipe_handle = pipe_out.clnt_hdl; @@ -4239,10 +4243,12 @@ QDF_STATUS hdd_ipa_cleanup(hdd_context_t *hdd_ctx) if (hdd_ipa_uc_is_enabled(hdd_ctx)) { hdd_ipa_uc_rt_debug_deinit(hdd_ctx); HDD_IPA_LOG(QDF_TRACE_LEVEL_INFO, - "%s: Disconnect TX PIPE", __func__); + "%s: Disconnect TX PIPE tx_pipe_handle=0x%x", + __func__, hdd_ipa->tx_pipe_handle); ipa_disconnect_wdi_pipe(hdd_ipa->tx_pipe_handle); HDD_IPA_LOG(QDF_TRACE_LEVEL_INFO, - "%s: Disconnect RX PIPE", __func__); + "%s: Disconnect RX PIPE rx_pipe_handle=0x%x", + __func__, hdd_ipa->rx_pipe_handle); ipa_disconnect_wdi_pipe(hdd_ipa->rx_pipe_handle); qdf_mutex_destroy(&hdd_ipa->event_lock); qdf_mutex_destroy(&hdd_ipa->ipa_lock);