summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/ta_ras_if.h
diff options
context:
space:
mode:
authorJohn Clements <john.clements@amd.com>2021-04-21 09:01:54 +0200
committerAlex Deucher <alexander.deucher@amd.com>2021-04-23 23:15:33 +0200
commit7e882aee845fa11da043a2e7f872551763b3a9dc (patch)
tree15809b13b43f193d4db2feb11a192392ed18af66 /drivers/gpu/drm/amd/amdgpu/ta_ras_if.h
parentdrm/amdgpu: refine gprs init shaders to check coverage (diff)
downloadlinux-7e882aee845fa11da043a2e7f872551763b3a9dc.tar.xz
linux-7e882aee845fa11da043a2e7f872551763b3a9dc.zip
drm/amdgpu: add support for ras init flags
conditionally configure ras for dgpu mode or poison propogation mode Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: John Clements <john.clements@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/ta_ras_if.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/ta_ras_if.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/ta_ras_if.h b/drivers/gpu/drm/amd/amdgpu/ta_ras_if.h
index 745ed0fba1ed..0f214a398dd8 100644
--- a/drivers/gpu/drm/amd/amdgpu/ta_ras_if.h
+++ b/drivers/gpu/drm/amd/amdgpu/ta_ras_if.h
@@ -105,6 +105,12 @@ struct ta_ras_trigger_error_input {
uint64_t value; // method if error injection. i.e persistent, coherent etc.
};
+struct ta_ras_init_flags
+{
+ uint8_t poison_mode_en;
+ uint8_t dgpu_mode;
+};
+
struct ta_ras_output_flags
{
uint8_t ras_init_success_flag;
@@ -115,6 +121,7 @@ struct ta_ras_output_flags
/* Common input structure for RAS callbacks */
/**********************************************************/
union ta_ras_cmd_input {
+ struct ta_ras_init_flags init_flags;
struct ta_ras_enable_features_input enable_features;
struct ta_ras_disable_features_input disable_features;
struct ta_ras_trigger_error_input trigger_error;