drm/amdgpu: move sched job process from isr to fence callback
authorChunming Zhou <david1.zhou@amd.com>
Tue, 4 Aug 2015 03:30:09 +0000 (11:30 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 17 Aug 2015 20:50:59 +0000 (16:50 -0400)
This way can avoid interrupt lost, and can process sched job exactly.

Signed-off-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c

index e1f093c..4d6a3e8 100644 (file)
@@ -404,7 +404,7 @@ struct amdgpu_fence_driver {
 
 struct amdgpu_fence {
        struct fence base;
-
+       struct fence_cb cb;
        /* RB, DMA, etc. */
        struct amdgpu_ring              *ring;
        uint64_t                        seq;