From: Christian König Date: Mon, 14 Mar 2016 13:49:33 +0000 (+0100) Subject: drm/amdgpu: drop the extra fence range check v2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=91cc6418a0ea14633bdc1d2ea91d174fc1e9187d;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drm/amdgpu: drop the extra fence range check v2 Amdgpu doesn't support using scratch registers for fences any more. So we won't see values like 0xdeadbeef as fence value any more. v2: reschedule timer even if no change detected Signed-off-by: Christian König Acked-by: Alex Deucher Reviewed-by: Chunming Zhou --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c index c5980c4133a6..fa4eabeee71d 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c @@ -190,9 +190,6 @@ void amdgpu_fence_process(struct amdgpu_ring *ring) seq |= last_emitted & 0xffffffff00000000LL; } - if (seq <= last_seq || seq > last_emitted) - return; - } while (atomic64_cmpxchg(&drv->last_seq, last_seq, seq) != last_seq); if (seq < last_emitted)