OSDN Git Service

drm/amdgpu: add gfx10 hw debug mode enable and disable calls
authorJonathan Kim <jonathan.kim@amd.com>
Thu, 31 Mar 2022 17:14:01 +0000 (13:14 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 16:35:21 +0000 (12:35 -0400)
commitd13f050fee94a454323f864fb005c4355600cdbd
tree0b63dcf525612bfe29087568e6eee339dd7245c7
parentbb13d763f251c28b08d996671c5146a2113fc9e7
drm/amdgpu: add gfx10 hw debug mode enable and disable calls

Similar to GFX9 debug devices, set the hardware debug mode by draining
the SPI appropriately prior the mode setting request.

Because GFX10 has waves allocated by the work group boundary and each
SE's SPI instances do not communicate, the SPI drain time is much longer.
This long drain time will be fixed for GFX11 onwards.

Also remove a bunch of deprecated misplaced references for GFX10.3.

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_gfx_v10.c
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.h [new file with mode: 0644]
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10_3.c