diff options
author | Dani Liberman <dliberman@habana.ai> | 2023-09-18 14:48:48 +0300 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-21 19:41:16 +0300 |
commit | bc18dae50f165bc1c18284fe59d77dd00617b530 (patch) | |
tree | 9b6a8ff55ac9c672a221aa7511011664dc8d0245 /drivers/gpu/drm/xe/xe_irq.c | |
parent | 14d25d8d684d0196d160653659c5afbf5af777f0 (diff) | |
download | linux-bc18dae50f165bc1c18284fe59d77dd00617b530.tar.xz |
drm/xe: add msix support
In future devices we will need to support msix interrupts.
Reviewed-by: Ohad Sharabi <osharabi@habana.ai>
Signed-off-by: Dani Liberman <dliberman@habana.ai>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_irq.c')
-rw-r--r-- | drivers/gpu/drm/xe/xe_irq.c | 6 |
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; } |