[PATCH 1/2] drm/amdgpu: enable RAS IH for poison consumption
Ziya, Mohammad zafar
Mohammadzafar.Ziya at amd.com
Tue May 10 06:36:50 UTC 2022
[AMD Official Use Only - General]
Reviewed-by: Mohammad Zafar Ziya <Mohammadzafar.ziya at amd.com>
>-----Original Message-----
>From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> On Behalf Of Tao
>Zhou
>Sent: Tuesday, May 10, 2022 12:00 PM
>To: amd-gfx at lists.freedesktop.org; Ziya, Mohammad zafar
><Mohammadzafar.Ziya at amd.com>; Lazar, Lijo <Lijo.Lazar at amd.com>;
>Zhang, Hawking <Hawking.Zhang at amd.com>; Yang, Stanley
><Stanley.Yang at amd.com>; Chai, Thomas <YiPeng.Chai at amd.com>
>Cc: Zhou1, Tao <Tao.Zhou1 at amd.com>
>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 <tao.zhou1 at amd.com>
>---
> 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
More information about the amd-gfx
mailing list