drivers: mailbox: qti-tcs: use single tasklet for response
The response object pool is a limited resource. However, when stress
testing the mailbox driver, we quickly run out of the response object in
the pool, because we cannot release the tasklet (member of the response
object) until the object is freed. When sending a response back to
mailbox, the mailbox may pick up the next element in the queue and use
the response thread to send the new request, which may fail if there are
no response objects available causing a deadlock.
To avoid this, use a single tasklet per DRV to send responses. While it
is not as efficient as having multiple tasklets, it avoids the deadlock
condition explained above.
Change-Id: I34f02f3cadb654f1c0f24d2b5f45c6f7af885363
Signed-off-by:
Lina Iyer <ilina@codeaurora.org>
Loading
Please register or sign in to comment