Module Name: src Committed By: jakllsch Date: Sun Apr 23 14:33:28 UTC 2017
Modified Files: src/sys/dev/ic [jdolecek-ncq]: siisata.c Log Message: Allocate a full compliment of queue slots for each channel. To generate a diff of this commit: cvs rdiff -u -r1.30.4.10 -r1.30.4.11 src/sys/dev/ic/siisata.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/ic/siisata.c diff -u src/sys/dev/ic/siisata.c:1.30.4.10 src/sys/dev/ic/siisata.c:1.30.4.11 --- src/sys/dev/ic/siisata.c:1.30.4.10 Sun Apr 23 14:25:02 2017 +++ src/sys/dev/ic/siisata.c Sun Apr 23 14:33:28 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: siisata.c,v 1.30.4.10 2017/04/23 14:25:02 jakllsch Exp $ */ +/* $NetBSD: siisata.c,v 1.30.4.11 2017/04/23 14:33:28 jakllsch Exp $ */ /* from ahcisata_core.c */ @@ -79,7 +79,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: siisata.c,v 1.30.4.10 2017/04/23 14:25:02 jakllsch Exp $"); +__KERNEL_RCSID(0, "$NetBSD: siisata.c,v 1.30.4.11 2017/04/23 14:33:28 jakllsch Exp $"); #include <sys/types.h> #include <sys/param.h> @@ -290,7 +290,7 @@ siisata_attach_port(struct siisata_softc sc->sc_chanarray[port] = chp; chp->ch_channel = port; chp->ch_atac = &sc->sc_atac; - chp->ch_queue = ata_queue_alloc(1); // XXX + chp->ch_queue = ata_queue_alloc(SIISATA_MAX_SLOTS); if (chp->ch_queue == NULL) { aprint_error_dev(sc->sc_atac.atac_dev, "port %d: can't allocate memory "