From owner-freebsd-scsi Sun Aug 11 2: 6:37 2002 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 F25B637B400 for ; Sun, 11 Aug 2002 02:06:34 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8407B43E5E for ; Sun, 11 Aug 2002 02:06:33 -0700 (PDT) (envelope-from j@uriah.heep.sax.de) Received: (from uucp@localhost) by sax.sax.de (8.9.3/8.9.3) with UUCP id KAA06554 for freebsd-scsi@freebsd.org; Sun, 11 Aug 2002 10:40:05 +0200 (CEST) Received: (from j@localhost) by uriah.heep.sax.de (8.11.6/8.11.6) id g7B8anB02408 for freebsd-scsi@freebsd.org; Sun, 11 Aug 2002 10:36:50 +0200 (MET DST) (envelope-from j) Date: Sun, 11 Aug 2002 10:36:49 +0200 From: Joerg Wunsch To: freebsd-scsi@freebsd.org Subject: Tekram DC-395 driver maintenance Message-ID: <20020811103649.G39683@uriah.heep.sax.de> Reply-To: Joerg Wunsch Mail-Followup-To: Joerg Wunsch , freebsd-scsi@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Gerrit Kuehn sponsored me his Tekram DC-395U adapter card after he's been unsuccessful to get it properly running together with his MO drive and the Tekram-provided driver. I once promised him that i could perhaps take over maintenance for it provided i own the appropriate hardware. ;-) For those who are not familiar with the Tekram product line, that's the controller series where they are employing an ASIC of their own for the controller (TRM-S1040), while in most other controller boards, they're using Symbios Logic chips that are supported well by our sym(4) driver. In the course of investigating his problems, i eventually found out that there was one serious bug in that driver: upon detecting a CHECK CONDITION, they didn't set the appropriate CAM error flag (CAM_SCSI_STATUS_ERROR), so the CAM layer never bothered to handle the error at all. This was non-fatal as long as the attached devices never issued a CHECK CONDITION :), but naturally, even a missing MO medium at initialisation time caused the upper layers to assume the device were ready, and they started to interpret garbage data as valid numbers, which eventually would lead to an integer divide by zero fault in the geometry calculation. I did a few other minor changes, like renaming the driver from the overly long "tekram_trm" to just "trm". Still, the code looks a bit strange to us (Hungarian notation, 4-position hard tabs) since it's just vendor-supplied code. Would anybody have strong objections for me to import the code into our tree, under the promise that i could keep track of future vendor submissions? I guess there's no room on the bootfloppy to include it by default, but maybe we could arrange for a third bootfloppy containing loadable modules some day, so that would extend the list of supported controllers. -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Mon Aug 12 3:53:11 2002 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 BCD4037B400 for ; Mon, 12 Aug 2002 03:53:09 -0700 (PDT) Received: from thoth.sbs.de (thoth.sbs.de [192.35.17.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E22543E3B for ; Mon, 12 Aug 2002 03:53:08 -0700 (PDT) (envelope-from andre.albsmeier@mchp.siemens.de) Received: from mail3.siemens.de (mail3.siemens.de [139.25.208.14]) by thoth.sbs.de (8.11.6/8.11.6) with ESMTP id g7CAr7Q12902 for ; Mon, 12 Aug 2002 12:53:07 +0200 (MEST) Received: from curry.mchp.siemens.de (curry.mchp.siemens.de [139.25.42.7]) by mail3.siemens.de (8.11.6/8.11.6) with ESMTP id g7CAr6D15709 for ; Mon, 12 Aug 2002 12:53:06 +0200 (MEST) Received: (from localhost) by curry.mchp.siemens.de (8.12.5/8.12.5) id g7CAr6t7058615; Date: Mon, 12 Aug 2002 12:53:06 +0200 From: Andre Albsmeier To: freebsd-scsi@freebsd.org Cc: Andre.Albsmeier@mchp.siemens.de Subject: Using FreeBSD to monitor SCSI traffic Message-ID: <20020812125306.A46653@curry.mchp.siemens.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i X-Echelon: BND CIA NSA Mossad KGB MI6 IRA detonator nuclear assault strike Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I have a win32 program to update the firmware on a specific SCSI device. I assume, it uses the "Write Buffer 0x3B" command but I don't know the exact parameters. I want to include this device in my SCSI firmware update tool which runs under FreeBSD and already supports some devices. Maybe one of the SCSI specialists (Justin, Ken, ...) has an idea if the following scenario could work: I use a standard winblows box with an 29160 Controller to update the device in question. To the SCSI same cable I attach another machine running FreeBSD. Is it possible to make the FreeBSD box watch and report the traffic on the SCSI bus? Will there be any problems since I now have two initiators attached to the same bus? I assume, I have to use CAM_DEBUG in my kernel to see anything at all... Thanks, -Andre To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Mon Aug 12 5: 6:28 2002 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 8ED0D37B400; Mon, 12 Aug 2002 05:06:23 -0700 (PDT) Received: from noe.warszawa.mtl.pl (noe.warszawa.multinet.pl [213.241.3.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id F2FF343E6E; Mon, 12 Aug 2002 05:06:14 -0700 (PDT) (envelope-from mgryszkalis@cerint.pl) Received: by noe.warszawa.mtl.pl (Postfix, from userid 1007) id CF4567DF4C; Mon, 12 Aug 2002 14:06:08 +0200 (CEST) Received: from cerint.pl (systemy237.toya.net.pl [217.113.225.237]) by arka.warszawa.mtl.pl (Postfix) with ESMTP id 800E0EA78D; Mon, 12 Aug 2002 14:06:07 +0200 (CEST) Message-ID: <3D57A4BA.9060104@cerint.pl> Date: Mon, 12 Aug 2002 14:06:18 +0200 From: Marcin Gryszkalis Organization: Cerint Technology Group User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1b) Gecko/20020806 X-Accept-Language: en-us, en, pl MIME-Version: 1.0 Cc: freebsd-scsi@FreeBSD.ORG, freebsd-alpha Subject: Re: da driver problem? References: <3D5280F4.8030706@cerint.pl> <20020808152922.A18763@panzer.kdm.org> <3D53BD58.1060600@cerint.pl> <20020809130749.GJ52932@cicely5.cicely.de> <3D53C01A.1050702@cerint.pl> <20020809151159.GV52932@cicely5.cicely.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-AntiVirus: Poczta jest monitorowana oprogramowaniem antywirusowym. Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi Today I rebooted the box with ispfw.ko loaded but it didn't help :( Assignment is still the same (all da* to first hdd). I also booted 4.5-stable kernel (build from April 27) and it went ok (reight assignment, second disc visible). Other thing - I saw this in messages: isp0: states=> GOT_BUS GOT_TGT status=> isp0: transport error for 0.1.0: states=> GOT_BUS GOT_TGT status=> but it may be becuse / was full (because some directories from the other hdd were not mounted and my scripts were writing to /). So, what now? regards marcin -- Marcin Gryszkalis or To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Mon Aug 12 5:24:52 2002 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 2DDD737B400; Mon, 12 Aug 2002 05:24:48 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 13D2F43E6A; Mon, 12 Aug 2002 05:24:47 -0700 (PDT) (envelope-from ticso@cicely5.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) by srv1.cosmo-project.de (8.12.5/8.12.5) with ESMTP id g7CCOU0Z091178 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Mon, 12 Aug 2002 14:24:32 +0200 (CEST) (envelope-from ticso@cicely5.cicely.de) Received: from cicely5.cicely.de (localhost [IPv6:::1]) by cicely5.cicely.de (8.12.1/8.12.1) with ESMTP id g7CCOTFJ059332 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Mon, 12 Aug 2002 14:24:29 +0200 (CEST)?g (envelope-from ticso@cicely5.cicely.de) Received: (from ticso@localhost) by cicely5.cicely.de (8.12.1/8.12.1/Submit) id g7CCOT1g059331; Mon, 12 Aug 2002 14:24:29 +0200 (CEST)?g (envelope-from ticso) Date: Mon, 12 Aug 2002 14:24:28 +0200 From: Bernd Walter To: Marcin Gryszkalis Cc: freebsd-scsi@FreeBSD.ORG, freebsd-alpha Subject: Re: da driver problem? Message-ID: <20020812122428.GF55760@cicely5.cicely.de> Reply-To: ticso@cicely.de References: <3D5280F4.8030706@cerint.pl> <20020808152922.A18763@panzer.kdm.org> <3D53BD58.1060600@cerint.pl> <20020809130749.GJ52932@cicely5.cicely.de> <3D53C01A.1050702@cerint.pl> <20020809151159.GV52932@cicely5.cicely.de> <3D57A4BA.9060104@cerint.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D57A4BA.9060104@cerint.pl> X-Operating-System: FreeBSD cicely5.cicely.de 5.0-CURRENT i386 User-Agent: Mutt/1.5.1i Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Aug 12, 2002 at 02:06:18PM +0200, Marcin Gryszkalis wrote: > Hi > Today I rebooted the box with ispfw.ko loaded but > it didn't help :( > Assignment is still the same (all da* to first hdd). > > I also booted 4.5-stable kernel (build from April 27) > and it went ok (reight assignment, second disc visible). > > Other thing - I saw this in messages: > > isp0: states=> GOT_BUS GOT_TGT > status=> > isp0: transport error for 0.1.0: > states=> GOT_BUS GOT_TGT > status=> Not surprising - I guess id 1 is your second disk, which failed, because the controller and the first hd share id 0. You should fix the isp nvram table. IIRC srm has support to edit these values. Another option would be to give disk id 0 a new id and leave the controller on 0. > but it may be becuse / was full (because > some directories from the other hdd were > not mounted and my scripts were writing > to /). No the filesystem has nothing to do with the scsi layer. -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Mon Aug 12 6:50:59 2002 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 46A2437B400; Mon, 12 Aug 2002 06:50:56 -0700 (PDT) Received: from noe.warszawa.mtl.pl (noe.warszawa.multinet.pl [213.241.3.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8195043E65; Mon, 12 Aug 2002 06:50:55 -0700 (PDT) (envelope-from mgryszkalis@cerint.pl) Received: by noe.warszawa.mtl.pl (Postfix, from userid 1007) id 036607DF6E; Mon, 12 Aug 2002 15:51:07 +0200 (CEST) Received: from cerint.pl (systemy237.toya.net.pl [217.113.225.237]) by arka.warszawa.mtl.pl (Postfix) with ESMTP id 095D0EA78E; Mon, 12 Aug 2002 15:51:05 +0200 (CEST) Message-ID: <3D57BD52.1@cerint.pl> Date: Mon, 12 Aug 2002 15:51:14 +0200 From: Marcin Gryszkalis Organization: Cerint Technology Group User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1b) Gecko/20020806 X-Accept-Language: en-us, en, pl MIME-Version: 1.0 To: ticso@cicely.de Cc: freebsd-scsi@FreeBSD.ORG, freebsd-alpha Subject: Re: da driver problem? References: <3D5280F4.8030706@cerint.pl> <20020808152922.A18763@panzer.kdm.org> <3D53BD58.1060600@cerint.pl> <20020809130749.GJ52932@cicely5.cicely.de> <3D53C01A.1050702@cerint.pl> <20020809151159.GV52932@cicely5.cicely.de> <3D57A4BA.9060104@cerint.pl> <20020812122428.GF55760@cicely5.cicely.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-AntiVirus: Poczta jest monitorowana oprogramowaniem antywirusowym. Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Bernd Walter wrote: > You should fix the isp nvram table. > IIRC srm has support to edit these values. > Another option would be to give disk id 0 a new id and leave > the controller on 0. But as I mentioned I booted 4.5 kernel without ANY changes in configuration and it worked ok. So - obviously - changes made since April are deadly for my little box. Matthew Jacob is the one who touched isp driver lately so maybe he can think about other solution. -- Marcin Gryszkalis or To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Mon Aug 12 7: 5:49 2002 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 AB37837B400; Mon, 12 Aug 2002 07:05:45 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id B2C4E43E4A; Mon, 12 Aug 2002 07:05:44 -0700 (PDT) (envelope-from ticso@cicely5.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) by srv1.cosmo-project.de (8.12.5/8.12.5) with ESMTP id g7CE5b0Z092187 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Mon, 12 Aug 2002 16:05:40 +0200 (CEST) (envelope-from ticso@cicely5.cicely.de) Received: from cicely5.cicely.de (localhost [IPv6:::1]) by cicely5.cicely.de (8.12.1/8.12.1) with ESMTP id g7CE5ZFJ059922 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Mon, 12 Aug 2002 16:05:35 +0200 (CEST)?g (envelope-from ticso@cicely5.cicely.de) Received: (from ticso@localhost) by cicely5.cicely.de (8.12.1/8.12.1/Submit) id g7CE5YWb059920; Mon, 12 Aug 2002 16:05:34 +0200 (CEST)?g (envelope-from ticso) Date: Mon, 12 Aug 2002 16:05:34 +0200 From: Bernd Walter To: Marcin Gryszkalis Cc: ticso@cicely.de, freebsd-scsi@FreeBSD.ORG, freebsd-alpha Subject: Re: da driver problem? Message-ID: <20020812140533.GG55760@cicely5.cicely.de> Reply-To: ticso@cicely.de References: <3D5280F4.8030706@cerint.pl> <20020808152922.A18763@panzer.kdm.org> <3D53BD58.1060600@cerint.pl> <20020809130749.GJ52932@cicely5.cicely.de> <3D53C01A.1050702@cerint.pl> <20020809151159.GV52932@cicely5.cicely.de> <3D57A4BA.9060104@cerint.pl> <20020812122428.GF55760@cicely5.cicely.de> <3D57BD52.1@cerint.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D57BD52.1@cerint.pl> X-Operating-System: FreeBSD cicely5.cicely.de 5.0-CURRENT i386 User-Agent: Mutt/1.5.1i Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Aug 12, 2002 at 03:51:14PM +0200, Marcin Gryszkalis wrote: > Bernd Walter wrote: > >You should fix the isp nvram table. > >IIRC srm has support to edit these values. > > >Another option would be to give disk id 0 a new id and leave > >the controller on 0. > > But as I mentioned I booted 4.5 kernel without > ANY changes in configuration and it worked ok. > So - obviously - changes made since April > are deadly for my little box. Working without propper NVRAM values can produce undefined results. The driver tells you that the current values are dissagreeing. > Matthew Jacob is the one who touched isp driver lately > so maybe he can think about other solution. I almost shure he can do. But why should the driver work around a missconfigured device? Why not just fix the device configuration? -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Mon Aug 12 7:38:53 2002 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 3D2DD37B400; Mon, 12 Aug 2002 07:38:51 -0700 (PDT) Received: from noe.warszawa.mtl.pl (noe.warszawa.multinet.pl [213.241.3.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB44A43E70; Mon, 12 Aug 2002 07:38:49 -0700 (PDT) (envelope-from mgryszkalis@cerint.pl) Received: by noe.warszawa.mtl.pl (Postfix, from userid 1007) id 758687DF8A; Mon, 12 Aug 2002 16:39:00 +0200 (CEST) Received: from cerint.pl (systemy237.toya.net.pl [217.113.225.237]) by arka.warszawa.mtl.pl (Postfix) with ESMTP id 830A7EA78E; Mon, 12 Aug 2002 16:38:58 +0200 (CEST) Message-ID: <3D57C88C.5010003@cerint.pl> Date: Mon, 12 Aug 2002 16:39:08 +0200 From: Marcin Gryszkalis Organization: Cerint Technology Group User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1b) Gecko/20020806 X-Accept-Language: en-us, en, pl MIME-Version: 1.0 To: ticso@cicely.de Cc: freebsd-scsi@FreeBSD.ORG, freebsd-alpha Subject: Re: da driver problem? References: <3D5280F4.8030706@cerint.pl> <20020808152922.A18763@panzer.kdm.org> <3D53BD58.1060600@cerint.pl> <20020809130749.GJ52932@cicely5.cicely.de> <3D53C01A.1050702@cerint.pl> <20020809151159.GV52932@cicely5.cicely.de> <3D57A4BA.9060104@cerint.pl> <20020812122428.GF55760@cicely5.cicely.de> <3D57BD52.1@cerint.pl> <20020812140533.GG55760@cicely5.cicely.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-AntiVirus: Poczta jest monitorowana oprogramowaniem antywirusowym. Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Bernd Walter wrote: > Working without propper NVRAM values can produce undefined results. > The driver tells you that the current values are dissagreeing. > But why should the driver work around a missconfigured device? > Why not just fix the device configuration? I agree but I don't know proper NVRAM values (I assume that when I get to srm the help will tell me how to change them). Where to search for info? ("invalid nvram header" doesn't give many hits in google - mainly A.Gallatin's dmesgs ;-) ) -- Marcin Gryszkalis or To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Mon Aug 12 9: 4:23 2002 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 47CFD37B400 for ; Mon, 12 Aug 2002 09:04:21 -0700 (PDT) Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 706A843E75 for ; Mon, 12 Aug 2002 09:04:20 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: from panzer.kdm.org (localhost [127.0.0.1]) by panzer.kdm.org (8.12.5/8.12.5) with ESMTP id g7CG4JKD044000; Mon, 12 Aug 2002 10:04:19 -0600 (MDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.12.5/8.12.5/Submit) id g7CG4IgR043999; Mon, 12 Aug 2002 10:04:18 -0600 (MDT) (envelope-from ken) Date: Mon, 12 Aug 2002 10:04:18 -0600 From: "Kenneth D. Merry" To: Andre Albsmeier Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: Using FreeBSD to monitor SCSI traffic Message-ID: <20020812100418.A43928@panzer.kdm.org> References: <20020812125306.A46653@curry.mchp.siemens.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020812125306.A46653@curry.mchp.siemens.de>; from andre.albsmeier@mchp.siemens.de on Mon, Aug 12, 2002 at 12:53:06PM +0200 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Aug 12, 2002 at 12:53:06 +0200, Andre Albsmeier wrote: > I have a win32 program to update the firmware on a specific SCSI > device. I assume, it uses the "Write Buffer 0x3B" command but I > don't know the exact parameters. I want to include this device > in my SCSI firmware update tool which runs under FreeBSD and > already supports some devices. > > Maybe one of the SCSI specialists (Justin, Ken, ...) has an idea > if the following scenario could work: > > I use a standard winblows box with an 29160 Controller to update > the device in question. To the SCSI same cable I attach another > machine running FreeBSD. Is it possible to make the FreeBSD box > watch and report the traffic on the SCSI bus? Will there be > any problems since I now have two initiators attached to the > same bus? I assume, I have to use CAM_DEBUG in my kernel to > see anything at all... I don't think you can really put a SCSI device in "promiscuous" mode, to use the networking term. Generally you've got one initiator and one target for communication over the bus. What you really want is a bus analyzer, but they're pretty expensive. (Although you might be able to find a previous generation bus analyzer, say an Ultra or Ultra2 analyzer, for not too much money.) You could also do it with something like a passthrough disk emulator. Basically, you run a target mode device on the SCSI bus in question, and pass all SCSI requests out to the disk you're trying to update on another SCSI bus. When they go through the FreeBSD system, you can log whatever you want. I believe Nate Lawson is working on the target mode code, you might want to contact him and see if his code might be a starting point for something like this. (If you want to write code for it -- my guess is that there isn't anything out there for FreeBSD that'll do what you want out of the box.) Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Mon Aug 12 10:17:19 2002 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 53D1F37B400; Mon, 12 Aug 2002 10:17:14 -0700 (PDT) Received: from beppo.feral.com (beppo.feral.com [192.67.166.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id C08EE43E9C; Mon, 12 Aug 2002 10:17:13 -0700 (PDT) (envelope-from mjacob@feral.com) Received: from mailhost.feral.com (mjacob@mailhost.feral.com [192.67.166.1]) by beppo.feral.com (8.11.3/8.11.3) with ESMTP id g7CHGxY97096; Mon, 12 Aug 2002 10:16:59 -0700 (PDT) (envelope-from mjacob@feral.com) Date: Mon, 12 Aug 2002 10:16:58 -0700 (PDT) From: Matthew Jacob X-Sender: mjacob@beppo Reply-To: mjacob@feral.com To: Marcin Gryszkalis Cc: ticso@cicely.de, freebsd-scsi@FreeBSD.ORG, freebsd-alpha Subject: ISP Nvram [ was 'da driver problem?' ] In-Reply-To: <3D57BD52.1@cerint.pl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, 12 Aug 2002, Marcin Gryszkalis wrote: > Bernd Walter wrote: > > You should fix the isp nvram table. > > IIRC srm has support to edit these values. > > > Another option would be to give disk id 0 a new id and leave > > the controller on 0. > > But as I mentioned I booted 4.5 kernel without > ANY changes in configuration and it worked ok. > So - obviously - changes made since April > are deadly for my little box. Dunno what changed. > Matthew Jacob is the one who touched isp driver lately > so maybe he can think about other solution. Interrupt the boot process and at the loader prompt do set isp_debug=0x1f and boot (or fail to boot) and send us the output. Or add set isp_no_nvram=0x1 to keep NVRAM from being read. You haven't said whether you're now loading isp firmware or not. -matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Mon Aug 12 10:47:12 2002 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 6BE5337B401; Mon, 12 Aug 2002 10:47:08 -0700 (PDT) Received: from freebie.xs4all.nl (freebie.xs4all.nl [213.84.32.253]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5CCD743E65; Mon, 12 Aug 2002 10:47:07 -0700 (PDT) (envelope-from wkb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (localhost [127.0.0.1]) by freebie.xs4all.nl (8.12.5/8.12.2) with ESMTP id g7CHjlH4001873; Mon, 12 Aug 2002 19:47:02 +0200 (CEST) (envelope-from wkb@freebie.xs4all.nl) Received: (from wkb@localhost) by freebie.xs4all.nl (8.12.5/8.12.5/Submit) id g7CHjlYm001872; Mon, 12 Aug 2002 19:45:47 +0200 (CEST) Date: Mon, 12 Aug 2002 19:45:47 +0200 From: Wilko Bulte To: Marcin Gryszkalis Cc: ticso@cicely.de, freebsd-scsi@FreeBSD.ORG, freebsd-alpha Subject: Re: da driver problem? Message-ID: <20020812194547.A1841@freebie.xs4all.nl> References: <20020808152922.A18763@panzer.kdm.org> <3D53BD58.1060600@cerint.pl> <20020809130749.GJ52932@cicely5.cicely.de> <3D53C01A.1050702@cerint.pl> <20020809151159.GV52932@cicely5.cicely.de> <3D57A4BA.9060104@cerint.pl> <20020812122428.GF55760@cicely5.cicely.de> <3D57BD52.1@cerint.pl> <20020812140533.GG55760@cicely5.cicely.de> <3D57C88C.5010003@cerint.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3D57C88C.5010003@cerint.pl>; from mgryszkalis@cerint.pl on Mon, Aug 12, 2002 at 04:39:08PM +0200 X-OS: FreeBSD 4.6-STABLE X-PGP: finger wilko@freebsd.org Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Aug 12, 2002 at 04:39:08PM +0200, Marcin Gryszkalis wrote: > Bernd Walter wrote: > > Working without propper NVRAM values can produce undefined results. > > The driver tells you that the current values are dissagreeing. > > > But why should the driver work around a missconfigured device? > > Why not just fix the device configuration? > > I agree but I don't know proper NVRAM values (I assume that > when I get to srm the help will tell me how to change them). > Where to search for info? ("invalid nvram header" doesn't > give many hits in google - mainly A.Gallatin's dmesgs ;-) ) Stick the Qlogic card into a PC, and fix the nvram settings from the builtin Qlogic BIOS. I had to do that once, worked fine. -- | / o / /_ _ wilko@FreeBSD.org |/|/ / / /( (_) Bulte Arnhem, the Netherlands To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Mon Aug 12 11:31: 7 2002 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 E505937B400 for ; Mon, 12 Aug 2002 11:31:04 -0700 (PDT) Received: from goliath.siemens.de (goliath.siemens.de [192.35.17.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7399343E6E for ; Mon, 12 Aug 2002 11:31:03 -0700 (PDT) (envelope-from andre.albsmeier@mchp.siemens.de) Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by goliath.siemens.de (8.11.6/8.11.6) with ESMTP id g7CIV2517716; Mon, 12 Aug 2002 20:31:02 +0200 (MEST) Received: from curry.mchp.siemens.de (curry.mchp.siemens.de [139.25.42.7]) by mail1.siemens.de (8.11.6/8.11.6) with ESMTP id g7CIV1o12587; Mon, 12 Aug 2002 20:31:01 +0200 (MEST) Received: (from localhost) by curry.mchp.siemens.de (8.12.5/8.12.5) id g7CIV1t7063241; Date: Mon, 12 Aug 2002 20:31:00 +0200 From: Andre Albsmeier To: "Kenneth D. Merry" Cc: Andre Albsmeier , freebsd-scsi@FreeBSD.ORG Subject: Re: Using FreeBSD to monitor SCSI traffic Message-ID: <20020812203100.A1450@curry.mchp.siemens.de> References: <20020812125306.A46653@curry.mchp.siemens.de> <20020812100418.A43928@panzer.kdm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020812100418.A43928@panzer.kdm.org>; from ken@kdm.org on Mon, Aug 12, 2002 at 10:04:18AM -0600 X-Echelon: BND CIA NSA Mossad KGB MI6 IRA detonator nuclear assault strike Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, 12-Aug-2002 at 10:04:18 -0600, Kenneth D. Merry wrote: > On Mon, Aug 12, 2002 at 12:53:06 +0200, Andre Albsmeier wrote: > > I have a win32 program to update the firmware on a specific SCSI > > device. I assume, it uses the "Write Buffer 0x3B" command but I > > don't know the exact parameters. I want to include this device > > in my SCSI firmware update tool which runs under FreeBSD and > > already supports some devices. > > > > Maybe one of the SCSI specialists (Justin, Ken, ...) has an idea > > if the following scenario could work: > > > > I use a standard winblows box with an 29160 Controller to update > > the device in question. To the SCSI same cable I attach another > > machine running FreeBSD. Is it possible to make the FreeBSD box > > watch and report the traffic on the SCSI bus? Will there be > > any problems since I now have two initiators attached to the > > same bus? I assume, I have to use CAM_DEBUG in my kernel to > > see anything at all... > > I don't think you can really put a SCSI device in "promiscuous" mode, to > use the networking term. Generally you've got one initiator and one target > for communication over the bus. > > What you really want is a bus analyzer, but they're pretty expensive. Yes, unfortunately. > (Although you might be able to find a previous generation bus analyzer, say > an Ultra or Ultra2 analyzer, for not too much money.) Well, I didn't want to put any money into that. As I said, I just wanted to teach my firmware upgrade tool how to download the fw to another brand of CDROM drives. I can still use the supplied DOS tool. I even found a DLL that replaces the normal winaspi.dll and logs stuff to some file. But the vendor only supports a DOS tool for downloading the fw so I am lost here. (Yes, I wrote that I have a WIN32 tool but I was wrong :-(). > > You could also do it with something like a passthrough disk emulator. > Basically, you run a target mode device on the SCSI bus in question, and > pass all SCSI requests out to the disk you're trying to update on another > SCSI bus. When they go through the FreeBSD system, you can log whatever > you want. > > I believe Nate Lawson is working on the target mode code, > you might want to contact him and see if his code might be a starting point > for something like this. (If you want to write code for it -- my guess is > that there isn't anything out there for FreeBSD that'll do what you want > out of the box.) That sounds interesting. Unfortunately, I can't spend a lot of time for playing around. Thanks a lot for your information, Ken. -Andre To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Mon Aug 12 12: 5:51 2002 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 1D5D937B400; Mon, 12 Aug 2002 12:05:48 -0700 (PDT) Received: from noe.warszawa.mtl.pl (noe.warszawa.multinet.pl [213.241.3.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B40243E7B; Mon, 12 Aug 2002 12:05:46 -0700 (PDT) (envelope-from mgryszkalis@cerint.pl) Received: by noe.warszawa.mtl.pl (Postfix, from userid 1007) id B4FFC7DFF8; Mon, 12 Aug 2002 21:05:56 +0200 (CEST) Received: from cerint.pl (systemy237.toya.net.pl [217.113.225.237]) by arka.warszawa.mtl.pl (Postfix) with ESMTP id 11F3CEA707; Mon, 12 Aug 2002 21:05:54 +0200 (CEST) Message-ID: <3D58071B.6070901@cerint.pl> Date: Mon, 12 Aug 2002 21:06:03 +0200 From: Marcin Gryszkalis Organization: Cerint Technology Group User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1b) Gecko/20020806 X-Accept-Language: en-us, en, pl MIME-Version: 1.0 To: mjacob@feral.com Cc: freebsd-alpha , freebsd-scsi@FreeBSD.ORG Subject: Re: ISP Nvram [ was 'da driver problem?' ] References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-AntiVirus: Poczta jest monitorowana oprogramowaniem antywirusowym. Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Matthew Jacob wrote: > Interrupt the boot process and at the loader prompt do > set isp_debug=0x1f > and boot (or fail to boot) and send us the output. > Or add > set isp_no_nvram=0x1 > to keep NVRAM from being read. I'll try... (I'll be able to do it on wednesday). > You haven't said whether you're now loading isp firmware or not. I loaded ispfw.ko (w/o any difference). Preloaded elf kernel "kernel" at 0xfffffc0000600000. Preloaded elf module "ispfw.ko" at 0xfffffc00006000c0. ... isp0: port 0x10000-0x100ff mem 0x82018000-0x82018fff irq 12 at device 9.0 on pci0 isp0: interrupting at CIA irq 12 isp0: invalid NVRAM header da0 at isp0 bus 0 target 1 lun 0 da0: Fixed Direct Access SCSI-2 device da0: 20.000MB/s transfers (10.000MHz, offset 12, 16bit), Tagged Queueing Enabled da0: 4091MB (8380080 512 byte sectors: 255H 63S/T 521C) da1 at isp0 bus 0 target 2 lun 0 da1: Fixed Direct Access SCSI-2 device da1: 20.000MB/s transfers (10.000MHz, offset 12, 16bit), Tagged Queueing Enabled da1: 4091MB (8380080 512 byte sectors: 255H 63S/T 521C) ... -- Marcin Gryszkalis or To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Mon Aug 12 12:13:19 2002 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 917B337B400; Mon, 12 Aug 2002 12:13:13 -0700 (PDT) Received: from qescan2.qgraph.com (QESCAN2.qgraph.com [206.158.124.8]) by mx1.FreeBSD.org (Postfix) with SMTP id E751243E65; Mon, 12 Aug 2002 12:13:12 -0700 (PDT) (envelope-from Aaron.Schroeder@qg.com) Received: from 192.168.200.29 by qescan2.qgraph.com (InterScan E-Mail VirusWall NT); Mon, 12 Aug 2002 14:12:39 -0500 Received: by sxsmtp2.qgraph.com with Internet Mail Service (5.5.2656.59) id ; Mon, 12 Aug 2002 14:12:39 -0500 Message-ID: <025596A38A894B45AFE62346A6BF47464E29A8@waexch1.qgraph.com> From: "Schroeder, Aaron" To: 'Marcin Gryszkalis' , mjacob@feral.com Cc: freebsd-alpha , freebsd-scsi@FreeBSD.ORG Subject: loader.conf for Miata sound [ was: ISP Nvram [ was 'da driver pro blem?' ]] Date: Mon, 12 Aug 2002 14:12:38 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2656.59) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Sorry for the off topic post/reply. So, I created a /boot/loader.conf, and I enabled the ispfw option. (Did nothing for my tape drive problem, OBTW. I now have it on a separate card, a Symbios 810) However, I noticed that the sound no longer works on my machine. I have a Miata with the on-board ESS1888 sound card. What option would I enable to get said sound card to work again? I tried just enabling all of them with the last option 'snd_load="YES"' and that crashes my machine upon boot-up with a memory management fault. Any ideas? TIA, AJ Schroeder -----Original Message----- From: Marcin Gryszkalis [mailto:mgryszkalis@cerint.pl] Sent: Monday, August 12, 2002 2:06 PM To: mjacob@feral.com Cc: freebsd-alpha; freebsd-scsi@FreeBSD.ORG Subject: Re: ISP Nvram [ was 'da driver problem?' ] Matthew Jacob wrote: > Interrupt the boot process and at the loader prompt do > set isp_debug=0x1f > and boot (or fail to boot) and send us the output. > Or add > set isp_no_nvram=0x1 > to keep NVRAM from being read. I'll try... (I'll be able to do it on wednesday). > You haven't said whether you're now loading isp firmware or not. I loaded ispfw.ko (w/o any difference). Preloaded elf kernel "kernel" at 0xfffffc0000600000. Preloaded elf module "ispfw.ko" at 0xfffffc00006000c0. ... isp0: port 0x10000-0x100ff mem 0x82018000-0x82018fff irq 12 at device 9.0 on pci0 isp0: interrupting at CIA irq 12 isp0: invalid NVRAM header da0 at isp0 bus 0 target 1 lun 0 da0: Fixed Direct Access SCSI-2 device da0: 20.000MB/s transfers (10.000MHz, offset 12, 16bit), Tagged Queueing Enabled da0: 4091MB (8380080 512 byte sectors: 255H 63S/T 521C) da1 at isp0 bus 0 target 2 lun 0 da1: Fixed Direct Access SCSI-2 device da1: 20.000MB/s transfers (10.000MHz, offset 12, 16bit), Tagged Queueing Enabled da1: 4091MB (8380080 512 byte sectors: 255H 63S/T 521C) ... -- Marcin Gryszkalis or To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Mon Aug 12 12:14:35 2002 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 A8EC837B400; Mon, 12 Aug 2002 12:14:30 -0700 (PDT) Received: from beppo.feral.com (beppo.feral.com [192.67.166.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id EEC7743E4A; Mon, 12 Aug 2002 12:14:29 -0700 (PDT) (envelope-from mjacob@feral.com) Received: from mailhost.feral.com (mjacob@mailhost.feral.com [192.67.166.1]) by beppo.feral.com (8.11.3/8.11.3) with ESMTP id g7CJEPY63470; Mon, 12 Aug 2002 12:14:25 -0700 (PDT) (envelope-from mjacob@feral.com) Date: Mon, 12 Aug 2002 12:14:25 -0700 (PDT) From: Matthew Jacob X-Sender: mjacob@beppo Reply-To: mjacob@feral.com To: Marcin Gryszkalis Cc: freebsd-alpha , freebsd-scsi@FreeBSD.ORG Subject: Re: ISP Nvram [ was 'da driver problem?' ] In-Reply-To: <3D58071B.6070901@cerint.pl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hmm. If it's claiming invalid NVRAM header, than reasonable defaults should be being picked. On Mon, 12 Aug 2002, Marcin Gryszkalis wrote: > Matthew Jacob wrote: > > Interrupt the boot process and at the loader prompt do > > set isp_debug=0x1f > > and boot (or fail to boot) and send us the output. > > Or add > > set isp_no_nvram=0x1 > > to keep NVRAM from being read. > > I'll try... (I'll be able to do it on wednesday). > > > You haven't said whether you're now loading isp firmware or not. > I loaded ispfw.ko (w/o any difference). > > Preloaded elf kernel "kernel" at 0xfffffc0000600000. > Preloaded elf module "ispfw.ko" at 0xfffffc00006000c0. > ... > isp0: port 0x10000-0x100ff mem > 0x82018000-0x82018fff irq 12 at device 9.0 on pci0 > isp0: interrupting at CIA irq 12 > isp0: invalid NVRAM header > da0 at isp0 bus 0 target 1 lun 0 > da0: Fixed Direct Access SCSI-2 device > da0: 20.000MB/s transfers (10.000MHz, offset 12, 16bit), Tagged Queueing Enabled > da0: 4091MB (8380080 512 byte sectors: 255H 63S/T 521C) > da1 at isp0 bus 0 target 2 lun 0 > da1: Fixed Direct Access SCSI-2 device > da1: 20.000MB/s transfers (10.000MHz, offset 12, 16bit), Tagged Queueing Enabled > da1: 4091MB (8380080 512 byte sectors: 255H 63S/T 521C) > > ... > > > > -- > Marcin Gryszkalis > or > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Mon Aug 12 12:27:36 2002 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 89D7837B400; Mon, 12 Aug 2002 12:27:32 -0700 (PDT) Received: from freebie.xs4all.nl (freebie.xs4all.nl [213.84.32.253]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8225943E72; Mon, 12 Aug 2002 12:27:31 -0700 (PDT) (envelope-from wkb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (localhost [127.0.0.1]) by freebie.xs4all.nl (8.12.5/8.12.2) with ESMTP id g7CJRHH4002349; Mon, 12 Aug 2002 21:27:22 +0200 (CEST) (envelope-from wkb@freebie.xs4all.nl) Received: (from wkb@localhost) by freebie.xs4all.nl (8.12.5/8.12.5/Submit) id g7CJRHwv002348; Mon, 12 Aug 2002 21:27:17 +0200 (CEST) Date: Mon, 12 Aug 2002 21:27:16 +0200 From: Wilko Bulte To: Marcin Gryszkalis Cc: mjacob@feral.com, freebsd-alpha , freebsd-scsi@FreeBSD.ORG Subject: Re: ISP Nvram [ was 'da driver problem?' ] Message-ID: <20020812212716.A2330@freebie.xs4all.nl> References: <3D58071B.6070901@cerint.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3D58071B.6070901@cerint.pl>; from mgryszkalis@cerint.pl on Mon, Aug 12, 2002 at 09:06:03PM +0200 X-OS: FreeBSD 4.6-STABLE X-PGP: finger wilko@freebsd.org Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Aug 12, 2002 at 09:06:03PM +0200, Marcin Gryszkalis wrote: > Matthew Jacob wrote: > > Interrupt the boot process and at the loader prompt do > > set isp_debug=0x1f > > and boot (or fail to boot) and send us the output. > > Or add > > set isp_no_nvram=0x1 > > to keep NVRAM from being read. > > I'll try... (I'll be able to do it on wednesday). > > > You haven't said whether you're now loading isp firmware or not. > I loaded ispfw.ko (w/o any difference). > > Preloaded elf kernel "kernel" at 0xfffffc0000600000. > Preloaded elf module "ispfw.ko" at 0xfffffc00006000c0. > ... > isp0: port 0x10000-0x100ff mem > 0x82018000-0x82018fff irq 12 at device 9.0 on pci0 > isp0: interrupting at CIA irq 12 > isp0: invalid NVRAM header > da0 at isp0 bus 0 target 1 lun 0 > da0: Fixed Direct Access SCSI-2 device > da0: 20.000MB/s transfers (10.000MHz, offset 12, 16bit), Tagged Queueing Enabled Martin, are these drives inside StorageWorks SBB containers? [I lost the beginning of this thread]. If yes, do you have a mix of RZ29B-VA and RZ29B-VW drives? -- | / o / /_ _ wilko@FreeBSD.org |/|/ / / /( (_) Bulte Arnhem, the Netherlands To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Mon Aug 12 12:33:49 2002 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 2A46B37B401; Mon, 12 Aug 2002 12:33:42 -0700 (PDT) Received: from qescan1.qgraph.com (QESCAN1.qgraph.com [206.158.124.7]) by mx1.FreeBSD.org (Postfix) with SMTP id 8F46843E77; Mon, 12 Aug 2002 12:33:41 -0700 (PDT) (envelope-from Aaron.Schroeder@qg.com) Received: from 192.168.200.28 by qescan1.qgraph.com (InterScan E-Mail VirusWall NT); Mon, 12 Aug 2002 14:33:24 -0500 Received: by sxsmtp1.qgraph.com with Internet Mail Service (5.5.2656.59) id ; Mon, 12 Aug 2002 14:33:24 -0500 Message-ID: <025596A38A894B45AFE62346A6BF47464E29AF@waexch1.qgraph.com> From: "Schroeder, Aaron" To: 'Wilko Bulte' , Marcin Gryszkalis Cc: mjacob@feral.com, freebsd-alpha , freebsd-scsi@FreeBSD.ORG Subject: RE: ISP Nvram [ was 'da driver problem?' ] Date: Mon, 12 Aug 2002 14:33:22 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2656.59) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Wilko, Are you thinking the same thing that I am? Wide and Narrow on the same bus = train wreck? AJ -----Original Message----- From: Wilko Bulte [mailto:wkb@freebie.xs4all.nl] Sent: Monday, August 12, 2002 2:27 PM To: Marcin Gryszkalis Cc: mjacob@feral.com; freebsd-alpha; freebsd-scsi@FreeBSD.ORG Subject: Re: ISP Nvram [ was 'da driver problem?' ] On Mon, Aug 12, 2002 at 09:06:03PM +0200, Marcin Gryszkalis wrote: > Matthew Jacob wrote: > > Interrupt the boot process and at the loader prompt do > > set isp_debug=0x1f > > and boot (or fail to boot) and send us the output. > > Or add > > set isp_no_nvram=0x1 > > to keep NVRAM from being read. > > I'll try... (I'll be able to do it on wednesday). > > > You haven't said whether you're now loading isp firmware or not. > I loaded ispfw.ko (w/o any difference). > > Preloaded elf kernel "kernel" at 0xfffffc0000600000. > Preloaded elf module "ispfw.ko" at 0xfffffc00006000c0. > ... > isp0: port 0x10000-0x100ff mem > 0x82018000-0x82018fff irq 12 at device 9.0 on pci0 > isp0: interrupting at CIA irq 12 > isp0: invalid NVRAM header > da0 at isp0 bus 0 target 1 lun 0 > da0: Fixed Direct Access SCSI-2 device > da0: 20.000MB/s transfers (10.000MHz, offset 12, 16bit), Tagged Queueing Enabled Martin, are these drives inside StorageWorks SBB containers? [I lost the beginning of this thread]. If yes, do you have a mix of RZ29B-VA and RZ29B-VW drives? -- | / o / /_ _ wilko@FreeBSD.org |/|/ / / /( (_) Bulte Arnhem, the Netherlands To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Mon Aug 12 12:35:30 2002 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 AC54E37B400; Mon, 12 Aug 2002 12:35:23 -0700 (PDT) Received: from beppo.feral.com (beppo.feral.com [192.67.166.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0746743E4A; Mon, 12 Aug 2002 12:35:23 -0700 (PDT) (envelope-from mjacob@feral.com) Received: from mailhost.feral.com (mjacob@mailhost.feral.com [192.67.166.1]) by beppo.feral.com (8.11.3/8.11.3) with ESMTP id g7CJZHY80031; Mon, 12 Aug 2002 12:35:17 -0700 (PDT) (envelope-from mjacob@feral.com) Date: Mon, 12 Aug 2002 12:35:17 -0700 (PDT) From: Matthew Jacob X-Sender: mjacob@beppo Reply-To: mjacob@feral.com To: "Schroeder, Aaron" Cc: "'Wilko Bulte'" , Marcin Gryszkalis , freebsd-alpha , freebsd-scsi@FreeBSD.ORG Subject: RE: ISP Nvram [ was 'da driver problem?' ] In-Reply-To: <025596A38A894B45AFE62346A6BF47464E29AF@waexch1.qgraph.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I'm sure he is. Unless properly segmented this usually doesn't work well. On Mon, 12 Aug 2002, Schroeder, Aaron wrote: > Wilko, > > Are you thinking the same thing that I am? Wide and Narrow on the same bus = > train wreck? > > AJ > > -----Original Message----- > From: Wilko Bulte [mailto:wkb@freebie.xs4all.nl] > Sent: Monday, August 12, 2002 2:27 PM > To: Marcin Gryszkalis > Cc: mjacob@feral.com; freebsd-alpha; freebsd-scsi@FreeBSD.ORG > Subject: Re: ISP Nvram [ was 'da driver problem?' ] > > > On Mon, Aug 12, 2002 at 09:06:03PM +0200, Marcin Gryszkalis wrote: > > Matthew Jacob wrote: > > > Interrupt the boot process and at the loader prompt do > > > set isp_debug=0x1f > > > and boot (or fail to boot) and send us the output. > > > Or add > > > set isp_no_nvram=0x1 > > > to keep NVRAM from being read. > > > > I'll try... (I'll be able to do it on wednesday). > > > > > You haven't said whether you're now loading isp firmware or not. > > I loaded ispfw.ko (w/o any difference). > > > > Preloaded elf kernel "kernel" at 0xfffffc0000600000. > > Preloaded elf module "ispfw.ko" at 0xfffffc00006000c0. > > ... > > isp0: port 0x10000-0x100ff mem > > 0x82018000-0x82018fff irq 12 at device 9.0 on pci0 > > isp0: interrupting at CIA irq 12 > > isp0: invalid NVRAM header > > da0 at isp0 bus 0 target 1 lun 0 > > da0: Fixed Direct Access SCSI-2 device > > da0: 20.000MB/s transfers (10.000MHz, offset 12, 16bit), Tagged Queueing > Enabled > > Martin, are these drives inside StorageWorks SBB containers? [I lost the > beginning of this thread]. If yes, do you have a mix of RZ29B-VA and > RZ29B-VW drives? > > -- > | / o / /_ _ wilko@FreeBSD.org > |/|/ / / /( (_) Bulte Arnhem, the Netherlands > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-alpha" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-alpha" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Mon Aug 12 12:36:48 2002 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 08B7E37B400; Mon, 12 Aug 2002 12:36:42 -0700 (PDT) Received: from freebie.xs4all.nl (freebie.xs4all.nl [213.84.32.253]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE31743E6A; Mon, 12 Aug 2002 12:36:40 -0700 (PDT) (envelope-from wkb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (localhost [127.0.0.1]) by freebie.xs4all.nl (8.12.5/8.12.2) with ESMTP id g7CJaaH4002468; Mon, 12 Aug 2002 21:36:36 +0200 (CEST) (envelope-from wkb@freebie.xs4all.nl) Received: (from wkb@localhost) by freebie.xs4all.nl (8.12.5/8.12.5/Submit) id g7CJaZDi002467; Mon, 12 Aug 2002 21:36:35 +0200 (CEST) Date: Mon, 12 Aug 2002 21:36:35 +0200 From: "'Wilko Bulte'" To: "Schroeder, Aaron" Cc: Marcin Gryszkalis , mjacob@feral.com, freebsd-alpha , freebsd-scsi@FreeBSD.ORG Subject: Re: ISP Nvram [ was 'da driver problem?' ] Message-ID: <20020812213635.A2453@freebie.xs4all.nl> References: <025596A38A894B45AFE62346A6BF47464E29AF@waexch1.qgraph.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <025596A38A894B45AFE62346A6BF47464E29AF@waexch1.qgraph.com>; from Aaron.Schroeder@qg.com on Mon, Aug 12, 2002 at 02:33:22PM -0500 X-OS: FreeBSD 4.6-STABLE X-PGP: finger wilko@freebsd.org Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Aug 12, 2002 at 02:33:22PM -0500, Schroeder, Aaron wrote: > Wilko, > > Are you thinking the same thing that I am? Wide and Narrow on the same bus = > train wreck? Yes, that was what I was wondering about. > AJ > > -----Original Message----- > From: Wilko Bulte [mailto:wkb@freebie.xs4all.nl] > Sent: Monday, August 12, 2002 2:27 PM > To: Marcin Gryszkalis > Cc: mjacob@feral.com; freebsd-alpha; freebsd-scsi@FreeBSD.ORG > Subject: Re: ISP Nvram [ was 'da driver problem?' ] > > > On Mon, Aug 12, 2002 at 09:06:03PM +0200, Marcin Gryszkalis wrote: > > Matthew Jacob wrote: > > > Interrupt the boot process and at the loader prompt do > > > set isp_debug=0x1f > > > and boot (or fail to boot) and send us the output. > > > Or add > > > set isp_no_nvram=0x1 > > > to keep NVRAM from being read. > > > > I'll try... (I'll be able to do it on wednesday). > > > > > You haven't said whether you're now loading isp firmware or not. > > I loaded ispfw.ko (w/o any difference). > > > > Preloaded elf kernel "kernel" at 0xfffffc0000600000. > > Preloaded elf module "ispfw.ko" at 0xfffffc00006000c0. > > ... > > isp0: port 0x10000-0x100ff mem > > 0x82018000-0x82018fff irq 12 at device 9.0 on pci0 > > isp0: interrupting at CIA irq 12 > > isp0: invalid NVRAM header > > da0 at isp0 bus 0 target 1 lun 0 > > da0: Fixed Direct Access SCSI-2 device > > da0: 20.000MB/s transfers (10.000MHz, offset 12, 16bit), Tagged Queueing > Enabled > > Martin, are these drives inside StorageWorks SBB containers? [I lost the > beginning of this thread]. If yes, do you have a mix of RZ29B-VA and > RZ29B-VW drives? > > -- > | / o / /_ _ wilko@FreeBSD.org > |/|/ / / /( (_) Bulte Arnhem, the Netherlands > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-alpha" in the body of the message ---end of quoted text--- -- | / o / /_ _ wilko@FreeBSD.org |/|/ / / /( (_) Bulte Arnhem, the Netherlands To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Mon Aug 12 12:37:28 2002 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 9119B37B406; Mon, 12 Aug 2002 12:37:21 -0700 (PDT) Received: from freebie.xs4all.nl (freebie.xs4all.nl [213.84.32.253]) by mx1.FreeBSD.org (Postfix) with ESMTP id 755BA43E3B; Mon, 12 Aug 2002 12:37:20 -0700 (PDT) (envelope-from wkb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (localhost [127.0.0.1]) by freebie.xs4all.nl (8.12.5/8.12.2) with ESMTP id g7CJbGH4002491; Mon, 12 Aug 2002 21:37:16 +0200 (CEST) (envelope-from wkb@freebie.xs4all.nl) Received: (from wkb@localhost) by freebie.xs4all.nl (8.12.5/8.12.5/Submit) id g7CJbGvt002490; Mon, 12 Aug 2002 21:37:16 +0200 (CEST) Date: Mon, 12 Aug 2002 21:37:16 +0200 From: Wilko Bulte To: Marcin Gryszkalis Cc: mjacob@feral.com, freebsd-alpha , freebsd-scsi@FreeBSD.ORG Subject: Re: ISP Nvram [ was 'da driver problem?' ] Message-ID: <20020812213716.B2453@freebie.xs4all.nl> References: <3D58071B.6070901@cerint.pl> <20020812212716.A2330@freebie.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020812212716.A2330@freebie.xs4all.nl>; from wkb@freebie.xs4all.nl on Mon, Aug 12, 2002 at 09:27:16PM +0200 X-OS: FreeBSD 4.6-STABLE X-PGP: finger wilko@freebsd.org Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Aug 12, 2002 at 09:27:16PM +0200, Wilko Bulte wrote: > On Mon, Aug 12, 2002 at 09:06:03PM +0200, Marcin Gryszkalis wrote: > > Matthew Jacob wrote: > > > Interrupt the boot process and at the loader prompt do > > > set isp_debug=0x1f > > > and boot (or fail to boot) and send us the output. > > > Or add > > > set isp_no_nvram=0x1 > > > to keep NVRAM from being read. > > > > I'll try... (I'll be able to do it on wednesday). > > > > > You haven't said whether you're now loading isp firmware or not. > > I loaded ispfw.ko (w/o any difference). > > > > Preloaded elf kernel "kernel" at 0xfffffc0000600000. > > Preloaded elf module "ispfw.ko" at 0xfffffc00006000c0. > > ... > > isp0: port 0x10000-0x100ff mem > > 0x82018000-0x82018fff irq 12 at device 9.0 on pci0 > > isp0: interrupting at CIA irq 12 > > isp0: invalid NVRAM header > > da0 at isp0 bus 0 target 1 lun 0 > > da0: Fixed Direct Access SCSI-2 device > > da0: 20.000MB/s transfers (10.000MHz, offset 12, 16bit), Tagged Queueing Enabled > > Martin, are these drives inside StorageWorks SBB containers? [I lost the > beginning of this thread]. If yes, do you have a mix of RZ29B-VA and > RZ29B-VW drives? FYI: -VW are wide drives -VA are narrow drives -- | / o / /_ _ wilko@FreeBSD.org |/|/ / / /( (_) Bulte Arnhem, the Netherlands To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Mon Aug 12 15:30:30 2002 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 1D19637B400 for ; Mon, 12 Aug 2002 15:30:20 -0700 (PDT) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D93143E6E for ; Mon, 12 Aug 2002 15:30:18 -0700 (PDT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.5/8.12.3) with ESMTP id g7CMUG9R011250 for ; Mon, 12 Aug 2002 16:30:17 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Mon, 12 Aug 2002 16:30:13 -0600 (MDT) Message-Id: <20020812.163013.28786716.imp@bsdimp.com> To: scsi@freebsd.org Subject: Review From: "M. Warner Losh" X-Mailer: Mew version 2.1 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org panic already terminates messages with \n. There are a few in cam that redundantly include the \n. Here's a small patch to remove them. Any objections to my committing it? Warner Index: cam_periph.c =================================================================== RCS file: /cache/ncvs/src/sys/cam/cam_periph.c,v retrieving revision 1.39 diff -u -r1.39 cam_periph.c --- cam_periph.c 7 Jun 2002 23:51:30 -0000 1.39 +++ cam_periph.c 12 Aug 2002 22:27:39 -0000 @@ -1473,7 +1473,7 @@ break; } default: - panic("Unhandled error action %x\n", err_action); + panic("Unhandled error action %x", err_action); } if ((err_action & SS_MASK) >= SS_START) { Index: scsi/scsi_low.c =================================================================== RCS file: /cache/ncvs/src/sys/cam/scsi/scsi_low.c,v retrieving revision 1.14 diff -u -r1.14 scsi_low.c --- scsi/scsi_low.c 20 Mar 2002 08:55:21 -0000 1.14 +++ scsi/scsi_low.c 12 Aug 2002 22:28:35 -0000 @@ -1805,7 +1805,7 @@ li = SCSI_LOW_MALLOC(ti->ti_lunsize); if (li == NULL) - panic("no lun info mem\n"); + panic("no lun info mem"); SCSI_LOW_BZERO(li, ti->ti_lunsize); li->li_lun = lun; @@ -1847,7 +1847,7 @@ ti = SCSI_LOW_MALLOC(slp->sl_targsize); if (ti == NULL) - panic("%s short of memory\n", slp->sl_xname); + panic("%s short of memory", slp->sl_xname); SCSI_LOW_BZERO(ti, slp->sl_targsize); ti->ti_id = targ; @@ -1954,7 +1954,7 @@ cb->ccb_flags |= CCB_NORETRY; cb->ccb_error |= SELTIMEOUTIO; if (scsi_low_revoke_ccb(slp, cb, 1) != NULL) - panic("%s: ccb not finished\n", slp->sl_xname); + panic("%s: ccb not finished", slp->sl_xname); } if (slp->sl_Tnexus == NULL) @@ -2078,7 +2078,7 @@ else if ((cb->ccb_flags & CCB_DISCQ) != 0) { if (scsi_low_revoke_ccb(slp, cb, 0) == NULL) - panic("%s: revoked ccb done\n", slp->sl_xname); + panic("%s: revoked ccb done", slp->sl_xname); cb->ccb_flags |= CCB_STARTQ; TAILQ_INSERT_HEAD(&slp->sl_start, cb, ccb_chain); @@ -2089,7 +2089,7 @@ else { if (scsi_low_revoke_ccb(slp, cb, 1) != NULL) - panic("%s: revoked ccb retried\n", slp->sl_xname); + panic("%s: revoked ccb retried", slp->sl_xname); } return 0; } @@ -2114,7 +2114,7 @@ #endif /* SCSI_LOW_INTERFACE_CAM */ if (slp->sl_osdep_fp == NULL) - panic("scsi_low: interface not spcified\n"); + panic("scsi_low: interface not spcified"); if (ntargs > SCSI_LOW_NTARGETS) { @@ -2384,7 +2384,7 @@ return SCSI_LOW_START_QTAG; default: - panic("%s: no setup phase\n", slp->sl_xname); + panic("%s: no setup phase", slp->sl_xname); } return SCSI_LOW_START_NO_QTAG; @@ -2440,7 +2440,7 @@ if (slp->sl_Tnexus || slp->sl_Lnexus || slp->sl_Qnexus) { scsi_low_info(slp, NULL, "NEXUS INCOSISTENT"); - panic("%s: inconsistent\n", slp->sl_xname); + panic("%s: inconsistent", slp->sl_xname); } #endif /* SCSI_LOW_DIAGNOSTIC */ @@ -3773,7 +3773,7 @@ cb->ccb_tag = SCSI_LOW_UNKTAG; cb->ccb_otag = SCSI_LOW_UNKTAG; if (scsi_low_done(slp, cb) == SCSI_LOW_DONE_RETRY) - panic("%s: linked ccb retried\n", slp->sl_xname); + panic("%s: linked ccb retried", slp->sl_xname); slp->sl_Qnexus = ncb; slp->sl_ph_count = 0; @@ -4443,7 +4443,7 @@ if ((cb->ccb_flags & (CCB_STARTQ | CCB_DISCQ)) == (CCB_STARTQ | CCB_DISCQ)) { - panic("%s: ccb in both queue\n", slp->sl_xname); + panic("%s: ccb in both queue", slp->sl_xname); } #endif /* SCSI_LOW_DIAGNOSTIC */ @@ -4470,7 +4470,7 @@ cb->ccb_error |= FATALIO; cb->ccb_flags &= ~CCB_AUTOSENSE; if (scsi_low_done(slp, cb) != SCSI_LOW_DONE_COMPLETE) - panic("%s: done ccb retried\n", slp->sl_xname); + panic("%s: done ccb retried", slp->sl_xname); return NULL; } else Index: scsi/scsi_sa.c =================================================================== RCS file: /cache/ncvs/src/sys/cam/scsi/scsi_sa.c,v retrieving revision 1.82 diff -u -r1.82 scsi_sa.c --- scsi/scsi_sa.c 19 Jun 2002 20:44:48 -0000 1.82 +++ scsi/scsi_sa.c 12 Aug 2002 22:28:57 -0000 @@ -614,7 +614,7 @@ break; default: xpt_print_path(periph->path); - panic("unknown mode 0x%x in saclose\n", mode); + panic("unknown mode 0x%x in saclose", mode); /* NOTREACHED */ break; } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Mon Aug 12 16:10:36 2002 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 6CE7737B400 for ; Mon, 12 Aug 2002 16:10:35 -0700 (PDT) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 33B6943E81 for ; Mon, 12 Aug 2002 16:10:35 -0700 (PDT) (envelope-from nate@rootlabs.com) Received: (qmail 33499 invoked by uid 1000); 12 Aug 2002 23:10:36 -0000 Date: Mon, 12 Aug 2002 16:10:36 -0700 (PDT) From: Nate Lawson To: "M. Warner Losh" Cc: scsi@freebsd.org Subject: Re: Review In-Reply-To: <20020812.163013.28786716.imp@bsdimp.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Looks good to me. Commit it. On Mon, 12 Aug 2002, M. Warner Losh wrote: > panic already terminates messages with \n. There are a few in cam > that redundantly include the \n. Here's a small patch to remove > them. Any objections to my committing it? > > Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Mon Aug 12 16:30:27 2002 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 DC94E37B400 for ; Mon, 12 Aug 2002 16:30:24 -0700 (PDT) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 9736743E3B for ; Mon, 12 Aug 2002 16:30:24 -0700 (PDT) (envelope-from nate@rootlabs.com) Received: (qmail 33540 invoked by uid 1000); 12 Aug 2002 23:30:26 -0000 Date: Mon, 12 Aug 2002 16:30:26 -0700 (PDT) From: Nate Lawson To: Joerg Wunsch Cc: freebsd-scsi@freebsd.org Subject: Re: Tekram DC-395 driver maintenance In-Reply-To: <20020811103649.G39683@uriah.heep.sax.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sun, 11 Aug 2002, Joerg Wunsch wrote: > In the course of investigating his problems, i eventually found out > that there was one serious bug in that driver: upon detecting a CHECK > CONDITION, they didn't set the appropriate CAM error flag > (CAM_SCSI_STATUS_ERROR), so the CAM layer never bothered to handle the > error at all. This was non-fatal as long as the attached devices > never issued a CHECK CONDITION :), but naturally, even a missing MO > medium at initialisation time caused the upper layers to assume the > device were ready, and they started to interpret garbage data as valid > numbers, which eventually would lead to an integer divide by zero > fault in the geometry calculation. I was able to get the fault once also but have not seemed to be able to duplicate it. Were you able to track down where xpt failed to catch the zero? These lines in cam_xpt.c are supposed to catch that error: ---- case XPT_CALC_GEOMETRY: { struct cam_sim *sim; /* Filter out garbage */ if (start_ccb->ccg.block_size == 0 || start_ccb->ccg.volume_size == 0) { start_ccb->ccg.cylinders = 0; start_ccb->ccg.heads = 0; start_ccb->ccg.secs_per_track = 0; start_ccb->ccb_h.status = CAM_REQ_CMP; break; } ---- > I did a few other minor changes, like renaming the driver from the > overly long "tekram_trm" to just "trm". Still, the code looks a bit > strange to us (Hungarian notation, 4-position hard tabs) since it's > just vendor-supplied code. Would anybody have strong objections for > me to import the code into our tree, under the promise that i could > keep track of future vendor submissions? I guess there's no room on > the bootfloppy to include it by default, but maybe we could arrange > for a third bootfloppy containing loadable modules some day, so that > would extend the list of supported controllers. I don't have a problem with importing it but I defer to someone who's been around longer. I'm guessing it should go in sys/contrib/dev to ease style(9) and import impact. -Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Mon Aug 12 20:11:53 2002 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 BEBFC37B400 for ; Mon, 12 Aug 2002 20:11:50 -0700 (PDT) Received: from aslan.scsiguy.com (aslan.scsiguy.com [63.229.232.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9AEB143E6A for ; Mon, 12 Aug 2002 20:11:49 -0700 (PDT) (envelope-from gibbs@scsiguy.com) Received: from aslan.scsiguy.com (aslan.scsiguy.com [63.229.232.106]) by aslan.scsiguy.com (8.12.5/8.12.5) with ESMTP id g7D3BaZs012144; Mon, 12 Aug 2002 21:11:43 -0600 (MDT) (envelope-from gibbs@scsiguy.com) Date: Mon, 12 Aug 2002 21:11:36 -0600 From: "Justin T. Gibbs" To: Joerg Wunsch , freebsd-scsi@FreeBSD.org Subject: Re: Tekram DC-395 driver maintenance Message-ID: <189710000.1029208296@aslan.scsiguy.com> In-Reply-To: <20020811103649.G39683@uriah.heep.sax.de> References: <20020811103649.G39683@uriah.heep.sax.de> X-Mailer: Mulberry/2.2.1 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > In the course of investigating his problems, i eventually found out > that there was one serious bug in that driver: ... > Still, the code looks a bit strange to us (Hungarian notation, 4-position > hard tabs) since it's just vendor-supplied code. ... > Would anybody have strong objections for me to import the code into > our tree, under the promise that i could keep track of future vendor > submissions? I took a stab a long time ago at cleaning up one of the Tekram supplied drivers. I really had a hard time putting down the urge to just rototil it to fix various structural and SCSI protocol deficiencies. I would prefer for you to really fixup the driver prior to bringing it into the tree, but barring that, I won't object to you just importing it as is. -- Justin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Mon Aug 12 20:12: 1 2002 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 C200C37B400 for ; Mon, 12 Aug 2002 20:11:59 -0700 (PDT) Received: from aslan.scsiguy.com (aslan.scsiguy.com [63.229.232.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F96543E65 for ; Mon, 12 Aug 2002 20:11:58 -0700 (PDT) (envelope-from gibbs@scsiguy.com) Received: from aslan.scsiguy.com (aslan.scsiguy.com [63.229.232.106]) by aslan.scsiguy.com (8.12.5/8.12.5) with ESMTP id g7D3BaZq012144; Mon, 12 Aug 2002 21:11:42 -0600 (MDT) (envelope-from gibbs@scsiguy.com) Date: Mon, 12 Aug 2002 21:06:57 -0600 From: "Justin T. Gibbs" To: "M. Warner Losh" Cc: scsi@FreeBSD.org Subject: Re: Review Message-ID: <184350000.1029208017@aslan.scsiguy.com> In-Reply-To: <20020812.163013.28786716.imp@bsdimp.com> References: <20020812.163013.28786716.imp@bsdimp.com> X-Mailer: Mulberry/2.2.1 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > panic already terminates messages with \n. There are a few in cam > that redundantly include the \n. Here's a small patch to remove > them. Any objections to my committing it? My only concern is with the scsi_low.c change in that it may diverge us from NetBSD. I don't know that there is going to be much change in this code any time soon, so that may not be an issue. -- Justin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Tue Aug 13 2:50:11 2002 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 12E8637B400 for ; Tue, 13 Aug 2002 02:50:09 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id E3AF943E6E for ; Tue, 13 Aug 2002 02:50:07 -0700 (PDT) (envelope-from j@uriah.heep.sax.de) Received: (from uucp@localhost) by sax.sax.de (8.9.3/8.9.3) with UUCP id LAA06055 for freebsd-scsi@freebsd.org; Tue, 13 Aug 2002 11:50:06 +0200 (CEST) Received: from uriah.heep.sax.de (localhost.heep.sax.de [127.0.0.1]) by uriah.heep.sax.de (8.12.5/8.12.5) with ESMTP id g7D9frAS030902 for ; Tue, 13 Aug 2002 11:41:53 +0200 (MET DST) (envelope-from j@uriah.heep.sax.de) Received: (from j@localhost) by uriah.heep.sax.de (8.12.5/8.12.5/Submit) id g7D9frf9030901 for freebsd-scsi@freebsd.org; Tue, 13 Aug 2002 11:41:53 +0200 (MET DST) Date: Tue, 13 Aug 2002 11:41:53 +0200 From: Joerg Wunsch To: freebsd-scsi@freebsd.org Subject: Re: Tekram DC-395 driver maintenance Message-ID: <20020813114153.C3970@uriah.heep.sax.de> Reply-To: Joerg Wunsch Mail-Followup-To: Joerg Wunsch , freebsd-scsi@freebsd.org References: <20020811103649.G39683@uriah.heep.sax.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from nate@root.org on Mon, Aug 12, 2002 at 04:30:26PM -0700 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org As Nate Lawson wrote: > > In the course of investigating his problems, i eventually found out > > that there was one serious bug in that driver: upon detecting a CHECK > > CONDITION, they didn't set the appropriate CAM error flag > > (CAM_SCSI_STATUS_ERROR), so the CAM layer never bothered to handle the > > error at all. > I was able to get the fault once also but have not seemed to be able to > duplicate it. Were you able to track down where xpt failed to catch > the zero? In that case it wasn't xpt panicing, but somewhere in the slice code. Of course, since the CAM layer relied on the results of the geometry inquiry to be correct (since there was no error signalled), it passed them on to the upper layers which obviously assume that those figures make at least some sense (sector sizes of 0 don't make sense). > I don't have a problem with importing it but I defer to someone > who's been around longer. I'm guessing it should go in > sys/contrib/dev to ease style(9) and import impact. I thought that sys/contrib is a bit too much for just two files, but yes, i don't like the idea to stuff them into sys/pci, but would rather use sys/dev/trm instead. I think it's tolerable for imported vendor code to be not 100 % style(9) compliant, although i'd at least like to fix the 4-space hard tabs. However, this only makes sense if Tekram agrees on that change and is willing to also do that in their own sources. Otherwise it'll become a maintenance nightmare. -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Tue Aug 13 2:50:16 2002 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 9C9F637B405 for ; Tue, 13 Aug 2002 02:50:11 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8066443E6E for ; Tue, 13 Aug 2002 02:50:10 -0700 (PDT) (envelope-from j@uriah.heep.sax.de) Received: (from uucp@localhost) by sax.sax.de (8.9.3/8.9.3) with UUCP id LAA06065 for freebsd-scsi@FreeBSD.org; Tue, 13 Aug 2002 11:50:09 +0200 (CEST) Received: from uriah.heep.sax.de (localhost.heep.sax.de [127.0.0.1]) by uriah.heep.sax.de (8.12.5/8.12.5) with ESMTP id g7D9i3AS030932 for ; Tue, 13 Aug 2002 11:44:03 +0200 (MET DST) (envelope-from j@uriah.heep.sax.de) Received: (from j@localhost) by uriah.heep.sax.de (8.12.5/8.12.5/Submit) id g7D9i3vp030931 for freebsd-scsi@FreeBSD.org; Tue, 13 Aug 2002 11:44:03 +0200 (MET DST) Date: Tue, 13 Aug 2002 11:44:03 +0200 From: Joerg Wunsch To: freebsd-scsi@FreeBSD.org Subject: Re: Tekram DC-395 driver maintenance Message-ID: <20020813114403.D3970@uriah.heep.sax.de> Reply-To: Joerg Wunsch Mail-Followup-To: Joerg Wunsch , freebsd-scsi@FreeBSD.org References: <20020811103649.G39683@uriah.heep.sax.de> <189710000.1029208296@aslan.scsiguy.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <189710000.1029208296@aslan.scsiguy.com>; from gibbs@scsiguy.com on Mon, Aug 12, 2002 at 09:11:36PM -0600 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org As Justin T. Gibbs wrote: > I took a stab a long time ago at cleaning up one of the Tekram > supplied drivers. I really had a hard time putting down the urge to > just rototil it to fix various structural and SCSI protocol > deficiencies. I would prefer for you to really fixup the driver > prior to bringing it into the tree, ... I'm afraid i won't be able to find out about all of this. Of course, if you could get me hints about what is broken (or about how i could find out myself), that'll be most welcome. > but barring that, I won't object to you just importing it as is. OK, thanks. I also wonder whether it would make sense to break that several thousands lines file into pieces... -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Tue Aug 13 4:11:15 2002 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 1748C37B400; Tue, 13 Aug 2002 04:11:13 -0700 (PDT) Received: from ns.sanda.gr.jp (ns.sanda.gr.jp [210.232.122.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id A828543E4A; Tue, 13 Aug 2002 04:11:11 -0700 (PDT) (envelope-from non@ever.sanda.gr.jp) Received: from ever.sanda.gr.jp (epoch [10.93.63.51]) by ns.sanda.gr.jp (8.11.6/3.7W) with ESMTP id g7DBBAa78553; Tue, 13 Aug 2002 20:11:10 +0900 (JST) Received: from localhost (localhost [127.0.0.1]) by ever.sanda.gr.jp (8.8.8/3.3W9) with ESMTP id UAA06664; Tue, 13 Aug 2002 20:11:09 +0900 (JST) To: scsi@FreeBSD.org Cc: non@FreeBSD.org Subject: Re: Review In-Reply-To: <184350000.1029208017@aslan.scsiguy.com> References: <20020812.163013.28786716.imp@bsdimp.com> <184350000.1029208017@aslan.scsiguy.com> X-Mailer: Mew version 1.94 on Emacs 19.28 / Mule 2.3 =?iso-2022-jp?B?KBskQkt2RSYyVhsoQik=?= Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20020813201109H.non@ever.sanda.gr.jp> Date: Tue, 13 Aug 2002 20:11:09 +0900 From: non@ever.sanda.gr.jp X-Dispatcher: imput version 20000228(IM140) Lines: 16 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org From: "Justin T. Gibbs" Date: Mon, 12 Aug 2002 21:06:57 -0600 > > panic already terminates messages with \n. There are a few in cam > > that redundantly include the \n. Here's a small patch to remove > > them. Any objections to my committing it? I checked the NetBSD's syssrc/sys/lib/libsa/panic.c and found that it also adds \n . > My only concern is with the scsi_low.c change in that it may diverge > us from NetBSD. I don't know that there is going to be much change in > this code any time soon, so that may not be an issue. I will E-mail to the orignal author. So please go ahead. // Noriaki Mitsunaga // To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Tue Aug 13 6:42:39 2002 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 38AF337B400 for ; Tue, 13 Aug 2002 06:42:37 -0700 (PDT) Received: from sasami.jurai.net (sasami.jurai.net [66.92.160.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F51B43E3B for ; Tue, 13 Aug 2002 06:42:36 -0700 (PDT) (envelope-from winter@jurai.net) Received: from sasami.jurai.net (sasami.jurai.net [66.92.160.223]) by sasami.jurai.net (8.12.5/8.12.2) with ESMTP id g7DDgVOw061676; Tue, 13 Aug 2002 09:42:35 -0400 (EDT) (envelope-from winter@jurai.net) Date: Tue, 13 Aug 2002 09:42:31 -0400 (EDT) From: "Matthew N. Dodd" To: Joerg Wunsch Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: Tekram DC-395 driver maintenance In-Reply-To: <20020811103649.G39683@uriah.heep.sax.de> Message-ID: <20020813093952.X788-100000@sasami.jurai.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sun, 11 Aug 2002, Joerg Wunsch wrote: > I did a few other minor changes, like renaming the driver from the > overly long "tekram_trm" to just "trm". Still, the code looks a bit > strange to us (Hungarian notation, 4-position hard tabs) since it's just > vendor-supplied code. Would anybody have strong objections for me to > import the code into our tree, under the promise that i could keep track > of future vendor submissions? I've got a copy of the code from Olivier Houchard that he updated to run under -CURRENT. Its been mostly style(9)'ed but would still need the fixes you mentioned. My intention was to commit it and get a commit bit for Mr. Houchard so that he could take care of the driver directly. The core elections and such kind of pushed that back a bit. :/ Thoughts? -- | Matthew N. Dodd | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD | | winter@jurai.net | 2 x '84 Volvo 245DL | ix86,sparc,pmax | | http://www.jurai.net/~winter | For Great Justice! | ISO8802.5 4ever | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Tue Aug 13 9:41:54 2002 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 2377F37B400; Tue, 13 Aug 2002 09:41:52 -0700 (PDT) Received: from viola.sinor.ru (viola.sinor.ru [217.70.106.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1BFE043E42; Tue, 13 Aug 2002 09:41:51 -0700 (PDT) (envelope-from semenu@FreeBSD.org) Received: from tlg5-ppp68.sibnet.ru (tlg5-ppp68.sibnet.ru [217.70.116.68]) by viola.sinor.ru (8.12.3/8.12.3) with ESMTP id g7DGfkrZ014671; Tue, 13 Aug 2002 23:41:47 +0700 Date: Tue, 13 Aug 2002 23:41:14 +0700 (NOVST) From: "Semen A. Ustimenko" X-X-Sender: semenu@main.the.net To: freebsd-hackers@FreeBSD.org Cc: freebsd-scsi@FreeBSD.org Subject: SCSI device emulation using SCSI host controller Message-ID: <20020813232629.L568-100000@main.the.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi! I beg you all pardon for a question not related directly to FreeBSD, but if the answer is ``yes'', then I believe FreeBSD will be in deal. The question is: "Can I emulate a SCSI device (tape, if that matters) using usual SCSI host controller and specific software, or I will definitely need specific hardware?" Thanks! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Tue Aug 13 11:21:11 2002 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 BCFE337B401 for ; Tue, 13 Aug 2002 11:21:06 -0700 (PDT) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 6413743E6E for ; Tue, 13 Aug 2002 11:21:02 -0700 (PDT) (envelope-from nate@rootlabs.com) Received: (qmail 35644 invoked by uid 1000); 13 Aug 2002 18:21:03 -0000 Date: Tue, 13 Aug 2002 11:21:02 -0700 (PDT) From: Nate Lawson To: "Semen A. Ustimenko" Cc: freebsd-hackers@FreeBSD.org, freebsd-scsi@FreeBSD.org Subject: Re: SCSI device emulation using SCSI host controller In-Reply-To: <20020813232629.L568-100000@main.the.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Yes. sys/cam/scsi/scsi_target* /usr/share/examples/scsi_target On Tue, 13 Aug 2002, Semen A. Ustimenko wrote: > Hi! > > I beg you all pardon for a question not related directly to FreeBSD, but > if the answer is ``yes'', then I believe FreeBSD will be in deal. > > The question is: "Can I emulate a SCSI device (tape, if that matters) > using usual SCSI host controller and specific software, or I will > definitely need specific hardware?" > > Thanks! > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Tue Aug 13 12:29:40 2002 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 E07E337B400; Tue, 13 Aug 2002 12:29:37 -0700 (PDT) Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0103E43E6E; Tue, 13 Aug 2002 12:29:37 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: from panzer.kdm.org (localhost [127.0.0.1]) by panzer.kdm.org (8.12.5/8.12.5) with ESMTP id g7DJTaKD051648; Tue, 13 Aug 2002 13:29:36 -0600 (MDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.12.5/8.12.5/Submit) id g7DJTZ2O051647; Tue, 13 Aug 2002 13:29:36 -0600 (MDT) (envelope-from ken) Date: Tue, 13 Aug 2002 13:29:35 -0600 From: "Kenneth D. Merry" To: "Semen A. Ustimenko" Cc: freebsd-hackers@FreeBSD.ORG, freebsd-scsi@FreeBSD.ORG Subject: Re: SCSI device emulation using SCSI host controller Message-ID: <20020813132935.A51629@panzer.kdm.org> References: <20020813232629.L568-100000@main.the.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020813232629.L568-100000@main.the.net>; from semenu@FreeBSD.ORG on Tue, Aug 13, 2002 at 11:41:14PM +0700 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, Aug 13, 2002 at 23:41:14 +0700, Semen A. Ustimenko wrote: > Hi! > > I beg you all pardon for a question not related directly to FreeBSD, but > if the answer is ``yes'', then I believe FreeBSD will be in deal. > > The question is: "Can I emulate a SCSI device (tape, if that matters) > using usual SCSI host controller and specific software, or I will > definitely need specific hardware?" You'll need either the right Adaptec or QLogic controller, but yes, it can be done with FreeBSD. Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Tue Aug 13 18:13: 8 2002 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 D749237B422; Tue, 13 Aug 2002 18:13:04 -0700 (PDT) Received: from pop015.verizon.net (pop015pub.verizon.net [206.46.170.172]) by mx1.FreeBSD.org (Postfix) with ESMTP id 65BE743E4A; Tue, 13 Aug 2002 18:13:03 -0700 (PDT) (envelope-from babkin@bellatlantic.net) Received: from bellatlantic.net ([138.89.161.212]) by pop015.verizon.net (InterMail vM.5.01.05.09 201-253-122-126-109-20020611) with ESMTP id <20020814011301.TCKE2139.pop015.verizon.net@bellatlantic.net>; Tue, 13 Aug 2002 20:13:01 -0500 Message-ID: <3D59AE9B.3C27FA8C@bellatlantic.net> Date: Tue, 13 Aug 2002 21:12:59 -0400 From: Sergey Babkin X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 4.0-19990626-CURRENT i386) X-Accept-Language: en, ru MIME-Version: 1.0 To: "Kenneth D. Merry" Cc: "Semen A. Ustimenko" , freebsd-hackers@FreeBSD.ORG, freebsd-scsi@FreeBSD.ORG Subject: Re: SCSI device emulation using SCSI host controller References: <20020813232629.L568-100000@main.the.net> <20020813132935.A51629@panzer.kdm.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org "Kenneth D. Merry" wrote: > > On Tue, Aug 13, 2002 at 23:41:14 +0700, Semen A. Ustimenko wrote: > > Hi! > > > > I beg you all pardon for a question not related directly to FreeBSD, but > > if the answer is ``yes'', then I believe FreeBSD will be in deal. > > > > The question is: "Can I emulate a SCSI device (tape, if that matters) > > using usual SCSI host controller and specific software, or I will > > definitely need specific hardware?" > > You'll need either the right Adaptec or QLogic controller, but yes, it can > be done with FreeBSD. Or Symbios (now LSI Logic). -SB To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Tue Aug 13 19:28:41 2002 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 958B137B400 for ; Tue, 13 Aug 2002 19:28:39 -0700 (PDT) Received: from enterprise.thenetnow.com (enterprise.thenetnow.com [205.150.82.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id C5FA843E3B for ; Tue, 13 Aug 2002 19:28:38 -0700 (PDT) (envelope-from grant@thenetnow.com) Received: from grant (dslb102.ody.ca [216.240.5.102]) by enterprise.thenetnow.com (8.11.6/8.11.6) with ESMTP id g7E2OFH78958 for ; Tue, 13 Aug 2002 22:24:16 -0400 (EDT) (envelope-from grant@thenetnow.com) Message-ID: <003b01c2433a$54efc8c0$6501a8c0@grant> Reply-To: "Grant Peel" From: "Grant Peel" To: Subject: PERC 3 Utilities? Date: Tue, 13 Aug 2002 22:28:52 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello all, I have a Dell PERC 3 DCL that is running on FreeBSD 4.4 quite well. I am using the nominal amrd driver and thats it as far as I can tell. Does anyone know of any type of test/monitoring software that I can use on FreeBSD to see the status of the array and individaul drives? -Grant Grant W. Peel Server Administrator The Net Now -- Expresshost http://thenetnow.com grant@thenetnow.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Tue Aug 13 19:30:45 2002 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 3EF8C37B401; Tue, 13 Aug 2002 19:30:42 -0700 (PDT) Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C62243E3B; Tue, 13 Aug 2002 19:30:41 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: from panzer.kdm.org (localhost [127.0.0.1]) by panzer.kdm.org (8.12.5/8.12.5) with ESMTP id g7E2UcKD053708; Tue, 13 Aug 2002 20:30:38 -0600 (MDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.12.5/8.12.5/Submit) id g7E2Uc5j053707; Tue, 13 Aug 2002 20:30:38 -0600 (MDT) (envelope-from ken) Date: Tue, 13 Aug 2002 20:30:38 -0600 From: "Kenneth D. Merry" To: Sergey Babkin Cc: "Semen A. Ustimenko" , freebsd-hackers@FreeBSD.ORG, freebsd-scsi@FreeBSD.ORG Subject: Re: SCSI device emulation using SCSI host controller Message-ID: <20020813203037.A53640@panzer.kdm.org> References: <20020813232629.L568-100000@main.the.net> <20020813132935.A51629@panzer.kdm.org> <3D59AE9B.3C27FA8C@bellatlantic.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <3D59AE9B.3C27FA8C@bellatlantic.net>; from babkin@bellatlantic.net on Tue, Aug 13, 2002 at 09:12:59PM -0400 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, Aug 13, 2002 at 21:12:59 -0400, Sergey Babkin wrote: > "Kenneth D. Merry" wrote: > > > > On Tue, Aug 13, 2002 at 23:41:14 +0700, Semen A. Ustimenko wrote: > > > Hi! > > > > > > I beg you all pardon for a question not related directly to FreeBSD, but > > > if the answer is ``yes'', then I believe FreeBSD will be in deal. > > > > > > The question is: "Can I emulate a SCSI device (tape, if that matters) > > > using usual SCSI host controller and specific software, or I will > > > definitely need specific hardware?" > > > > You'll need either the right Adaptec or QLogic controller, but yes, it can > > be done with FreeBSD. > > Or Symbios (now LSI Logic). Has anyone done any target mode code for their boards? I know they're probably capable of it, but AFAIK, the sym(4) driver doesn't support target mode and I didn't see anything in the mpt(4) commit that indicated that it supports target mode either. Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Tue Aug 13 21:55:43 2002 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 6D0AB37B400 for ; Tue, 13 Aug 2002 21:55:42 -0700 (PDT) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id EFF1143E42 for ; Tue, 13 Aug 2002 21:55:37 -0700 (PDT) (envelope-from nate@rootlabs.com) Received: (qmail 36621 invoked by uid 1000); 14 Aug 2002 04:55:40 -0000 Date: Tue, 13 Aug 2002 21:55:40 -0700 (PDT) From: Nate Lawson To: Grant Peel Cc: freebsd-scsi@freebsd.org Subject: Re: PERC 3 Utilities? In-Reply-To: <003b01c2433a$54efc8c0$6501a8c0@grant> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, 13 Aug 2002, Grant Peel wrote: > Hello all, > > I have a Dell PERC 3 DCL that is running on FreeBSD 4.4 quite well. I am > using the nominal amrd driver and thats it as far as I can tell. > > Does anyone know of any type of test/monitoring software that I can use on > FreeBSD to see the status of the array and individaul drives? > > -Grant > > Grant W. Peel > Server Administrator > The Net Now -- Expresshost > http://thenetnow.com > grant@thenetnow.com ses(4) may have what you're looking for. As far as commercial software, I don't know. -Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Wed Aug 14 1:10:27 2002 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 32C9737B405 for ; Wed, 14 Aug 2002 01:10:24 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 16B9843E6E for ; Wed, 14 Aug 2002 01:10:23 -0700 (PDT) (envelope-from j@uriah.heep.sax.de) Received: (from uucp@localhost) by sax.sax.de (8.9.3/8.9.3) with UUCP id KAA11151 for freebsd-scsi@FreeBSD.ORG; Wed, 14 Aug 2002 10:10:22 +0200 (CEST) Received: from uriah.heep.sax.de (localhost.heep.sax.de [127.0.0.1]) by uriah.heep.sax.de (8.12.5/8.12.5) with ESMTP id g7DFIoAS070615 for ; Tue, 13 Aug 2002 17:18:50 +0200 (MET DST) (envelope-from j@uriah.heep.sax.de) Received: (from j@localhost) by uriah.heep.sax.de (8.12.5/8.12.5/Submit) id g7DFIoNv070614 for freebsd-scsi@FreeBSD.ORG; Tue, 13 Aug 2002 17:18:50 +0200 (MET DST) Date: Tue, 13 Aug 2002 17:18:50 +0200 From: Joerg Wunsch To: freebsd-scsi@FreeBSD.ORG Subject: Re: Tekram DC-395 driver maintenance Message-ID: <20020813171850.B34333@uriah.heep.sax.de> Reply-To: Joerg Wunsch Mail-Followup-To: Joerg Wunsch , freebsd-scsi@FreeBSD.ORG References: <20020811103649.G39683@uriah.heep.sax.de> <20020813093952.X788-100000@sasami.jurai.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020813093952.X788-100000@sasami.jurai.net>; from winter@jurai.net on Tue, Aug 13, 2002 at 09:42:31AM -0400 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org As Matthew N. Dodd wrote: > I've got a copy of the code from Olivier Houchard > that he updated to run under -CURRENT. Well, the update for -current was surprisingly little work. It consisted of only adding #include , and of renaming the deprecated PCI_MAP_REG_START into PCIR_MAPS (which is OK for RELENG_4 as well). > Its been mostly style(9)'ed but would > still need the fixes you mentioned. I wouldn't want to style-ify it unless the Tekram people agree to also do it. Right now, i've only fixed their brokeness (apart from the mentioned bug in the CHECK CONDITION handling, there were some compile-time issues with strings that were split across multiple lines). So far, i haven't heard anything back from them. > My intention was to commit it and get a commit bit for Mr. Houchard > so that he could take care of the driver directly. If he wants, he can surely do that anyway. Since there seems to be some basic agreement that importing it is OK, i can do it now, and pass over maintenance to someone else later on as well. I'm not too eager to maintain it :). -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Wed Aug 14 5: 1:22 2002 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 2D49837B400 for ; Wed, 14 Aug 2002 05:01:20 -0700 (PDT) Received: from ns.sanda.gr.jp (ns.sanda.gr.jp [210.232.122.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id C945043E6E for ; Wed, 14 Aug 2002 05:01:18 -0700 (PDT) (envelope-from non@ever.sanda.gr.jp) Received: from ever.sanda.gr.jp (epoch [10.93.63.51]) by ns.sanda.gr.jp (8.11.6/3.7W) with ESMTP id g7EC1Ga18629 for ; Wed, 14 Aug 2002 21:01:16 +0900 (JST) Received: from localhost (localhost [127.0.0.1]) by ever.sanda.gr.jp (8.8.8/3.3W9) with ESMTP id VAA19814 for ; Wed, 14 Aug 2002 21:01:16 +0900 (JST) To: scsi@FreeBSD.org Subject: Re: Review In-Reply-To: <20020813201109H.non@ever.sanda.gr.jp> References: <20020812.163013.28786716.imp@bsdimp.com> <184350000.1029208017@aslan.scsiguy.com> <20020813201109H.non@ever.sanda.gr.jp> X-Mailer: Mew version 1.94 on Emacs 19.28 / Mule 2.3 =?iso-2022-jp?B?KBskQkt2RSYyVhsoQik=?= Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20020814210116H.non@ever.sanda.gr.jp> Date: Wed, 14 Aug 2002 21:01:16 +0900 From: non@ever.sanda.gr.jp X-Dispatcher: imput version 20000228(IM140) Lines: 19 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org From: non@ever.sanda.gr.jp Date: Tue, 13 Aug 2002 20:11:09 +0900 > From: "Justin T. Gibbs" > Date: Mon, 12 Aug 2002 21:06:57 -0600 > > > panic already terminates messages with \n. There are a few in cam > > > that redundantly include the \n. Here's a small patch to remove > > > them. Any objections to my committing it? > > My only concern is with the scsi_low.c change in that it may diverge > > us from NetBSD. I don't know that there is going to be much change in > > this code any time soon, so that may not be an issue. > > I will E-mail to the orignal author. So please go ahead. From the answer by Honda-san, NetBSD/pc98 will do the same changes. So it will not be a problem. // Noriaki Mitsunaga // To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Wed Aug 14 5:11:11 2002 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 A893837B400; Wed, 14 Aug 2002 05:11:08 -0700 (PDT) Received: from imul.math.uni.lodz.pl (imul.math.uni.lodz.pl [212.191.65.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 414B043E75; Wed, 14 Aug 2002 05:11:08 -0700 (PDT) (envelope-from dagoon@math.uni.lodz.pl) Received: by imul.math.uni.lodz.pl (Mail Transport Agent, from userid 1168) id 1C42C1F0C; Wed, 14 Aug 2002 14:10:53 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by imul.math.uni.lodz.pl (Mail Transport Agent) with ESMTP id 0F49317435; Wed, 14 Aug 2002 14:10:53 +0200 (CEST) Date: Wed, 14 Aug 2002 14:10:53 +0200 (CEST) From: Marcin Gryszkalis To: freebsd alpha mailiing list Cc: freebsd-scsi@freebsd.org Subject: isp NVRAM - fixed! Message-ID: <20020814140736.C3098-100000@imul.math.uni.lodz.pl> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi Big thanks go to all people who helped me :) I fixed NVRAM header with 'isp_edit -sd' from SRM console and now it seems to work great. I'm not sure what -sd switch does - I guess it's 'set defaults'. regards Marcin -- .d$$$$b, $d$$$$b. .d$$$$b, Marcin Gryszkalis $$' `"" $$' `"' $$' `$$ $$. .ss $$ $$ $$ (...) QED. (QED translates from the Latin `"8$$8"' 88 88 88 as "So what?") To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Wed Aug 14 7:23:32 2002 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 3AAA237B400 for ; Wed, 14 Aug 2002 07:23:30 -0700 (PDT) Received: from mail2.lsil.com (mail2.lsil.com [147.145.40.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id A266143E6E for ; Wed, 14 Aug 2002 07:23:29 -0700 (PDT) (envelope-from emoore@lsil.com) Received: from mhbs.lsil.com (mhbs [147.145.31.100]) by mail2.lsil.com (8.9.3+Sun/8.9.1) with ESMTP id HAA10706 for ; Wed, 14 Aug 2002 07:23:26 -0700 (PDT) Received: from atl1.se.lsil.com by mhbs.lsil.com with ESMTP; Wed, 14 Aug 2002 07:08:11 -0700 Received: by EXA-ATLANTA.se.lsil.com with Internet Mail Service (5.5.2653.19) id ; Wed, 14 Aug 2002 10:08:10 -0400 Message-Id: <0E3FA95632D6D047BA649F95DAB60E5701265B01@EXA-ATLANTA.se.lsil.com> From: "Moore, Eric Dean" To: freebsd-scsi@FreeBSD.ORG Cc: Grant Peel Subject: RE: PERC 3 Utilities? Date: Wed, 14 Aug 2002 10:08:08 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Grant Peel wrote: > I have a Dell PERC 3 DCL that is running on FreeBSD 4.4 quite well. I am > using the nominal amrd driver and thats it as far as I can tell. > > Does anyone know of any type of test/monitoring software that I can use on > FreeBSD to see the status of the array and individaul drives? > We have MegaMon utility for other OS, but not for FreeBSD amr at this time. Eric Moore LSI Logic http://www.megaraid.lsilogic.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Wed Aug 14 9:54: 5 2002 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 B764F37B401; Wed, 14 Aug 2002 09:53:54 -0700 (PDT) Received: from beppo.feral.com (beppo.feral.com [192.67.166.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2762643E84; Wed, 14 Aug 2002 09:53:54 -0700 (PDT) (envelope-from mjacob@feral.com) Received: from mailhost.feral.com (mjacob@mailhost.feral.com [192.67.166.1]) by beppo.feral.com (8.11.3/8.11.3) with ESMTP id g7EGrbY81692; Wed, 14 Aug 2002 09:53:37 -0700 (PDT) (envelope-from mjacob@feral.com) Date: Wed, 14 Aug 2002 09:53:37 -0700 (PDT) From: Matthew Jacob X-Sender: mjacob@beppo Reply-To: mjacob@feral.com To: Marcin Gryszkalis Cc: freebsd alpha mailiing list , freebsd-scsi@FreeBSD.ORG Subject: Re: isp NVRAM - fixed! In-Reply-To: <20020814140736.C3098-100000@imul.math.uni.lodz.pl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org First- great! Second: Question- did you try the isp_no_nvram=1 in the loader and did it or did it now also work for you? The driver is supposed to be able set reasonable defaults if NVRAM is bad or disabled. -matt On Wed, 14 Aug 2002, Marcin Gryszkalis wrote: > Hi > Big thanks go to all people who helped me :) > I fixed NVRAM header with 'isp_edit -sd' from SRM console > and now it seems to work great. > I'm not sure what -sd switch does - I guess it's 'set defaults'. > regards > Marcin > > -- > .d$$$$b, $d$$$$b. .d$$$$b, Marcin Gryszkalis > $$' `"" $$' `"' $$' `$$ > $$. .ss $$ $$ $$ (...) QED. (QED translates from the Latin > `"8$$8"' 88 88 88 as "So what?") > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-alpha" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Wed Aug 14 13: 4:51 2002 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 AD43337B400 for ; Wed, 14 Aug 2002 13:04:49 -0700 (PDT) Received: from magus.nostrum.com (magus.nostrum.com [66.119.225.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 114FE43E6A for ; Wed, 14 Aug 2002 13:04:49 -0700 (PDT) (envelope-from pckizer@magus.nostrum.com) Received: from magus.nostrum.com (pckizer@localhost [127.0.0.1]) by magus.nostrum.com (8.12.5/8.12.5) with ESMTP id g7EK4lpA042383; Wed, 14 Aug 2002 15:04:47 -0500 (CDT) Received: (from pckizer@localhost) by magus.nostrum.com (8.12.5/8.12.5/Submit) id g7EK4liD042381; Wed, 14 Aug 2002 15:04:47 -0500 (CDT) Message-Id: <200208142004.g7EK4liD042381@magus.nostrum.com> From: Philip Kizer To: "Grant Peel" Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: PERC 3 Utilities? In-reply-to: Your message of "Tue, 13 Aug 2002 22:28:52 EDT." <003b01c2433a$54efc8c0$6501a8c0@grant> Date: Wed, 14 Aug 2002 15:04:47 -0500 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org "Grant Peel" wrote: >I have a Dell PERC 3 DCL that is running on FreeBSD 4.4 quite well. I am >using the nominal amrd driver and thats it as far as I can tell. > >Does anyone know of any type of test/monitoring software that I can use on >FreeBSD to see the status of the array and individaul drives? Since you have the PERC 3/DCL, I'm thinking the "CL" means it's _not_ a rebranded Adaptec card. If it really is one of the Adaptec's, though, you'll want this: http://www.adaptec.com/worldwide/support/driverdetail.html?sess=no&cat=/Product/ASR-5400S&filekey=5400s_fbsd_cli_v10.zip which expands to contain the FreeBSD package for aaccli. -philip -- Philip Kizer, Senior Lead Systems Engineer, Texas A&M University USENIX Liaison to Texas A&M University Texas A&M CIS Operating Systems Group, Unix To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Wed Aug 14 14:27:55 2002 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 2582337B400; Wed, 14 Aug 2002 14:27:52 -0700 (PDT) Received: from noe.warszawa.mtl.pl (noe.warszawa.multinet.pl [213.241.3.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF6B743E42; Wed, 14 Aug 2002 14:27:50 -0700 (PDT) (envelope-from mgryszkalis@cerint.pl) Received: by noe.warszawa.mtl.pl (Postfix, from userid 1007) id 2B7027DF41; Wed, 14 Aug 2002 23:28:02 +0200 (CEST) Received: from cerint.pl (systemy237.toya.net.pl [217.113.225.237]) by arka.warszawa.mtl.pl (Postfix) with ESMTP id DB2CEEA707; Wed, 14 Aug 2002 23:27:57 +0200 (CEST) Message-ID: <3D5ACB76.3000709@cerint.pl> Date: Wed, 14 Aug 2002 23:28:22 +0200 From: Marcin Gryszkalis Organization: Cerint Technology Group User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1b) Gecko/20020806 X-Accept-Language: en-us, en, pl MIME-Version: 1.0 To: mjacob@feral.com Cc: Marcin Gryszkalis , freebsd alpha mailiing list , freebsd-scsi@FreeBSD.ORG Subject: Re: isp NVRAM - fixed! References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-AntiVirus: Poczta jest monitorowana oprogramowaniem antywirusowym. Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Matthew Jacob wrote: > Question- did you try the > isp_no_nvram=1 > in the loader and did it or did it now also work for you? > The driver is supposed to be able set reasonable defaults if NVRAM is bad or > disabled. I didn't but I can try next time when I am near the box (It shouldn't matter that now NVram is good). regards marcin -- Marcin Gryszkalis or To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Wed Aug 14 15:19:18 2002 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 4A50A37B400 for ; Wed, 14 Aug 2002 15:19:17 -0700 (PDT) Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8DAB643E42 for ; Wed, 14 Aug 2002 15:19:16 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: from panzer.kdm.org (localhost [127.0.0.1]) by panzer.kdm.org (8.12.5/8.12.5) with ESMTP id g7EMJFKD058502; Wed, 14 Aug 2002 16:19:15 -0600 (MDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.12.5/8.12.5/Submit) id g7EMJEoS058501; Wed, 14 Aug 2002 16:19:14 -0600 (MDT) (envelope-from ken) Date: Wed, 14 Aug 2002 16:19:14 -0600 From: "Kenneth D. Merry" To: Nate Lawson Cc: Grant Peel , freebsd-scsi@FreeBSD.ORG Subject: Re: PERC 3 Utilities? Message-ID: <20020814161914.A58473@panzer.kdm.org> References: <003b01c2433a$54efc8c0$6501a8c0@grant> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from nate@root.org on Tue, Aug 13, 2002 at 09:55:40PM -0700 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, Aug 13, 2002 at 21:55:40 -0700, Nate Lawson wrote: > On Tue, 13 Aug 2002, Grant Peel wrote: > > Hello all, > > > > I have a Dell PERC 3 DCL that is running on FreeBSD 4.4 quite well. I am > > using the nominal amrd driver and thats it as far as I can tell. > > > > Does anyone know of any type of test/monitoring software that I can use on > > FreeBSD to see the status of the array and individaul drives? > > > > -Grant > > > > Grant W. Peel > > Server Administrator > > The Net Now -- Expresshost > > http://thenetnow.com > > grant@thenetnow.com > > ses(4) may have what you're looking for. As far as commercial software, I > don't know. ses(4) would only work if he's got an enclosure with an SES/SAFTE chip, and if the controller exports that device. Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Wed Aug 14 17:14: 9 2002 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 69D7237B400; Wed, 14 Aug 2002 17:14:04 -0700 (PDT) Received: from pop018.verizon.net (pop018pub.verizon.net [206.46.170.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id 90CA643E70; Wed, 14 Aug 2002 17:14:03 -0700 (PDT) (envelope-from babkin@bellatlantic.net) Received: from bellatlantic.net ([138.89.159.38]) by pop018.verizon.net (InterMail vM.5.01.05.09 201-253-122-126-109-20020611) with ESMTP id <20020815001402.XBIF8228.pop018.verizon.net@bellatlantic.net>; Wed, 14 Aug 2002 19:14:02 -0500 Message-ID: <3D5AF247.6545758C@bellatlantic.net> Date: Wed, 14 Aug 2002 20:13:59 -0400 From: Sergey Babkin X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 4.0-19990626-CURRENT i386) X-Accept-Language: en, ru MIME-Version: 1.0 To: "Kenneth D. Merry" Cc: "Semen A. Ustimenko" , freebsd-hackers@FreeBSD.ORG, freebsd-scsi@FreeBSD.ORG Subject: Re: SCSI device emulation using SCSI host controller References: <20020813232629.L568-100000@main.the.net> <20020813132935.A51629@panzer.kdm.org> <3D59AE9B.3C27FA8C@bellatlantic.net> <20020813203037.A53640@panzer.kdm.org> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org "Kenneth D. Merry" wrote: > > On Tue, Aug 13, 2002 at 21:12:59 -0400, Sergey Babkin wrote: > > "Kenneth D. Merry" wrote: > > > > > > On Tue, Aug 13, 2002 at 23:41:14 +0700, Semen A. Ustimenko wrote: > > > > Hi! > > > > > > > > I beg you all pardon for a question not related directly to FreeBSD, but > > > > if the answer is ``yes'', then I believe FreeBSD will be in deal. > > > > > > > > The question is: "Can I emulate a SCSI device (tape, if that matters) > > > > using usual SCSI host controller and specific software, or I will > > > > definitely need specific hardware?" > > > > > > You'll need either the right Adaptec or QLogic controller, but yes, it can > > > be done with FreeBSD. > > > > Or Symbios (now LSI Logic). > > Has anyone done any target mode code for their boards? Not any I know of. If anyone is willing to do that, I can provide examples of the target-mode microcode for Symbios. -SB To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Wed Aug 14 19:38:20 2002 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 E46A137B400 for ; Wed, 14 Aug 2002 19:38:16 -0700 (PDT) Received: from mail.utcorp.net (mail.utcorp.net [146.145.135.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 77AA143E65 for ; Wed, 14 Aug 2002 19:38:16 -0700 (PDT) (envelope-from kseel@utcorp.com) Received: from shorty30.khome.utcorp.net ([10.200.1.30] helo=utcorp.com) by mail.utcorp.net with esmtp (Exim 3.36 #1) id 17fAqx-0001l1-00 for freebsd-scsi@FreeBSD.ORG; Wed, 14 Aug 2002 22:59:15 -0400 Message-ID: <3D5B17A4.D2862CA6@utcorp.com> Date: Wed, 14 Aug 2002 22:53:24 -0400 From: Kurt Seel X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-scsi Subject: pioneer DRM-600 problem Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I am using FBSD 4.5-stable. I have a Pioneer DRM-600. I passes the self diagnostic, where to de-cable the unit, power off, flip switches 6 & 8, then power on. It goes through loading each disc, then ejects. Just like it should. When the machine boots, scans the unis and finds 6 cd devs, dmesg output at the end of this message. But when I type : chio status I get this : chio: /dev/ch0: open: Device not configured So I made sure the devices were make, e.g. cd /dev; ./MAKEDEV cd5; ./MAKEDEV ch0 And : mount -t cd9660 /dev/cd0c /conf/tmpmnt Gives me : cd9660: /dev/cd0c: Device busy I have tried it with evey permutation of option switches, e.g. parity on, parity off ... no dice. Is there any hope for this unit? I'de really like to put 6 CD's of mp3'ed music on a (atapi) cdrom booted (if you look at the dmesg you'll see root is cd9660:acd0c - could this be causing the problem?) network music server. cd0 at ahc0 bus 0 target 0 lun 0 cd0: Removable CD-ROM SCSI-CCS device cd0: 3.300MB/s transfers cd0: cd present [321646 x 2048 byte records] fd0c: hard error reading fsbn 16 of 16-31 (No status) Root mount failed: 5 Mounting root from cd9660:acd0c cd1 at ahc0 bus 0 target 0 lun 1 cd1: Removable CD-ROM SCSI-CCS device cd1: 3.300MB/s transfers cd1: cd present [91407 x 2048 byte records] cd2 at ahc0 bus 0 target 0 lun 2 cd2: Removable CD-ROM SCSI-CCS device cd2: 3.300MB/s transfers cd2: cd present [332253 x 2048 byte records] cd3 at ahc0 bus 0 target 0 lun 3 cd3: Removable CD-ROM SCSI-CCS device cd3: 3.300MB/s transfers cd3: cd present [214998 x 2048 byte records] cd4 at ahc0 bus 0 target 0 lun 4 cd4: Removable CD-ROM SCSI-CCS device cd4: 3.300MB/s transfers cd4: cd present [331220 x 2048 byte records] cd5 at ahc0 bus 0 target 0 lun 5 cd5: Removable CD-ROM SCSI-CCS device cd5: 3.300MB/s transfers cd5: cd present [326103 x 2048 byte records] (cd6:ahc0:0:0:6): READ CD RECORDED CAPACITY. CDB: 25 c0 0 0 0 0 0 0 0 0 (cd6:ahc0:0:0:6): ILLEGAL REQUEST asc:25,0 (cd6:ahc0:0:0:6): Logical unit not supported (cd6:ahc0:0:0:6): fatal error, failed to attach to device (cd6:ahc0:0:0:6): lost device (cd6:ahc0:0:0:6): removing device entry (cd7:ahc0:0:0:7): READ CD RECORDED CAPACITY. CDB: 25 e0 0 0 0 0 0 0 0 0 (cd7:ahc0:0:0:7): ILLEGAL REQUEST asc:25,0 (cd7:ahc0:0:0:7): Logical unit not supported (cd7:ahc0:0:0:7): fatal error, failed to attach to device (cd7:ahc0:0:0:7): lost device (cd7:ahc0:0:0:7): removing device entry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Wed Aug 14 20:35:54 2002 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 6311737B400 for ; Wed, 14 Aug 2002 20:35:48 -0700 (PDT) Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D6FD43E72 for ; Wed, 14 Aug 2002 20:35:47 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: from panzer.kdm.org (localhost [127.0.0.1]) by panzer.kdm.org (8.12.5/8.12.5) with ESMTP id g7F3ZkKD059853; Wed, 14 Aug 2002 21:35:46 -0600 (MDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.12.5/8.12.5/Submit) id g7F3ZkuS059852; Wed, 14 Aug 2002 21:35:46 -0600 (MDT) (envelope-from ken) Date: Wed, 14 Aug 2002 21:35:46 -0600 From: "Kenneth D. Merry" To: Kurt Seel Cc: freebsd-scsi Subject: Re: pioneer DRM-600 problem Message-ID: <20020814213546.A59783@panzer.kdm.org> References: <3D5B17A4.D2862CA6@utcorp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <3D5B17A4.D2862CA6@utcorp.com>; from kseel@utcorp.com on Wed, Aug 14, 2002 at 10:53:24PM -0400 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, Aug 14, 2002 at 22:53:24 -0400, Kurt Seel wrote: > I am using FBSD 4.5-stable. > I have a Pioneer DRM-600. I passes the self diagnostic, > where to de-cable the unit, power off, flip switches 6 & > 8, then power on. It goes through loading each disc, then > ejects. Just like it should. > When the machine boots, scans the unis and finds 6 cd devs, > dmesg output at the end of this message. > But when I type : > chio status > I get this : > chio: /dev/ch0: open: Device not configured > So I made sure the devices were make, e.g. > cd /dev; ./MAKEDEV cd5; ./MAKEDEV ch0 That type of device is a LUN-based changer. You don't get a separate changer device to move CDs around. To switch from one CD to another, with one of these devices, you typically have to try to do I/O to one CD or another. Is that the way it works with this changer? Or is there some manual method you have to go through to change things around? > And : > mount -t cd9660 /dev/cd0c /conf/tmpmnt > Gives me : > cd9660: /dev/cd0c: Device busy Is there anything printed in the dmesg when you try that? If not, boot with -v and see if you get more verbose error messages. > I have tried it with evey permutation of option switches, > e.g. parity on, parity off ... no dice. > Is there any hope for this unit? I'de really like to put > 6 CD's of mp3'ed music on a (atapi) cdrom booted (if you > look at the dmesg you'll see root is cd9660:acd0c - could > this be causing the problem?) network music server. Sure, it should work. My guess is that you probably just need to tweak the timeouts some. There are two sysctl variables: kern.cam.cd.changer.min_busy_seconds and kern.cam.cd.changer.max_busy_seconds The first one controls the minimum amount of time that will be spent doing I/O to a given LUN. The second one controls the maximum amount of time that will be spent doing I/O to a given LUN, assuming there is outstanding I/O for a different LUN. See cd(4) for a little more description. The first thing I would do would be to increase both values and see if you can fix the problem that way. There are other things we can try if that doesn't work. > cd0 at ahc0 bus 0 target 0 lun 0 > cd0: Removable CD-ROM SCSI-CCS device > cd0: 3.300MB/s transfers > cd0: cd present [321646 x 2048 byte records] > fd0c: hard error reading fsbn 16 of 16-31 (No status) > Root mount failed: 5 > Mounting root from cd9660:acd0c > cd1 at ahc0 bus 0 target 0 lun 1 > cd1: Removable CD-ROM SCSI-CCS device > cd1: 3.300MB/s transfers > cd1: cd present [91407 x 2048 byte records] > cd2 at ahc0 bus 0 target 0 lun 2 > cd2: Removable CD-ROM SCSI-CCS device > cd2: 3.300MB/s transfers > cd2: cd present [332253 x 2048 byte records] > cd3 at ahc0 bus 0 target 0 lun 3 > cd3: Removable CD-ROM SCSI-CCS device > cd3: 3.300MB/s transfers > cd3: cd present [214998 x 2048 byte records] > cd4 at ahc0 bus 0 target 0 lun 4 > cd4: Removable CD-ROM SCSI-CCS device > cd4: 3.300MB/s transfers > cd4: cd present [331220 x 2048 byte records] > cd5 at ahc0 bus 0 target 0 lun 5 > cd5: Removable CD-ROM SCSI-CCS device > cd5: 3.300MB/s transfers > cd5: cd present [326103 x 2048 byte records] > (cd6:ahc0:0:0:6): READ CD RECORDED CAPACITY. CDB: 25 c0 0 0 0 0 0 0 0 0 > (cd6:ahc0:0:0:6): ILLEGAL REQUEST asc:25,0 > (cd6:ahc0:0:0:6): Logical unit not supported > (cd6:ahc0:0:0:6): fatal error, failed to attach to device > (cd6:ahc0:0:0:6): lost device > (cd6:ahc0:0:0:6): removing device entry > (cd7:ahc0:0:0:7): READ CD RECORDED CAPACITY. CDB: 25 e0 0 0 0 0 0 0 0 0 > (cd7:ahc0:0:0:7): ILLEGAL REQUEST asc:25,0 > (cd7:ahc0:0:0:7): Logical unit not supported > (cd7:ahc0:0:0:7): fatal error, failed to attach to device > (cd7:ahc0:0:0:7): lost device > (cd7:ahc0:0:0:7): removing device entry It looks like it's behaving bogusly there. It shouldn't respond to an inquiry on LUNs 6 and 7 if there isn't a CD slot at those LUNs. Anyway, that should be mostly harmless. Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Wed Aug 14 21:25:36 2002 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 453B037B400 for ; Wed, 14 Aug 2002 21:25:33 -0700 (PDT) Received: from smtp1.mivlmd.cablespeed.com (smtp1.mivlmd.cablespeed.com [216.45.64.146]) by mx1.FreeBSD.org (Postfix) with SMTP id 70D0A43E4A for ; Wed, 14 Aug 2002 21:25:32 -0700 (PDT) (envelope-from mccrobie@cablespeed.com) Received: (qmail 1011 invoked by uid 0); 15 Aug 2002 04:24:50 -0000 Received: from unknown (HELO cablespeed.com) (216.45.73.136) by 0 with SMTP; 15 Aug 2002 04:24:50 -0000 Message-ID: <3D5B2D12.D50AE2AE@cablespeed.com> Date: Thu, 15 Aug 2002 00:24:50 -0400 From: Chuck McCrobie X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 Cc: freebsd-scsi Subject: Re: pioneer DRM-600 problem References: <3D5B17A4.D2862CA6@utcorp.com> <20020814213546.A59783@panzer.kdm.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org "Kenneth D. Merry" wrote: > > On Wed, Aug 14, 2002 at 22:53:24 -0400, Kurt Seel wrote: > > I am using FBSD 4.5-stable. > > I have a Pioneer DRM-600. I passes the self diagnostic, > > where to de-cable the unit, power off, flip switches 6 & > > 8, then power on. It goes through loading each disc, then > > ejects. Just like it should. > > When the machine boots, scans the unis and finds 6 cd devs, > > dmesg output at the end of this message. > > But when I type : > > chio status > > I get this : > > chio: /dev/ch0: open: Device not configured > > So I made sure the devices were make, e.g. > > cd /dev; ./MAKEDEV cd5; ./MAKEDEV ch0 > > That type of device is a LUN-based changer. You don't get a separate > changer device to move CDs around. > > To switch from one CD to another, with one of these devices, you typically > have to try to do I/O to one CD or another. > > Is that the way it works with this changer? Or is there some manual method > you have to go through to change things around? > > > > cd5: cd present [326103 x 2048 byte records] > > (cd6:ahc0:0:0:6): READ CD RECORDED CAPACITY. CDB: 25 c0 0 0 0 0 0 0 0 0 > > (cd6:ahc0:0:0:6): ILLEGAL REQUEST asc:25,0 > > (cd6:ahc0:0:0:6): Logical unit not supported > > (cd6:ahc0:0:0:6): fatal error, failed to attach to device > > (cd6:ahc0:0:0:6): lost device > > (cd6:ahc0:0:0:6): removing device entry > > (cd7:ahc0:0:0:7): READ CD RECORDED CAPACITY. CDB: 25 e0 0 0 0 0 0 0 0 0 > > (cd7:ahc0:0:0:7): ILLEGAL REQUEST asc:25,0 > > (cd7:ahc0:0:0:7): Logical unit not supported > > (cd7:ahc0:0:0:7): fatal error, failed to attach to device > > (cd7:ahc0:0:0:7): lost device > > (cd7:ahc0:0:0:7): removing device entry > > It looks like it's behaving bogusly there. It shouldn't respond to an > inquiry on LUNs 6 and 7 if there isn't a CD slot at those LUNs. > > Anyway, that should be mostly harmless. Yes, this is a LUN based changer. To get it to swap disks, one references the other LUNs. The changer should automatically swap out one disk and insert the other. It looks like its doing what it should during the probe. I don't remember exactly what the SCSI spec. says for LUNs - I think reporting that the "Logical unit not supported" is valid for LUNs 6 and 7 - what else would a LUN type device report if it supports 6 out of 8 LUNs? Not sure what "device busy" from mount is trying to say... Chuck McCrobie To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Wed Aug 14 21:31:57 2002 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 7B5FF37B400 for ; Wed, 14 Aug 2002 21:31:55 -0700 (PDT) Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id B46C443E42 for ; Wed, 14 Aug 2002 21:31:54 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: from panzer.kdm.org (localhost [127.0.0.1]) by panzer.kdm.org (8.12.5/8.12.5) with ESMTP id g7F4VrKD060187; Wed, 14 Aug 2002 22:31:53 -0600 (MDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.12.5/8.12.5/Submit) id g7F4VqOp060186; Wed, 14 Aug 2002 22:31:52 -0600 (MDT) (envelope-from ken) Date: Wed, 14 Aug 2002 22:31:52 -0600 From: "Kenneth D. Merry" To: Chuck McCrobie Cc: freebsd-scsi Subject: Re: pioneer DRM-600 problem Message-ID: <20020814223152.A60159@panzer.kdm.org> References: <3D5B17A4.D2862CA6@utcorp.com> <20020814213546.A59783@panzer.kdm.org> <3D5B2D12.D50AE2AE@cablespeed.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <3D5B2D12.D50AE2AE@cablespeed.com>; from mccrobie@cablespeed.com on Thu, Aug 15, 2002 at 12:24:50AM -0400 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, Aug 15, 2002 at 00:24:50 -0400, Chuck McCrobie wrote: > "Kenneth D. Merry" wrote: > > On Wed, Aug 14, 2002 at 22:53:24 -0400, Kurt Seel wrote: > > > cd5: cd present [326103 x 2048 byte records] > > > (cd6:ahc0:0:0:6): READ CD RECORDED CAPACITY. CDB: 25 c0 0 0 0 0 0 0 0 0 > > > (cd6:ahc0:0:0:6): ILLEGAL REQUEST asc:25,0 > > > (cd6:ahc0:0:0:6): Logical unit not supported > > > (cd6:ahc0:0:0:6): fatal error, failed to attach to device > > > (cd6:ahc0:0:0:6): lost device > > > (cd6:ahc0:0:0:6): removing device entry > > > (cd7:ahc0:0:0:7): READ CD RECORDED CAPACITY. CDB: 25 e0 0 0 0 0 0 0 0 0 > > > (cd7:ahc0:0:0:7): ILLEGAL REQUEST asc:25,0 > > > (cd7:ahc0:0:0:7): Logical unit not supported > > > (cd7:ahc0:0:0:7): fatal error, failed to attach to device > > > (cd7:ahc0:0:0:7): lost device > > > (cd7:ahc0:0:0:7): removing device entry > > > > It looks like it's behaving bogusly there. It shouldn't respond to an > > inquiry on LUNs 6 and 7 if there isn't a CD slot at those LUNs. > > > > Anyway, that should be mostly harmless. > > Yes, this is a LUN based changer. To get it to swap disks, one > references the other LUNs. The changer should automatically swap out > one disk and insert the other. It looks like its doing what it should > during the probe. > > I don't remember exactly what the SCSI spec. says for LUNs - I think > reporting that the "Logical unit not supported" is valid for LUNs 6 and > 7 - what else would a LUN type device report if it supports 6 out of 8 > LUNs? It shouldn't respond to an inquiry on that LUN if that LUN isn't supported. The "Logical unit not supported" error is correct, but we should never get that far. The first thing we do for each LUN is send an inquiry, and the device should just not send back a response if it doesn't support the LUN. Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Thu Aug 15 4:14:45 2002 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 C3BC437B400 for ; Thu, 15 Aug 2002 04:14:39 -0700 (PDT) Received: from lennier.cc.vt.edu (lennier.cc.vt.edu [198.82.162.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D0F043E4A for ; Thu, 15 Aug 2002 04:14:39 -0700 (PDT) (envelope-from gemorga2@vt.edu) Received: from steiner.cc.vt.edu (IDENT:mirapoint@steiner-lb.cc.vt.edu [10.1.1.14]) by lennier.cc.vt.edu (8.11.4/8.11.4) with ESMTP id g7FBEcD266942 for ; Thu, 15 Aug 2002 07:14:38 -0400 (EDT) Received: from zathras (zathras.cc.vt.edu [198.82.162.117]) by steiner.cc.vt.edu (Mirapoint Messaging Server MOS 3.2.0-GA) with ESMTP id AMF08795; Thu, 15 Aug 2002 07:14:38 -0400 (EDT) X-WebMail-UserID: gemorga2 Date: Thu, 15 Aug 2002 07:14:38 -0400 From: gemorga2 To: freebsd-scsi X-EXP32-SerialNo: 00002964 Subject: RE: pioneer DRM-600 problem Message-ID: <3D5BD612@zathras> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: WebMail (Hydra) SMTP v3.62 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Beware that this is a SCSI-CCS device. I tried unsuccessfully to use this same model changer with an Adaptec 2940UW. I think the primary problem I had was that I was using an external 68 pin (wide) to 50 pin Centronix cable which did not have the upper byte terminated. This made my bus unstable. A friend with quality cables had no problems with this device though. So, as always, beware of marginal cabling. > I am using FBSD 4.5-stable. > I have a Pioneer DRM-600. I passes the self diagnostic, >where to de-cable the unit, power off, flip switches 6 & >8, then power on. It goes through loading each disc, then >ejects. Just like it should. > When the machine boots, scans the unis and finds 6 cd devs, >dmesg output at the end of this message. > But when I type : >chio status > I get this : >chio: /dev/ch0: open: Device not configured > So I made sure the devices were make, e.g. >cd /dev; ./MAKEDEV cd5; ./MAKEDEV ch0 > And : >mount -t cd9660 /dev/cd0c /conf/tmpmnt > Gives me : >cd9660: /dev/cd0c: Device busy > > I have tried it with evey permutation of option switches, >e.g. parity on, parity off ... no dice. > Is there any hope for this unit? I'de really like to put >6 CD's of mp3'ed music on a (atapi) cdrom booted (if you >look at the dmesg you'll see root is cd9660:acd0c - could >this be causing the problem?) network music server. > >cd0 at ahc0 bus 0 target 0 lun 0 >cd0: Removable CD-ROM SCSI-CCS device >cd0: 3.300MB/s transfers >cd0: cd present [321646 x 2048 byte records] >fd0c: hard error reading fsbn 16 of 16-31 (No status) >Root mount failed: 5 >Mounting root from cd9660:acd0c >cd1 at ahc0 bus 0 target 0 lun 1 >cd1: Removable CD-ROM SCSI-CCS device >cd1: 3.300MB/s transfers >cd1: cd present [91407 x 2048 byte records] >cd2 at ahc0 bus 0 target 0 lun 2 >cd2: Removable CD-ROM SCSI-CCS device >cd2: 3.300MB/s transfers >cd2: cd present [332253 x 2048 byte records] >cd3 at ahc0 bus 0 target 0 lun 3 >cd3: Removable CD-ROM SCSI-CCS device >cd3: 3.300MB/s transfers >cd3: cd present [214998 x 2048 byte records] >cd4 at ahc0 bus 0 target 0 lun 4 >cd4: Removable CD-ROM SCSI-CCS device >cd4: 3.300MB/s transfers >cd4: cd present [331220 x 2048 byte records] >cd5 at ahc0 bus 0 target 0 lun 5 >cd5: Removable CD-ROM SCSI-CCS device >cd5: 3.300MB/s transfers >cd5: cd present [326103 x 2048 byte records] >(cd6:ahc0:0:0:6): READ CD RECORDED CAPACITY. CDB: 25 c0 0 0 0 0 0 0 0 0 >(cd6:ahc0:0:0:6): ILLEGAL REQUEST asc:25,0 >(cd6:ahc0:0:0:6): Logical unit not supported >(cd6:ahc0:0:0:6): fatal error, failed to attach to device >(cd6:ahc0:0:0:6): lost device >(cd6:ahc0:0:0:6): removing device entry >(cd7:ahc0:0:0:7): READ CD RECORDED CAPACITY. CDB: 25 e0 0 0 0 0 0 0 0 0 >(cd7:ahc0:0:0:7): ILLEGAL REQUEST asc:25,0 >(cd7:ahc0:0:0:7): Logical unit not supported >(cd7:ahc0:0:0:7): fatal error, failed to attach to device >(cd7:ahc0:0:0:7): lost device >(cd7:ahc0:0:0:7): removing device entry > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-scsi" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Thu Aug 15 9: 7:41 2002 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 69E1D37B401 for ; Thu, 15 Aug 2002 09:07:37 -0700 (PDT) Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1864B43E88 for ; Thu, 15 Aug 2002 09:06:43 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: from panzer.kdm.org (localhost [127.0.0.1]) by panzer.kdm.org (8.12.5/8.12.5) with ESMTP id g7FG5sKD062725; Thu, 15 Aug 2002 10:05:54 -0600 (MDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.12.5/8.12.5/Submit) id g7FG5sZT062724; Thu, 15 Aug 2002 10:05:54 -0600 (MDT) (envelope-from ken) Date: Thu, 15 Aug 2002 10:05:54 -0600 From: "Kenneth D. Merry" To: Kurt Seel Cc: freebsd-scsi@FreeBSD.org Subject: Re: pioneer DRM-600 problem Message-ID: <20020815100553.A62621@panzer.kdm.org> References: <3D5B17A4.D2862CA6@utcorp.com> <20020814213546.A59783@panzer.kdm.org> <3D5BCB6F.535DFE78@utcorp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <3D5BCB6F.535DFE78@utcorp.com>; from kseel@utcorp.com on Thu, Aug 15, 2002 at 11:40:31AM -0400 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org [ CCing the -scsi list, so this gets in the archive to (potentially) help other folks, hope you don't mind ] On Thu, Aug 15, 2002 at 11:40:31 -0400, Kurt Seel wrote: > "Kenneth D. Merry" wrote: > > To switch from one CD to another, with one of these devices, you typically > > have to try to do I/O to one CD or another. > > > > Is that the way it works with this changer? Or is there some manual method > > you have to go through to change things around? > > > > > And : > > > mount -t cd9660 /dev/cd0c /conf/tmpmnt > > > Gives me : > > > cd9660: /dev/cd0c: Device busy > > > > Is there anything printed in the dmesg when you try that? If not, boot > > with -v and see if you get more verbose error messages. > > I did this. I made a mistake in my original post, let me explain. > It gives me 'cd9660: /dev/cd0c: Device busy' the second time I try > to mount, after having broken out ^C the first time (it was late at > night ... sorry). The first time it does nothing, forever. I let it > sit 45 minutes while I had dinner. > I booted -v, same results : does nothing, prints nothing. I have > my case open and I don't even see the SCSI controller blink (an > adaptec 2940, bios 1.23 BTW). No lights on the drive either It is very strange that it is sitting there for 45 minutes without doing anything. At the very least you should see a command timeout, since the longest timeout of anything in the open() path in the cd driver is 60 seconds. So, let's see if we can figure out what's going on with the changer. Recompile your kernel with the CAMDEBUG option. Then, before you try mounting a CD in any of the slots in the changer, do this: camcontrol debug -Ic 0:0:0 That should print out every SCSI CDB that goes to that particular LUN on the changer. Hopefully we can figure out which command is hanging. > > > I have tried it with evey permutation of option switches, > > > e.g. parity on, parity off ... no dice. > > > Is there any hope for this unit? I'de really like to put > > > 6 CD's of mp3'ed music on a (atapi) cdrom booted (if you > > > look at the dmesg you'll see root is cd9660:acd0c - could > > > this be causing the problem?) network music server. > > > > Sure, it should work. My guess is that you probably just need to tweak the > > timeouts some. There are two sysctl variables: > > > > kern.cam.cd.changer.min_busy_seconds > > and > > kern.cam.cd.changer.max_busy_seconds > > I set these to 7 (I read this in the documentation I got from > the pioneer web site somewhere) and 20 respectively. Still the > same. Shoulds I maybe turn them down? No, if anything you should crank them higher. Typically these only come into play, though, when you are switching from one LUN to another. Since your problem is coming when you try to access the first LUN, there is probably something else going on. Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Thu Aug 15 11:47: 3 2002 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 6D0DC37B400 for ; Thu, 15 Aug 2002 11:47:00 -0700 (PDT) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 0FBA743E65 for ; Thu, 15 Aug 2002 11:46:56 -0700 (PDT) (envelope-from nate@rootlabs.com) Received: (qmail 40340 invoked by uid 1000); 15 Aug 2002 18:46:56 -0000 Date: Thu, 15 Aug 2002 11:46:56 -0700 (PDT) From: Nate Lawson To: "Kenneth D. Merry" Cc: Chuck McCrobie , freebsd-scsi Subject: Re: pioneer DRM-600 problem In-Reply-To: <20020814223152.A60159@panzer.kdm.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, 14 Aug 2002, Kenneth D. Merry wrote: > On Thu, Aug 15, 2002 at 00:24:50 -0400, Chuck McCrobie wrote: > > "Kenneth D. Merry" wrote: > > > On Wed, Aug 14, 2002 at 22:53:24 -0400, Kurt Seel wrote: > > > > cd5: cd present [326103 x 2048 byte records] > > > > (cd6:ahc0:0:0:6): READ CD RECORDED CAPACITY. CDB: 25 c0 0 0 0 0 0 0 0 0 > > > > (cd6:ahc0:0:0:6): ILLEGAL REQUEST asc:25,0 > > > > (cd6:ahc0:0:0:6): Logical unit not supported > > > > (cd6:ahc0:0:0:6): fatal error, failed to attach to device > > > > (cd6:ahc0:0:0:6): lost device > > > > (cd6:ahc0:0:0:6): removing device entry > > > > (cd7:ahc0:0:0:7): READ CD RECORDED CAPACITY. CDB: 25 e0 0 0 0 0 0 0 0 0 > > > > (cd7:ahc0:0:0:7): ILLEGAL REQUEST asc:25,0 > > > > (cd7:ahc0:0:0:7): Logical unit not supported > > > > (cd7:ahc0:0:0:7): fatal error, failed to attach to device > > > > (cd7:ahc0:0:0:7): lost device > > > > (cd7:ahc0:0:0:7): removing device entry > > > > > > It looks like it's behaving bogusly there. It shouldn't respond to an > > > inquiry on LUNs 6 and 7 if there isn't a CD slot at those LUNs. > > > > > > Anyway, that should be mostly harmless. > > > > Yes, this is a LUN based changer. To get it to swap disks, one > > references the other LUNs. The changer should automatically swap out > > one disk and insert the other. It looks like its doing what it should > > during the probe. > > > > I don't remember exactly what the SCSI spec. says for LUNs - I think > > reporting that the "Logical unit not supported" is valid for LUNs 6 and > > 7 - what else would a LUN type device report if it supports 6 out of 8 > > LUNs? > > It shouldn't respond to an inquiry on that LUN if that LUN isn't supported. > > The "Logical unit not supported" error is correct, but we should never get > that far. The first thing we do for each LUN is send an inquiry, and the > device should just not send back a response if it doesn't support the LUN. I thought it was legit to respond to inquiry with the following qualifier if the device is there but doesn't support the requested LUN. #define SID_QUAL_BAD_LU 0x03 /* The target is not capable of * supporting a physical device on * this logical unit. For this * peripheral qualifier the peripheral * device type shall be set to 1Fh to * provide compatibility with previous * versions of SCSI. All other * peripheral device type values are * reserved for this peripheral * qualifier. */ -Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Thu Aug 15 12:20:46 2002 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 1B95837B400 for ; Thu, 15 Aug 2002 12:20:39 -0700 (PDT) Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3DF2143E42 for ; Thu, 15 Aug 2002 12:20:38 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: from panzer.kdm.org (localhost [127.0.0.1]) by panzer.kdm.org (8.12.5/8.12.5) with ESMTP id g7FJKYKD063851; Thu, 15 Aug 2002 13:20:34 -0600 (MDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.12.5/8.12.5/Submit) id g7FJKYRb063850; Thu, 15 Aug 2002 13:20:34 -0600 (MDT) (envelope-from ken) Date: Thu, 15 Aug 2002 13:20:33 -0600 From: "Kenneth D. Merry" To: Nate Lawson Cc: Chuck McCrobie , freebsd-scsi Subject: Re: pioneer DRM-600 problem Message-ID: <20020815132033.A63803@panzer.kdm.org> References: <20020814223152.A60159@panzer.kdm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from nate@root.org on Thu, Aug 15, 2002 at 11:46:56AM -0700 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, Aug 15, 2002 at 11:46:56 -0700, Nate Lawson wrote: > On Wed, 14 Aug 2002, Kenneth D. Merry wrote: > > On Thu, Aug 15, 2002 at 00:24:50 -0400, Chuck McCrobie wrote: > > > "Kenneth D. Merry" wrote: > > > > On Wed, Aug 14, 2002 at 22:53:24 -0400, Kurt Seel wrote: > > > > > cd5: cd present [326103 x 2048 byte records] > > > > > (cd6:ahc0:0:0:6): READ CD RECORDED CAPACITY. CDB: 25 c0 0 0 0 0 0 0 0 0 > > > > > (cd6:ahc0:0:0:6): ILLEGAL REQUEST asc:25,0 > > > > > (cd6:ahc0:0:0:6): Logical unit not supported > > > > > (cd6:ahc0:0:0:6): fatal error, failed to attach to device > > > > > (cd6:ahc0:0:0:6): lost device > > > > > (cd6:ahc0:0:0:6): removing device entry > > > > > (cd7:ahc0:0:0:7): READ CD RECORDED CAPACITY. CDB: 25 e0 0 0 0 0 0 0 0 0 > > > > > (cd7:ahc0:0:0:7): ILLEGAL REQUEST asc:25,0 > > > > > (cd7:ahc0:0:0:7): Logical unit not supported > > > > > (cd7:ahc0:0:0:7): fatal error, failed to attach to device > > > > > (cd7:ahc0:0:0:7): lost device > > > > > (cd7:ahc0:0:0:7): removing device entry > > > > > > > > It looks like it's behaving bogusly there. It shouldn't respond to an > > > > inquiry on LUNs 6 and 7 if there isn't a CD slot at those LUNs. > > > > > > > > Anyway, that should be mostly harmless. > > > > > > Yes, this is a LUN based changer. To get it to swap disks, one > > > references the other LUNs. The changer should automatically swap out > > > one disk and insert the other. It looks like its doing what it should > > > during the probe. > > > > > > I don't remember exactly what the SCSI spec. says for LUNs - I think > > > reporting that the "Logical unit not supported" is valid for LUNs 6 and > > > 7 - what else would a LUN type device report if it supports 6 out of 8 > > > LUNs? > > > > It shouldn't respond to an inquiry on that LUN if that LUN isn't supported. > > > > The "Logical unit not supported" error is correct, but we should never get > > that far. The first thing we do for each LUN is send an inquiry, and the > > device should just not send back a response if it doesn't support the LUN. > > I thought it was legit to respond to inquiry with the following qualifier > if the device is there but doesn't support the requested LUN. > > #define SID_QUAL_BAD_LU 0x03 /* The target is not capable of > * supporting a physical device on > * this logical unit. For this > * peripheral qualifier the peripheral > * device type shall be set to 1Fh to > * provide compatibility with previous > * versions of SCSI. All other > * peripheral device type values are > * reserved for this peripheral > * qualifier. > */ Yes, that is correct as well. In the inquiry case in probedone() in cam_xpt.c, we only keep going with the probe process if the peripheral qualifier is SID_QUAL_LU_CONNECTED. Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Thu Aug 15 16:40: 6 2002 Delivered-To: freebsd-scsi@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9E1A337B400 for ; Thu, 15 Aug 2002 16:40:04 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4772243E6A for ; Thu, 15 Aug 2002 16:40:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7FNe4JU044196 for ; Thu, 15 Aug 2002 16:40:04 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7FNe3qj044194; Thu, 15 Aug 2002 16:40:03 -0700 (PDT) Date: Thu, 15 Aug 2002 16:40:03 -0700 (PDT) Message-Id: <200208152340.g7FNe3qj044194@freefall.freebsd.org> To: freebsd-scsi@FreeBSD.org Cc: From: Nate Lawson Subject: Re: kern/37378: [PATCH] No 6-byte-read on Wincan USB pen flash drive, needs quirk Reply-To: Nate Lawson Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR kern/37378; it has been noted by GNATS. From: Nate Lawson To: freebsd-gnats-submit@FreeBSD.org, james@now.ie Cc: Subject: Re: kern/37378: [PATCH] No 6-byte-read on Wincan USB pen flash drive, needs quirk Date: Thu, 15 Aug 2002 16:31:42 -0700 (PDT) Please upgrade to 4.6R or -STABLE and let us know if you have more problems. If you do, please send dmesg output. Note: "minimum_cmd_size is increased to 10" message is *not* an error. -Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Fri Aug 16 0:27: 5 2002 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 D7E1537B400; Fri, 16 Aug 2002 00:27:02 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7514243E6E; Fri, 16 Aug 2002 00:27:02 -0700 (PDT) (envelope-from njl@FreeBSD.org) Received: from freefall.freebsd.org (njl@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7G7R2JU023768; Fri, 16 Aug 2002 00:27:02 -0700 (PDT) (envelope-from njl@freefall.freebsd.org) Received: (from njl@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7G7R2o8023764; Fri, 16 Aug 2002 00:27:02 -0700 (PDT) Date: Fri, 16 Aug 2002 00:27:02 -0700 (PDT) From: Nate Lawson Message-Id: <200208160727.g7G7R2o8023764@freefall.freebsd.org> To: bbourq@eatel.net, njl@FreeBSD.org, freebsd-bugs@FreeBSD.org, scsi@FreeBSD.org Subject: Re: kern/35082: IBM Intellistation will not reboot with SCSI card installed Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Synopsis: IBM Intellistation will not reboot with SCSI card installed State-Changed-From-To: open->feedback State-Changed-By: njl State-Changed-When: Fri Aug 16 00:25:29 PDT 2002 State-Changed-Why: Once you boot, do you have any problems with the drive? Are there any error messages on console (dmesg)? Can you boot from a floppy and load the kernel from the SCSI drive? Let us know if you can report more info. Responsible-Changed-From-To: freebsd-bugs->scsi Responsible-Changed-By: njl Responsible-Changed-When: Fri Aug 16 00:25:29 PDT 2002 Responsible-Changed-Why: Once you boot, do you have any problems with the drive? Are there any error messages on console (dmesg)? Can you boot from a floppy and load the kernel from the SCSI drive? Let us know if you can report more info. http://www.freebsd.org/cgi/query-pr.cgi?pr=35082 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Fri Aug 16 0:29:48 2002 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 D695137B400; Fri, 16 Aug 2002 00:29:45 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7FFEF43E70; Fri, 16 Aug 2002 00:29:45 -0700 (PDT) (envelope-from njl@FreeBSD.org) Received: from freefall.freebsd.org (njl@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7G7TjJU023994; Fri, 16 Aug 2002 00:29:45 -0700 (PDT) (envelope-from njl@freefall.freebsd.org) Received: (from njl@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7G7Ti24023983; Fri, 16 Aug 2002 00:29:44 -0700 (PDT) Date: Fri, 16 Aug 2002 00:29:44 -0700 (PDT) From: Nate Lawson Message-Id: <200208160729.g7G7Ti24023983@freefall.freebsd.org> To: vadim.k@sapiens.com, njl@FreeBSD.org, freebsd-bugs@FreeBSD.org, scsi@FreeBSD.org Subject: Re: misc/31670: Wide-Ultra 10k SCSI 3 drive is not recognized by FreeBSD 4.4 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Synopsis: Wide-Ultra 10k SCSI 3 drive is not recognized by FreeBSD 4.4 State-Changed-From-To: feedback->suspended State-Changed-By: njl State-Changed-When: Fri Aug 16 00:28:46 PDT 2002 State-Changed-Why: No response for 6 months. Responsible-Changed-From-To: freebsd-bugs->scsi Responsible-Changed-By: njl Responsible-Changed-When: Fri Aug 16 00:28:46 PDT 2002 Responsible-Changed-Why: May be a bus termination or SCSI id hardware problem. Please let us know if you have further information. http://www.freebsd.org/cgi/query-pr.cgi?pr=31670 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Fri Aug 16 0:32:40 2002 Delivered-To: freebsd-scsi@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B23A37B400; Fri, 16 Aug 2002 00:32:37 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D8A643E3B; Fri, 16 Aug 2002 00:32:37 -0700 (PDT) (envelope-from njl@FreeBSD.org) Received: from freefall.freebsd.org (njl@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7G7WbJU024546; Fri, 16 Aug 2002 00:32:37 -0700 (PDT) (envelope-from njl@freefall.freebsd.org) Received: (from njl@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7G7WaMH024542; Fri, 16 Aug 2002 00:32:36 -0700 (PDT) Date: Fri, 16 Aug 2002 00:32:36 -0700 (PDT) From: Nate Lawson Message-Id: <200208160732.g7G7WaMH024542@freefall.freebsd.org> To: cst@nty.ch, njl@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-scsi@FreeBSD.org Subject: Re: misc/32194: Adaptec SCSI RAID 2100 fails by reboot Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Synopsis: Adaptec SCSI RAID 2100 fails by reboot State-Changed-From-To: open->feedback State-Changed-By: njl State-Changed-When: Fri Aug 16 00:31:26 PDT 2002 State-Changed-Why: Please let us know if you are still having trouble. dmesg output would be useful after a boot -v Responsible-Changed-From-To: freebsd-bugs->freebsd-scsi Responsible-Changed-By: njl Responsible-Changed-When: Fri Aug 16 00:31:26 PDT 2002 Responsible-Changed-Why: SCSI controller problem http://www.freebsd.org/cgi/query-pr.cgi?pr=32194 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Fri Aug 16 0:44:14 2002 Delivered-To: freebsd-scsi@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC30337B40A; Fri, 16 Aug 2002 00:44:10 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EFA9743E75; Fri, 16 Aug 2002 00:44:04 -0700 (PDT) (envelope-from njl@FreeBSD.org) Received: from freefall.freebsd.org (njl@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7G7i4JU025717; Fri, 16 Aug 2002 00:44:04 -0700 (PDT) (envelope-from njl@freefall.freebsd.org) Received: (from njl@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7G7hqVe025709; Fri, 16 Aug 2002 00:43:52 -0700 (PDT) Date: Fri, 16 Aug 2002 00:43:52 -0700 (PDT) From: Nate Lawson Message-Id: <200208160743.g7G7hqVe025709@freefall.freebsd.org> To: ph7@club-internet.fr, njl@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-scsi@FreeBSD.org Subject: Re: kern/29875: CURRENT driver for Tekram DC395X and DC315X SCSI cards Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Synopsis: CURRENT driver for Tekram DC395X and DC315X SCSI cards State-Changed-From-To: open->feedback State-Changed-By: njl State-Changed-When: Fri Aug 16 00:42:29 PDT 2002 State-Changed-Why: There was a discussion recently to integrate this driver. Please discuss this with Matt Dodd and Joerg Wunsch. Thread starts with this message: <20020811103649.G39683@uriah.heep.sax.de> Responsible-Changed-From-To: freebsd-bugs->freebsd-scsi Responsible-Changed-By: njl Responsible-Changed-When: Fri Aug 16 00:42:29 PDT 2002 Responsible-Changed-Why: New SIM driver http://www.freebsd.org/cgi/query-pr.cgi?pr=29875 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Fri Aug 16 0:56:30 2002 Delivered-To: freebsd-scsi@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 856CD37B400; Fri, 16 Aug 2002 00:56:27 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3586643E72; Fri, 16 Aug 2002 00:56:27 -0700 (PDT) (envelope-from njl@FreeBSD.org) Received: from freefall.freebsd.org (njl@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7G7uRJU027107; Fri, 16 Aug 2002 00:56:27 -0700 (PDT) (envelope-from njl@freefall.freebsd.org) Received: (from njl@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7G7uQeV027103; Fri, 16 Aug 2002 00:56:26 -0700 (PDT) Date: Fri, 16 Aug 2002 00:56:26 -0700 (PDT) From: Nate Lawson Message-Id: <200208160756.g7G7uQeV027103@freefall.freebsd.org> To: m@fjts.org, njl@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-scsi@FreeBSD.org Subject: Re: kern/35999: add support for general flash disks to scsi_da.c Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Synopsis: add support for general flash disks to scsi_da.c State-Changed-From-To: open->feedback State-Changed-By: njl State-Changed-When: Fri Aug 16 00:54:37 PDT 2002 State-Changed-Why: Please let us know if you are still having the problem. CDB6 quirks with USB should be no longer necessary. If your device won't work without the quirks, please send a full dmesg so we can track down the root problem. Responsible-Changed-From-To: freebsd-bugs->freebsd-scsi Responsible-Changed-By: njl Responsible-Changed-When: Fri Aug 16 00:54:37 PDT 2002 Responsible-Changed-Why: SCSI cdb6 problem http://www.freebsd.org/cgi/query-pr.cgi?pr=35999 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Fri Aug 16 1: 3:53 2002 Delivered-To: freebsd-scsi@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D2F1237B400; Fri, 16 Aug 2002 01:03:50 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8375E43E6E; Fri, 16 Aug 2002 01:03:50 -0700 (PDT) (envelope-from njl@FreeBSD.org) Received: from freefall.freebsd.org (njl@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7G83oJU027686; Fri, 16 Aug 2002 01:03:50 -0700 (PDT) (envelope-from njl@freefall.freebsd.org) Received: (from njl@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7G83nRj027682; Fri, 16 Aug 2002 01:03:49 -0700 (PDT) Date: Fri, 16 Aug 2002 01:03:49 -0700 (PDT) From: Nate Lawson Message-Id: <200208160803.g7G83nRj027682@freefall.freebsd.org> To: p@i609a.hadiko.de, njl@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-scsi@FreeBSD.org Subject: Re: kern/36845: Add ioctls CDRIOCREADSPEED/WRITESPEED to the scsi cd driver Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Synopsis: Add ioctls CDRIOCREADSPEED/WRITESPEED to the scsi cd driver State-Changed-From-To: open->analyzed State-Changed-By: njl State-Changed-When: Fri Aug 16 00:57:49 PDT 2002 State-Changed-Why: Patch needs some reworking to fit scsi_cd/scsi_all semantics... will analyze some more and consider committing this modulo fixes. Responsible-Changed-From-To: freebsd-bugs->freebsd-scsi Responsible-Changed-By: njl Responsible-Changed-When: Fri Aug 16 00:57:49 PDT 2002 Responsible-Changed-Why: new SCSI cd functionality http://www.freebsd.org/cgi/query-pr.cgi?pr=36845 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Fri Aug 16 1:22:42 2002 Delivered-To: freebsd-scsi@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 76F6D37B400; Fri, 16 Aug 2002 01:22:38 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 282A243E70; Fri, 16 Aug 2002 01:22:38 -0700 (PDT) (envelope-from njl@FreeBSD.org) Received: from freefall.freebsd.org (njl@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7G8McJU034153; Fri, 16 Aug 2002 01:22:38 -0700 (PDT) (envelope-from njl@freefall.freebsd.org) Received: (from njl@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7G8Mb24034146; Fri, 16 Aug 2002 01:22:37 -0700 (PDT) Date: Fri, 16 Aug 2002 01:22:37 -0700 (PDT) From: Nate Lawson Message-Id: <200208160822.g7G8Mb24034146@freefall.freebsd.org> To: Reinier.Kleipool.reinier@kleipool.org, njl@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-scsi@FreeBSD.org Subject: Re: bin/37765: Contribute CAM SCSI utillity Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Synopsis: Contribute CAM SCSI utillity State-Changed-From-To: open->closed State-Changed-By: njl State-Changed-When: Fri Aug 16 01:19:22 PDT 2002 State-Changed-Why: We appreciate the submitter's desire to share code and encourage him to make his tapelog software available on his webpage or through ports. However, we must decline integration of the code due to it being specific to HP DDS drives and /sbin being extremely growth-sensitive. Responsible-Changed-From-To: freebsd-bugs->freebsd-scsi Responsible-Changed-By: njl Responsible-Changed-When: Fri Aug 16 01:19:22 PDT 2002 Responsible-Changed-Why: request for new SCSI-related shell script http://www.freebsd.org/cgi/query-pr.cgi?pr=37765 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Fri Aug 16 3:50:12 2002 Delivered-To: freebsd-scsi@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F98337B400 for ; Fri, 16 Aug 2002 03:50:10 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D27F943E4A for ; Fri, 16 Aug 2002 03:50:09 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7GAo9JU055250 for ; Fri, 16 Aug 2002 03:50:09 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7GAo99S055248; Fri, 16 Aug 2002 03:50:09 -0700 (PDT) Date: Fri, 16 Aug 2002 03:50:09 -0700 (PDT) Message-Id: <200208161050.g7GAo99S055248@freefall.freebsd.org> To: freebsd-scsi@FreeBSD.org Cc: From: James Raftery Subject: Re: kern/37378: [PATCH] No 6-byte-read on Wincan USB pen flash drive, needs quirk Reply-To: James Raftery Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR kern/37378; it has been noted by GNATS. From: James Raftery To: Nate Lawson Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: kern/37378: [PATCH] No 6-byte-read on Wincan USB pen flash drive, needs quirk Date: Fri, 16 Aug 2002 11:39:31 +0100 Nate Lawson wrote: > Please upgrade to 4.6R or -STABLE and let us know if you have more > problems. If you do, please send dmesg output. Note: "minimum_cmd_size > is increased to 10" message is *not* an error. Hi, I actually went to RELENG_4_6 at home last weekend, with the intention of testing the READ(6)/WRITE(6) auto-detection code added to that branch. Unfortunately, my flash drive appears to have failed. When I get it working again (doesn't seem likely) or replaced I'll update this PR. Thanks, james To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Fri Aug 16 8:12:20 2002 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 615CE37B400 for ; Fri, 16 Aug 2002 08:12:18 -0700 (PDT) Received: from mail2.lsil.com (mail2.lsil.com [147.145.40.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED79A43E6A for ; Fri, 16 Aug 2002 08:12:17 -0700 (PDT) (envelope-from vanis@lsil.com) Received: from mhbs.lsil.com (mhbs [147.145.31.100]) by mail2.lsil.com (8.9.3+Sun/8.9.1) with ESMTP id IAA16998 for ; Fri, 16 Aug 2002 08:12:15 -0700 (PDT) Received: from atl1.se.lsil.com by mhbs.lsil.com with ESMTP for freebsd-scsi@FreeBSD.ORG; Fri, 16 Aug 2002 08:12:13 -0700 Received: by EXA-ATLANTA.se.lsil.com with Internet Mail Service (5.5.2653.19) id ; Fri, 16 Aug 2002 11:12:08 -0400 Message-Id: <0E3FA95632D6D047BA649F95DAB60E5701265BCC@EXA-ATLANTA.se.lsil.com> From: "Sabapathi, Vanishree" To: freebsd-scsi@FreeBSD.ORG Subject: Reg: Reset and Abort Entry point in CAM scsi driver Date: Fri, 16 Aug 2002 11:12:07 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, I would like to know when the Abort and reset entry point is called in a CAM-Scsi driver... These entry points are never getting called in my driver... I tried running i/o's on my disk and pulling the power of one of the disks on which the i/o was running...The i/o's were freezed on screen... Now I expected XPT_ABORT/XPT_RESET entry points in my driver to be called... but my Driver's entry point was never called... ( I mean my driver was never called with any entry point) Please advice if I should be doing something special to handle these cases.. Regards, -Vani. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Fri Aug 16 8:40: 0 2002 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 558FE37B400 for ; Fri, 16 Aug 2002 08:39:58 -0700 (PDT) Received: from aslan.scsiguy.com (aslan.scsiguy.com [63.229.232.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9525E43E70 for ; Fri, 16 Aug 2002 08:39:57 -0700 (PDT) (envelope-from gibbs@scsiguy.com) Received: from aslan.scsiguy.com (aslan.scsiguy.com [63.229.232.106]) by aslan.scsiguy.com (8.12.5/8.12.5) with ESMTP id g7GFdWZY027114; Fri, 16 Aug 2002 09:39:32 -0600 (MDT) (envelope-from gibbs@scsiguy.com) Date: Fri, 16 Aug 2002 09:39:32 -0600 From: "Justin T. Gibbs" To: "Sabapathi, Vanishree" , freebsd-scsi@FreeBSD.ORG Subject: Re: Reg: Reset and Abort Entry point in CAM scsi driver Message-ID: <3134680000.1029512372@aslan.scsiguy.com> In-Reply-To: <0E3FA95632D6D047BA649F95DAB60E5701265BCC@EXA-ATLANTA.se.lsil.com> References: <0E3FA95632D6D047BA649F95DAB60E5701265BCC@EXA-ATLANTA.se.lsil.co m> X-Mailer: Mulberry/2.2.1 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > Hi, > I would like to know when the Abort and reset entry point is called > in a CAM-Scsi driver... These entry points are never getting called in my > driver... > I tried running i/o's on my disk and pulling the power of one of the disks > on which the i/o was running...The i/o's were freezed on screen... Now I > expected XPT_ABORT/XPT_RESET entry points in my driver to be called... but > my Driver's entry point was never called... ( I mean my driver was never > called with any entry point) > > Please advice if I should be doing something special to handle these > cases.. FreeBSD != Linux. The SIM drivers are responsible for honoring the timeout field as specified in the CCB. If you look at other SIM drivers in the FreeBSD tree, you will see them either using the "timeout" function or the "callout_reset" APIs. See callout.9 for details. When a SIM sees a timeout, it is up to the SIM to determine what recovery actions are required to restore operation. This avoids lots of ugly issues with timeouts managed by the upper SCSI layer: 1) When should the timeout be started? Only the SIM knows when I/O is really started, so it should make that decision. 2) What if a timeout occurs just as a command completed? Only the SIM can determine if this is the case and properly ignore the timeout and return the command as completed correctly. 3) How do you untangle the semantics of "abort" if it can either mean, abort this command because I'm no longer interested in it, or my watchdog timer expired so I'm just flailing about aborting stuff in the hopes that the SIM will restore bus operation. For these and other reasons, the SIMS are responsible for timeout management. I would expect you to see an XPT_RESET ccb just after probe unless your path inquiry data has PIM_NOBUSRESET set. -- Justin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Fri Aug 16 9:13:41 2002 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 476EE37B400 for ; Fri, 16 Aug 2002 09:13:39 -0700 (PDT) Received: from smtp.web.de (smtp03.web.de [217.72.192.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01F9543E77 for ; Fri, 16 Aug 2002 09:13:38 -0700 (PDT) (envelope-from Jan.Lentfer@web.de) Received: from [217.225.198.124] (helo=floundjan.homeip.net) by smtp.web.de with esmtp (WEB.DE(Exim) 4.75 #2) id 17fjjE-0006ho-00 for freebsd-scsi@freebsd.org; Fri, 16 Aug 2002 18:13:36 +0200 Received: from localhost (localhost.lan [127.0.0.1]) by floundjan.homeip.net (Postfix on FreeBSD 4.5) with ESMTP id 95EDD400 for ; Fri, 16 Aug 2002 18:13:35 +0200 (CEST) Received: by floundjan.homeip.net (Postfix on FreeBSD 4.5, from userid 80) id 0205A304; Fri, 16 Aug 2002 18:13:30 +0200 (CEST) Received: from 192.168.0.25 ( [192.168.0.25]) as user jan@localhost by www-mail.lan with HTTP; Fri, 16 Aug 2002 18:13:30 +0200 Message-ID: <1029514410.3d5d24aa9e561@www-mail.lan> Date: Fri, 16 Aug 2002 18:13:30 +0200 From: Jan Lentfer To: freebsd-scsi@freebsd.org Subject: Problems with external SCSI device MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.1 / FreeBSD-4.6 X-Originating-IP: 192.168.0.25 X-Virus-Scanned: by AMaViS perl-10 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi all, sorry for cross-posting but I am not quite sure if this maybe a alpha specific problem. Here is the situation: I bought an external DAT streamer from ebay, whenever I try to boot with the streamer connected I machine stops with: ahc0: Someone reset channel A Here is the scsi part of my dmesg without the streamer: [...] ahc0: port 0x8000-0x80ff mem 0x80040000-0x8004 0fff irq 20 at device 10.0 on pci1 ahc0: interrupting at CIA irq 20 aic7880: Ultra Wide Channel A, SCSI Id=7, 16/253 SCBs [...] da1 at ahc0 bus 0 target 8 lun 0 da1: Fixed Direct Access SCSI-2 device da1: 20.000MB/s transfers (10.000MHz, offset 8, 16bit), Tagged Queueing Enabled da1: 8683MB (17783112 512 byte sectors: 255H 63S/T 1106C) da0 at ahc0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-2 device da0: 20.000MB/s transfers (10.000MHz, offset 8, 16bit), Tagged Queueing Enabled da0: 4094MB (8386000 512 byte sectors: 255H 63S/T 522C) [...] this is the relevant part of my kernel-config: # SCSI Controllers device ahc # AHA2940 and onboard AIC7xxx devices #device esp # 53C94 & friends, not CAM-ified #device isp # Qlogic family #device ncr # NCR/Symbios Logic #device sym # NCR/Symbios Logic (newer chipsets) # SCSI peripherals device scbus # SCSI bus (required) device da # Direct Access (disks) device sa # Sequential Access (tape etc) device cd # CD device pass # Passthrough device (direct SCSI access) I tried different IDs on the streamer - no effect. Can anyone help me? Many Thanks in advance, Jan PS: uname -a FreeBSD jan-alpha.lan 4.6.1-RELEASE-p5 FreeBSD 4.6.1-RELEASE-p5 #1: Fri Aug 16 17:18:26 CEST 2002 jan@jan-alpha.lan:/usr/src/sys/compile/EV56 alpha This is a DEC PWS 500a ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Fri Aug 16 9:40: 7 2002 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 85C1537B400 for ; Fri, 16 Aug 2002 09:40:03 -0700 (PDT) Received: from magic.adaptec.com (magic.adaptec.com [208.236.45.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 149B743E42 for ; Fri, 16 Aug 2002 09:40:03 -0700 (PDT) (envelope-from gibbs@scsiguy.com) Received: from redfish.adaptec.com (redfish.adaptec.com [162.62.50.11]) by magic.adaptec.com (8.10.2+Sun/8.10.2) with ESMTP id g7GGe1G04544; Fri, 16 Aug 2002 09:40:01 -0700 (PDT) Received: from btc.btc.adaptec.com (btc.btc.adaptec.com [10.100.0.52]) by redfish.adaptec.com (8.8.8+Sun/8.8.8) with ESMTP id JAA29922; Fri, 16 Aug 2002 09:40:00 -0700 (PDT) Received: from [10.100.253.70] (aslan [10.100.253.70]) by btc.btc.adaptec.com (8.8.8+Sun/8.8.8) with ESMTP id KAA06537; Fri, 16 Aug 2002 10:39:58 -0600 (MDT) Date: Fri, 16 Aug 2002 10:39:59 -0600 From: "Justin T. Gibbs" Reply-To: "Justin T. Gibbs" To: Jan Lentfer , freebsd-scsi@freebsd.org Subject: Re: Problems with external SCSI device Message-ID: <912860000.1029515999@aslan.btc.adaptec.com> In-Reply-To: <1029514410.3d5d24aa9e561@www-mail.lan> References: <1029514410.3d5d24aa9e561@www-mail.lan> X-Mailer: Mulberry/2.2.1 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > Hi all, > > sorry for cross-posting but I am not quite sure if this maybe a alpha > specific problem. > > Here is the situation: > I bought an external DAT streamer from ebay, whenever I try to boot with > the streamer connected I machine stops with: > > ahc0: Someone reset channel A Are you sure that the DAT drive is properly terminating the bus? -- Justin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Fri Aug 16 9:53:37 2002 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 4700B37B400 for ; Fri, 16 Aug 2002 09:53:36 -0700 (PDT) Received: from smtp.web.de (smtp01.web.de [194.45.170.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32C5843E65 for ; Fri, 16 Aug 2002 09:53:34 -0700 (PDT) (envelope-from Jan.Lentfer@web.de) Received: from [217.225.198.124] (helo=floundjan.homeip.net) by smtp.web.de with esmtp (WEB.DE(Exim) 4.75 #2) id 17fkLp-00065J-00; Fri, 16 Aug 2002 18:53:29 +0200 Received: from localhost (localhost.lan [127.0.0.1]) by floundjan.homeip.net (Postfix on FreeBSD 4.5) with ESMTP id E4911304; Fri, 16 Aug 2002 18:53:26 +0200 (CEST) Received: from jan-linnb.lan (jan-linnb.lan [192.168.0.25]) by floundjan.homeip.net (Postfix on FreeBSD 4.5) with ESMTP id 2A78F126; Fri, 16 Aug 2002 18:53:23 +0200 (CEST) Subject: Re: Problems with external SCSI device From: Jan Lentfer To: "Justin T. Gibbs" Cc: freebsd-scsi@freebsd.org In-Reply-To: <912860000.1029515999@aslan.btc.adaptec.com> References: <1029514410.3d5d24aa9e561@www-mail.lan> <912860000.1029515999@aslan.btc.adaptec.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 16 Aug 2002 18:52:25 +0200 Message-Id: <1029516746.2796.3.camel@jan-linnb.lan> Mime-Version: 1.0 X-Virus-Scanned: by AMaViS perl-10 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Am Fre, 2002-08-16 um 18.39 schrieb Justin T. Gibbs: > > Hi all, > > > > sorry for cross-posting but I am not quite sure if this maybe a alpha > > specific problem. > > > > Here is the situation: > > I bought an external DAT streamer from ebay, whenever I try to boot with > > the streamer connected I machine stops with: > > > > ahc0: Someone reset channel A > > Are you sure that the DAT drive is properly terminating the bus? I think so. The DAT is an older IBM 3440 001. The guy I bought it from said it had an internal terminator. There's only one Centronics connector on the case, so I can't use a terminator anyway. Jan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Fri Aug 16 10:32:27 2002 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 7CA8337B400 for ; Fri, 16 Aug 2002 10:32:24 -0700 (PDT) Received: from magic.adaptec.com (magic.adaptec.com [208.236.45.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B95943E3B for ; Fri, 16 Aug 2002 10:32:24 -0700 (PDT) (envelope-from gibbs@scsiguy.com) Received: from redfish.adaptec.com (redfish.adaptec.com [162.62.50.11]) by magic.adaptec.com (8.10.2+Sun/8.10.2) with ESMTP id g7GHWHG12677; Fri, 16 Aug 2002 10:32:18 -0700 (PDT) Received: from btc.btc.adaptec.com (btc.btc.adaptec.com [10.100.0.52]) by redfish.adaptec.com (8.8.8+Sun/8.8.8) with ESMTP id KAA08309; Fri, 16 Aug 2002 10:32:17 -0700 (PDT) Received: from [10.100.253.70] (aslan [10.100.253.70]) by btc.btc.adaptec.com (8.8.8+Sun/8.8.8) with ESMTP id LAA06851; Fri, 16 Aug 2002 11:32:14 -0600 (MDT) Date: Fri, 16 Aug 2002 11:32:16 -0600 From: "Justin T. Gibbs" Reply-To: "Justin T. Gibbs" To: Jan Lentfer Cc: freebsd-scsi@freebsd.org Subject: Re: Problems with external SCSI device Message-ID: <948070000.1029519135@aslan.btc.adaptec.com> In-Reply-To: <1029516746.2796.3.camel@jan-linnb.lan> References: <1029514410.3d5d24aa9e561@www-mail.lan> <912860000.1029515999@aslan.btc.adaptec.com> <1029516746.2796.3.camel@jan-linnb.lan> X-Mailer: Mulberry/2.2.1 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > Am Fre, 2002-08-16 um 18.39 schrieb Justin T. Gibbs: >> > Hi all, >> > >> > sorry for cross-posting but I am not quite sure if this maybe a alpha >> > specific problem. >> > >> > Here is the situation: >> > I bought an external DAT streamer from ebay, whenever I try to boot >> > with the streamer connected I machine stops with: >> > >> > ahc0: Someone reset channel A >> >> Are you sure that the DAT drive is properly terminating the bus? > > I think so. The DAT is an older IBM 3440 001. The guy I bought it from > said it had an internal terminator. There's only one Centronics > connector on the case, so I can't use a terminator anyway. Most of these drives require you to set a jumper or dip-switch to nable termination. Do you have auto-termination set on the SCSI adapter or did you manually change the settings? A verbose boot from the system should tell you how the controller is terminated. -- Justin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Fri Aug 16 10:40:44 2002 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 0958D37B4BD for ; Fri, 16 Aug 2002 10:40:31 -0700 (PDT) Received: from smtp.web.de (smtp03.web.de [217.72.192.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D48043E77 for ; Fri, 16 Aug 2002 10:40:30 -0700 (PDT) (envelope-from Jan.Lentfer@web.de) Received: from [217.225.198.124] (helo=floundjan.homeip.net) by smtp.web.de with esmtp (WEB.DE(Exim) 4.75 #2) id 17fl5J-0003W2-00; Fri, 16 Aug 2002 19:40:29 +0200 Received: from localhost (localhost.lan [127.0.0.1]) by floundjan.homeip.net (Postfix on FreeBSD 4.5) with ESMTP id 43B0C412; Fri, 16 Aug 2002 19:40:28 +0200 (CEST) Received: from jan-linnb.lan (jan-linnb.lan [192.168.0.25]) by floundjan.homeip.net (Postfix on FreeBSD 4.5) with ESMTP id 9EC80400; Fri, 16 Aug 2002 19:40:24 +0200 (CEST) Subject: Re: Problems with external SCSI device From: Jan Lentfer To: "Justin T. Gibbs" Cc: freebsd-scsi@freebsd.org In-Reply-To: <948070000.1029519135@aslan.btc.adaptec.com> References: <1029514410.3d5d24aa9e561@www-mail.lan> <912860000.1029515999@aslan.btc.adaptec.com> <1029516746.2796.3.camel@jan-linnb.lan> <948070000.1029519135@aslan.btc.adaptec.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 16 Aug 2002 19:39:27 +0200 Message-Id: <1029519567.2794.12.camel@jan-linnb.lan> Mime-Version: 1.0 X-Virus-Scanned: by AMaViS perl-10 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Am Fre, 2002-08-16 um 19.32 schrieb Justin T. Gibbs: > > Am Fre, 2002-08-16 um 18.39 schrieb Justin T. Gibbs: > >> > Hi all, > >> > > >> > sorry for cross-posting but I am not quite sure if this maybe a alpha > >> > specific problem. > >> > > >> > Here is the situation: > >> > I bought an external DAT streamer from ebay, whenever I try to boot > >> > with the streamer connected I machine stops with: > >> > > >> > ahc0: Someone reset channel A > >> > >> Are you sure that the DAT drive is properly terminating the bus? > > > > I think so. The DAT is an older IBM 3440 001. The guy I bought it from > > said it had an internal terminator. There's only one Centronics > > connector on the case, so I can't use a terminator anyway. > > Most of these drives require you to set a jumper or dip-switch to > nable termination. Do you have auto-termination set on the SCSI adapter > or did you manually change the settings? A verbose boot from the > system should tell you how the controller is terminated. Meanwhile I moved the controller over to a x86 box to get access to the card' BIOS. I found that the drive is not identified at start by the controller if connected to the external port. So I opened up the DATs case and connected it directly to the inside 50 pin connector and voila... it is identified. Is it possible that his is a problem with my external cable? I got both new today. It is a Centronics to 25 pin cable with an adapter for 25pin to HD68. They didn't have a Centronics to HD68 cable so I choose this way. The cable is 2 meters. Thanks, Jan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Fri Aug 16 13:18:42 2002 Delivered-To: freebsd-scsi@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A33A37B400; Fri, 16 Aug 2002 13:18:40 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5940643E97; Fri, 16 Aug 2002 13:18:39 -0700 (PDT) (envelope-from njl@FreeBSD.org) Received: from freefall.freebsd.org (njl@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7GKIdJU064578; Fri, 16 Aug 2002 13:18:39 -0700 (PDT) (envelope-from njl@freefall.freebsd.org) Received: (from njl@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7GKIUkI064557; Fri, 16 Aug 2002 13:18:30 -0700 (PDT) Date: Fri, 16 Aug 2002 13:18:30 -0700 (PDT) From: Nate Lawson Message-Id: <200208162018.g7GKIUkI064557@freefall.freebsd.org> To: james@now.ie, njl@FreeBSD.org, freebsd-scsi@FreeBSD.org Subject: Re: kern/37378: [PATCH] No 6-byte-read on Wincan USB pen flash drive, needs quirk Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Synopsis: [PATCH] No 6-byte-read on Wincan USB pen flash drive, needs quirk State-Changed-From-To: open->suspended State-Changed-By: njl State-Changed-When: Fri Aug 16 13:17:31 PDT 2002 State-Changed-Why: Submitter can reopen this in the future once hardware is available for testing. http://www.freebsd.org/cgi/query-pr.cgi?pr=37378 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Fri Aug 16 15:39: 3 2002 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 3A75D37B401 for ; Fri, 16 Aug 2002 15:39:01 -0700 (PDT) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 4C6A143E75 for ; Fri, 16 Aug 2002 15:39:00 -0700 (PDT) (envelope-from nate@rootlabs.com) Received: (qmail 43933 invoked by uid 1000); 16 Aug 2002 22:39:01 -0000 Date: Fri, 16 Aug 2002 15:39:01 -0700 (PDT) From: Nate Lawson To: scsi@freebsd.org, current@freebsd.org Subject: Proliferating quirk table entries Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I'm working on cleaning up quirk entries in scsi_da.c, especially ones related to READ/WRITE 6->10 escalation. For those just joining in, there is a function (cmd6workaround) that handles a R/W6 error by translating the cdb to 10 bytes and restarting it. It also increases the command size that will be used to 10 so future R/W requests automatically work. This is obviously preferable to entering quirk entries for every USB device. This function has been tested for a while but it's still possible some equipment won't correctly handle the workaround. I am preparing to add a kernel option (DISABLE_CDB6_QUIRKS) that will default to off. It will disable the use of DA_Q_NO_6_BYTE to allow cmd6workaround to do its stuff. Users of equipment listed in the quirk table would be solicited to enable this kernel option and try their equipment again. If problems are found in the workaround code, I will attempt to fix them. If things work, that quirk can be removed. If you have alternative suggestions, let me know. NO_SYNC_CACHE will be next on my list. -Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message