From owner-freebsd-current Wed Sep 11 10:55:58 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5DE4E37B400 for ; Wed, 11 Sep 2002 10:55:54 -0700 (PDT) Received: from mail.speakeasy.net (mail12.speakeasy.net [216.254.0.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF37343E72 for ; Wed, 11 Sep 2002 10:55:53 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 6190 invoked from network); 11 Sep 2002 17:55:49 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail12.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 11 Sep 2002 17:55:49 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.5/8.12.5) with ESMTP id g8BHtKBv035724 for ; Wed, 11 Sep 2002 13:55:28 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Wed, 11 Sep 2002 13:55:21 -0400 (EDT) From: John Baldwin To: current@FreeBSD.org Subject: Call for testers for mlx(4) patch Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 <>< 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