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 <[EMAIL PROTECTED]> <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message