From owner-freebsd-current@FreeBSD.ORG Mon Jun 25 02:39:39 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 88DB01065686 for ; Mon, 25 Jun 2012 02:39:39 +0000 (UTC) (envelope-from mj@feral.com) Received: from ns1.feral.com (ns1.feral.com [192.67.166.1]) by mx1.freebsd.org (Postfix) with ESMTP id 57E108FC12 for ; Mon, 25 Jun 2012 02:39:39 +0000 (UTC) Received: from [192.168.135.100] (c-76-126-166-136.hsd1.ca.comcast.net [76.126.166.136]) (authenticated bits=0) by ns1.feral.com (8.14.4/8.14.4) with ESMTP id q5P2dcKN097955 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sun, 24 Jun 2012 19:39:39 -0700 (PDT) (envelope-from mj@feral.com) Message-ID: <4FE7CF66.6000502@feral.com> Date: Sun, 24 Jun 2012 19:39:34 -0700 From: Matthew Jacob Organization: Feral Software User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: Manfred Antar , freebsd-current@freebsd.org References: <201206250218.q5P2IcUr001543@pozo.com> In-Reply-To: <201206250218.q5P2IcUr001543@pozo.com> Content-Type: multipart/mixed; boundary="------------070104040107010403090409" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (ns1.feral.com [192.67.166.1]); Sun, 24 Jun 2012 19:39:39 -0700 (PDT) Cc: Subject: Re: isp Tape Drive no longer detected X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matt Jacob List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jun 2012 02:39:39 -0000 This is a multi-part message in MIME format. --------------070104040107010403090409 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Actually, can you try this patch please? I won't be able to get to my lab and get a working 1040 card into a system until tomorrow. --------------070104040107010403090409 Content-Type: text/plain; charset=windows-1252; name="isp.c.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="isp.c.patch" diff -r 5aba1b04ddd5 isp.c --- a/isp.c Sun Jun 24 10:22:10 2012 -0700 +++ b/isp.c Sun Jun 24 19:36:06 2012 -0700 @@ -710,8 +710,11 @@ 0x6666, 0x6677, 0x1122, 0x33ff, 0x0000, 0x0001, 0x1000, 0x1010, }; + int nmbox = ISP_NMBOX(isp); + if (IS_SCSI(isp)) + nmbox = 6; MBSINIT(&mbs, MBOX_MAILBOX_REG_TEST, MBLOGALL, 0); - for (i = 1; i < ISP_NMBOX(isp); i++) { + for (i = 1; i < nmbox; i++) { mbs.param[i] = patterns[i]; } isp_mboxcmd(isp, &mbs); @@ -719,7 +722,7 @@ ISP_RESET0(isp); return; } - for (i = 1; i < ISP_NMBOX(isp); i++) { + for (i = 1; i < nmbox; i++) { if (mbs.param[i] != patterns[i]) { ISP_RESET0(isp); isp_prt(isp, ISP_LOGERR, "Register Test Failed at Register %d: should have 0x%04x but got 0x%04x", i, patterns[i], mbs.param[i]); --------------070104040107010403090409--