drm/amdgpu : enable msix for amdgpu driver
Subsystems (2)
PATCH 1/1 drm/amdgpu : enable msix for amdgpu driver
We might used out of the msi resources in some cloud project which have a lot gpu devices(including PF and VF), msix can provide enough resources from system level view
--- drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c +3 -2
@@ -245,8 +245,9 @@ int amdgpu_irq_init(struct amdgpu_device *adev) adev->irq.msi_enabled = false;if (amdgpu_msi_ok (adev)) { -int ret =pci_enable_msi (adev->pdev); -if (!ret) { +int nvec =pci_alloc_irq_vectors (adev->pdev,1 ,pci_msix_vec_count (adev->pdev), + PCI_IRQ_MSI | PCI_IRQ_MSIX) +if (nvec >0 ) { adev->irq.msi_enabled = true;dev_dbg (adev->dev,"amdgpu: using MSI.\n" ); }
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): 1569960219-8027-1-git-send-email-shaoyun.liu-5C7GfCeVMHo@public.gmane.org
Deucher, Alexander
Reviewed-by________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of Liu, Shaoyun <[email protected]>
Sent: Tuesday, October 1, 2019 4:03 PM
To: [email protected] <[email protected]>
Cc: Liu, Shaoyun <[email protected]>
Subject: [PATCH] drm/amdgpu : enable msix for amdgpu driver
We might used out of the msi resources in some cloud project which have a lot gpu devices(including PF and VF), msix can provide enough resources from system level view
--- drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c +3 -2
@@ -245,8 +245,9 @@ int amdgpu_irq_init(struct amdgpu_device *adev) adev->irq.msi_enabled = false;if (amdgpu_msi_ok (adev)) { -int ret =pci_enable_msi (adev->pdev); -if (!ret) { +int nvec =pci_alloc_irq_vectors (adev->pdev,1 ,pci_msix_vec_count (adev->pdev), + PCI_IRQ_MSI | PCI_IRQ_MSIX) +if (nvec >0 ) { adev->irq.msi_enabled = true;dev_dbg (adev->dev,"amdgpu: using MSI.\n" ); }
--
2.7.4
_______________________________________________
amd-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx