Patch 1 removes unreachable error handling in amdgpu_fence_emit().
dma_fence_wait(old, false) is not interruptible and cannot return an
error, so the existing check is dead code.

Patch 2 builds on this by making amdgpu_vm_flush() non-failing in the
job submission path. The function is converted to return void, and the
caller no longer handles an error return. This reflects the fact that
failures are not expected in this path.

Srinivasan Shanmugam (2):
  drm/amdgpu: Drop dead error handling after dma_fence_wait(old, false)
  drm/amdgpu: Make amdgpu_vm_flush() non-failing in submission path

 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c |  4 +---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c    |  9 ++-------
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c    | 16 ++++++----------
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h    |  2 +-
 4 files changed, 10 insertions(+), 21 deletions(-)

-- 
2.34.1

Reply via email to