Commit 48cb9c3b authored by Ce Sun's avatar Ce Sun Committed by Alex Deucher
Browse files

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: default avatarCe Sun <cesun102@amd.com>
Reviewed-by: default avatarTao Zhou <tao.zhou1@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent fa301127
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)