drm/amdgpu: add debugfs amdgpu_reset_level
authorVictor Zhao <Victor.Zhao@amd.com>
Tue, 14 Jun 2022 02:48:11 +0000 (10:48 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 16 Aug 2022 22:14:31 +0000 (18:14 -0400)
commit5bd8d53f6fa53eab5433698d1362dae2aa53c1cc
tree16feb5b14db69b87652cc99b319cc06f5cf33782
parentdac6b80818ac2353631c5a33d140d8d5508e2957
drm/amdgpu: add debugfs amdgpu_reset_level

Introduce amdgpu_reset_level debugfs in order to help debug and
test specific type of reset. Also helps blocking unwanted type of
resets.

By default, mode2 reset will not be enabled

v2: make this debugfs in adev and use debugfs_create_u32

Signed-off-by: Victor Zhao <Victor.Zhao@amd.com>
Acked-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c