]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
amdkfd: identify a secondary kfd process by its id
authorZhu Lingshan <lingshan.zhu@amd.com>
Tue, 14 Oct 2025 09:16:06 +0000 (17:16 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Dec 2025 18:56:42 +0000 (13:56 -0500)
commitfac682a1d1af12c6b9f97f7db91e1fbea2c40540
tree8eebd81a45921a26d2a9b6ca2f5a8fc450268307
parent1707d5760c71b813fb5a4b6ccedcf21bc0ecb481
amdkfd: identify a secondary kfd process by its id

This commit introduces a new id field for
struct kfd process, which helps identify
a kfd process among multiple contexts that
all belong to a single user space program.

The sysfs entry of a secondary kfd process
is placed under the sysfs entry folder of
its primary kfd process.

The naming format of the sysfs entry of a secondary
kfd process is "context_%u" where %u is the context id.

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