]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: Make amdgpu_vm_flush() non-failing in submission path
authorSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Thu, 12 Feb 2026 16:00:50 +0000 (21:30 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 23 Feb 2026 19:16:31 +0000 (14:16 -0500)
commit37872d06f85f0349e7b1f0680aea77326f7c135e
treeaf770467364a977d5d588d96b75a8c71230cd0cf
parent7abc868acf804e1340b6e2978c255fa490710543
drm/amdgpu: Make amdgpu_vm_flush() non-failing in submission path

amdgpu_vm_flush() is used during job submission and is not expected to
fail. Convert it to return void and simplify the caller.

Initialize the COND_EXEC patch location to 0 so it is safe to call
amdgpu_ring_patch_cond_exec() when init_cond_exec is not supported.

Suggested-by: Christian König <christian.koenig@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h