summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/kind_gk20a.c
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2014-04-20 05:58:20 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:09:43 -0400
commitd4030081a867865be95cd3ede1407f0d35d5c761 (patch)
tree87ff7f9646b1cc53b6f04a1c629ae2f333ef8c9a /drivers/gpu/nvgpu/gk20a/kind_gk20a.c
parent9984dff23326dbf28f89f2de23bc00edd4c519f9 (diff)
gpu: nvgpu: gk20a: add submit_lock
Add submit mutex lock to avoid race conditions between submitting a job, removing a job and submitting WFI With this lock make below operations atomic : during submit_gpfifo() - 1. getting new syncpt 2. inserting syncpt increment 3. submitting gpfifo 4. setting job completion interrupt during submit_wfi() - 1. getting new syncpt 2. inserting syncpt increment when idle during channel_update() - 1. checking the submit job completion 2. freeing the job if it is completed Bug 1305024 Change-Id: I0e3c0b8906d83fd59642344626ffdf24fad2aaab Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/397670 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/kind_gk20a.c')
0 files changed, 0 insertions, 0 deletions