]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
amdkfd: process USERPTR allocation only on the primary kfd process
authorZhu Lingshan <lingshan.zhu@amd.com>
Mon, 30 Jun 2025 03:00:29 +0000 (11:00 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Dec 2025 18:56:42 +0000 (13:56 -0500)
commit1707d5760c71b813fb5a4b6ccedcf21bc0ecb481
treeee24e6b0e8556ad0e31f48e709693af5d4fde077
parent26fc46d7942d0842ee9767a6d960ae5a9141f534
amdkfd: process USERPTR allocation only on the primary kfd process

The lifecycle of the primary kfd process is tied to
the user space program, all secondary kfd process
would be destroyed when fd close. Thus only the primary
kfd process should process USERPTR memory allocation.

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