diff options
author | Nitin Kumbhar <nkumbhar@nvidia.com> | 2012-02-09 11:37:16 +0530 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-02-14 09:29:23 -0800 |
commit | c24bb73b2dcecc1e05c6dae40999201c71d4f0e7 (patch) | |
tree | 8788ac6adedd3a6e8d9b197b08d03402edd92a9c /drivers/gpio | |
parent | db513ad44b82c7ddd44323c14efe4c53ca41f5ba (diff) |
video: tegra: dc: acquire window locks in an order to avoid a deadlock
All window locks are grabbed while performing dc window updates. Currently, no
particular locking order is followed for these locks. If user provided windows
are not in order, this leads to deadlock due to race between flip ioctl and
dc underflow reset worker.
Now on all window locks are acquired in an order as below
1. window A i.e. index 0
2. window B i.e. index 1
3. window C i.e. index 2
And unlocked in the reverse order
1. window C i.e. index 2
2. window B i.e. index 1
3. window A i.e. index 0
Bug 936545
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: http://git-master/r/83107
(cherry picked from commit 68815fa87e879d0c783e8fd38f473f414806c0be)
Change-Id: I3b3e00eaf91384c39ff74047f06af8199848ad92
Reviewed-on: http://git-master/r/83405
Tested-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Robert Morell <rmorell@nvidia.com>
Diffstat (limited to 'drivers/gpio')
0 files changed, 0 insertions, 0 deletions