[AMD Official Use Only - General]
Reviewed-by: Mohammad Zafar Ziya <[email protected]> >-----Original Message----- >From: amd-gfx <[email protected]> On Behalf Of Tao >Zhou >Sent: Tuesday, May 10, 2022 12:00 PM >To: [email protected]; Ziya, Mohammad zafar ><[email protected]>; Lazar, Lijo <[email protected]>; >Zhang, Hawking <[email protected]>; Yang, Stanley ><[email protected]>; Chai, Thomas <[email protected]> >Cc: Zhou1, Tao <[email protected]> >Subject: [PATCH 1/2] drm/amdgpu: enable RAS IH for poison consumption > >Enable RAS IH if poison consumption handler is implemented. > >Signed-off-by: Tao Zhou <[email protected]> >--- > drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c >b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c >index cac56f830aed..91d9e9969b4e 100644 >--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c >+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c >@@ -2516,7 +2516,9 @@ int amdgpu_ras_block_late_init(struct >amdgpu_device *adev, > return 0; > > ras_obj = container_of(ras_block, struct amdgpu_ras_block_object, >ras_comm); >- if (ras_obj->ras_cb) { >+ if (ras_obj->ras_cb || (ras_obj->hw_ops && >+ (ras_obj->hw_ops->query_poison_status || >+ ras_obj->hw_ops->handle_poison_consumption))) { > r = amdgpu_ras_interrupt_add_handler(adev, ras_block); > if (r) > goto cleanup; >-- >2.35.1
