From: jsg Date: Thu, 15 Jun 2023 03:03:34 +0000 (+0000) Subject: drm/amdgpu: drop gfx_v11_0_cp_ecc_error_irq_funcs X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=58659cb54e5a5afb10d07761ed3cf1f739005ee8;p=openbsd drm/amdgpu: drop gfx_v11_0_cp_ecc_error_irq_funcs From Horatio Zhang 7b5a8a23acbc3ee50b23602b61db1563561faf84 in linux-6.1.y/6.1.30 720b47229a5b24061d1c2e29ddb6043a59178d79 in mainline linux --- diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_gfx.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_gfx.c index aacff489489..df5255c4a00 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_gfx.c +++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_gfx.c @@ -685,9 +685,11 @@ int amdgpu_gfx_ras_late_init(struct amdgpu_device *adev, struct ras_common_if *r if (r) return r; - r = amdgpu_irq_get(adev, &adev->gfx.cp_ecc_error_irq, 0); - if (r) - goto late_fini; + if (adev->gfx.cp_ecc_error_irq.funcs) { + r = amdgpu_irq_get(adev, &adev->gfx.cp_ecc_error_irq, 0); + if (r) + goto late_fini; + } } else { amdgpu_ras_feature_enable_on_boot(adev, ras_block, 0); }