]> Gentwo Git Trees - linux/.git/commit
drm/amdgpu: validate userq va for GEM unmap
authorPrike Liang <Prike.Liang@amd.com>
Fri, 19 Sep 2025 07:14:41 +0000 (15:14 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 Oct 2025 18:14:34 +0000 (14:14 -0400)
commit2e7ceac0ea4192e25936c2186e1c44a550f6d96d
tree4ab716ee1c2f29f87009c322b4fa099881eb5a7c
parent89926812d3b41d172b812afdafac710504824139
drm/amdgpu: validate userq va for GEM unmap

When a user unmaps a userq VA, the driver must ensure
the queue has no in-flight jobs. If there is pending work,
the kernel should wait for the attached eviction (bookkeeping)
fence to signal before deleting the mapping.

Suggested-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Prike Liang <Prike.Liang@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_userq.c
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c