drm/amdgpu: add gfx9.4.2 hw debug mode enable and disable calls
authorJonathan Kim <jonathan.kim@amd.com>
Fri, 1 Apr 2022 17:31:57 +0000 (13:31 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 16:35:25 +0000 (12:35 -0400)
commitbe6f94039e1a91df4b0efc2da9167ca9c17bb532
tree38ec3855eb8f7017abd184ec8958b51c1231afb9
parentd13f050fee94a454323f864fb005c4355600cdbd
drm/amdgpu: add gfx9.4.2 hw debug mode enable and disable calls

GFX9.4.2 now supports per-VMID debug mode controls registers
(SPI_GDBG_PER_VMID_CNTL).

Because the KFD lets the HWS handle PASID-VMID mapping, the KFD will
forward all debug mode setting register writes to the HWS scheduler
using a new MAP_PROCESS API, so instead of writing to registers, return
the required register values that the HWS needs to write on debug enable
and disable.

Signed-off-by: Jonathan Kim <jonathan.kim@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_aldebaran.c