Commit 2a3c7ff6 authored by Tao Zhou's avatar Tao Zhou Committed by Alex Deucher

drm/amdgpu: update ras sysfs feature info

remove confused ras error type info
Signed-off-by: default avatarTao Zhou <tao.zhou1@amd.com>
Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 9234c587
...@@ -789,25 +789,18 @@ static ssize_t amdgpu_ras_sysfs_features_read(struct device *dev, ...@@ -789,25 +789,18 @@ static ssize_t amdgpu_ras_sysfs_features_read(struct device *dev,
struct amdgpu_device *adev = ddev->dev_private; struct amdgpu_device *adev = ddev->dev_private;
struct ras_common_if head; struct ras_common_if head;
int ras_block_count = AMDGPU_RAS_BLOCK_COUNT; int ras_block_count = AMDGPU_RAS_BLOCK_COUNT;
int i; int i, enabled;
ssize_t s; ssize_t s;
struct ras_manager *obj;
s = scnprintf(buf, PAGE_SIZE, "feature mask: 0x%x\n", con->features); s = scnprintf(buf, PAGE_SIZE, "feature mask: 0x%x\n", con->features);
for (i = 0; i < ras_block_count; i++) { for (i = 0; i < ras_block_count; i++) {
head.block = i; head.block = i;
enabled = amdgpu_ras_is_feature_enabled(adev, &head);
if (amdgpu_ras_is_feature_enabled(adev, &head)) { s += scnprintf(&buf[s], PAGE_SIZE - s,
obj = amdgpu_ras_find_obj(adev, &head); "%s ras feature mask: %s\n",
s += scnprintf(&buf[s], PAGE_SIZE - s, ras_block_str(i), enabled?"on":"off");
"%s: %s\n",
ras_block_str(i),
ras_err_str(obj->head.type));
} else
s += scnprintf(&buf[s], PAGE_SIZE - s,
"%s: disabled\n",
ras_block_str(i));
} }
return s; return s;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment