]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
amdkfd: find_process_by_mm always return the primary context
authorZhu Lingshan <lingshan.zhu@amd.com>
Tue, 29 Oct 2024 08:46:34 +0000 (16:46 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Dec 2025 18:56:40 +0000 (13:56 -0500)
commit3880d8e3c6ef2797900d5a437b705afe9baa815f
tree11638c2cb4aca6faff29d2ac3628a57ee6343863
parent42cbb68ce896ea472ebcdb310ad01b6712fd4d13
amdkfd: find_process_by_mm always return the primary context

Up until this commit, the kfd multiple contexts feature has
not been fully implemented in mainline kernel yet.

For backawrd compatibility, not break existing use cases,
this commit changes function find_process_by_mm, let it
always return the primary kfd_process.

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_process.c