diff options
author | 2019-06-27 17:55:42 +0000 | |
---|---|---|
committer | 2019-06-27 17:55:42 +0000 | |
commit | 0b246f0a8be0c9f1358641a05ce7468389c87bda (patch) | |
tree | 0666314afa51537f7fc478d89fccf3ea28e06e86 | |
parent | minor eol issues; (diff) | |
download | wireguard-openbsd-0b246f0a8be0c9f1358641a05ce7468389c87bda.tar.xz wireguard-openbsd-0b246f0a8be0c9f1358641a05ce7468389c87bda.zip |
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; |