Module Name: src Committed By: jdolecek Date: Sun Jul 5 19:28:37 UTC 2020
Modified Files: src/sys/dev/pci: ciss_pci.c Log Message: there is more to MSI/MSI-X support in ciss(4) than just allocating the right interrupt, it needs some explicit support; disable for now until the full support is there PR kern/55461 To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/sys/dev/pci/ciss_pci.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/ciss_pci.c diff -u src/sys/dev/pci/ciss_pci.c:1.16 src/sys/dev/pci/ciss_pci.c:1.17 --- src/sys/dev/pci/ciss_pci.c:1.16 Sat Jul 4 14:49:24 2020 +++ src/sys/dev/pci/ciss_pci.c Sun Jul 5 19:28:37 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: ciss_pci.c,v 1.16 2020/07/04 14:49:24 jdolecek Exp $ */ +/* $NetBSD: ciss_pci.c,v 1.17 2020/07/05 19:28:37 jdolecek Exp $ */ /* $OpenBSD: ciss_pci.c,v 1.9 2005/12/13 15:56:01 brad Exp $ */ /* @@ -19,7 +19,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ciss_pci.c,v 1.16 2020/07/04 14:49:24 jdolecek Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ciss_pci.c,v 1.17 2020/07/05 19:28:37 jdolecek Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -263,7 +263,7 @@ ciss_pci_attach(device_t parent, device_ struct ciss_softc *sc = device_private(self); struct pci_attach_args *pa = aux; bus_size_t size, cfgsz; - pci_intr_handle_t *ih; + pci_intr_handle_t ih; const char *intrstr; int cfg_bar, memtype; pcireg_t reg = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_SUBSYS_ID_REG); @@ -339,16 +339,16 @@ ciss_pci_attach(device_t parent, device_ bus_space_read_4(sc->sc_iot, sc->sc_ioh, CISS_IMR) | sc->iem); #endif - if (pci_intr_alloc(pa, &ih, NULL, 0) != 0) { + if (pci_intr_map(pa, &ih)) { aprint_error_dev(self, "can't map interrupt\n"); bus_space_unmap(sc->sc_iot, sc->sc_ioh, size); if (cfg_bar != CISS_BAR) bus_space_unmap(sc->sc_iot, sc->cfg_ioh, cfgsz); return; } - intrstr = pci_intr_string(pa->pa_pc, ih[0], intrbuf, sizeof(intrbuf)); - sc->sc_ih = pci_intr_establish_xname(pa->pa_pc, ih[0], IPL_BIO, - ciss_intr, sc, device_xname(self)); + intrstr = pci_intr_string(pa->pa_pc, ih, intrbuf, sizeof(intrbuf)); + sc->sc_ih = pci_intr_establish_xname(pa->pa_pc, ih, IPL_BIO, ciss_intr, + sc, device_xname(self)); if (!sc->sc_ih) { aprint_error_dev(sc->sc_dev, "can't establish interrupt"); if (intrstr)