diff options
| author | xinhui pan <[email protected]> | 2019-01-31 08:55:07 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2019-03-19 20:36:50 +0000 |
| commit | 36ea1bd2d084e43d4aea890ff2f41054776a9416 (patch) | |
| tree | 62c57a1322d14f31d505a8b9bbada95c2708052f /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | |
| parent | drm/amdgpu: add amdgpu_ras.c to support ras (v2) (diff) | |
| download | kernel-36ea1bd2d084e43d4aea890ff2f41054776a9416.tar.gz kernel-36ea1bd2d084e43d4aea890ff2f41054776a9416.zip | |
drm/amdgpu: add debugfs ctrl node
allow userspace enable/disable ras
Signed-off-by: xinhui pan <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h index d6d4bbb92a42..599dcd01aec7 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h @@ -86,6 +86,8 @@ struct amdgpu_ras { struct list_head head; /* debugfs */ struct dentry *dir; + /* debugfs ctrl */ + struct dentry *ent; /* sysfs */ struct device_attribute features_attr; /* block array */ @@ -135,6 +137,13 @@ struct ras_dispatch_if { struct amdgpu_iv_entry *entry; }; +struct ras_debug_if { + union { + struct ras_common_if head; + struct ras_inject_if inject; + }; + int op; +}; /* work flow * vbios * 1: ras feature enable (enabled by default) |
