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

Commit 2a30c8fb authored by Arun Menon's avatar Arun Menon
Browse files

msm: vidc: Avoid deadlock in dcvs during scale clocks



There is a deadlock condition in dcvs when driver
tries to queue a buffer which it held, on receipt of
release reference event from the firmware. The driver
tries to acquire the registeredbufs.lock, which it has
already acquired in the same thread in handle_event_change().
Avoid this condition by removing the need to acquire the
lock, by computing the number of buffers held in the driver
whenever the buffer references are incremented\decremented.

Change-Id: Ic985f0672adc1e2c9e8a37f3d72883ef234d1b72
Signed-off-by: default avatarArun Menon <avmenon@codeaurora.org>
parent f81d0b1f
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