]> Gentwo Git Trees - linux/.git/commit
drm/amdgpu: Merge amdgpu_vm_set_pasid into amdgpu_vm_init
authorJesse.Zhang <Jesse.Zhang@amd.com>
Thu, 25 Sep 2025 10:02:18 +0000 (18:02 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Oct 2025 18:09:07 +0000 (14:09 -0400)
commitb809ca91a5b7eccba065460200512f83cc87987a
treef131ef9777341f98a5e8b97e4b81ee4312473c6c
parent8dbac5cf8bd55a01a8a0e792a6ed866856506f60
drm/amdgpu: Merge amdgpu_vm_set_pasid into amdgpu_vm_init

As KFD no longer uses a separate PASID, the global amdgpu_vm_set_pasid()function is no longer necessary.
Merge its functionality directly intoamdgpu_vm_init() to simplify code flow and eliminate redundant locking.

v2: remove superflous check
  adjust amdgpu_vm_fin and remove amdgpu_vm_set_pasid (Chritian)

v3: drop amdgpu_vm_assert_locked (Chritian)

Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4614
Fixes: 59e4405e9ee2 ("drm/amdgpu: revert to old status lock handling v3")
Reviewed-by: Christian König <christian.koenig@amd.com>
Suggested-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h