aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
diff options
context:
space:
mode:
authorCe Sun <[email protected]>2025-07-11 09:57:25 +0000
committerAlex Deucher <[email protected]>2025-07-15 18:07:51 +0000
commit48cb9c3b21474864beb9e19cb4f7b4ccb50de77b (patch)
tree5f35c95a2c3e6593825edcabcd43cefdef20e57b /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
parentdrm/amdkfd: enable kfd on LoongArch systems (diff)
downloadkernel-48cb9c3b21474864beb9e19cb4f7b4ccb50de77b.tar.gz
kernel-48cb9c3b21474864beb9e19cb4f7b4ccb50de77b.zip
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 <[email protected]> Reviewed-by: Tao Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
index 183fa33c2434..8112ffc85995 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
@@ -624,7 +624,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)