]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit57b374b8a2ec3afe7bb0326ff66aff39e6a5575f
tree028366aae95aed992bc24255e731ca116b31bb12
parente05f7a581e13a43671f89e0f6f1e122a1809322f
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