]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
amdkfd: mark the first kfd_process as the primary one
authorZhu Lingshan <lingshan.zhu@amd.com>
Mon, 21 Apr 2025 07:47:54 +0000 (15:47 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Dec 2025 18:56:40 +0000 (13:56 -0500)
commit3272cd887f2bc27825a6c053ca174dbb6eabc636
treea82583e83ff2ce0b42335fb2ad8f3ca06e6bf5db
parentfb61604a69fca0366efffb3abee8c0910024bdfa
amdkfd: mark the first kfd_process as the primary one

The first kfd_process is created through open(),
this commit marks it as the primary kfd_process
by assigning a primary id for its context_id.

Only the primary process should register the mmu_notifier.

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_priv.h
drivers/gpu/drm/amd/amdkfd/kfd_process.c