RE: [PATCH] drm/amdgpu: Need to disable msix when unloading driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sorry, please ignore this, will send another patch later.

Best wishes
Emily Deng



>-----Original Message-----
>From: Emily Deng <Emily.Deng@xxxxxxx>
>Sent: Wednesday, November 6, 2019 2:18 PM
>To: amd-gfx@xxxxxxxxxxxxxxxxxxxxx
>Cc: Deng, Emily <Emily.Deng@xxxxxxx>
>Subject: [PATCH] drm/amdgpu: Need to disable msix when unloading driver
>
>For driver reload test, it will report "can't enable MSI (MSI-X already enabled)".
>
>Signed-off-by: Emily Deng <Emily.Deng@xxxxxxx>
>---
> drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
>diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
>b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
>index 6040eb3..48d9cf0d 100644
>--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
>+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
>@@ -325,7 +325,11 @@ void amdgpu_irq_fini(struct amdgpu_device *adev)
> 		drm_irq_uninstall(adev->ddev);
> 		adev->irq.installed = false;
> 		if (adev->irq.msi_enabled)
>+#ifdef PCI_IRQ_MSI
>+			pci_free_irq_vectors(adev->pdev);
>+#else
> 			pci_disable_msi(adev->pdev);
>+#endif
> 		if (!amdgpu_device_has_dc_support(adev))
> 			flush_work(&adev->hotplug_work);
> 	}
>--
>2.7.4

_______________________________________________
amd-gfx mailing list
amd-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/amd-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux