drm/amdgpu: add debugfs for reset registers list

List of register populated for dump collection during the GPU reset.

Signed-off-by: Somalapuram Amaranath <Amaranath.Somalapuram@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Somalapuram Amaranath
2022-02-23 16:20:31 +05:30
committed by Alex Deucher
parent b74e2476ef
commit 5ce5a584cb
2 changed files with 86 additions and 0 deletions

View File

@@ -1094,6 +1094,10 @@ struct amdgpu_device {
struct ip_discovery_top *ip_top;
struct mutex benchmark_mutex;
/* reset dump register */
uint32_t *reset_dump_reg_list;
int num_regs;
};
static inline struct amdgpu_device *drm_to_adev(struct drm_device *ddev)