diff options
author | Christian König <christian.koenig@amd.com> | 2016-03-14 14:49:33 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-03-16 22:59:52 +0100 |
commit | 91cc6418a0ea14633bdc1d2ea91d174fc1e9187d (patch) | |
tree | 2d4d350bc72b4736677dac69aae1d2de332c7f9d /drivers/gpu | |
parent | drm/amdgpu: signal fences directly in amdgpu_fence_process (diff) | |
download | linux-91cc6418a0ea14633bdc1d2ea91d174fc1e9187d.tar.xz linux-91cc6418a0ea14633bdc1d2ea91d174fc1e9187d.zip |
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>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c | 3 |
1 files changed, 0 insertions, 3 deletions
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) |