[PATCH 08/12] drm/amdgpu:explicitly call fence_process
Christian König
ckoenig.leichtzumerken at gmail.com
Mon Oct 9 08:23:48 UTC 2017
Am 30.09.2017 um 08:03 schrieb Monk Liu:
> this way no need to wait timer triggered to save time
In principle a good idea, but please remove
amdgpu_fence_driver_force_completion_ring() and use
amdgpu_fence_driver_force_completion() instead.
Regards,
Christian.
>
> Change-Id: Ie96fd2fc1f6054ebc1e58c3d703471639371ee22
> Signed-off-by: Monk Liu <Monk.Liu at amd.com>
> ---
> 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);
> + }
> }
>
> /*
More information about the amd-gfx
mailing list