Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Reserve a CCB for the driver. Stops the annoying...



details:   https://anonhg.NetBSD.org/src/rev/3d1de32ab4c4
branches:  trunk
changeset: 777596:3d1de32ab4c4
user:      mhitch <mhitch%NetBSD.org@localhost>
date:      Fri Feb 24 18:04:51 2012 +0000

description:
Reserve a CCB for the driver.  Stops the annoying cac0: unable to alloc CCB
messages.

diffstat:

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

diffs (27 lines):

diff -r 6b02012ad27c -r 3d1de32ab4c4 sys/dev/ic/ld_cac.c
--- a/sys/dev/ic/ld_cac.c       Fri Feb 24 18:00:09 2012 +0000
+++ b/sys/dev/ic/ld_cac.c       Fri Feb 24 18:04:51 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ld_cac.c,v 1.26 2012/02/02 19:43:03 tls Exp $  */
+/*     $NetBSD: ld_cac.c,v 1.27 2012/02/24 18:04:51 mhitch Exp $       */
 
 /*-
  * Copyright (c) 2000, 2006 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ld_cac.c,v 1.26 2012/02/02 19:43:03 tls Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ld_cac.c,v 1.27 2012/02/24 18:04:51 mhitch Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -103,7 +103,7 @@
 
        ld->sc_secsize = CAC_GET2(dinfo.secsize);
        ld->sc_maxxfer = CAC_MAX_XFER;
-       ld->sc_maxqueuecnt = CAC_MAX_CCBS / cac->sc_nunits;     /* XXX */
+       ld->sc_maxqueuecnt = (CAC_MAX_CCBS - 1) / cac->sc_nunits;
        ld->sc_secperunit = CAC_GET2(dinfo.ncylinders) *
            CAC_GET1(dinfo.nheads) * CAC_GET1(dinfo.nsectors);
        ld->sc_start = ld_cac_start;



Home | Main Index | Thread Index | Old Index