[PATCH] drm/amdgpu: The interrupt source was not released
Zhou1, Tao
Tao.Zhou1 at amd.com
Fri Jul 11 10:46:15 UTC 2025
[AMD Official Use Only - AMD Internal Distribution Only]
Reviewed-by: Tao Zhou <tao.zhou1 at amd.com>
> -----Original Message-----
> From: Sun, Ce(Overlord) <Ce.Sun at amd.com>
> Sent: Friday, July 11, 2025 6:16 PM
> To: amd-gfx at lists.freedesktop.org
> Cc: Zhang, Hawking <Hawking.Zhang at amd.com>; Zhou1, Tao
> <Tao.Zhou1 at amd.com>; Sun, Ce(Overlord) <Ce.Sun at amd.com>
> Subject: [PATCH] drm/amdgpu: The interrupt source was not released
>
> When the driver is unloaded, the interrupt source of the rma device is not released,
> resulting in the failure of hw_init when loading again using bad_page_threshold.
>
> Signed-off-by: Ce Sun <cesun102 at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
> index cdffe4a1559f..80cb8865c02d 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
> @@ -622,7 +622,7 @@ int amdgpu_irq_put(struct amdgpu_device *adev, struct
> amdgpu_irq_src *src,
> unsigned int type)
> {
> /* When the threshold is reached,the interrupt source may not be
> enabled.return -EINVAL */
> - if (amdgpu_ras_is_rma(adev))
> + if (amdgpu_ras_is_rma(adev) && !amdgpu_irq_enabled(adev, src, type))
> return -EINVAL;
>
> if (!adev->irq.installed)
> --
> 2.34.1
More information about the amd-gfx
mailing list