drm/amdgpu: add debugfs node to toggle ras error cnt harvest
authorGuchun Chen <guchun.chen@amd.com>
Tue, 4 Aug 2020 07:05:01 +0000 (15:05 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Aug 2020 20:12:47 +0000 (16:12 -0400)
commit66459e1db2f8b6f7cdfe0d091345b56d12348d0d
treebc9e4bb441bf224795401a2788c10e2c1fad3e02
parentf75e94d86829e92a758a26fc5bbdb4c9eba86260
drm/amdgpu: add debugfs node to toggle ras error cnt harvest

Before ras recovery is issued, user could operate this debugfs
node to enable/disable the harvest of all RAS IPs' ras error
count registers, which will help keep hardware's registers'
status instead of cleaning up them.

Signed-off-by: Guchun Chen <guchun.chen@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Dennis Li <Dennis.Li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c