aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDani Liberman <[email protected]>2023-09-18 14:48:48 +0300
committerRodrigo Vivi <[email protected]>2023-12-21 11:41:16 -0500
commitbc18dae50f165bc1c18284fe59d77dd00617b530 (patch)
tree9b6a8ff55ac9c672a221aa7511011664dc8d0245
parent14d25d8d684d0196d160653659c5afbf5af777f0 (diff)
drm/xe: add msix support
In future devices we will need to support msix interrupts. Reviewed-by: Ohad Sharabi <[email protected]> Signed-off-by: Dani Liberman <[email protected]> Signed-off-by: Rodrigo Vivi <[email protected]>
-rw-r--r--drivers/gpu/drm/xe/xe_irq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/xe/xe_irq.c b/drivers/gpu/drm/xe/xe_irq.c
index 82ddf9d84a56..a91e782e06eb 100644
--- a/drivers/gpu/drm/xe/xe_irq.c
+++ b/drivers/gpu/drm/xe/xe_irq.c
@@ -582,16 +582,16 @@ int xe_irq_install(struct xe_device *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) {
- 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;
}
irq = pci_irq_vector(pdev, 0);
err = request_irq(irq, irq_handler, IRQF_SHARED, DRIVER_NAME, xe);
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;
}