From: Flora Cui Date: Thu, 18 May 2017 05:56:22 +0000 (+0800) Subject: drm/amdgpu: fix ocl test performance drop X-Git-Tag: v4.14-rc1~484^2~24^2~165 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=de37e68a3dc6d526a5e42c393433eb66ac23cee4;p=platform%2Fkernel%2Flinux-rpi.git drm/amdgpu: fix ocl test performance drop partial revert commit <6971d3d> - drm/amdgpu: cleanup logic in amdgpu_vm_flush Signed-off-by: Flora Cui Reviewed-by: Christian König Reviewed-by: Chunming Zhou Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index 0da8a30..4df5427 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c @@ -743,8 +743,7 @@ int amdgpu_vm_flush(struct amdgpu_ring *ring, struct amdgpu_job *job) id->gws_size != job->gws_size || id->oa_base != job->oa_base || id->oa_size != job->oa_size); - bool vm_flush_needed = job->vm_needs_flush || - amdgpu_vm_ring_has_compute_vm_bug(ring); + bool vm_flush_needed = job->vm_needs_flush; unsigned patch_offset = 0; int r;