From owner-freebsd-scsi@FreeBSD.ORG Thu Sep 15 15:33:06 2005 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B33CC16A41F for ; Thu, 15 Sep 2005 15:33:06 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA37F43D5D for ; Thu, 15 Sep 2005 15:33:02 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.14] (imini.samsco.home [192.168.254.14]) (authenticated bits=0) by pooker.samsco.org (8.13.3/8.13.3) with ESMTP id j8FFWxNW089781; Thu, 15 Sep 2005 09:32:59 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <4329942A.4010705@samsco.org> Date: Thu, 15 Sep 2005 09:32:58 -0600 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.7) Gecko/20050416 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andrew Heybey References: <20050915085350.3a14cb88@stiegl.mj.niksun.com> In-Reply-To: <20050915085350.3a14cb88@stiegl.mj.niksun.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on pooker.samsco.org Cc: freebsd-scsi@freebsd.org Subject: Re: LUN probing problem with 6.0-BETA4 and seagate drive X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Sep 2005 15:33:06 -0000 Andrew Heybey wrote: > I just upgraded a box from 5.3 to 6.0-BETA4. > > I have this drive on the system: > > da5 at ahc1 bus 0 target 0 lun 0 > da5: Fixed Direct Access SCSI-3 device > da5: 40.000MB/s transfers (20.000MHz, offset 63, 16bit) > da5: 34732MB (71132960 512 byte sectors: 255H 63S/T 4427C) > > I think that the "SX" means it has EMC firmware (not sure of the drives > history, it is an ebay purchase). > > It is attached to this HBA: > > ahc1: port 0x6000-0x60ff mem 0xfc001000-0xfc001fff irq 17 at device 4.1 on pci1 > > With 5.3 it worked fine. With 6.0-BETA4, I get 200+ iterations of this message at boot time: > > Sep 13 14:26:45 spaten kernel: SEQADDR == 0x16c > Sep 13 14:26:45 spaten kernel: ahc1:A:0: Message reject for 80 -- ignored > Sep 13 14:26:45 spaten kernel: (probe0:ahc1:0:0:56): Unexpected busfree in Message-in phase > Sep 13 14:26:45 spaten kernel: SEQADDR == 0x16c > Sep 13 14:26:45 spaten kernel: ahc1:A:0: Message reject for 80 -- ignored > Sep 13 14:26:45 spaten kernel: (probe0:ahc1:0:0:57): Unexpected busfree in Message-in phase > > I worked around the problem by applying the following patch to sys/cam/cam_xpt.c: > > Index: cam_xpt.c > =================================================================== > RCS file: /usr/local/repos/fbsdcvs/src/sys/cam/cam_xpt.c,v > retrieving revision 1.155 > diff -u -u -r1.155 cam_xpt.c > --- cam_xpt.c 1 Jul 2005 15:21:29 -0000 1.155 > +++ cam_xpt.c 15 Sep 2005 12:47:06 -0000 > @@ -477,6 +477,15 @@ > }, > { > /* > + * This Seagate drive with EMC firmware causes > + * "Unexpected busfree" and "message reject" > + * messages at boot time when LUNs are probed. > + */ > + { T_DIRECT, SIP_MEDIA_FIXED, "SEAGATE", "SX336704*", "*" }, > + CAM_QUIRK_NOLUNS, /*mintags*/0, /*maxtags*/0 > + }, > + { > + /* > * The Hitachi CJ series with J8A8 firmware apparantly has > * problems with tagged commands. > * PR: 23536 > > Is this the correct thing to do, or is there a bug in the ahc driver? I am > curious why I get "Unexpected busfree" messages with 6.0-BETA4 and not with > 5.3. If the quirk is the right thing to do, it should probably be "SX*"... > > andrew This problem is likely due to the more agressive lun scanning that was added a few months ago. It is currently being reviewed and fixed right now, so stay tuned. I expect it to be fixed when BETA5 is built. Scott