[PATCH 5/6] drm/amdgpu: Add new ring interface ib_preempt

Rex Zhu Rex.Zhu at amd.com
Wed Oct 31 12:25:35 UTC 2018


Used to trigger preemtption

Signed-off-by: Rex Zhu <Rex.Zhu at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
index a9ddb0d..cdd66a3 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
@@ -172,6 +172,7 @@ struct amdgpu_ring_funcs {
 			      enum drm_sched_priority priority);
 	/* Try to soft recover the ring to make the fence signal */
 	void (*soft_recovery)(struct amdgpu_ring *ring, unsigned vmid);
+	void (*ib_preempt)(struct amdgpu_ring *ring);
 };
 
 struct amdgpu_ring {
-- 
1.9.1



More information about the amd-gfx mailing list