Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 00328f10 authored by Lina Iyer's avatar Lina Iyer
Browse files

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: default avatarLina Iyer <ilina@codeaurora.org>
parent 6a9b4102
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment