aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
diff options
context:
space:
mode:
authorTao Zhou <[email protected]>2021-09-17 10:24:09 +0000
committerAlex Deucher <[email protected]>2021-09-28 13:30:07 +0000
commite43488493cbb46e862f83c66887f3e6cb854c6f0 (patch)
tree1fc7e3f0c6aa1e68ad9809abbbc43d51e1e2fa2b /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
parentdrm/amdgpu: add poison mode query for UMC (diff)
downloadkernel-e43488493cbb46e862f83c66887f3e6cb854c6f0.tar.gz
kernel-e43488493cbb46e862f83c66887f3e6cb854c6f0.zip
drm/amdgpu: set poison supported flag for RAS (v2)
Add RAS poison supported flag and tell PSP RAS TA about the info. v2: rename poison mode to poison supported, we can also disable poison mode even we support it. print value of poison supported if ras feature enablement fails. Signed-off-by: Tao Zhou <[email protected]> Reviewed-by: Hawking Zhang <[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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
index 37b3c40272b4..e36f4de9fa55 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
@@ -351,6 +351,9 @@ struct amdgpu_ras {
/* disable ras error count harvest in recovery */
bool disable_ras_err_cnt_harvest;
+ /* is poison mode supported */
+ bool poison_supported;
+
/* RAS count errors delayed work */
struct delayed_work ras_counte_delay_work;
atomic_t ras_ue_count;
@@ -646,4 +649,6 @@ int amdgpu_persistent_edc_harvesting_supported(struct amdgpu_device *adev);
const char *get_ras_block_str(struct ras_common_if *ras_block);
+bool amdgpu_ras_is_poison_mode_supported(struct amdgpu_device *adev);
+
#endif