drm/amdgpu: Need to disable msix when unloading driver
Subsystems (2)
PATCH 1/1 drm/amdgpu: Need to disable msix when unloading driver
For driver reload test, it will report "can't enable MSI (MSI-X already enabled)".
--- drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c +4 -0
@@ -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); }
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1573021089-14955-1-git-send-email-Emily.Deng-5C7GfCeVMHo@public.gmane.org
Sorry, please ignore this, will send another patch later.
Best wishes
Emily Deng
Quoted 32 lines
-----Original Message-----
From: Emily Deng <[email protected]>
Sent: Wednesday, November 6, 2019 2:18 PM
To: [email protected]
Cc: Deng, Emily <[email protected]>
Subject: [PATCH] drm/amdgpu: Need to disable msix when unloading driverFor driver reload test, it will report "can't enable MSI (MSI-X already enabled)".
Signed-off-by Emily Deng <[email protected]>---
drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c| 4 ++++1 file changed, 4 insertions(+)drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c +4
-1@@ -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); } --
Quoted 1 line
2.7.4
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx