Deepak Nibade
d4030081a8
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 >
2015-03-18 12:09:43 -07:00
..
2015-03-18 12:09:20 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:09:43 -07:00
2015-03-18 12:09:43 -07:00
2015-03-18 12:09:20 -07:00
2015-03-18 12:09:10 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:09:21 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:09:04 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:09:21 -07:00
2015-03-18 12:09:06 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:09:20 -07:00
2015-03-18 12:09:40 -07:00
2015-03-18 12:09:30 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:54 -07:00
2015-03-18 12:08:54 -07:00
2015-03-18 12:09:42 -07:00
2015-03-18 12:09:05 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:54 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:09:33 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:09:42 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:09:42 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:09:42 -07:00
2015-03-18 12:09:05 -07:00
2015-03-18 12:09:42 -07:00
2015-03-18 12:09:42 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:09:06 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:09:37 -07:00
2015-03-18 12:09:05 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:09:38 -07:00
2015-03-18 12:09:26 -07:00
2015-03-18 12:09:20 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:09:40 -07:00
2015-03-18 12:09:40 -07:00
2015-03-18 12:09:42 -07:00
2015-03-18 12:09:01 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00