Commit bc18dae5 authored by Dani Liberman's avatar Dani Liberman Committed by Rodrigo Vivi

drm/xe: add msix support

In future devices we will need to support msix interrupts.
Reviewed-by: default avatarOhad Sharabi <osharabi@habana.ai>
Signed-off-by: default avatarDani Liberman <dliberman@habana.ai>
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent 14d25d8d
...@@ -582,16 +582,16 @@ int xe_irq_install(struct xe_device *xe) ...@@ -582,16 +582,16 @@ int xe_irq_install(struct xe_device *xe)
xe_irq_reset(xe); xe_irq_reset(xe);
err = pci_alloc_irq_vectors(pdev, 1, 1, PCI_IRQ_MSI); err = pci_alloc_irq_vectors(pdev, 1, 1, PCI_IRQ_MSI | PCI_IRQ_MSIX);
if (err < 0) { if (err < 0) {
drm_err(&xe->drm, "MSI: Failed to enable support %d\n", err); drm_err(&xe->drm, "MSI/MSIX: Failed to enable support %d\n", err);
return err; return err;
} }
irq = pci_irq_vector(pdev, 0); irq = pci_irq_vector(pdev, 0);
err = request_irq(irq, irq_handler, IRQF_SHARED, DRIVER_NAME, xe); err = request_irq(irq, irq_handler, IRQF_SHARED, DRIVER_NAME, xe);
if (err < 0) { if (err < 0) {
drm_err(&xe->drm, "Failed to request MSI IRQ %d\n", err); drm_err(&xe->drm, "Failed to request MSI/MSIX IRQ %d\n", err);
goto free_pci_irq_vectors; goto free_pci_irq_vectors;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment