qcacmn: trigger panic if completing tasks takes too long
Trigger panic if it takes too long in completing the tasks. And also modify the maximum retry count if PANIC_ON_BUG is enabled to avoid false alarms. It makes debug easier for tasklet stuck and schedule latency related issues. Change-Id: I521661c656d227ffb3f4c87ecd56bbfa938c9c25 CRs-Fixed: 3441248
This commit is contained in:

committed by
Madan Koyyalamudi

parent
543f94ced2
commit
c46d796117
@@ -1258,6 +1258,9 @@ QDF_STATUS hif_try_complete_tasks(struct hif_softc *scn)
|
||||
if (++task_drain_wait_cnt > HIF_TASK_DRAIN_WAIT_CNT) {
|
||||
hif_err("pending tasklets %d grp tasklets %d work %d",
|
||||
tasklet, grp_tasklet, work);
|
||||
QDF_DEBUG_PANIC("Complete tasks takes more than %u ms: tasklets %d grp tasklets %d work %d",
|
||||
HIF_TASK_DRAIN_WAIT_CNT * 10,
|
||||
tasklet, grp_tasklet, work);
|
||||
return QDF_STATUS_E_FAULT;
|
||||
}
|
||||
hif_info("waiting for tasklets %d grp tasklets %d work %d",
|
||||
|
Reference in New Issue
Block a user