diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2019-06-27 17:55:43 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2019-06-27 17:55:43 +0000 |
commit | 32cade518fa1930ef2acf6d3220fc6bf6d36f24e (patch) | |
tree | 96a862d9e523c4e78ce8a660d3f9be18e32cf3e8 | |
parent | 57ea03cd3b479a6302341e6d3e6110a6b13fc5b0 (diff) |
Enable MSI-X interrupts.
ok patrick@, sthen@
-rw-r--r-- | sys/dev/pci/nvme_pci.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/pci/nvme_pci.c b/sys/dev/pci/nvme_pci.c index 165f1a242de..77249ddba90 100644 --- a/sys/dev/pci/nvme_pci.c +++ b/sys/dev/pci/nvme_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nvme_pci.c,v 1.7 2018/01/10 15:45:46 jcs Exp $ */ +/* $OpenBSD: nvme_pci.c,v 1.8 2019/06/27 17:55:42 kettenis Exp $ */ /* * Copyright (c) 2014 David Gwynne <dlg@openbsd.org> @@ -105,7 +105,8 @@ nvme_pci_attach(struct device *parent, struct device *self, void *aux) return; } - if (pci_intr_map_msi(pa, &ih) != 0) { + if (pci_intr_map_msix(pa, 0, &ih) != 0 && + pci_intr_map_msi(pa, &ih) != 0) { if (pci_intr_map(pa, &ih) != 0) { printf(": unable to map interrupt\n"); goto unmap; |