]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdgpu: prevent immediate PASID reuse case
authorEric Huang <jinhuieric.huang@amd.com>
Mon, 16 Mar 2026 15:01:30 +0000 (11:01 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 23 Mar 2026 18:10:39 +0000 (14:10 -0400)
commit8f1de51f49be692de137c8525106e0fce2d1912d
tree8cf21676199733c897f2cb23683bdda58b698a75
parent94d79f51efecb74be1d88dde66bdc8bfcca17935
drm/amdgpu: prevent immediate PASID reuse case

PASID resue could cause interrupt issue when process
immediately runs into hw state left by previous
process exited with the same PASID, it's possible that
page faults are still pending in the IH ring buffer when
the process exits and frees up its PASID. To prevent the
case, it uses idr cyclic allocator same as kernel pid's.

Signed-off-by: Eric Huang <jinhuieric.huang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ids.h
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c