qcacmn: Send cmd to dump FW stats on suspend failure

Add support to send unit test command to FW to dump
stats on suspend failure due to pending tx completions.

Change-Id: I6afb69a862c366c66a1e1f3dc009964272dfb75a
CRs-Fixed: 3151458
这个提交包含在:
Yeshwanth Sriram Guntuka
2022-03-10 15:29:21 +05:30
提交者 Madan Koyyalamudi
父节点 925aca8a6b
当前提交 68116c0a80
修改 5 个文件,包含 34 行新增1 行删除

查看文件

@@ -6319,10 +6319,15 @@ void dp_txrx_path_stats(struct dp_soc *soc)
DP_PRINT_STATS("successfully transmitted: %u msdus (%llu bytes)",
pdev->stats.tx.tx_success.num,
pdev->stats.tx.tx_success.bytes);
for (i = 0; i < soc->num_tcl_data_rings; i++)
for (i = 0; i < soc->num_tcl_data_rings; i++) {
DP_PRINT_STATS("Enqueue to SW2TCL%u: %u", i + 1,
soc->stats.tx.tcl_enq[i]);
DP_PRINT_STATS("TX completions reaped from ring %u: %u",
i, soc->stats.tx.tx_comp[i]);
}
DP_PRINT_STATS("Invalid release source: %u",
soc->stats.tx.invalid_release_source);
DP_PRINT_STATS("Dropped in host:");
DP_PRINT_STATS("Total packets dropped: %u,",
pdev->stats.tx_i.dropped.dropped_pkt.num);