summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
diff options
context:
space:
mode:
authorZhu Lingshan <lingshan.zhu@amd.com>2025-03-03 18:42:50 +0800
committerAlex Deucher <alexander.deucher@amd.com>2025-12-08 13:56:43 -0500
commit78996e1e98f822d16363e2a7703ca243eda59ba8 (patch)
tree80742f3c2a59ddd1c2b694be948dcc5f61854605 /drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
parent07506945e138c191e913aba86030111a93a5b119 (diff)
downloadlinux-next-78996e1e98f822d16363e2a7703ca243eda59ba8.tar.gz
linux-next-78996e1e98f822d16363e2a7703ca243eda59ba8.zip
amdkfd: record kfd context id into kfd process_info
This commit records the context id of the owner kfd_process into a kfd process_info when create it. 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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
index 335d733751cb..2fa5f1925f5a 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
@@ -148,6 +148,8 @@ struct amdkfd_process_info {
/* MMU-notifier related fields */
struct mutex notifier_lock;
uint32_t evicted_bos;
+ /* kfd context id */
+ u16 context_id;
struct delayed_work restore_userptr_work;
struct pid *pid;
bool block_mmu_notifications;