]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: use ref to keep job alive
authorMonk Liu <Monk.Liu@amd.com>
Thu, 10 Mar 2016 04:14:44 +0000 (12:14 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 May 2016 19:20:07 +0000 (15:20 -0400)
commit7f126a098fe12a8402c6faa16fbcd741595a9de1
tree268b16b48fca9556569ce72c02b9c1a0985b3df3
parenta772cf9a399bc3b912199e1d48b766250499f23a
drm/amdgpu: use ref to keep job alive

this is to fix fatal page fault error that occured if:
job is signaled/released after its timeout work is already
put to the global queue (in this case the cancel_delayed_work
will return false), which will lead to NX-protection error
page fault during job_timeout_func.

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
drivers/gpu/drm/amd/scheduler/gpu_scheduler.c
drivers/gpu/drm/amd/scheduler/gpu_scheduler.h