diff options
author | 2024-01-17 11:49:35 +0800 | |
---|---|---|
committer | 2024-01-18 15:47:07 -0500 | |
commit | 2c7a1560e8a604c37df56fe48f50fb1f8ccbbf22 (patch) | |
tree | b686c68a5c4ca8a9d272d281fcb8df87b7d98421 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | |
parent | drm/amdgpu: Enable GFXOFF for Compute on GFX11 (diff) | |
download | linux-2c7a1560e8a604c37df56fe48f50fb1f8ccbbf22.tar.gz linux-2c7a1560e8a604c37df56fe48f50fb1f8ccbbf22.tar.bz2 linux-2c7a1560e8a604c37df56fe48f50fb1f8ccbbf22.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c index bf08a7744a4a..850cad69e4b7 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c @@ -632,8 +632,12 @@ static ssize_t amdgpu_ras_sysfs_read(struct device *dev, dev_warn(obj->adev->dev, "Failed to reset error counter and error status"); } - return sysfs_emit(buf, "%s: %lu\n%s: %lu\n", "ue", info.ue_count, - "ce", info.ce_count); + if (info.head.block == AMDGPU_RAS_BLOCK__UMC) + return sysfs_emit(buf, "%s: %lu\n%s: %lu\n%s: %lu\n", "ue", info.ue_count, + "ce", info.ce_count, "de", info.de_count); + else + return sysfs_emit(buf, "%s: %lu\n%s: %lu\n", "ue", info.ue_count, + "ce", info.ce_count); } /* obj begin */ |