]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
amdkfd: process svm ioctl only on the primary kfd process
authorZhu Lingshan <lingshan.zhu@amd.com>
Fri, 14 Feb 2025 06:06:19 +0000 (14:06 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Dec 2025 18:56:41 +0000 (13:56 -0500)
commit26fc46d7942d0842ee9767a6d960ae5a9141f534
tree27e0541d8eaee8026dc7685ce525e65dcf72afdd
parent65cce2a172ff0f8b4a2d74a6c9a84243b94ca797
amdkfd: process svm ioctl only on the primary kfd process

svm ioctl should only be processed on the primary
kfd process because only the lifecycle of the
primary kfd process is tied to the  user space
applicaiton.

Another reason is in virtualization the hypervisor owns
the primary kfd process as a privileged one.

Signed-off-by: Zhu Lingshan <lingshan.zhu@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c