this way no need to wait timer triggered to save time
Change-Id: Ie96fd2fc1f6054ebc1e58c3d703471639371ee22
Signed-off-by: Monk Liu <[email protected]>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
index 333bad7..13785d8 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
@@ -543,8 +543,13 @@ void amdgpu_fence_driver_force_completion(struct
amdgpu_device *adev)
void amdgpu_fence_driver_force_completion_ring(struct amdgpu_ring *ring)
{
- if (ring)
+ if (ring) {
amdgpu_fence_write(ring, ring->fence_drv.sync_seq);
+ /* call fence process manually can get it done quickly
+ * instead of waiting for the timer triggered
+ */
+ amdgpu_fence_process(ring);
+ }
}
/*
--
2.7.4
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx