From: Christian König <christian.koenig@amd.com>
Date: Mon, 14 Mar 2016 13:49:33 +0000 (+0100)
Subject: drm/amdgpu: drop the extra fence range check v2
X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=91cc6418a0ea14633bdc1d2ea91d174fc1e9187d;p=openwrt%2Fstaging%2Fblogic.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 <christian.koenig@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
---

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)