Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Sep 2002 13:55:21 -0400 (EDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        current@FreeBSD.org
Subject:   Call for testers for mlx(4) patch
Message-ID:  <XFMail.20020911135521.jhb@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
Can people please test the following patch also available at
http://www.FreeBSD.org/~jhb/patches/mlx.patch

It fixes problems when using older Mylex controllers in Alphas,
but I'd like to make sure it doesn't break mlx(4) for other
folks before committing.  Mike Smith has given the patch a once
over as well.  Thanks.

Index: dev/mlx/mlx_disk.c
===================================================================
RCS file: /usr/cvs/src/sys/dev/mlx/mlx_disk.c,v
retrieving revision 1.22
diff -u -r1.22 mlx_disk.c
--- dev/mlx/mlx_disk.c  12 Sep 2001 08:37:08 -0000      1.22
+++ dev/mlx/mlx_disk.c  9 Sep 2002 14:22:52 -0000
@@ -264,11 +264,15 @@
 
     /* 
      * Set maximum I/O size to the lesser of the recommended maximum and the practical
-     * maximum.
+     * maximum except on v2 cards where the maximum is set to 8 pages.
      */
-    s1 = sc->mlxd_controller->mlx_enq2->me_maxblk * MLX_BLKSIZE;
-    s2 = (sc->mlxd_controller->mlx_enq2->me_max_sg - 1) * PAGE_SIZE;
-    dsk->si_iosize_max = imin(s1, s2);
+    if (sc->mlxd_controller->mlx_iftype == MLX_IFTYPE_2)
+       dsk->si_iosize_max = 8 * PAGE_SIZE;
+    else {
+       s1 = sc->mlxd_controller->mlx_enq2->me_maxblk * MLX_BLKSIZE;
+       s2 = (sc->mlxd_controller->mlx_enq2->me_max_sg - 1) * PAGE_SIZE;
+       dsk->si_iosize_max = imin(s1, s2);
+    }
 
     return (0);
 }

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20020911135521.jhb>