]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdkfd: check if vm ready in svm map and unmap to gpu
authorYuanShang <YuanShang.Mao@amd.com>
Thu, 26 Mar 2026 10:27:30 +0000 (18:27 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 24 Apr 2026 14:58:25 +0000 (10:58 -0400)
commit55f8e366c326980174a4f2b9501b524d8eb25135
tree73a81d01e600a8777caf2b855cb9ea1270382a0d
parent5eca8bfdfa456c3304ca77523718fe24254c172f
drm/amdkfd: check if vm ready in svm map and unmap to gpu

Don't map or unmap svm range to gpu if vm is not ready for updates.

Why: DRM entity may already be killed when the svm worker try to
update gpu vm.

Signed-off-by: YuanShang <YuanShang.Mao@amd.com>
Reviewed-by: Philip Yang <philip.yang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_svm.c