diff options
author | Jonathan Matthew <jmatthew@cvs.openbsd.org> | 2019-05-30 05:55:11 +0000 |
---|---|---|
committer | Jonathan Matthew <jmatthew@cvs.openbsd.org> | 2019-05-30 05:55:11 +0000 |
commit | 272656806e59d132171172caf23a15398e8aa4e3 (patch) | |
tree | 7ea9932972ec7a78ed7ef5717183f05dbed3e73f /sys | |
parent | 7b89a3bb07ba6d0ff4e3d50bd88921d81c96056e (diff) |
Mellanox support tells me that according to an internal datasheet, legacy
interrupts are not supported, leaving us with just MSI-X for mcx(4).
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_mcx.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/dev/pci/if_mcx.c b/sys/dev/pci/if_mcx.c index eeafccf3322..7ed759bc9cd 100644 --- a/sys/dev/pci/if_mcx.c +++ b/sys/dev/pci/if_mcx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_mcx.c,v 1.12 2019/05/30 03:56:26 jmatthew Exp $ */ +/* $OpenBSD: if_mcx.c,v 1.13 2019/05/30 05:55:10 jmatthew Exp $ */ /* * Copyright (c) 2017 David Gwynne <dlg@openbsd.org> @@ -2198,9 +2198,12 @@ mcx_attach(struct device *parent, struct device *self, void *aux) goto teardown; } - /* PRM makes no mention of msi interrupts, just legacy and msi-x */ - if (pci_intr_map_msix(pa, 0, &sc->sc_ih) != 0 && - pci_intr_map(pa, &sc->sc_ih) != 0) { + /* + * PRM makes no mention of msi interrupts, just legacy and msi-x. + * mellanox support tells me legacy interrupts are not supported, + * so we're stuck with just msi-x. + */ + if (pci_intr_map_msix(pa, 0, &sc->sc_ih) != 0) { printf(": unable to map interrupt\n"); goto teardown; } |