Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Drop 512 bytes limit on auvia_round_blocksize().



details:   https://anonhg.NetBSD.org/src/rev/b02c38cf050c
branches:  trunk
changeset: 745321:b02c38cf050c
user:      isaki <isaki%NetBSD.org@localhost>
date:      Fri Feb 28 13:31:03 2020 +0000

description:
Drop 512 bytes limit on auvia_round_blocksize().
This fixes attach on 6 channels device.
PR kern/55017.

diffstat:

 sys/dev/pci/auvia.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r 88ea59c282a6 -r b02c38cf050c sys/dev/pci/auvia.c
--- a/sys/dev/pci/auvia.c       Fri Feb 28 13:18:25 2020 +0000
+++ b/sys/dev/pci/auvia.c       Fri Feb 28 13:31:03 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: auvia.c,v 1.84 2019/06/08 08:02:38 isaki Exp $ */
+/*     $NetBSD: auvia.c,v 1.85 2020/02/28 13:31:03 isaki Exp $ */
 
 /*-
  * Copyright (c) 2000, 2008 The NetBSD Foundation, Inc.
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: auvia.c,v 1.84 2019/06/08 08:02:38 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: auvia.c,v 1.85 2020/02/28 13:31:03 isaki Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -749,8 +749,7 @@
        if (sc->sc_flags & AUVIA_FLAGS_VT8233 && blk < 288)
                blk = 288;
 
-       /* Avoid too many dma_ops. */
-       return uimin((blk & -32), AUVIA_MINBLKSZ);
+       return (blk & -32);
 }
 
 static int



Home | Main Index | Thread Index | Old Index