drm/amdgpu/mes: refactor the amdgpu_mes_alloc/free_proc|gang()

- Unify amdgpu_mes_alloc/free_proc|gang_ctx_index to provide
  centralized RS64mem bitmap management for both KGD and KFD.
- Retrieve the bitmap bit for userq contex index based on a
  per process granularity.

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>
This commit is contained in:
Prike Liang 2026-07-28 16:16:26 +08:00 • committed by Alex Deucher
commit d0827dda8f
5 changed files with 44 additions and 26 deletions