]> git.hungrycats.org Git - linux/commit
amdkfd: properly free secondary context id
authorZhu Lingshan <lingshan.zhu@amd.com>
Wed, 1 Jul 2026 08:08:12 +0000 (16:08 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 Jul 2026 18:23:20 +0000 (14:23 -0400)
commit8799ba6fb6a48438aea20c82e74c2f2a3d2b2e7a
treef50dddef109a7f7b367909e032ee2f4d98666824
parent1cafa8b29e029eac3ddf64604f891b35dbf6262b
amdkfd: properly free secondary context id

Function kfd_process_free_id() should skip over
the primary kfd process because its context id
is fixed assigned, not allocated through the ida table.
This function should only work on secondary contexts.

Fixes: fac682a1d1af ("amdkfd: identify a secondary kfd process by its 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_process.c