drm/amdgpu: Move compute vm bug logic to amdgpu_vm.c
authorAlex Xie <AlexBin.Xie@amd.com>
Thu, 1 Jun 2017 13:42:59 +0000 (09:42 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 1 Jun 2017 20:00:20 +0000 (16:00 -0400)
commite59c020598666ffc22c627910667e44ac2412304
tree028366aae95aed992bc24255e731ca116b31bb12
parent117a48a7add55e6d9e84a23fe585c6a648096a64
drm/amdgpu: Move compute vm bug logic to amdgpu_vm.c

  In review, Christian would like to keep the logic
  inside amdgpu_vm.c with a cost of slightly slower.
  The loop is still optimized out with this patch.

v2: remove the if statement. Now it is not slower.

Signed-off-by: Alex Xie <AlexBin.Xie@amd.com>
Reviewed-by: Christian König <christian.koeng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h