drm/amdgpu: Move fence SW fallback warning v3
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Tue, 25 Sep 2018 14:24:16 +0000 (10:24 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Sep 2018 02:09:21 +0000 (21:09 -0500)
commit95d7fc4a412aabd3f5b2e1123c3b8faf1a3d8da7
tree12e23672a735d83033396600b392ee7f18501b06
parent425c31437f26436e17bdb3041a26e9864d18ba13
drm/amdgpu: Move fence SW fallback warning v3

Only print the warning if there was actually some fence processed
from the SW fallback timer.

v2: Add return value to amdgpu_fence_process to let
amdgpu_fence_fallback know fences were actually
processed and then print the warning.

v3: Always return true if seq != last_seq

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Acked-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h