]> git.ipfire.org Git - thirdparty/kernel/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:48:06 +0000 (14:48 -0400)
commit14b81abe7bdc25f8097906fc2f91276ffedb2d26
treedbc9603c04b70363372fd73fec72e266519e9108
parent2d300ebfc411205fa31ba7741c5821d381912381
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>
(cherry picked from commit 8f1de51f49be692de137c8525106e0fce2d1912d)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ids.h
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c