Skip to content

Commit 2230117

Browse files
Andrey Grodzovskyalexdeucher
authored andcommitted
drm/amdgpu: Add new ring callback to insert memory sync
Used to flush and invalidate various caches. v2: Rename function hook Signed-off-by: Andrey Grodzovsky <[email protected]> Reviewed-by: Luben Tuikov <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 4e01847 commit 2230117

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ struct amdgpu_ring_funcs {
195195
/* Try to soft recover the ring to make the fence signal */
196196
void (*soft_recovery)(struct amdgpu_ring *ring, unsigned vmid);
197197
int (*preempt_ib)(struct amdgpu_ring *ring);
198+
void (*emit_mem_sync)(struct amdgpu_ring *ring);
198199
};
199200

200201
struct amdgpu_ring {

0 commit comments

Comments
 (0)