dfc: add stall recovery timer

Add watchdog timer to recover potential data stall when data is
not going to the expected DRB and no DFC indication is received.

Change-Id: Iaa4b4814967cf9400c36115a083922376d23928d
Acked-by: Weiyi Chen <weiyic@qti.qualcomm.com>
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
This commit is contained in:
Subash Abhinov Kasiviswanathan
2020-06-24 10:42:34 -07:00
parent aeca58ead5
commit 1842e30e8a
6 changed files with 163 additions and 10 deletions

View File

@@ -292,6 +292,28 @@ TRACE_EVENT(dfc_adjust_grant,
__entry->rx_bytes, __entry->inflight, __entry->a_grant)
);
TRACE_EVENT(dfc_watchdog,
TP_PROTO(u8 mux_id, u8 bearer_id, u8 event),
TP_ARGS(mux_id, bearer_id, event),
TP_STRUCT__entry(
__field(u8, mux_id)
__field(u8, bearer_id)
__field(u8, event)
),
TP_fast_assign(
__entry->mux_id = mux_id;
__entry->bearer_id = bearer_id;
__entry->event = event;
),
TP_printk("mid=%u bid=%u event=%u",
__entry->mux_id, __entry->bearer_id, __entry->event)
);
#endif /* _TRACE_DFC_H */
/* This part must be outside protection */