[PATCH 1/3] drm/amdgpu: add poison consumption flag for RAS IH
Tao Zhou
tao.zhou1 at amd.com
Mon Apr 11 11:08:23 UTC 2022
So we can distinguish RAS poison consumption interrupt from UE
interrupt.
Signed-off-by: Tao Zhou <tao.zhou1 at amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
index 606df8869b89..380f4c3020c7 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
@@ -314,6 +314,11 @@ enum amdgpu_ras_ret {
AMDGPU_RAS_PT,
};
+enum amdgpu_ras_ih_flag {
+ AMDGPU_RAS_IH_POISON_CONSUMPTION = 0,
+ AMDGPU_RAS_IH_LAST,
+};
+
struct ras_common_if {
enum amdgpu_ras_block block;
enum amdgpu_ras_error_type type;
@@ -419,6 +424,8 @@ struct ras_ih_data {
unsigned int aligned_element_size;
unsigned int rptr;
unsigned int wptr;
+ /* interrupt type flag */
+ unsigned int flag;
};
struct ras_manager {
--
2.35.1
More information about the amd-gfx
mailing list