Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/jdolecek-ncq]: src/sys/dev/ic Allocate a full compliment of queue slots ...



details:   https://anonhg.NetBSD.org/src/rev/b9f7afb0d755
branches:  jdolecek-ncq
changeset: 822900:b9f7afb0d755
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Sun Apr 23 14:33:28 2017 +0000

description:
Allocate a full compliment of queue slots for each channel.

diffstat:

 sys/dev/ic/siisata.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r ed8a2eeda9c3 -r b9f7afb0d755 sys/dev/ic/siisata.c
--- a/sys/dev/ic/siisata.c      Sun Apr 23 14:25:02 2017 +0000
+++ b/sys/dev/ic/siisata.c      Sun Apr 23 14:33:28 2017 +0000
@@ -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 @@
        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 "



Home | Main Index | Thread Index | Old Index