]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
amdkfd: find kfd_process by filep->private_data in kfd_mmap
authorZhu Lingshan <lingshan.zhu@amd.com>
Mon, 4 Aug 2025 07:33:51 +0000 (15:33 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Dec 2025 18:56:42 +0000 (13:56 -0500)
commit4eb38fc0f1da9707b8866b4a91a4dd7c2becfda9
treea20ee98f31b006dbf169292c56db6e2a98550980
parentfac682a1d1af12c6b9f97f7db91e1fbea2c40540
amdkfd: find kfd_process by filep->private_data in kfd_mmap

This commit finds the proper kfd_process by
filep->private_data in kfd_mmap,
because the function kfd_get_process()
can not locate a specific kfd process among
multiple contexts.

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