summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
diff options
context:
space:
mode:
authorAsad Kamal <asad.kamal@amd.com>2023-10-02 09:41:00 +0300
committerAlex Deucher <alexander.deucher@amd.com>2023-10-13 18:02:54 +0300
commit625e5f3851b78ddcf1bbcfb74ea39edcdaf07d3d (patch)
tree9146e53073aa7f21914d9b61d7ee3ee8ef353a00 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
parentd4a02673b3f06502ed6fa61bb6d9afeb31b668a2 (diff)
downloadlinux-625e5f3851b78ddcf1bbcfb74ea39edcdaf07d3d.tar.xz
drm/amdgpu: Expose ras version & schema info
Expose ras table version & schema info to sysfs v2: Updated schema to get poison support info from ras context, removed asic specific checks Signed-off-by: Asad Kamal <asad.kamal@amd.com> Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
index 7999d202c9bc..728f98c6fc1c 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
@@ -389,9 +389,12 @@ struct amdgpu_ras {
/* ras infrastructure */
/* for ras itself. */
uint32_t features;
+ uint32_t schema;
struct list_head head;
/* sysfs */
struct device_attribute features_attr;
+ struct device_attribute version_attr;
+ struct device_attribute schema_attr;
struct bin_attribute badpages_attr;
struct dentry *de_ras_eeprom_table;
/* block array */