Skip to content

Commit 2c7a156

Browse files
Stanley.Yangalexdeucher
authored andcommitted
drm/amdgpu: Show deferred error count for UMC
Show deferred error count for UMC syfs node Signed-off-by: Stanley.Yang <Stanley.Yang@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 776b095 commit 2c7a156

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,8 +632,12 @@ static ssize_t amdgpu_ras_sysfs_read(struct device *dev,
632632
dev_warn(obj->adev->dev, "Failed to reset error counter and error status");
633633
}
634634

635-
return sysfs_emit(buf, "%s: %lu\n%s: %lu\n", "ue", info.ue_count,
636-
"ce", info.ce_count);
635+
if (info.head.block == AMDGPU_RAS_BLOCK__UMC)
636+
return sysfs_emit(buf, "%s: %lu\n%s: %lu\n%s: %lu\n", "ue", info.ue_count,
637+
"ce", info.ce_count, "de", info.de_count);
638+
else
639+
return sysfs_emit(buf, "%s: %lu\n%s: %lu\n", "ue", info.ue_count,
640+
"ce", info.ce_count);
637641
}
638642

639643
/* obj begin */

0 commit comments

Comments
 (0)