drm/amdgpu: add mes process context alloc/free
authorPrike Liang <Prike.Liang@amd.com>
Fri, 3 Jul 2026 02:25:58 +0000 (10:25 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 15 Jul 2026 13:15:41 +0000 (09:15 -0400)
commitcf5f98609a03d89a32cd0922b092eea66bdb2e77
treeb5a160981cac9c8079528656f61be53dd81b4cab
parentca5988682b4cba4cd125a0fa99b2de1239164ae4
drm/amdgpu: add mes process context alloc/free

Those helpers allocates/frees slots from bitmaps for
process_context_array_index processed by MES firmware.

Signed-off-by: Prike Liang <Prike.Liang@amd.com>
Reviewed-by: Michael Chen <michael.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h
drivers/gpu/drm/amd/amdgpu/mes_userqueue.c
drivers/gpu/drm/amd/amdgpu/mes_v11_0.c