aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarthikeyan Periyasamy <quic_periyasa@quicinc.com>2024-05-16 05:38:07 +0530
committerKalle Valo <quic_kvalo@quicinc.com>2024-05-16 19:43:28 +0300
commitf5d46a4706b9f41fd8b5fc2d98ba9b22317a321f (patch)
treed40992816db84dcd6fe3417355ba855b195de66a
parent286f4671974598dc2f7f1fe171c1daa74dab9818 (diff)
downloadath-pending.tar.gz
wifi: ath12k: improve the rx descriptor error informationpending
The ath12k_dp_get_rx_desc() failure log currently contains the same information across multiple Rx data paths and lacks sufficient detail for debugging purposes. To address this, change the ath12k_dp_get_rx_desc() failure log to include cookie information along with Rx path details. This will provide more specific data for debugging purposes. Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 Tested-on: WCN7850 HW2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3 Signed-off-by: Karthikeyan Periyasamy <quic_periyasa@quicinc.com> Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com> Patchwork-Id: 13665610 Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
-rw-r--r--drivers/net/wireless/ath/ath12k/dp_rx.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath12k/dp_rx.c b/drivers/net/wireless/ath/ath12k/dp_rx.c
index e3bd25e51d4ee1..c22b10012fbd35 100644
--- a/drivers/net/wireless/ath/ath12k/dp_rx.c
+++ b/drivers/net/wireless/ath/ath12k/dp_rx.c
@@ -2630,7 +2630,7 @@ try_again:
if (!desc_info) {
desc_info = ath12k_dp_get_rx_desc(ab, cookie);
if (!desc_info) {
- ath12k_warn(ab, "Invalid cookie in manual desc retrieval");
+ ath12k_warn(ab, "Rx, invalid cookie 0x%x\n", cookie);
continue;
}
}
@@ -3328,7 +3328,7 @@ ath12k_dp_process_rx_err_buf(struct ath12k *ar, struct hal_reo_dest_ring *desc,
if (!desc_info) {
desc_info = ath12k_dp_get_rx_desc(ab, cookie);
if (!desc_info) {
- ath12k_warn(ab, "Invalid cookie in manual desc retrieval");
+ ath12k_warn(ab, "Rx Exception, invalid cookie 0x%x\n", cookie);
return -EINVAL;
}
}
@@ -3747,7 +3747,8 @@ int ath12k_dp_rx_process_wbm_err(struct ath12k_base *ab,
if (!desc_info) {
desc_info = ath12k_dp_get_rx_desc(ab, err_info.cookie);
if (!desc_info) {
- ath12k_warn(ab, "Invalid cookie in manual desc retrieval");
+ ath12k_warn(ab, "WBM Rx err, invalid cookie 0x%x\n",
+ err_info.cookie);
continue;
}
}