Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Guchun Chen and committed by
Alex Deucher
66459e1d f75e94d8

+7
+7
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
··· 1215 1215 */ 1216 1216 debugfs_create_bool("auto_reboot", S_IWUGO | S_IRUGO, con->dir, 1217 1217 &con->reboot); 1218 + 1219 + /* 1220 + * User could set this not to clean up hardware's error count register 1221 + * of RAS IPs during ras recovery. 1222 + */ 1223 + debugfs_create_bool("disable_ras_err_cnt_harvest", 0644, 1224 + con->dir, &con->disable_ras_err_cnt_harvest); 1218 1225 } 1219 1226 1220 1227 void amdgpu_ras_debugfs_create(struct amdgpu_device *adev,