qcacmn: Introduce counters per endpoint to improve HTC debuggability
To introduce counters htc_send_cnt and htc_comp_cnt per endpoint to enhance pdev level debugging in HTC path. Change-Id: I8d31e3a533e0f8de4c89d3609b20c148aef3a4ff
This commit is contained in:
@@ -140,6 +140,8 @@ typedef struct _HTC_ENDPOINT {
|
|||||||
qdf_timer_t ul_poll_timer;
|
qdf_timer_t ul_poll_timer;
|
||||||
int ul_poll_timer_active;
|
int ul_poll_timer_active;
|
||||||
int ul_outstanding_cnt;
|
int ul_outstanding_cnt;
|
||||||
|
uint32_t htc_send_cnt;
|
||||||
|
uint32_t htc_comp_cnt;
|
||||||
/* Need to call HIF to fetch rx? (Not currently supported.) */
|
/* Need to call HIF to fetch rx? (Not currently supported.) */
|
||||||
int dl_is_polled;
|
int dl_is_polled;
|
||||||
/* not currently supported */
|
/* not currently supported */
|
||||||
|
@@ -866,6 +866,7 @@ static QDF_STATUS htc_issue_packets(HTC_TARGET *target,
|
|||||||
htc_issue_tx_bundle_stats_inc(target);
|
htc_issue_tx_bundle_stats_inc(target);
|
||||||
|
|
||||||
target->ce_send_cnt++;
|
target->ce_send_cnt++;
|
||||||
|
pEndpoint->htc_send_cnt++;
|
||||||
|
|
||||||
if (qdf_unlikely(QDF_IS_STATUS_ERROR(status))) {
|
if (qdf_unlikely(QDF_IS_STATUS_ERROR(status))) {
|
||||||
if (status != QDF_STATUS_E_RESOURCES) {
|
if (status != QDF_STATUS_E_RESOURCES) {
|
||||||
@@ -899,6 +900,7 @@ static QDF_STATUS htc_issue_packets(HTC_TARGET *target,
|
|||||||
LOCK_HTC_TX(target);
|
LOCK_HTC_TX(target);
|
||||||
}
|
}
|
||||||
target->ce_send_cnt--;
|
target->ce_send_cnt--;
|
||||||
|
pEndpoint->htc_send_cnt--;
|
||||||
pEndpoint->ul_outstanding_cnt--;
|
pEndpoint->ul_outstanding_cnt--;
|
||||||
HTC_PACKET_REMOVE(&pEndpoint->TxLookupQueue, pPacket);
|
HTC_PACKET_REMOVE(&pEndpoint->TxLookupQueue, pPacket);
|
||||||
htc_packet_set_magic_cookie(pPacket, 0);
|
htc_packet_set_magic_cookie(pPacket, 0);
|
||||||
@@ -2245,7 +2247,6 @@ static HTC_PACKET *htc_lookup_tx_packet(HTC_TARGET *target,
|
|||||||
LOCK_HTC_EP_TX_LOOKUP(pEndpoint);
|
LOCK_HTC_EP_TX_LOOKUP(pEndpoint);
|
||||||
|
|
||||||
LOCK_HTC_TX(target);
|
LOCK_HTC_TX(target);
|
||||||
|
|
||||||
/* mark that HIF has indicated the send complete for another packet */
|
/* mark that HIF has indicated the send complete for another packet */
|
||||||
pEndpoint->ul_outstanding_cnt--;
|
pEndpoint->ul_outstanding_cnt--;
|
||||||
|
|
||||||
@@ -2324,6 +2325,7 @@ QDF_STATUS htc_tx_completion_handler(void *Context,
|
|||||||
|
|
||||||
pEndpoint = &target->endpoint[EpID];
|
pEndpoint = &target->endpoint[EpID];
|
||||||
target->TX_comp_cnt++;
|
target->TX_comp_cnt++;
|
||||||
|
pEndpoint->htc_comp_cnt++;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
pPacket = htc_lookup_tx_packet(target, pEndpoint, netbuf);
|
pPacket = htc_lookup_tx_packet(target, pEndpoint, netbuf);
|
||||||
|
Reference in New Issue
Block a user