drm/amdgpu: restore aldebaran save ttmp and trap config on init (v2)
authorJonathan Kim <Jonathan.Kim@amd.com>
Fri, 21 Aug 2020 07:02:49 +0000 (15:02 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Mar 2021 02:59:31 +0000 (22:59 -0400)
commit16171a25d833be9c0957b759687cbda4b1ebc7db
treeaa2c24f44fdf1f9c7a0d3f0502822688a7807c0c
parent5073506c7eff55b9599ba9d5b52bf45b86a5df4f
drm/amdgpu: restore aldebaran save ttmp and trap config on init (v2)

Initialization of TRAP_DATA0/1 is still required for the debugger to detect
new waves on Aldebaran.  Also, per-vmid global trap enablement may be
required outside of debugger scope so move to init phase.

v2: just add the gfx 9.4.2 changes (Alex)

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