Files
linux-nvgpu/drivers/gpu/nvgpu/gk20a
Deepak Nibade cd09ac26c7 gpu: nvgpu: move resetup_ramfc() out of sync_lock
We currently have this sequence :
- acquire sync_lock
- sync_create
- resetup_ramfc()
- release sync_lock

but this can lead to deadlock in case resetup_ramfc()
triggers below stack :
- resetup_ramfc()
  - channel_preempt() - preemption fails
  - trigger recovery
  - channel_abort()
    - acquire sync_lock

Fix this by moving resetup_ramfc() out of sync_lock.

resetup_ramfc() is still protected by submit_lock and
hence we cannot free sync after allocation and
before resetup

Bug 200165811

Change-Id: Iebf74d950d6f6902b6d180c2cd8cd2d50493062c
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/931726
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
2016-01-21 07:52:11 -08:00
..
2015-07-03 19:00:22 -07:00
2016-01-19 08:34:55 -08:00
2015-11-25 00:45:58 -08:00
2016-01-19 17:47:13 -08:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-04-04 18:57:49 -07:00
2015-03-18 12:10:40 -07:00