From owner-freebsd-scsi Sun Aug 18 15:11: 2 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 BFC6337B400; Sun, 18 Aug 2002 15:10:56 -0700 (PDT) Received: from mail.libertysurf.net (mail.libertysurf.net [213.36.80.91]) by mx1.FreeBSD.org (Postfix) with ESMTP id 50FC243E75; Sun, 18 Aug 2002 15:10:56 -0700 (PDT) (envelope-from groudier@free.fr) Received: from [192.168.1.129] (212.232.46.182) by mail.libertysurf.net (6.5.026) id 3D518C6B001F814F; Mon, 19 Aug 2002 00:10:47 +0200 Date: Mon, 19 Aug 2002 01:55:10 +0200 (CEST) From: =?ISO-8859-1?Q?G=E9rard_Roudier?= X-X-Sender: groudier@localhost.my.domain To: "Kenneth D. Merry" Cc: Sergey Babkin , "Semen A. Ustimenko" , , Subject: Re: SCSI device emulation using SCSI host controller In-Reply-To: <20020813203037.A53640@panzer.kdm.org> Message-ID: <20020819012514.C200-100000@localhost.my.domain> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE 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, 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 matter= s) > > > > 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, i= t 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. Indeed sym(4) doesn't support target mode. I had such plan to add such support a couple of years ago in order to make possible some low cost high speed host-to-host communication, but finally I didn't found for now good reasons enough for completing this work. Instead, the result would have not high speed at high cost communication and probably bunches of undocumented hardware bugs to suffer of. Btw, I haven't any project related to SCSI device emulation. My impressions and observations about Ncr/Symbios/Lsi 8xx/1010 SCSI/SCRIPT based devices for SCSI target mode are the following: 1) The older the chip, the better for target mode :-) (I mean less hardware bugs to work-around) 2) The vendor of the chips don't provide target mode drivers nor encourage this much to develop such. 3) Given the Device Errata Listings I could look into, the Ultra-160 LSI1010-33 is only usable in asynchronous mode (about 3 Mega-transfers per second) in target mode. (Better not to want to support target mode on those chips) Given #3, the maximum throughput with target mode on such chip family cannot be greater that 80 MB/s which is not faster than Gigabit ethernet for example. The current LSILOGIC interface technology for SCSI chip is MPT/fusion. I would suggest to rather invest on it. The 8xx SCSI scripts based technology will never support more than Ultra-160. G=E9rard. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Mon Aug 19 8:45:15 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 93D1B37B401; Mon, 19 Aug 2002 08:45:11 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B452243E8A; Mon, 19 Aug 2002 08:45:10 -0700 (PDT) (envelope-from johan@FreeBSD.org) Received: from freefall.freebsd.org (johan@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7JFjAJU072715; Mon, 19 Aug 2002 08:45:10 -0700 (PDT) (envelope-from johan@freefall.freebsd.org) Received: (from johan@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7JFitpp072690; Mon, 19 Aug 2002 08:44:55 -0700 (PDT) Date: Mon, 19 Aug 2002 08:44:55 -0700 (PDT) From: Johan Karlsson Message-Id: <200208191544.g7JFitpp072690@freefall.freebsd.org> To: lonnie@valemount.com, johan@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-scsi@FreeBSD.org Subject: Re: i386/30527: does not like scsi on atrend 6260 dual PIII (adaptec 7880) 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: does not like scsi on atrend 6260 dual PIII (adaptec 7880) State-Changed-From-To: feedback->closed State-Changed-By: johan State-Changed-When: Mon Aug 19 08:43:35 PDT 2002 State-Changed-Why: Feedback timeout. Responsible-Changed-From-To: freebsd-bugs->freebsd-scsi Responsible-Changed-By: johan Responsible-Changed-When: Mon Aug 19 08:43:35 PDT 2002 Responsible-Changed-Why: Over to -scsi, they might be interested in future feedback. http://www.freebsd.org/cgi/query-pr.cgi?pr=30527 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Mon Aug 19 11: 3: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 D1D3F37B405 for ; Mon, 19 Aug 2002 11:03:09 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C2B043E3B for ; Mon, 19 Aug 2002 11:03:09 -0700 (PDT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7JI39JU010891 for ; Mon, 19 Aug 2002 11:03:09 -0700 (PDT) (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7JI38pM010886 for scsi@freebsd.org; Mon, 19 Aug 2002 11:03:08 -0700 (PDT) Date: Mon, 19 Aug 2002 11:03:08 -0700 (PDT) Message-Id: <200208191803.g7JI38pM010886@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: scsi@FreeBSD.org Subject: Current problem reports assigned to you 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 Current FreeBSD problem reports Critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- f [2002/02/18] kern/35082 scsi IBM Intellistation will not reboot with S 1 problem total. Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- s [2001/10/31] misc/31670 scsi Wide-Ultra 10k SCSI 3 drive is not recogn 1 problem total. Non-critical problems To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Mon Aug 19 14:14: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 E206037B401 for ; Mon, 19 Aug 2002 14:14:47 -0700 (PDT) Received: from mail2.lsil.com (mail2.lsil.com [147.145.40.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D47543E4A for ; Mon, 19 Aug 2002 14:14:47 -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 OAA08677 for ; Mon, 19 Aug 2002 14:14:42 -0700 (PDT) Received: from atl1.se.lsil.com by mhbs.lsil.com with ESMTP for freebsd-scsi@FreeBSD.ORG; Mon, 19 Aug 2002 14:14:37 -0700 Received: by EXA-ATLANTA.se.lsil.com with Internet Mail Service (5.5.2653.19) id ; Mon, 19 Aug 2002 17:14:36 -0400 Message-Id: <0E3FA95632D6D047BA649F95DAB60E5701265CB9@EXA-ATLANTA.se.lsil.com> From: "Moore, Eric Dean" To: freebsd-scsi@FreeBSD.ORG Subject: CAM: splcam/splx question Date: Mon, 19 Aug 2002 17:14:34 -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 We are developing a CAM driver. Im using splcam/splx in hopes of disable interrupts during the xxx_intr (interrupt time). Does this 'spl' API actually disable interrupts? I'm panic inside interrupt time when I have tagged command queuing enabled - and the page fault that occurs states the following: Fatal trap 12:page fault while in kernel mode fault virtual address = fault code = instruction pointer = stack pointer = frame pointer = code statement = base, limit, type, DPL, pres, def32 processor eflags = interrupt enabled, resume, IOPL = 0 current process = Idle interrupt mask = cam Is there some other call ( or spin locks) that actually disables interrupts during critical session of code? Eric Moore LSI Logic To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Mon Aug 19 14:24: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 EE99437B405 for ; Mon, 19 Aug 2002 14:24:09 -0700 (PDT) Received: from magic.adaptec.com (magic.adaptec.com [208.236.45.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8455E43E72 for ; Mon, 19 Aug 2002 14:24:09 -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 g7JLO6G19273; Mon, 19 Aug 2002 14:24:06 -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 OAA14723; Mon, 19 Aug 2002 14:24:06 -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 PAA28403; Mon, 19 Aug 2002 15:24:03 -0600 (MDT) Date: Mon, 19 Aug 2002 15:24:04 -0600 From: "Justin T. Gibbs" Reply-To: "Justin T. Gibbs" To: "Moore, Eric Dean" , freebsd-scsi@freebsd.org Subject: Re: CAM: splcam/splx question Message-ID: <4001654336.1029792244@aslan.btc.adaptec.com> In-Reply-To: <0E3FA95632D6D047BA649F95DAB60E5701265CB9@EXA-ATLANTA.se.lsil.com> References: <0E3FA95632D6D047BA649F95DAB60E5701265CB9@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 > We are developing a CAM driver. > Im using splcam/splx in hopes of disable interrupts during the xxx_intr > (interrupt time). During interrupt time, you are already operating with an spl mask that will block your own interrupt from being re-entered assuming you specified the correct mask when registering your interrupt with the OS. Paired mask = splcam()/splx(mask) calls should be harmless inside an interrupt context so long as the calls are paired. Perhaps you are splx'ing with a bogus mask? BTW, spl's only do something in -stable. In -current, non-mpsafe drivers are operating under the Giant kernel lock. Mp-safe drivers need to use mutexes. -- 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 20 12:52:57 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 1EB7037B400; Tue, 20 Aug 2002 12:52:55 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C1D6343E75; Tue, 20 Aug 2002 12:52:54 -0700 (PDT) (envelope-from joerg@FreeBSD.org) Received: from freefall.freebsd.org (joerg@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7KJqsJU027469; Tue, 20 Aug 2002 12:52:54 -0700 (PDT) (envelope-from joerg@freefall.freebsd.org) Received: (from joerg@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7KJqrM1027454; Tue, 20 Aug 2002 21:52:53 +0200 (MEST) Date: Tue, 20 Aug 2002 21:52:53 +0200 (MEST) From: Joerg Wunsch Message-Id: <200208201952.g7KJqrM1027454@freefall.freebsd.org> To: ph7@club-internet.fr, joerg@FreeBSD.org, freebsd-scsi@FreeBSD.org, joerg@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: feedback->analyzed State-Changed-By: joerg State-Changed-When: Tue Aug 20 21:51:47 MEST 2002 State-Changed-Why: It is my plan to integrate the Tekram driver (plus bug fixes) into FreeBSD. Responsible-Changed-From-To: freebsd-scsi->joerg Responsible-Changed-By: joerg Responsible-Changed-When: Tue Aug 20 21:51:47 MEST 2002 Responsible-Changed-Why: It is my plan to integrate the Tekram driver (plus bug fixes) into FreeBSD. 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 Tue Aug 20 13: 8: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 41ED437B400; Tue, 20 Aug 2002 13:08:41 -0700 (PDT) Received: from freebie.xs4all.nl (freebie.xs4all.nl [213.84.32.253]) by mx1.FreeBSD.org (Postfix) with ESMTP id 404CA43E3B; Tue, 20 Aug 2002 13:08: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 g7KK8cmU000719; Tue, 20 Aug 2002 22:08:38 +0200 (CEST) (envelope-from wkb@freebie.xs4all.nl) Received: (from wkb@localhost) by freebie.xs4all.nl (8.12.5/8.12.5/Submit) id g7KK8cga000718; Tue, 20 Aug 2002 22:08:38 +0200 (CEST) Date: Tue, 20 Aug 2002 22:08:38 +0200 From: Wilko Bulte To: Joerg Wunsch Cc: ph7@club-internet.fr, freebsd-scsi@FreeBSD.ORG Subject: Re: kern/29875: CURRENT driver for Tekram DC395X and DC315X SCSI cards Message-ID: <20020820220838.B677@freebie.xs4all.nl> References: <200208201952.g7KJqrM1027454@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200208201952.g7KJqrM1027454@freefall.freebsd.org>; from joerg@FreeBSD.ORG on Tue, Aug 20, 2002 at 09:52:53PM +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 Tue, Aug 20, 2002 at 09:52:53PM +0200, Joerg Wunsch wrote: /me wonders: why is -scsi being copied on PR changes these days? W/ > Synopsis: CURRENT driver for Tekram DC395X and DC315X SCSI cards > > State-Changed-From-To: feedback->analyzed > State-Changed-By: joerg > State-Changed-When: Tue Aug 20 21:51:47 MEST 2002 > State-Changed-Why: > It is my plan to integrate the Tekram driver (plus bug fixes) into > FreeBSD. > > > Responsible-Changed-From-To: freebsd-scsi->joerg > Responsible-Changed-By: joerg > Responsible-Changed-When: Tue Aug 20 21:51:47 MEST 2002 > Responsible-Changed-Why: > It is my plan to integrate the Tekram driver (plus bug fixes) into > FreeBSD. > > 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 ---end of quoted text--- -- | / o / /_ _ FreeBSD core team secretary |/|/ / / /( (_) Bulte wilko@FreeBSD.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 20 14: 1:25 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 D84E837B401 for ; Tue, 20 Aug 2002 14:01:23 -0700 (PDT) Received: from innocence.interface-business.de (innocence.interface-business.de [193.101.57.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 64B0A43E70 for ; Tue, 20 Aug 2002 14:01:22 -0700 (PDT) (envelope-from j@uriah.heep.sax.de) Received: from innocence.interface-business.de (localhost.interface-business.de [127.0.0.1]) by innocence.interface-business.de (8.12.5/8.12.5/ifb evision: 1.23 $) with ESMTP id g7KL1H8q059601; Tue, 20 Aug 2002 23:01:17 +0200 (CEST) (envelope-from j@uriah.heep.sax.de) Received: (from uucp@localhost) by innocence.interface-business.de (8.12.5/8.12.5/Submit) with UUCP id g7KL1HIk059600; Tue, 20 Aug 2002 23:01:17 +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 g7KKubBs048130; Tue, 20 Aug 2002 22:56:37 +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 g7KKubjD048129; Tue, 20 Aug 2002 22:56:37 +0200 (MET DST) (envelope-from j) Date: Tue, 20 Aug 2002 22:56:37 +0200 From: Joerg Wunsch To: Wilko Bulte Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: kern/29875: CURRENT driver for Tekram DC395X and DC315X SCSI cards Message-ID: <20020820225637.B35593@uriah.heep.sax.de> Reply-To: Joerg Wunsch Mail-Followup-To: Joerg Wunsch , Wilko Bulte , freebsd-scsi@FreeBSD.ORG References: <200208201952.g7KJqrM1027454@freefall.freebsd.org> <20020820220838.B677@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: <20020820220838.B677@freebie.xs4all.nl>; from wkb@freebie.xs4all.nl on Tue, Aug 20, 2002 at 10:08:38PM +0200 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 Wilko Bulte wrote: > On Tue, Aug 20, 2002 at 09:52:53PM +0200, Joerg Wunsch wrote: > > /me wonders: why is -scsi being copied on PR changes these days? Because the PR has previously been assigned to scsi@freebsd.org (which IMHO makes sense). -- 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 20 14: 5:31 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 4461937B400 for ; Tue, 20 Aug 2002 14:05:30 -0700 (PDT) Received: from freebie.xs4all.nl (freebie.xs4all.nl [213.84.32.253]) by mx1.FreeBSD.org (Postfix) with ESMTP id 48A5243E65 for ; Tue, 20 Aug 2002 14:05:29 -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 g7KL5SmU001097; Tue, 20 Aug 2002 23:05:28 +0200 (CEST) (envelope-from wkb@freebie.xs4all.nl) Received: (from wkb@localhost) by freebie.xs4all.nl (8.12.5/8.12.5/Submit) id g7KL5Sx2001096; Tue, 20 Aug 2002 23:05:28 +0200 (CEST) Date: Tue, 20 Aug 2002 23:05:28 +0200 From: Wilko Bulte To: Joerg Wunsch , freebsd-scsi@FreeBSD.ORG Subject: Re: kern/29875: CURRENT driver for Tekram DC395X and DC315X SCSI cards Message-ID: <20020820230528.B1046@freebie.xs4all.nl> References: <200208201952.g7KJqrM1027454@freefall.freebsd.org> <20020820220838.B677@freebie.xs4all.nl> <20020820225637.B35593@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: <20020820225637.B35593@uriah.heep.sax.de>; from j@uriah.heep.sax.de on Tue, Aug 20, 2002 at 10:56:37PM +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 Tue, Aug 20, 2002 at 10:56:37PM +0200, Joerg Wunsch wrote: > As Wilko Bulte wrote: > > > On Tue, Aug 20, 2002 at 09:52:53PM +0200, Joerg Wunsch wrote: > > > > /me wonders: why is -scsi being copied on PR changes these days? > > Because the PR has previously been assigned to scsi@freebsd.org > (which IMHO makes sense). Hmm.. following that logic we could assign next to every src PR to -hackers or -developers. Or all ports PRs to -ports. I don't particularly like the idea to be honest. -- | / 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 Tue Aug 20 17:46:26 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 CC8F337B400; Tue, 20 Aug 2002 17:46:22 -0700 (PDT) Received: from melchior.cuivre.fr.eu.org (melchior.enst.fr [137.194.161.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC40543E72; Tue, 20 Aug 2002 17:46:21 -0700 (PDT) (envelope-from thomas@cuivre.fr.eu.org) Received: from melusine.cuivre.fr.eu.org (melusine.enst.fr [137.194.160.34]) by melchior.cuivre.fr.eu.org (Postfix) with ESMTP id 05DA710E10; Wed, 21 Aug 2002 02:46:20 +0200 (CEST) Received: by melusine.cuivre.fr.eu.org (Postfix, from userid 1000) id BC7202C3D1; Wed, 21 Aug 2002 02:46:14 +0200 (CEST) Date: Wed, 21 Aug 2002 02:46:14 +0200 From: Thomas Quinot To: Nate Lawson Cc: scsi@freebsd.org, current@freebsd.org Subject: Re: Proliferating quirk table entries Message-ID: <20020821024614.A722@melusine.cuivre.fr.eu.org> Reply-To: thomas@cuivre.fr.eu.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: ; from nate@root.org on Fri, Aug 16, 2002 at 03:39:01PM -0700 X-message-flag: WARNING! Using Outlook can damage your computer. 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 Le 2002-08-17, Nate Lawson écrivait : > 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 might be worthwhile moving this to some generic part in the CAM framework, instead of having it in the da driver. Similar promotion is performed for some commands (MODE_{SELECT,SENSE}_6 as well as {READ,WRITE}_6) in a rather ad hoc fashion in atapi-cam. At least the cmd6workaround function should be factored in some way; as for the try 6 -> fail -> retry 10 process, however, I am not sure this can be readily generalised to ATAPI devices (which are explicitly specified to only support the _10 variants) as these tend to have very strange reactions to CDBs they cannot handle properly. Thomas. -- Thomas.Quinot@Cuivre.FR.EU.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 20 19:17: 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 A397137B400; Tue, 20 Aug 2002 19:17:01 -0700 (PDT) Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4229343E4A; Tue, 20 Aug 2002 19:16:59 -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 g7L2GbKD099058; Tue, 20 Aug 2002 20:16:37 -0600 (MDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.12.5/8.12.5/Submit) id g7L2GbTm099057; Tue, 20 Aug 2002 20:16:37 -0600 (MDT) (envelope-from ken) Date: Tue, 20 Aug 2002 20:16:36 -0600 From: "Kenneth D. Merry" To: Thomas Quinot Cc: Nate Lawson , scsi@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: Proliferating quirk table entries Message-ID: <20020820201636.A99025@panzer.kdm.org> References: <20020821024614.A722@melusine.cuivre.fr.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020821024614.A722@melusine.cuivre.fr.eu.org>; from thomas@cuivre.fr.eu.org on Wed, Aug 21, 2002 at 02:46:14AM +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 Wed, Aug 21, 2002 at 02:46:14 +0200, Thomas Quinot wrote: > Le 2002-08-17, Nate Lawson écrivait : > > > 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 might be worthwhile moving this to some generic part in the CAM > framework, instead of having it in the da driver. Similar promotion > is performed for some commands (MODE_{SELECT,SENSE}_6 as well as > {READ,WRITE}_6) in a rather ad hoc fashion in atapi-cam. At least > the cmd6workaround function should be factored in some way; as for the > try 6 -> fail -> retry 10 process, however, I am not sure this can > be readily generalised to ATAPI devices (which are explicitly specified > to only support the _10 variants) as these tend to have very strange > reactions to CDBs they cannot handle properly. The right way to handle the 6/10 byte stuff is to have it be a function of the transport type (see the CAM_NEW_TRAN_CODE stuff). The peripheral drivers and userland applications can query the transport type and send 6 or 10 byte commands as appropriate. If we're going to come up with a generic solution, that's probably the direction we need to be heading. 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 20 23: 1: 6 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 0BEC237B400 for ; Tue, 20 Aug 2002 23:01:04 -0700 (PDT) Received: from innocence.interface-business.de (innocence.interface-business.de [193.101.57.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id AF7EF43E70 for ; Tue, 20 Aug 2002 23:01:02 -0700 (PDT) (envelope-from j@uriah.heep.sax.de) Received: from innocence.interface-business.de (localhost.interface-business.de [127.0.0.1]) by innocence.interface-business.de (8.12.5/8.12.5/ifb evision: 1.23 $) with ESMTP id g7L6108q071000; Wed, 21 Aug 2002 08:01:00 +0200 (CEST) (envelope-from j@uriah.heep.sax.de) Received: (from uucp@localhost) by innocence.interface-business.de (8.12.5/8.12.5/Submit) with UUCP id g7L610oq070999; Wed, 21 Aug 2002 08:01:00 +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 g7L60aBs063752; Wed, 21 Aug 2002 08:00:36 +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 g7L60YuH063751; Wed, 21 Aug 2002 08:00:34 +0200 (MET DST) (envelope-from j) Date: Wed, 21 Aug 2002 08:00:34 +0200 From: Joerg Wunsch To: Wilko Bulte Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: kern/29875: CURRENT driver for Tekram DC395X and DC315X SCSI cards Message-ID: <20020821080034.A63706@uriah.heep.sax.de> Reply-To: Joerg Wunsch Mail-Followup-To: Joerg Wunsch , Wilko Bulte , freebsd-scsi@FreeBSD.ORG References: <200208201952.g7KJqrM1027454@freefall.freebsd.org> <20020820220838.B677@freebie.xs4all.nl> <20020820225637.B35593@uriah.heep.sax.de> <20020820230528.B1046@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: <20020820230528.B1046@freebie.xs4all.nl>; from wkb@freebie.xs4all.nl on Tue, Aug 20, 2002 at 11:05:28PM +0200 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 Wilko Bulte wrote: > > Because the PR has previously been assigned to scsi@freebsd.org > > (which IMHO makes sense). > > Hmm.. following that logic we could assign next to every src PR > to -hackers or -developers. Or all ports PRs to -ports. The latter is already the case (actually, they get assigned to the maintainer, but ports@freebsd.org is the maintainer for all otherwise orphaned ports). At least, we know which SCSI-related PRs do exist that way. -- 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 20 23: 6: 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 AA0BC37B400; Tue, 20 Aug 2002 23:06:03 -0700 (PDT) Received: from flamingo.mail.pas.earthlink.net (flamingo.mail.pas.earthlink.net [207.217.120.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B3F543E3B; Tue, 20 Aug 2002 23:06:03 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from pool0170.cvx22-bradley.dialup.earthlink.net ([209.179.198.170] helo=mindspring.com) by flamingo.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 17hOco-0006TT-00; Tue, 20 Aug 2002 23:05:51 -0700 Message-ID: <3D632D84.1CDEAD3@mindspring.com> Date: Tue, 20 Aug 2002 23:04:52 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: "Kenneth D. Merry" Cc: Thomas Quinot , Nate Lawson , scsi@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: Proliferating quirk table entries References: <20020821024614.A722@melusine.cuivre.fr.eu.org> <20020820201636.A99025@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: > The right way to handle the 6/10 byte stuff is to have it be a function of > the transport type (see the CAM_NEW_TRAN_CODE stuff). The peripheral > drivers and userland applications can query the transport type and send > 6 or 10 byte commands as appropriate. > > If we're going to come up with a generic solution, that's probably the > direction we need to be heading. I think everyone in this thread needs to read the last instance of this same thread, the first time it came up. I believe the general consensus was to send the 6, and if it failed, retry with the 10, and set a flag so that subsequent requests were 10 (this instead of a static quirk table that could find itself out of date). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Wed Aug 21 10:27: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 3CF7037B400; Wed, 21 Aug 2002 10:27:10 -0700 (PDT) Received: from duey.wolves.k12.mo.us (duey.wolves.k12.mo.us [207.160.214.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F9D743E4A; Wed, 21 Aug 2002 10:27:09 -0700 (PDT) (envelope-from cdillon@wolves.k12.mo.us) Received: from duey.wolves.k12.mo.us (cdillon@localhost [127.0.0.1]) by duey.wolves.k12.mo.us (8.12.5/8.12.5) with ESMTP id g7LHR1sd094791; Wed, 21 Aug 2002 12:27:01 -0500 (CDT) (envelope-from cdillon@wolves.k12.mo.us) Received: from localhost (cdillon@localhost) by duey.wolves.k12.mo.us (8.12.5/8.12.5/Submit) with ESMTP id g7LHR0fk094788; Wed, 21 Aug 2002 12:27:00 -0500 (CDT) X-Authentication-Warning: duey.wolves.k12.mo.us: cdillon owned process doing -bs Date: Wed, 21 Aug 2002 12:27:00 -0500 (CDT) From: Chris Dillon To: Terry Lambert Cc: "Kenneth D. Merry" , Thomas Quinot , Nate Lawson , , Subject: Re: Proliferating quirk table entries In-Reply-To: <3D632D84.1CDEAD3@mindspring.com> Message-ID: <20020821121019.P93963-100000@duey.wolves.k12.mo.us> 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, 20 Aug 2002, Terry Lambert wrote: > I think everyone in this thread needs to read the last instance of > this same thread, the first time it came up. > > I believe the general consensus was to send the 6, and if it failed, > retry with the 10, and set a flag so that subsequent requests were > 10 (this instead of a static quirk table that could find itself out > of date). As someone mentioned, some devices choke on the first 6-byte command and then just don't work anymore even if you start sending the 10-byte commands from then on. I have a USB multi-flash (CF/MD, MMC, SD, etc) card reader that does exactly that. I have to enable "kern.cam.da.no_6_byte=1" before try to use the device and everything works fine. I also don't have any problems with any of my other SCSI devices (various SCSI CD-ROMs, a SCSI CD-RW, a SCSI ZIP drive, and SCSI DDS2 and DDS3 tape drives) when using only 10-byte commands. What problems would occur if you try 10 first and then 6 if that fails? Will the devices that only take 6-byte commands choke permanently on the first 10-byte command as some of the non-SCSI stuff does on the 6-byte commands, or would they truncate 4 bytes and treat it as the wrong command? I believe someone already proposed this, but since only some very old SCSI devices won't handle 10-byte commands correctly (correct me if I'm wrong there) and should affect very few people, how about just enabling 10-byte commands by default and offering a sysctl to turn on the 6-byte-then-10-byte method when it is needed? The benefit of that should greatly outweigh the drawbacks with the state of the hardware as it is today. -- Chris Dillon - cdillon(at)wolves.k12.mo.us FreeBSD: The fastest and most stable server OS on the planet - Available for IA32 (Intel x86) and Alpha architectures - IA64, PowerPC, UltraSPARC, ARM, and S/390 under development - http://www.freebsd.org No trees were harmed in the composition of this message, although some electrons were mildly inconvenienced. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Wed Aug 21 13:37: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 4854D37B400 for ; Wed, 21 Aug 2002 13:37:50 -0700 (PDT) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id A76E543E42 for ; Wed, 21 Aug 2002 13:37:49 -0700 (PDT) (envelope-from nate@rootlabs.com) Received: (qmail 57293 invoked by uid 1000); 21 Aug 2002 20:37:50 -0000 Date: Wed, 21 Aug 2002 13:37:50 -0700 (PDT) From: Nate Lawson To: scsi@freebsd.org Subject: CDB6/10 negotiation 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 am available to do the full version suggested by Ken once we agree on a path. However, there are a lot of people re-working CAM and I don't want to replicate work. Consensus is suggesting the best approach is to put USB transport checks under CAM_NEW_TRAN_CODE in cam_xpt.c and then use them to set device-specific behavior. This will then restrict the commands sent to the device according to what's reported in its inquiry. At some point when this is working, cmd6workaround can be removed and most quirks can be removed. The quirks that remain will truly be quirks where a device reports capabilities it doesn't really support. Thoughts? -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 21 14: 4: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 7453437B400 for ; Wed, 21 Aug 2002 14:04:11 -0700 (PDT) Received: from melchior.cuivre.fr.eu.org (melchior.enst.fr [137.194.161.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id D5BBE43E75 for ; Wed, 21 Aug 2002 14:04:10 -0700 (PDT) (envelope-from thomas@cuivre.fr.eu.org) Received: from melusine.cuivre.fr.eu.org (melusine.enst.fr [137.194.160.34]) by melchior.cuivre.fr.eu.org (Postfix) with ESMTP id B25EF11012; Wed, 21 Aug 2002 23:04:09 +0200 (CEST) Received: by melusine.cuivre.fr.eu.org (Postfix, from userid 1000) id 16D222C3D1; Wed, 21 Aug 2002 23:04:09 +0200 (CEST) Date: Wed, 21 Aug 2002 23:04:09 +0200 From: Thomas Quinot To: Nate Lawson Cc: scsi@freebsd.org Subject: Re: CDB6/10 negotiation Message-ID: <20020821230409.C66733@melusine.cuivre.fr.eu.org> Reply-To: thomas@cuivre.fr.eu.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: ; from nate@root.org on Wed, Aug 21, 2002 at 01:37:50PM -0700 X-message-flag: WARNING! Using Outlook can damage your computer. 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 Le 2002-08-21, Nate Lawson écrivait : > Consensus is suggesting the best approach is to put USB transport checks > under CAM_NEW_TRAN_CODE in cam_xpt.c and then use them to set > device-specific behavior. I think we should keep a clean separation between transport and protocol. Available command sets should not be tied to the protocol they are used on. For example the fact that an ATAPI CD-ROM drive is accessed through the ATAPI transport and the fact that it implements the MMC-2 command set should be recorded separately. > removed. The quirks that remain will truly be quirks where a device > reports capabilities it doesn't really support. Some devices can also require quirks for maximum I/O operation size (specifically, ZIP drives need a quirk in scsi_da to be able to use FFS). Cf. the scsi_da.c part in http://www.cuivre.fr.eu.org/~thomas/atapicam/patches/atapicam-20020409.diff (which needs to be adapted for -CURRENT.) Thomas. -- Thomas.Quinot@Cuivre.FR.EU.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 22 0:24:14 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 6220937B400 for ; Thu, 22 Aug 2002 00:24:12 -0700 (PDT) Received: from is1.mh.itc.u-tokyo.ac.jp (is1.mh.itc.u-tokyo.ac.jp [133.11.205.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F1D243E42 for ; Thu, 22 Aug 2002 00:24:11 -0700 (PDT) (envelope-from simokawa@sat.t.u-tokyo.ac.jp) Received: from is1.mh.itc.u-tokyo.ac.jp (is1.mh.itc.u-tokyo.ac.jp [127.0.0.1]) by is1.mh.itc.u-tokyo.ac.jp (Postfix) with ESMTP id 971C721814A for ; Thu, 22 Aug 2002 16:24:10 +0900 (JST) Received: from mailhosting.itc.u-tokyo.ac.jp (IDENT:mirapoint@mailhosting.itc.u-tokyo.ac.jp [133.11.205.3]) by is1.mh.itc.u-tokyo.ac.jp (8.11.3/8.11.3) with ESMTP id g7M7OAB14605; Thu, 22 Aug 2002 16:24:10 +0900 Received: from ett.sat.t.u-tokyo.ac.jp.sat.t.u-tokyo.ac.jp (nat.keisu.t.u-tokyo.ac.jp [133.11.68.2]) by mailhosting.itc.u-tokyo.ac.jp (Mirapoint Messaging Server MOS 2.9.3.2) with ESMTP id AGW29602; Thu, 22 Aug 2002 16:24:09 +0900 (JST) Date: Thu, 22 Aug 2002 16:24:09 +0900 Message-ID: From: Hidetoshi Shimokawa To: Nate Lawson Cc: scsi@freebsd.org Subject: Re: CDB6/10 negotiation In-Reply-To: References: User-Agent: Wanderlust/2.9.14 (Unchained Melody) REMI/1.14.3 (Matsudai) FLIM/1.14.3 (=?ISO-8859-1?Q?Unebigory=F2mae?=) APEL/10.3 MULE XEmacs/21.4 (patch 8) (Honest Recruiter) (i386--freebsd) X-Face: OE([KxWyJI0r[R~S/>7ia}SJ)i%a,$-9%7{*yihQk|]gl}2p#"oXmX/fT}Bn7: #j7i14gu$jgR\S*&C3R/pJX List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org At Wed, 21 Aug 2002 13:37:50 -0700 (PDT), Nate Lawson wrote: > > I am available to do the full version suggested by Ken once we agree on a > path. However, there are a lot of people re-working CAM and I don't want > to replicate work. > > Consensus is suggesting the best approach is to put USB transport checks > under CAM_NEW_TRAN_CODE in cam_xpt.c and then use them to set > device-specific behavior. This will then restrict the commands sent to > the device according to what's reported in its inquiry. At some point > when this is working, cmd6workaround can be removed and most quirks can be > removed. The quirks that remain will truly be quirks where a device > reports capabilities it doesn't really support. > > Thoughts? Another simple but ugly soluition is rewriting inquiry response and faking to be T_RBC device rather than T_DIRECT at the trasport layer. RBC doesn't have 6 bytes command so no need to worry about it. (If the device doesn't support READ_6, it shouldn't be T_DIRECT and it should be T_RBC whatever it responses ;-) At first, I introduced cmd6workaround for SBP-II/Firewire devices, but the current driver(*) doesn't exploit it anymore and rewriting inquiry response becase I found a device which hangs up on the first 6bytes command and doesn't accept any commands anymore. (*) http://people.freebsd.org/~simokawa/ BTW, thanks for fixing cmd6workaround(), do you have a plan to MFC? /\ Hidetoshi Shimokawa \/ simokawa@sat.t.u-tokyo.ac.jp PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Thu Aug 22 5:10: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 17B4B37B400 for ; Thu, 22 Aug 2002 05:10:48 -0700 (PDT) Received: from enserg.enserg.fr (enserg.enserg.fr [192.93.178.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F0B243E7B for ; Thu, 22 Aug 2002 05:10:47 -0700 (PDT) (envelope-from jdalbosc@enserg.fr) Received: (from www@localhost) by enserg.enserg.fr (8.12.1/8.12.1) id g7MCAcIl010562; Thu, 22 Aug 2002 14:10:38 +0200 Date: Thu, 22 Aug 2002 14:10:38 +0200 Message-Id: <200208221210.g7MCAcIl010562@enserg.enserg.fr> X-Authentication-Warning: enserg.enserg.fr: www set sender to jdalbosc@enserg.fr using -f From: "Jean-françois Dalbosco" To: freebsd-scsi@FreeBSD.org Subject: Userland driver? X-Mailer: NeoMail 1.24 X-IPAddress: 194.206.211.65 MIME-Version: 1.0 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 have written a piece of program that allow me to communicate with a scsi device. To do that i just fill CAM ccb that i send to the device using the passthrough driver. The problem is that i have to be ROOT for that. Could anyone tell me what to do to write now a program that would allow any user to communicate with this device? thanks for your help. -- NeoMail - Webmail that doesn't suck... as much. http://neomail.sourceforge.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Thu Aug 22 9:24: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 B30FB37B400 for ; Thu, 22 Aug 2002 09:24:34 -0700 (PDT) Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 012A043E65 for ; Thu, 22 Aug 2002 09:24:34 -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 g7MGOOKD008986; Thu, 22 Aug 2002 10:24:24 -0600 (MDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.12.5/8.12.5/Submit) id g7MGOOmf008985; Thu, 22 Aug 2002 10:24:24 -0600 (MDT) (envelope-from ken) Date: Thu, 22 Aug 2002 10:24:24 -0600 From: "Kenneth D. Merry" To: =?iso-8859-1?Q?Jean-fran=E7ois_Dalbosco?= Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: Userland driver? Message-ID: <20020822102423.A8968@panzer.kdm.org> References: <200208221210.g7MCAcIl010562@enserg.enserg.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5.1i In-Reply-To: <200208221210.g7MCAcIl010562@enserg.enserg.fr>; from jdalbosc@enserg.fr on Thu, Aug 22, 2002 at 02:10:38PM +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 Thu, Aug 22, 2002 at 14:10:38 +0200, Jean-françois Dalbosco wrote: > hi, > > i have written a piece of program that allow me to communicate > with a scsi device. To do that i just fill CAM ccb that i send to the > device using the passthrough driver. The problem is that i have to > be ROOT for that. > > Could anyone tell me what to do to write now a program that would allow > any user to communicate with this device? You've got two choices: - make your program setuid root (which can potentially cause other security problems) or - chmod 666 /dev/passN The latter would probably be preferrable. If the SCSI peripherals move around in the system, you might want to hardwire that particular pass device to the device in question. 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 22 11:50:47 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 BFCE637B400 for ; Thu, 22 Aug 2002 11:50:44 -0700 (PDT) Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id CEAF243E72 for ; Thu, 22 Aug 2002 11:50: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 g7MIodKD009773; Thu, 22 Aug 2002 12:50:39 -0600 (MDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.12.5/8.12.5/Submit) id g7MIodjZ009772; Thu, 22 Aug 2002 12:50:39 -0600 (MDT) (envelope-from ken) Date: Thu, 22 Aug 2002 12:50:39 -0600 From: "Kenneth D. Merry" To: =?iso-8859-1?Q?Jean-fran=E7ois_Dalbosco?= Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: Userland driver? Message-ID: <20020822125039.A9715@panzer.kdm.org> References: <200208221210.g7MCAcIl010562@enserg.enserg.fr> <20020822102423.A8968@panzer.kdm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020822102423.A8968@panzer.kdm.org>; from ken@kdm.org on Thu, Aug 22, 2002 at 10:24:23AM -0600 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 22, 2002 at 10:24:23 -0600, Kenneth D. Merry wrote: > On Thu, Aug 22, 2002 at 14:10:38 +0200, Jean-françois Dalbosco wrote: > > hi, > > > > i have written a piece of program that allow me to communicate > > with a scsi device. To do that i just fill CAM ccb that i send to the > > device using the passthrough driver. The problem is that i have to > > be ROOT for that. > > > > Could anyone tell me what to do to write now a program that would allow > > any user to communicate with this device? > > You've got two choices: > > - make your program setuid root (which can potentially cause other > security problems) > or > - chmod 666 /dev/passN > > The latter would probably be preferrable. If the SCSI peripherals move > around in the system, you might want to hardwire that particular pass > device to the device in question. I forgot, if you're doing any kind of device lookup (most of the cam_open_* routines, with the exception of cam_open_pass(), do a lookup), you'll also need to have the xpt device, /dev/xpt0, world accessible. (Thanks to Scott Long for pointing that out.) Opening the xpt device has additional security implications -- you can reset and rescan busses and turn on debugging via the xpt 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 Thu Aug 22 12:42:24 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 D0CCE37B400; Thu, 22 Aug 2002 12:42:22 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8025C43E6A; Thu, 22 Aug 2002 12:42:22 -0700 (PDT) (envelope-from johan@FreeBSD.org) Received: from freefall.freebsd.org (johan@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7MJgMJU037869; Thu, 22 Aug 2002 12:42:22 -0700 (PDT) (envelope-from johan@freefall.freebsd.org) Received: (from johan@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7MJgMpY037865; Thu, 22 Aug 2002 12:42:22 -0700 (PDT) Date: Thu, 22 Aug 2002 12:42:22 -0700 (PDT) From: Johan Karlsson Message-Id: <200208221942.g7MJgMpY037865@freefall.freebsd.org> To: nsayer@quack.kfu.com, johan@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-scsi@FreeBSD.org Subject: Re: kern/15608: acd0 / cd0 give inconsistent errors on empty tray open() 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: acd0 / cd0 give inconsistent errors on empty tray open() State-Changed-From-To: open->feedback State-Changed-By: johan State-Changed-When: Thu Aug 22 12:40:51 PDT 2002 State-Changed-Why: Is this still the case? Responsible-Changed-From-To: freebsd-bugs->freebsd-scsi Responsible-Changed-By: johan Responsible-Changed-When: Thu Aug 22 12:40:51 PDT 2002 Responsible-Changed-Why: Over to -scsi since the proposal is to change cd0. http://www.freebsd.org/cgi/query-pr.cgi?pr=15608 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Thu Aug 22 13:18:10 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 035DD37B400 for ; Thu, 22 Aug 2002 13:18:09 -0700 (PDT) Received: from innocence.interface-business.de (innocence.interface-business.de [193.101.57.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B7AD43E6A for ; Thu, 22 Aug 2002 13:18:04 -0700 (PDT) (envelope-from j@uriah.heep.sax.de) Received: from innocence.interface-business.de (localhost.interface-business.de [127.0.0.1]) by innocence.interface-business.de (8.12.5/8.12.5/ifb evision: 1.23 $) with ESMTP id g7MKI28q023686 for ; Thu, 22 Aug 2002 22:18:02 +0200 (CEST) (envelope-from j@uriah.heep.sax.de) Received: (from uucp@localhost) by innocence.interface-business.de (8.12.5/8.12.5/Submit) with UUCP id g7MKI2XJ023685 for freebsd-scsi@freebsd.org; Thu, 22 Aug 2002 22:18:02 +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 g7MKBvBs032210 for ; Thu, 22 Aug 2002 22:11:57 +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 g7MKBvXe032209; Thu, 22 Aug 2002 22:11:57 +0200 (MET DST) (envelope-from j) Date: Thu, 22 Aug 2002 22:11:57 +0200 (MET DST) Message-Id: <200208222011.g7MKBvXe032209@uriah.heep.sax.de> Mime-Version: 1.0 X-Newsreader: knews 1.0b.1 Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) Organization: Private BSD site, Dresden 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 References: <200208221210.g7MCAcIl010562@enserg.enserg.fr> <20020822102423.A8968@panzer.kdm.org> From: j@uriah.heep.sax.de (Joerg Wunsch) Subject: Re: Userland driver? X-Original-Newsgroups: local.freebsd.scsi To: freebsd-scsi@freebsd.org 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 "Kenneth D. Merry" wrote: > You've got two choices: > > - make your program setuid root (which can potentially cause other > security problems) > or > - chmod 666 /dev/passN The third option would be writing a device driver. ;-) -- 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 Thu Aug 22 14: 9: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 2413337B400; Thu, 22 Aug 2002 14:09:37 -0700 (PDT) Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 107C543E6A; Thu, 22 Aug 2002 14:09:36 -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 g7ML9VKD010941; Thu, 22 Aug 2002 15:09:31 -0600 (MDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.12.5/8.12.5/Submit) id g7ML9VeQ010940; Thu, 22 Aug 2002 15:09:31 -0600 (MDT) (envelope-from ken) Date: Thu, 22 Aug 2002 15:09:31 -0600 From: "Kenneth D. Merry" To: Johan Karlsson Cc: nsayer@quack.kfu.com, freebsd-gnats-submit@FreeBSD.ORG, freebsd-scsi@FreeBSD.ORG, freebsd-standards@FreeBSD.ORG, sos@FreeBSD.ORG Subject: Re: kern/15608: acd0 / cd0 give inconsistent errors on empty tray open() Message-ID: <20020822150931.A10866@panzer.kdm.org> References: <200208221942.g7MJgMpY037865@freefall.freebsd.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: <200208221942.g7MJgMpY037865@freefall.freebsd.org>; from johan@FreeBSD.ORG on Thu, Aug 22, 2002 at 12:42:22PM -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 22, 2002 at 12:42:22 -0700, Johan Karlsson wrote: > Responsible-Changed-From-To: freebsd-bugs->freebsd-scsi > Responsible-Changed-By: johan > Responsible-Changed-When: Thu Aug 22 12:40:51 PDT 2002 > Responsible-Changed-Why: > Over to -scsi since the proposal is to change cd0. Let's see if there are any opinions on freebsd-standards. The question is, what sort of error should we return from a peripheral driver (cd(4), da(4), etc.) open() routine when there is no media in the drive? Currently all CAM drivers will return ENXIO, and although the PR says that the acd(4) driver returns EIO, I can't tell from acdopen that it returns any errors at all if media isn't present. My guess is that EIO is getting returned sometime later in the acd(4) driver. (If that is still the case, this PR was filed in late 1999.) So is there any opinion on -standards as to what sort of error we should return on open if there is no media in a drive? 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 22 14:10:10 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 E50B337B400 for ; Thu, 22 Aug 2002 14:10:05 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A2B1743E42 for ; Thu, 22 Aug 2002 14:10:05 -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 g7MLA5JU063835 for ; Thu, 22 Aug 2002 14:10:05 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7MLA42w063834; Thu, 22 Aug 2002 14:10:04 -0700 (PDT) Date: Thu, 22 Aug 2002 14:10:04 -0700 (PDT) Message-Id: <200208222110.g7MLA42w063834@freefall.freebsd.org> To: freebsd-scsi@FreeBSD.org Cc: From: "Kenneth D. Merry" Subject: Re: kern/15608: acd0 / cd0 give inconsistent errors on empty tray open() Reply-To: "Kenneth D. Merry" 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/15608; it has been noted by GNATS. From: "Kenneth D. Merry" To: Johan Karlsson Cc: nsayer@quack.kfu.com, freebsd-gnats-submit@FreeBSD.ORG, freebsd-scsi@FreeBSD.ORG, freebsd-standards@FreeBSD.ORG, sos@FreeBSD.ORG Subject: Re: kern/15608: acd0 / cd0 give inconsistent errors on empty tray open() Date: Thu, 22 Aug 2002 15:09:31 -0600 On Thu, Aug 22, 2002 at 12:42:22 -0700, Johan Karlsson wrote: > Responsible-Changed-From-To: freebsd-bugs->freebsd-scsi > Responsible-Changed-By: johan > Responsible-Changed-When: Thu Aug 22 12:40:51 PDT 2002 > Responsible-Changed-Why: > Over to -scsi since the proposal is to change cd0. Let's see if there are any opinions on freebsd-standards. The question is, what sort of error should we return from a peripheral driver (cd(4), da(4), etc.) open() routine when there is no media in the drive? Currently all CAM drivers will return ENXIO, and although the PR says that the acd(4) driver returns EIO, I can't tell from acdopen that it returns any errors at all if media isn't present. My guess is that EIO is getting returned sometime later in the acd(4) driver. (If that is still the case, this PR was filed in late 1999.) So is there any opinion on -standards as to what sort of error we should return on open if there is no media in a drive? 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 22 14:23:42 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 4CCC737B400; Thu, 22 Aug 2002 14:23:38 -0700 (PDT) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id D233143E42; Thu, 22 Aug 2002 14:23:36 -0700 (PDT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.3/8.12.3) with ESMTP id g7MLNZFl031721; Thu, 22 Aug 2002 15:23:35 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 22 Aug 2002 15:23:29 -0600 (MDT) Message-Id: <20020822.152329.129782316.imp@bsdimp.com> To: ken@kdm.org Cc: johan@FreeBSD.ORG, nsayer@quack.kfu.com, freebsd-gnats-submit@FreeBSD.ORG, freebsd-scsi@FreeBSD.ORG, freebsd-standards@FreeBSD.ORG, sos@FreeBSD.ORG Subject: Re: kern/15608: acd0 / cd0 give inconsistent errors on empty tray open() From: "M. Warner Losh" In-Reply-To: <20020822150931.A10866@panzer.kdm.org> References: <200208221942.g7MJgMpY037865@freefall.freebsd.org> <20020822150931.A10866@panzer.kdm.org> 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 In message: <20020822150931.A10866@panzer.kdm.org> "Kenneth D. Merry" writes: : The question is, what sort of error should we return from a peripheral : driver (cd(4), da(4), etc.) open() routine when there is no media in the : drive? : : Currently all CAM drivers will return ENXIO, and although the PR says that : the acd(4) driver returns EIO, I can't tell from acdopen that it returns : any errors at all if media isn't present. : : My guess is that EIO is getting returned sometime later in the acd(4) : driver. (If that is still the case, this PR was filed in late 1999.) : : So is there any opinion on -standards as to what sort of error we should : return on open if there is no media in a drive? EIO means "The device is there, but the driver had problems interacting with it" while ENXIO means "the device isn't there at all." As such, EIO is the more correct error to return in this case. I don't know if the standards speak to this specific issue (no or bad media in a device with removable media). Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Thu Aug 22 14:30: 8 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 8D42037B400 for ; Thu, 22 Aug 2002 14:30:04 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B7CB43E9C for ; Thu, 22 Aug 2002 14:30: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 g7MLU4JU067848 for ; Thu, 22 Aug 2002 14:30: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 g7MLU4eu067847; Thu, 22 Aug 2002 14:30:04 -0700 (PDT) Date: Thu, 22 Aug 2002 14:30:04 -0700 (PDT) Message-Id: <200208222130.g7MLU4eu067847@freefall.freebsd.org> To: freebsd-scsi@FreeBSD.org Cc: From: "M. Warner Losh" Subject: Re: kern/15608: acd0 / cd0 give inconsistent errors on empty tray open() Reply-To: "M. Warner Losh" 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/15608; it has been noted by GNATS. From: "M. Warner Losh" To: ken@kdm.org Cc: johan@FreeBSD.ORG, nsayer@quack.kfu.com, freebsd-gnats-submit@FreeBSD.ORG, freebsd-scsi@FreeBSD.ORG, freebsd-standards@FreeBSD.ORG, sos@FreeBSD.ORG Subject: Re: kern/15608: acd0 / cd0 give inconsistent errors on empty tray open() Date: Thu, 22 Aug 2002 15:23:29 -0600 (MDT) In message: <20020822150931.A10866@panzer.kdm.org> "Kenneth D. Merry" writes: : The question is, what sort of error should we return from a peripheral : driver (cd(4), da(4), etc.) open() routine when there is no media in the : drive? : : Currently all CAM drivers will return ENXIO, and although the PR says that : the acd(4) driver returns EIO, I can't tell from acdopen that it returns : any errors at all if media isn't present. : : My guess is that EIO is getting returned sometime later in the acd(4) : driver. (If that is still the case, this PR was filed in late 1999.) : : So is there any opinion on -standards as to what sort of error we should : return on open if there is no media in a drive? EIO means "The device is there, but the driver had problems interacting with it" while ENXIO means "the device isn't there at all." As such, EIO is the more correct error to return in this case. I don't know if the standards speak to this specific issue (no or bad media in a device with removable media). Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Thu Aug 22 16: 0:29 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 ED4FB37B400 for ; Thu, 22 Aug 2002 16:00:26 -0700 (PDT) Received: from mgw1-out.MEIway.com (mgw1.meiway.com [212.73.210.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 203B943E65 for ; Thu, 22 Aug 2002 16:00:26 -0700 (PDT) (envelope-from LConrad@Go2France.com) Received: from VirusGate.MEIway.com (virus-gate.meiway.com [212.73.210.91]) by mgw1-out.MEIway.com (Postfix Relay Hub) with ESMTP id 9101CEF6A5 for ; Fri, 23 Aug 2002 00:50:42 +0200 (CEST) Received: from localhost (localhost.meiway.com [127.0.0.1]) by VirusGate.MEIway.com (Postfix) with SMTP id BEF3F5D009 for ; Fri, 23 Aug 2002 01:04:10 +0200 (CEST) Received: from mail.Go2France.com (ms1.meiway.com [212.73.210.73]) by VirusGate.MEIway.com (Postfix) with ESMTP id 617C35D008 for ; Fri, 23 Aug 2002 01:04:10 +0200 (CEST) Received: from LenConrad.Go2France.com [32.103.38.35] by mail.Go2France.com with ESMTP (SMTPD32-6.06) id AE6C1FC60258; Fri, 23 Aug 2002 01:06:20 +0200 Message-Id: <5.1.0.14.2.20020822175713.030177a0@mail.Go2France.com> X-Sender: LConrad@Go2France.com@mail.Go2France.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Thu, 22 Aug 2002 18:00:20 -0500 To: freebsd-scsi@freebsd.org From: Len Conrad Subject: dual-channel Adaptec 3210s Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed 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 Going through the 4.6.2 LINT, I see a lot of Adaptec SCSI support, but what about the "3210s" ? Sorry I don't have the card in hand, it's at a remote client's site Len __________________________________________________________________ www.menandmice.com/DNS-training : DNS Training BIND8NT.MEIway.com : ISC BIND for NT4 & W2K IMGate.MEIway.com : Build free, hi-perf, anti-abuse mail gateways To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Thu Aug 22 16: 1:47 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 84DE337B400 for ; Thu, 22 Aug 2002 16:01:46 -0700 (PDT) Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id A150043E72 for ; Thu, 22 Aug 2002 16:01:45 -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 g7MN1iKD011829; Thu, 22 Aug 2002 17:01:44 -0600 (MDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.12.5/8.12.5/Submit) id g7MN1iwQ011828; Thu, 22 Aug 2002 17:01:44 -0600 (MDT) (envelope-from ken) Date: Thu, 22 Aug 2002 17:01:44 -0600 From: "Kenneth D. Merry" To: Len Conrad Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: dual-channel Adaptec 3210s Message-ID: <20020822170143.A11813@panzer.kdm.org> References: <5.1.0.14.2.20020822175713.030177a0@mail.Go2France.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: <5.1.0.14.2.20020822175713.030177a0@mail.Go2France.com>; from LConrad@Go2France.com on Thu, Aug 22, 2002 at 06:00:20PM -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 On Thu, Aug 22, 2002 at 18:00:20 -0500, Len Conrad wrote: > Going through the 4.6.2 LINT, I see a lot of Adaptec SCSI support, but what > about the "3210s" ? > > Sorry I don't have the card in hand, it's at a remote client's site It's a dual channel Ultra160 RAID card. You need the asr(4) driver. 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 22 19:35:47 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 B10B537B400; Thu, 22 Aug 2002 19:35:44 -0700 (PDT) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB0A743E65; Thu, 22 Aug 2002 19:35:41 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id CAA28886; Fri, 23 Aug 2002 02:35:26 GMT Date: Fri, 23 Aug 2002 12:41:28 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: "M. Warner Losh" Cc: ken@kdm.org, , , , , , Subject: Re: kern/15608: acd0 / cd0 give inconsistent errors on empty tray open() In-Reply-To: <20020822.152329.129782316.imp@bsdimp.com> Message-ID: <20020823122010.S6402-100000@gamplex.bde.org> 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 Thu, 22 Aug 2002, M. Warner Losh wrote: > In message: <20020822150931.A10866@panzer.kdm.org> > "Kenneth D. Merry" writes: > : So is there any opinion on -standards as to what sort of error we should > : return on open if there is no media in a drive? > > EIO means "The device is there, but the driver had problems > interacting with it" while ENXIO means "the device isn't there at > all." As such, EIO is the more correct error to return in this case. No, EIO means that an input/output arror occurred. open.2 only documents EIO for creating files. Otherwise open() normally doesn't do any i/o. So ENXIO is the more correct error. I think the bug is that the open doesn't succeed. The device is reported as being there at boot time, and there is enough of it there to tell which parts of it aren't there, so why not open() it so that you do things like ioctl() on it to close its door and make it there? > I don't know if the standards speak to this specific issue (no or bad > media in a device with removable media). POSIX doesn't say anything much different from open.2 about this. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Thu Aug 22 19:40: 9 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 9290937B400 for ; Thu, 22 Aug 2002 19:40:05 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5219043E7B for ; Thu, 22 Aug 2002 19:40:05 -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 g7N2e4JU040560 for ; Thu, 22 Aug 2002 19: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 g7N2e4vp040559; Thu, 22 Aug 2002 19:40:04 -0700 (PDT) Date: Thu, 22 Aug 2002 19:40:04 -0700 (PDT) Message-Id: <200208230240.g7N2e4vp040559@freefall.freebsd.org> To: freebsd-scsi@FreeBSD.org Cc: From: Bruce Evans Subject: Re: kern/15608: acd0 / cd0 give inconsistent errors on empty tray open() Reply-To: Bruce Evans 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/15608; it has been noted by GNATS. From: Bruce Evans To: "M. Warner Losh" Cc: ken@kdm.org, , , , , , Subject: Re: kern/15608: acd0 / cd0 give inconsistent errors on empty tray open() Date: Fri, 23 Aug 2002 12:41:28 +1000 (EST) On Thu, 22 Aug 2002, M. Warner Losh wrote: > In message: <20020822150931.A10866@panzer.kdm.org> > "Kenneth D. Merry" writes: > : So is there any opinion on -standards as to what sort of error we should > : return on open if there is no media in a drive? > > EIO means "The device is there, but the driver had problems > interacting with it" while ENXIO means "the device isn't there at > all." As such, EIO is the more correct error to return in this case. No, EIO means that an input/output arror occurred. open.2 only documents EIO for creating files. Otherwise open() normally doesn't do any i/o. So ENXIO is the more correct error. I think the bug is that the open doesn't succeed. The device is reported as being there at boot time, and there is enough of it there to tell which parts of it aren't there, so why not open() it so that you do things like ioctl() on it to close its door and make it there? > I don't know if the standards speak to this specific issue (no or bad > media in a device with removable media). POSIX doesn't say anything much different from open.2 about this. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Thu Aug 22 21:32:17 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 50C6C37B40A; Thu, 22 Aug 2002 21:32:11 -0700 (PDT) Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 797C843E6A; Thu, 22 Aug 2002 21:32:10 -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 g7N4W5KD013272; Thu, 22 Aug 2002 22:32:05 -0600 (MDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.12.5/8.12.5/Submit) id g7N4W4Rx013271; Thu, 22 Aug 2002 22:32:04 -0600 (MDT) (envelope-from ken) Date: Thu, 22 Aug 2002 22:32:04 -0600 From: "Kenneth D. Merry" To: Bruce Evans Cc: "M. Warner Losh" , johan@FreeBSD.ORG, nsayer@quack.kfu.com, freebsd-gnats-submit@FreeBSD.ORG, freebsd-scsi@FreeBSD.ORG, freebsd-standards@FreeBSD.ORG, sos@FreeBSD.ORG Subject: Re: kern/15608: acd0 / cd0 give inconsistent errors on empty tray open() Message-ID: <20020822223203.A13222@panzer.kdm.org> References: <20020822.152329.129782316.imp@bsdimp.com> <20020823122010.S6402-100000@gamplex.bde.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: <20020823122010.S6402-100000@gamplex.bde.org>; from bde@zeta.org.au on Fri, Aug 23, 2002 at 12:41:28PM +1000 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 Fri, Aug 23, 2002 at 12:41:28 +1000, Bruce Evans wrote: > On Thu, 22 Aug 2002, M. Warner Losh wrote: > > > In message: <20020822150931.A10866@panzer.kdm.org> > > "Kenneth D. Merry" writes: > > : So is there any opinion on -standards as to what sort of error we should > > : return on open if there is no media in a drive? > > > > EIO means "The device is there, but the driver had problems > > interacting with it" while ENXIO means "the device isn't there at > > all." As such, EIO is the more correct error to return in this case. > > No, EIO means that an input/output arror occurred. open.2 only documents > EIO for creating files. Otherwise open() normally doesn't do any i/o. > So ENXIO is the more correct error. Cool. > I think the bug is that the open doesn't succeed. The device is > reported as being there at boot time, and there is enough of it there > to tell which parts of it aren't there, so why not open() it so that > you do things like ioctl() on it to close its door and make it there? There is no ioctl in the interface for loading a CD. None of the other ioctls, I think, make much sense without media in the drive. The reason we need to do a read capacity in the open() routine, which is why the open fails when there is no media, is so we can fill in the d_secsize and d_secperunit fields in the disklabel. > > I don't know if the standards speak to this specific issue (no or bad > > media in a device with removable media). > > POSIX doesn't say anything much different from open.2 about this. > > Bruce 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 22 21:40: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 1BB5E37B400 for ; Thu, 22 Aug 2002 21:40:08 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C570743E6E for ; Thu, 22 Aug 2002 21:40:07 -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 g7N4e7JU060739 for ; Thu, 22 Aug 2002 21:40:07 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7N4e72K060737; Thu, 22 Aug 2002 21:40:07 -0700 (PDT) Date: Thu, 22 Aug 2002 21:40:07 -0700 (PDT) Message-Id: <200208230440.g7N4e72K060737@freefall.freebsd.org> To: freebsd-scsi@FreeBSD.org Cc: From: "Kenneth D. Merry" Subject: Re: kern/15608: acd0 / cd0 give inconsistent errors on empty tray open() Reply-To: "Kenneth D. Merry" 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/15608; it has been noted by GNATS. From: "Kenneth D. Merry" To: Bruce Evans Cc: "M. Warner Losh" , johan@FreeBSD.ORG, nsayer@quack.kfu.com, freebsd-gnats-submit@FreeBSD.ORG, freebsd-scsi@FreeBSD.ORG, freebsd-standards@FreeBSD.ORG, sos@FreeBSD.ORG Subject: Re: kern/15608: acd0 / cd0 give inconsistent errors on empty tray open() Date: Thu, 22 Aug 2002 22:32:04 -0600 On Fri, Aug 23, 2002 at 12:41:28 +1000, Bruce Evans wrote: > On Thu, 22 Aug 2002, M. Warner Losh wrote: > > > In message: <20020822150931.A10866@panzer.kdm.org> > > "Kenneth D. Merry" writes: > > : So is there any opinion on -standards as to what sort of error we should > > : return on open if there is no media in a drive? > > > > EIO means "The device is there, but the driver had problems > > interacting with it" while ENXIO means "the device isn't there at > > all." As such, EIO is the more correct error to return in this case. > > No, EIO means that an input/output arror occurred. open.2 only documents > EIO for creating files. Otherwise open() normally doesn't do any i/o. > So ENXIO is the more correct error. Cool. > I think the bug is that the open doesn't succeed. The device is > reported as being there at boot time, and there is enough of it there > to tell which parts of it aren't there, so why not open() it so that > you do things like ioctl() on it to close its door and make it there? There is no ioctl in the interface for loading a CD. None of the other ioctls, I think, make much sense without media in the drive. The reason we need to do a read capacity in the open() routine, which is why the open fails when there is no media, is so we can fill in the d_secsize and d_secperunit fields in the disklabel. > > I don't know if the standards speak to this specific issue (no or bad > > media in a device with removable media). > > POSIX doesn't say anything much different from open.2 about this. > > Bruce 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 22 21:42: 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 0794F37B400 for ; Thu, 22 Aug 2002 21:42:06 -0700 (PDT) Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4454443E3B for ; Thu, 22 Aug 2002 21:42:05 -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 g7N4g4KD013337; Thu, 22 Aug 2002 22:42:04 -0600 (MDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.12.5/8.12.5/Submit) id g7N4g4Hd013336; Thu, 22 Aug 2002 22:42:04 -0600 (MDT) (envelope-from ken) Date: Thu, 22 Aug 2002 22:42:04 -0600 From: "Kenneth D. Merry" To: Nate Lawson Cc: scsi@FreeBSD.ORG Subject: Re: CDB6/10 negotiation Message-ID: <20020822224204.A13285@panzer.kdm.org> References: 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 Wed, Aug 21, 2002 at 01:37:50PM -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 Wed, Aug 21, 2002 at 13:37:50 -0700, Nate Lawson wrote: > I am available to do the full version suggested by Ken once we agree on a > path. However, there are a lot of people re-working CAM and I don't want > to replicate work. I don't know that anyone is currently working on the new transport code. It still needs some work to define all the various protocol/transport bits (see cam_ccb.h), and implement it in all the SIM drivers. > Consensus is suggesting the best approach is to put USB transport checks > under CAM_NEW_TRAN_CODE in cam_xpt.c and then use them to set > device-specific behavior. This will then restrict the commands sent to > the device according to what's reported in its inquiry. At some point > when this is working, cmd6workaround can be removed and most quirks can be > removed. The quirks that remain will truly be quirks where a device > reports capabilities it doesn't really support. Keep in mind that we'll restrict things according to the *path* inquiry (where the transport code puts things), not SCSI inquiry. 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 22 21:53: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 3FC0937B400 for ; Thu, 22 Aug 2002 21:53:38 -0700 (PDT) Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5987A43E75 for ; Thu, 22 Aug 2002 21:53: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 g7N4rSKD013415; Thu, 22 Aug 2002 22:53:28 -0600 (MDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.12.5/8.12.5/Submit) id g7N4rS6w013414; Thu, 22 Aug 2002 22:53:28 -0600 (MDT) (envelope-from ken) Date: Thu, 22 Aug 2002 22:53:27 -0600 From: "Kenneth D. Merry" To: Thomas Quinot Cc: Nate Lawson , scsi@FreeBSD.ORG Subject: Re: CDB6/10 negotiation Message-ID: <20020822225327.B13285@panzer.kdm.org> References: <20020821230409.C66733@melusine.cuivre.fr.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020821230409.C66733@melusine.cuivre.fr.eu.org>; from thomas@cuivre.fr.eu.org on Wed, Aug 21, 2002 at 11:04:09PM +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 Wed, Aug 21, 2002 at 23:04:09 +0200, Thomas Quinot wrote: > Le 2002-08-21, Nate Lawson écrivait : > > > Consensus is suggesting the best approach is to put USB transport checks > > under CAM_NEW_TRAN_CODE in cam_xpt.c and then use them to set > > device-specific behavior. > > I think we should keep a clean separation between transport and > protocol. Available command sets should not be tied to the protocol they > are used on. For example the fact that an ATAPI CD-ROM drive is accessed > through the ATAPI transport and the fact that it implements the MMC-2 > command set should be recorded separately. With the new transport code, we've made a distinction between transport and protocol. e.g., some of the defined protocols at the moment are SCSI, ATA, and ATAPI. Since SCSI and ATAPI are very similar, all we really need to do is make sure we use commands that are supported on ATAPI when we're talking to an ATAPI protocol device. (The transport could be ATA, USB, etc.) ATA is different, and will likely require more changes to support it via CAM. > > removed. The quirks that remain will truly be quirks where a device > > reports capabilities it doesn't really support. > > Some devices can also require quirks for maximum I/O operation size > (specifically, ZIP drives need a quirk in scsi_da to be able to use > FFS). Cf. the scsi_da.c part in > http://www.cuivre.fr.eu.org/~thomas/atapicam/patches/atapicam-20020409.diff > (which needs to be adapted for -CURRENT.) It's unfortunate that they've got limitations like that. Does anyone know whether the same is true of the SCSI version? (I'm kinda curious.) This isn't the same thing, but Justin and I have been planning for a while to implement a facility to report up to the upper layers information on restrictions on I/O sizes for individual drivers. e.g., driver X can transfer no more than 64K or 128K at a time. This would allow us to get rid of the current DFLTPHYS limitation for the pass(4) driver, and potentially all limitations if we go to a more flexible buffer implementation. 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 Fri Aug 23 1:33: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 2405437B400; Fri, 23 Aug 2002 01:33:33 -0700 (PDT) Received: from innocence.interface-business.de (innocence.interface-business.de [193.101.57.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 86F8F43E84; Fri, 23 Aug 2002 01:33:28 -0700 (PDT) (envelope-from j@uriah.heep.sax.de) Received: from innocence.interface-business.de (localhost.interface-business.de [127.0.0.1]) by innocence.interface-business.de (8.12.5/8.12.5/ifb evision: 1.23 $) with ESMTP id g7N8XQ8q040257; Fri, 23 Aug 2002 10:33:26 +0200 (CEST) (envelope-from j@uriah.heep.sax.de) Received: (from uucp@localhost) by innocence.interface-business.de (8.12.5/8.12.5/Submit) with UUCP id g7N6o26p036390; Fri, 23 Aug 2002 08:50:02 +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 g7N5xbBs044083; Fri, 23 Aug 2002 07:59:37 +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 g7N5xZEo044082; Fri, 23 Aug 2002 07:59:35 +0200 (MET DST) (envelope-from j) Date: Fri, 23 Aug 2002 07:59:35 +0200 (MET DST) Message-Id: <200208230559.g7N5xZEo044082@uriah.heep.sax.de> Mime-Version: 1.0 X-Newsreader: knews 1.0b.1 Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) Organization: Private BSD site, Dresden 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 References: <20020822150931.A10866@panzer.kdm.org> <20020822.152329.129782316.imp@bsdimp.com> From: j@uriah.heep.sax.de (Joerg Wunsch) Subject: Re: kern/15608: acd0 / cd0 give inconsistent errors on empty tray open() X-Original-Newsgroups: local.freebsd.scsi To: freebsd-scsi@freebsd.org Cc: gnats-followup@freebsd.org 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 "M. Warner Losh" wrote: > EIO means "The device is there, but the driver had problems > interacting with it" while ENXIO means "the device isn't there at > all." As such, EIO is the more correct error to return in this case. I disagree. 6 ENXIO No such device or address. Input or output on a special file referred to a device that did not exist, or made a request beyond the limits of the device. This error may also occur when, for example, a tape drive is not online or no disk pack is loaded on a drive. The case of ``a tape drive is not online'' or ``no disk pack is loaded'' sounds fairly similar to me to ``no CD-ROM inserted''. It's really sad that ENXIO is a catch-all error code, but it really seems to be intented for this. -- 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 Fri Aug 23 7:49: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 400C737B400 for ; Fri, 23 Aug 2002 07:49:29 -0700 (PDT) Received: from melchior.cuivre.fr.eu.org (melchior.enst.fr [137.194.161.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E9E443E6A for ; Fri, 23 Aug 2002 07:49:28 -0700 (PDT) (envelope-from thomas@cuivre.fr.eu.org) Received: from melusine.cuivre.fr.eu.org (melusine.enst.fr [137.194.160.34]) by melchior.cuivre.fr.eu.org (Postfix) with ESMTP id 517ED10271; Fri, 23 Aug 2002 16:49:26 +0200 (CEST) Received: by melusine.cuivre.fr.eu.org (Postfix, from userid 1000) id 0DF692C3D1; Fri, 23 Aug 2002 16:49:06 +0200 (CEST) Date: Fri, 23 Aug 2002 16:49:06 +0200 From: Thomas Quinot To: "Kenneth D. Merry" Cc: Nate Lawson , scsi@FreeBSD.ORG Subject: Re: CDB6/10 negotiation Message-ID: <20020823164905.A81643@melusine.cuivre.fr.eu.org> Reply-To: thomas@cuivre.fr.eu.org References: <20020821230409.C66733@melusine.cuivre.fr.eu.org> <20020822225327.B13285@panzer.kdm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: <20020822225327.B13285@panzer.kdm.org>; from ken@kdm.org on Thu, Aug 22, 2002 at 10:53:27PM -0600 X-message-flag: WARNING! Using Outlook can damage your computer. 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 Le 2002-08-23, Kenneth D. Merry écrivait : > > Some devices can also require quirks for maximum I/O operation size > > (specifically, ZIP drives need a quirk in scsi_da to be able to use > > FFS). Apparently not anymore, because Søren has changed the underlying generic ATAPI code to not rely on the upper layer honoring si_iosize_max, but instead unconditionnally cap transfer size. ATAPI ZIP drives can now be used with a vanilla -CURRENT and atapicam: FreeBSD melanie.enst.fr 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Fri Aug 23 02:57:05 CEST 2002 root@melanie.enst.fr:/home/usr.obj/usr/src/sys/MELANIE i386 da0 at ata1 bus 0 target 1 lun 0 da0: Removable Direct Access SCSI-0 device melanie# mount|grep da0 /dev/da0s1c on /zipbsd (ufs, local) Thomas. -- Thomas.Quinot@Cuivre.FR.EU.ORG To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Fri Aug 23 10:41:34 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 E6B7D37B400 for ; Fri, 23 Aug 2002 10:41:32 -0700 (PDT) Received: from freebie.xs4all.nl (freebie.xs4all.nl [213.84.32.253]) by mx1.FreeBSD.org (Postfix) with ESMTP id F03DF43E4A for ; Fri, 23 Aug 2002 10:41: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 g7NHfTmU011435 for ; Fri, 23 Aug 2002 19:41:30 +0200 (CEST) (envelope-from wkb@freebie.xs4all.nl) Received: (from wkb@localhost) by freebie.xs4all.nl (8.12.5/8.12.5/Submit) id g7NHfTFG011434 for freebsd-scsi@freebsd.org; Fri, 23 Aug 2002 19:41:29 +0200 (CEST) Date: Fri, 23 Aug 2002 19:41:29 +0200 From: Wilko Bulte To: freebsd-scsi@freebsd.org Subject: looking for a datasheet on FC MIA Message-ID: <20020823194129.B11382@freebie.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i 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 Hi, I'm playing with some fibrechannel stuff and I am looking for a data/spec sheet on a FC MIA. A MIA is a DB9 copper to optical fibrechannel converter. Suggestions are welcome. -- | / 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 Fri Aug 23 15:45: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 6F13537B400 for ; Fri, 23 Aug 2002 15:45:38 -0700 (PDT) Received: from murphy.dachbu.de (murphy.dachbu.de [195.180.4.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF3AA43E6A for ; Fri, 23 Aug 2002 15:45:36 -0700 (PDT) (envelope-from frank@altpeter.de) Received: from murphy.dachbu.de (freddy@localhost [127.0.0.1]) by murphy.dachbu.de (8.12.5/8.12.5) with ESMTP id g7NMlMG9041430 for ; Sat, 24 Aug 2002 00:47:22 +0200 (CEST) (envelope-from frank@altpeter.de) Received: (from freddy@localhost) by murphy.dachbu.de (8.12.5/8.12.5/Submit) id g7NMlLYN041429 for freebsd-scsi@freebsd.org; Sat, 24 Aug 2002 00:47:21 +0200 (CEST) X-Authentication-Warning: murphy.dachbu.de: freddy set sender to frank@altpeter.de using -f Date: Sat, 24 Aug 2002 00:47:21 +0200 From: "Frank 'Freddy' Altpeter" To: freebsd-scsi@freebsd.org Subject: problem using USB - ATAPI - CDRW with cdrecord Message-ID: <20020824004721.A36156@energis-ision.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i X-Mozilla-HTML: FALSE Organization: ISION Internet AG, Hamburg, Germany X-ICQ-UIN: 6133423 X-IRCNICK: Freddy X-PGP-KeyID: 0xF128ADF3 X-PGP-Fingerprint: 97 A1 A6 3C 2F 61 84 B0 A6 39 C0 A2 53 F0 D4 0B 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 helloo! I tried to use an AOpen CD/RW burner today, ATAPI based, connected in an ATAPI to USB adapter box and with that, plugged via USB to my freebsd 4.6-STABLE notebook (Compaq armada e500). According to some googlehops it's supposed to work with cdrecord. But i don't figure out why i can't access the device. Plugging in the box it says: umass0: OnSpec Electronic, Inc. USB Atapi, rev 1.00/b.02, addr 2 umass0: Get Max Lun not supported (STALLED) I think the relevant kernel options are all defined (da, scbus, pass, cd, usb, umass, etc...), but camcontrol isn't listing the device: pegasus# camcontrol rescan 0 Re-scan of bus 0 was successful pegasus# camcontrol devlist -v scbus0 on umass-sim0 bus 0: scbus-1 on xpt0 bus 0: < > at scbus-1 target -1 lun -1 (xpt0) pegasus# So, cdrecord doesn't see anything either: pegasus# export ENABLE_USB=1 pegasus# cdrecord -scanbus Cdrecord 1.11a28 (i386-unknown-freebsd4.6) Copyright (C) 1995-2002 Jörg Schilling cdrecord: No such file or directory. Cannot open SCSI driver. Since my knowledge of freebsd system internals are not that great, i'm unable to find out what i am missing. So, perhaps one here as a clue for me? Take care, Frank Altpeter -- In der Beziehung hat der Autor von 'Planet der Affen' nicht genuegend Weitsicht gezeigt. Es braucht wirklich _keinen_ Atomkrieg, damit die Erde so weit degeneriert. Das schaffen die Menschen auch so. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Sat Aug 24 2:29: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 2FFE137B400 for ; Sat, 24 Aug 2002 02:29:57 -0700 (PDT) Received: from freebie.xs4all.nl (freebie.xs4all.nl [213.84.32.253]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C24243E65 for ; Sat, 24 Aug 2002 02:29:56 -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 g7O9TtmU020476 for ; Sat, 24 Aug 2002 11:29:55 +0200 (CEST) (envelope-from wkb@freebie.xs4all.nl) Received: (from wkb@localhost) by freebie.xs4all.nl (8.12.5/8.12.5/Submit) id g7O9TtnZ020475 for freebsd-scsi@FreeBSD.ORG; Sat, 24 Aug 2002 11:29:55 +0200 (CEST) Date: Sat, 24 Aug 2002 11:29:55 +0200 From: Wilko Bulte To: freebsd-scsi@FreeBSD.ORG Subject: Re: looking for a datasheet on FC MIA Message-ID: <20020824112955.B20428@freebie.xs4all.nl> References: <20020823194129.B11382@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: <20020823194129.B11382@freebie.xs4all.nl>; from wkb@freebie.xs4all.nl on Fri, Aug 23, 2002 at 07:41:29PM +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 Fri, Aug 23, 2002 at 07:41:29PM +0200, Wilko Bulte wrote: Got it working now, never mind. > Hi, > > I'm playing with some fibrechannel stuff and I am looking for > a data/spec sheet on a FC MIA. A MIA is a DB9 copper to optical > fibrechannel converter. > > Suggestions are welcome. > > -- > | / 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 ---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 Sat Aug 24 14:38: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 666DB37B400 for ; Sat, 24 Aug 2002 14:38:33 -0700 (PDT) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 1158C43E6A for ; Sat, 24 Aug 2002 14:38:33 -0700 (PDT) (envelope-from nate@rootlabs.com) Received: (qmail 68576 invoked by uid 1000); 24 Aug 2002 21:38:34 -0000 Date: Sat, 24 Aug 2002 14:38:34 -0700 (PDT) From: Nate Lawson To: Frank 'Freddy' Altpeter Cc: freebsd-scsi@freebsd.org Subject: Re: problem using USB - ATAPI - CDRW with cdrecord In-Reply-To: <20020824004721.A36156@energis-ision.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 On Sat, 24 Aug 2002, Frank 'Freddy' Altpeter wrote: > I tried to use an AOpen CD/RW burner today, ATAPI based, connected in an > ATAPI to USB adapter box and with that, plugged via USB to my > freebsd 4.6-STABLE notebook (Compaq armada e500). > According to some googlehops it's supposed to work with cdrecord. > But i don't figure out why i can't access the device. > > Plugging in the box it says: > > umass0: OnSpec Electronic, Inc. USB Atapi, rev 1.00/b.02, addr 2 > umass0: Get Max Lun not supported (STALLED) > > I think the relevant kernel options are all defined > (da, scbus, pass, cd, usb, umass, etc...), but camcontrol isn't > listing the device: > > pegasus# camcontrol rescan 0 > Re-scan of bus 0 was successful > pegasus# camcontrol devlist -v > scbus0 on umass-sim0 bus 0: > scbus-1 on xpt0 bus 0: > < > at scbus-1 target -1 lun -1 (xpt0) > pegasus# Try boot -v first and see if you get a message like "Attached to scbus0 as device X". If not, compile your kernel with options USB_DEBUG and CAMDEBUG. Before trying the rescan, do: camcontrol debug -T 0 The output should help trace down what is going on. -Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Sat Aug 24 15:18: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 89A3137B400 for ; Sat, 24 Aug 2002 15:18:23 -0700 (PDT) Received: from murphy.dachbu.de (murphy.dachbu.de [195.180.4.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC9BB43E42 for ; Sat, 24 Aug 2002 15:18:21 -0700 (PDT) (envelope-from frank@altpeter.de) Received: from murphy.dachbu.de (freddy@localhost [127.0.0.1]) by murphy.dachbu.de (8.12.5/8.12.5) with ESMTP id g7OMK8G9047558; Sun, 25 Aug 2002 00:20:08 +0200 (CEST) (envelope-from frank@altpeter.de) Received: (from freddy@localhost) by murphy.dachbu.de (8.12.5/8.12.5/Submit) id g7OMK7YO047557; Sun, 25 Aug 2002 00:20:07 +0200 (CEST) X-Authentication-Warning: murphy.dachbu.de: freddy set sender to frank@altpeter.de using -f Date: Sun, 25 Aug 2002 00:20:07 +0200 From: "Frank 'Freddy' Altpeter" To: Nate Lawson Cc: freebsd-scsi@freebsd.org Subject: Re: problem using USB - ATAPI - CDRW with cdrecord Message-ID: <20020824222007.GB41834@ision.net> References: <20020824004721.A36156@energis-ision.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Organization: ISION GmbH, Hamburg, Germany X-PGP-KeyID: 0xF128ADF3 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 ! Nate Lawson wrote on 24.08.2002 14:38:34 -0700: > Try boot -v first and see if you get a message like "Attached to scbus0 as > device X". Well, i don't. > If not, compile your kernel with options USB_DEBUG and CAMDEBUG. Before > trying the rescan, do: > camcontrol debug -T 0 > The output should help trace down what is going on. Recompiled and this is the output: pegasus# camcontrol debug -T 0 Debugging enabled for 0:-1:-1 pegasus# camcontrol rescan 0 Re-scan of bus 0 was successful pegasus# camcontrol devlist -v scbus0 on umass-sim0 bus 0: < > at scbus0 target -1 lun -1 () scbus-1 on xpt0 bus 0: < > at scbus-1 target -1 lun -1 (xpt0) The syslog entry on usb plugin has changed, too: umass0: OnSpec Electronic, Inc. USB Atapi, rev 1.00/b.02, addr 2, SCSI over Bulk-Only umass0: Get Max Lun not supported (STALLED) umass0:0:0:-1: Attached to scbus0 as device 0 I'm not really sure what the change in the umass-sim0 output should say me, but i don't think that it looks good, does it? If you need the full dmesg output, tell me - i wasn't sure if mailing 21 kByte of attached data is ok for this list :-) With kind regards, Frank Altpeter -- Wer andere erkennt, ist klug. Wer sich selbst erkennt, ist weise. Wer andere bezwingt, ist stark. Wer sich selbst bezwingt, hat Macht. -- Lao Tse, ca. 500 v. Chr. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Sat Aug 24 19: 4: 2 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 6F67D37B400; Sat, 24 Aug 2002 19:04:00 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F77C43E6E; Sat, 24 Aug 2002 19:04:00 -0700 (PDT) (envelope-from johan@FreeBSD.org) Received: from freefall.freebsd.org (johan@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7P240JU050339; Sat, 24 Aug 2002 19:04:00 -0700 (PDT) (envelope-from johan@freefall.freebsd.org) Received: (from johan@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7P23xhs050335; Sat, 24 Aug 2002 19:03:59 -0700 (PDT) Date: Sat, 24 Aug 2002 19:03:59 -0700 (PDT) From: Johan Karlsson Message-Id: <200208250203.g7P23xhs050335@freefall.freebsd.org> To: johan@FreeBSD.org, freebsd-scsi@FreeBSD.org, scsi@FreeBSD.org Subject: Re: kern/15608: acd0 / cd0 give inconsistent errors on empty tray open() 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: acd0 / cd0 give inconsistent errors on empty tray open() Responsible-Changed-From-To: freebsd-scsi->scsi Responsible-Changed-By: johan Responsible-Changed-When: Sat Aug 24 19:03:27 PDT 2002 Responsible-Changed-Why: Use short names for mailing list to make searches using the web query form work with the shown responsible. This also makes open PR show up in the summery mail. http://www.freebsd.org/cgi/query-pr.cgi?pr=15608 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Sat Aug 24 19: 4: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 6F67D37B400; Sat, 24 Aug 2002 19:04:00 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F77C43E6E; Sat, 24 Aug 2002 19:04:00 -0700 (PDT) (envelope-from johan@FreeBSD.org) Received: from freefall.freebsd.org (johan@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7P240JU050339; Sat, 24 Aug 2002 19:04:00 -0700 (PDT) (envelope-from johan@freefall.freebsd.org) Received: (from johan@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7P23xhs050335; Sat, 24 Aug 2002 19:03:59 -0700 (PDT) Date: Sat, 24 Aug 2002 19:03:59 -0700 (PDT) From: Johan Karlsson Message-Id: <200208250203.g7P23xhs050335@freefall.freebsd.org> To: johan@FreeBSD.org, freebsd-scsi@FreeBSD.org, scsi@FreeBSD.org Subject: Re: kern/15608: acd0 / cd0 give inconsistent errors on empty tray open() 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: acd0 / cd0 give inconsistent errors on empty tray open() Responsible-Changed-From-To: freebsd-scsi->scsi Responsible-Changed-By: johan Responsible-Changed-When: Sat Aug 24 19:03:27 PDT 2002 Responsible-Changed-Why: Use short names for mailing list to make searches using the web query form work with the shown responsible. This also makes open PR show up in the summery mail. http://www.freebsd.org/cgi/query-pr.cgi?pr=15608 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Sat Aug 24 19: 7: 1 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 0C62F37B400; Sat, 24 Aug 2002 19:06:59 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B081443E65; Sat, 24 Aug 2002 19:06:58 -0700 (PDT) (envelope-from johan@FreeBSD.org) Received: from freefall.freebsd.org (johan@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7P26wJU054804; Sat, 24 Aug 2002 19:06:58 -0700 (PDT) (envelope-from johan@freefall.freebsd.org) Received: (from johan@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7P26wQR054800; Sat, 24 Aug 2002 19:06:58 -0700 (PDT) Date: Sat, 24 Aug 2002 19:06:58 -0700 (PDT) From: Johan Karlsson Message-Id: <200208250206.g7P26wQR054800@freefall.freebsd.org> To: johan@FreeBSD.org, freebsd-scsi@FreeBSD.org, 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 Responsible-Changed-From-To: freebsd-scsi->scsi Responsible-Changed-By: johan Responsible-Changed-When: Sat Aug 24 19:06:36 PDT 2002 Responsible-Changed-Why: Use short names for mailing list to make searches using the web query form work with the shown responsible. This also makes open PRs show up in the summery mail. 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 Sat Aug 24 19: 7: 2 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 0C62F37B400; Sat, 24 Aug 2002 19:06:59 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B081443E65; Sat, 24 Aug 2002 19:06:58 -0700 (PDT) (envelope-from johan@FreeBSD.org) Received: from freefall.freebsd.org (johan@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7P26wJU054804; Sat, 24 Aug 2002 19:06:58 -0700 (PDT) (envelope-from johan@freefall.freebsd.org) Received: (from johan@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7P26wQR054800; Sat, 24 Aug 2002 19:06:58 -0700 (PDT) Date: Sat, 24 Aug 2002 19:06:58 -0700 (PDT) From: Johan Karlsson Message-Id: <200208250206.g7P26wQR054800@freefall.freebsd.org> To: johan@FreeBSD.org, freebsd-scsi@FreeBSD.org, 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 Responsible-Changed-From-To: freebsd-scsi->scsi Responsible-Changed-By: johan Responsible-Changed-When: Sat Aug 24 19:06:36 PDT 2002 Responsible-Changed-Why: Use short names for mailing list to make searches using the web query form work with the shown responsible. This also makes open PRs show up in the summery mail. 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 Sat Aug 24 19: 9: 4 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 0D62637B400; Sat, 24 Aug 2002 19:09:02 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 897EB43E72; Sat, 24 Aug 2002 19:09:01 -0700 (PDT) (envelope-from johan@FreeBSD.org) Received: from freefall.freebsd.org (johan@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7P291JU054926; Sat, 24 Aug 2002 19:09:01 -0700 (PDT) (envelope-from johan@freefall.freebsd.org) Received: (from johan@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7P291KO054922; Sat, 24 Aug 2002 19:09:01 -0700 (PDT) Date: Sat, 24 Aug 2002 19:09:01 -0700 (PDT) From: Johan Karlsson Message-Id: <200208250209.g7P291KO054922@freefall.freebsd.org> To: johan@FreeBSD.org, freebsd-scsi@FreeBSD.org, scsi@FreeBSD.org Subject: Re: kern/36402: Another Pen drive 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: Another Pen drive quirk Responsible-Changed-From-To: freebsd-scsi->scsi Responsible-Changed-By: johan Responsible-Changed-When: Sat Aug 24 19:08:23 PDT 2002 Responsible-Changed-Why: Use short names for mailing list to make searches using the web query form work with the shown responsible. http://www.freebsd.org/cgi/query-pr.cgi?pr=36402 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Sat Aug 24 19: 9: 4 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 0D62637B400; Sat, 24 Aug 2002 19:09:02 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 897EB43E72; Sat, 24 Aug 2002 19:09:01 -0700 (PDT) (envelope-from johan@FreeBSD.org) Received: from freefall.freebsd.org (johan@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7P291JU054926; Sat, 24 Aug 2002 19:09:01 -0700 (PDT) (envelope-from johan@freefall.freebsd.org) Received: (from johan@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7P291KO054922; Sat, 24 Aug 2002 19:09:01 -0700 (PDT) Date: Sat, 24 Aug 2002 19:09:01 -0700 (PDT) From: Johan Karlsson Message-Id: <200208250209.g7P291KO054922@freefall.freebsd.org> To: johan@FreeBSD.org, freebsd-scsi@FreeBSD.org, scsi@FreeBSD.org Subject: Re: kern/36402: Another Pen drive 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: Another Pen drive quirk Responsible-Changed-From-To: freebsd-scsi->scsi Responsible-Changed-By: johan Responsible-Changed-When: Sat Aug 24 19:08:23 PDT 2002 Responsible-Changed-Why: Use short names for mailing list to make searches using the web query form work with the shown responsible. http://www.freebsd.org/cgi/query-pr.cgi?pr=36402 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Sat Aug 24 19: 9: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 F3D8C37B400; Sat, 24 Aug 2002 19:09:39 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CB0743E6E; Sat, 24 Aug 2002 19:09:39 -0700 (PDT) (envelope-from johan@FreeBSD.org) Received: from freefall.freebsd.org (johan@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7P29dJU054998; Sat, 24 Aug 2002 19:09:39 -0700 (PDT) (envelope-from johan@freefall.freebsd.org) Received: (from johan@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7P29d9D054994; Sat, 24 Aug 2002 19:09:39 -0700 (PDT) Date: Sat, 24 Aug 2002 19:09:39 -0700 (PDT) From: Johan Karlsson Message-Id: <200208250209.g7P29d9D054994@freefall.freebsd.org> To: johan@FreeBSD.org, freebsd-scsi@FreeBSD.org, 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 Responsible-Changed-From-To: freebsd-scsi->scsi Responsible-Changed-By: johan Responsible-Changed-When: Sat Aug 24 19:09:09 PDT 2002 Responsible-Changed-Why: Use short names for mailing list to make searches using the web query form work with the shown responsible. This also makes open PRs show up in the summery mail. k 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 Sat Aug 24 19: 9:42 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 F3D8C37B400; Sat, 24 Aug 2002 19:09:39 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CB0743E6E; Sat, 24 Aug 2002 19:09:39 -0700 (PDT) (envelope-from johan@FreeBSD.org) Received: from freefall.freebsd.org (johan@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7P29dJU054998; Sat, 24 Aug 2002 19:09:39 -0700 (PDT) (envelope-from johan@freefall.freebsd.org) Received: (from johan@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7P29d9D054994; Sat, 24 Aug 2002 19:09:39 -0700 (PDT) Date: Sat, 24 Aug 2002 19:09:39 -0700 (PDT) From: Johan Karlsson Message-Id: <200208250209.g7P29d9D054994@freefall.freebsd.org> To: johan@FreeBSD.org, freebsd-scsi@FreeBSD.org, 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 Responsible-Changed-From-To: freebsd-scsi->scsi Responsible-Changed-By: johan Responsible-Changed-When: Sat Aug 24 19:09:09 PDT 2002 Responsible-Changed-Why: Use short names for mailing list to make searches using the web query form work with the shown responsible. This also makes open PRs show up in the summery mail. k 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 Sat Aug 24 19:10:26 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 4EFB037B400; Sat, 24 Aug 2002 19:10:24 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01E7143E3B; Sat, 24 Aug 2002 19:10:24 -0700 (PDT) (envelope-from johan@FreeBSD.org) Received: from freefall.freebsd.org (johan@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7P2ANJU055103; Sat, 24 Aug 2002 19:10:23 -0700 (PDT) (envelope-from johan@freefall.freebsd.org) Received: (from johan@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7P2ANcH055099; Sat, 24 Aug 2002 19:10:23 -0700 (PDT) Date: Sat, 24 Aug 2002 19:10:23 -0700 (PDT) From: Johan Karlsson Message-Id: <200208250210.g7P2ANcH055099@freefall.freebsd.org> To: johan@FreeBSD.org, freebsd-scsi@FreeBSD.org, scsi@FreeBSD.org Subject: Re: kern/37332: PATCH: add pen device 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: PATCH: add pen device to scsi_da.c Responsible-Changed-From-To: freebsd-scsi->scsi Responsible-Changed-By: johan Responsible-Changed-When: Sat Aug 24 19:09:55 PDT 2002 Responsible-Changed-Why: Use short names for mailing list to make searches using the web query form work with the shown responsible. This also makes open PRs show up in the summery mail. http://www.freebsd.org/cgi/query-pr.cgi?pr=37332 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Sat Aug 24 19:10:26 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 4EFB037B400; Sat, 24 Aug 2002 19:10:24 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01E7143E3B; Sat, 24 Aug 2002 19:10:24 -0700 (PDT) (envelope-from johan@FreeBSD.org) Received: from freefall.freebsd.org (johan@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7P2ANJU055103; Sat, 24 Aug 2002 19:10:23 -0700 (PDT) (envelope-from johan@freefall.freebsd.org) Received: (from johan@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7P2ANcH055099; Sat, 24 Aug 2002 19:10:23 -0700 (PDT) Date: Sat, 24 Aug 2002 19:10:23 -0700 (PDT) From: Johan Karlsson Message-Id: <200208250210.g7P2ANcH055099@freefall.freebsd.org> To: johan@FreeBSD.org, freebsd-scsi@FreeBSD.org, scsi@FreeBSD.org Subject: Re: kern/37332: PATCH: add pen device 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: PATCH: add pen device to scsi_da.c Responsible-Changed-From-To: freebsd-scsi->scsi Responsible-Changed-By: johan Responsible-Changed-When: Sat Aug 24 19:09:55 PDT 2002 Responsible-Changed-Why: Use short names for mailing list to make searches using the web query form work with the shown responsible. This also makes open PRs show up in the summery mail. http://www.freebsd.org/cgi/query-pr.cgi?pr=37332 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Sat Aug 24 19:11: 1 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 BD3A837B400; Sat, 24 Aug 2002 19:10:58 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C95243E65; Sat, 24 Aug 2002 19:10:58 -0700 (PDT) (envelope-from johan@FreeBSD.org) Received: from freefall.freebsd.org (johan@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7P2AwJU055230; Sat, 24 Aug 2002 19:10:58 -0700 (PDT) (envelope-from johan@freefall.freebsd.org) Received: (from johan@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7P2Awg4055226; Sat, 24 Aug 2002 19:10:58 -0700 (PDT) Date: Sat, 24 Aug 2002 19:10:58 -0700 (PDT) From: Johan Karlsson Message-Id: <200208250210.g7P2Awg4055226@freefall.freebsd.org> To: johan@FreeBSD.org, freebsd-scsi@FreeBSD.org, 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 Responsible-Changed-From-To: freebsd-scsi->scsi Responsible-Changed-By: johan Responsible-Changed-When: Sat Aug 24 19:10:34 PDT 2002 Responsible-Changed-Why: Use short names for mailing list to make searches using the web query form work with the shown responsible. This also makes open PRs show up in the summery mail. 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 Sat Aug 24 19:11: 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 BD3A837B400; Sat, 24 Aug 2002 19:10:58 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C95243E65; Sat, 24 Aug 2002 19:10:58 -0700 (PDT) (envelope-from johan@FreeBSD.org) Received: from freefall.freebsd.org (johan@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7P2AwJU055230; Sat, 24 Aug 2002 19:10:58 -0700 (PDT) (envelope-from johan@freefall.freebsd.org) Received: (from johan@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7P2Awg4055226; Sat, 24 Aug 2002 19:10:58 -0700 (PDT) Date: Sat, 24 Aug 2002 19:10:58 -0700 (PDT) From: Johan Karlsson Message-Id: <200208250210.g7P2Awg4055226@freefall.freebsd.org> To: johan@FreeBSD.org, freebsd-scsi@FreeBSD.org, 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 Responsible-Changed-From-To: freebsd-scsi->scsi Responsible-Changed-By: johan Responsible-Changed-When: Sat Aug 24 19:10:34 PDT 2002 Responsible-Changed-Why: Use short names for mailing list to make searches using the web query form work with the shown responsible. This also makes open PRs show up in the summery mail. 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 Sat Aug 24 19:25: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 AEA6437B400; Sat, 24 Aug 2002 19:25:17 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 623A143E72; Sat, 24 Aug 2002 19:25:17 -0700 (PDT) (envelope-from johan@FreeBSD.org) Received: from freefall.freebsd.org (johan@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7P2PHJU057136; Sat, 24 Aug 2002 19:25:17 -0700 (PDT) (envelope-from johan@freefall.freebsd.org) Received: (from johan@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7P2PHBf057132; Sat, 24 Aug 2002 19:25:17 -0700 (PDT) Date: Sat, 24 Aug 2002 19:25:17 -0700 (PDT) From: Johan Karlsson Message-Id: <200208250225.g7P2PHBf057132@freefall.freebsd.org> To: johan@FreeBSD.org, freebsd-scsi@FreeBSD.org, 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 Responsible-Changed-From-To: freebsd-scsi->scsi Responsible-Changed-By: johan Responsible-Changed-When: Sat Aug 24 19:24:53 PDT 2002 Responsible-Changed-Why: Use short names for mailing list to make searches using the web query form work with the shown responsible. 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 Sat Aug 24 19:25:20 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 AEA6437B400; Sat, 24 Aug 2002 19:25:17 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 623A143E72; Sat, 24 Aug 2002 19:25:17 -0700 (PDT) (envelope-from johan@FreeBSD.org) Received: from freefall.freebsd.org (johan@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7P2PHJU057136; Sat, 24 Aug 2002 19:25:17 -0700 (PDT) (envelope-from johan@freefall.freebsd.org) Received: (from johan@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7P2PHBf057132; Sat, 24 Aug 2002 19:25:17 -0700 (PDT) Date: Sat, 24 Aug 2002 19:25:17 -0700 (PDT) From: Johan Karlsson Message-Id: <200208250225.g7P2PHBf057132@freefall.freebsd.org> To: johan@FreeBSD.org, freebsd-scsi@FreeBSD.org, 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 Responsible-Changed-From-To: freebsd-scsi->scsi Responsible-Changed-By: johan Responsible-Changed-When: Sat Aug 24 19:24:53 PDT 2002 Responsible-Changed-Why: Use short names for mailing list to make searches using the web query form work with the shown responsible. 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 Sat Aug 24 19:49:24 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 E70E437B400; Sat, 24 Aug 2002 19:49:21 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9629A43E65; Sat, 24 Aug 2002 19:49:21 -0700 (PDT) (envelope-from johan@FreeBSD.org) Received: from freefall.freebsd.org (johan@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7P2nLJU060182; Sat, 24 Aug 2002 19:49:21 -0700 (PDT) (envelope-from johan@freefall.freebsd.org) Received: (from johan@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7P2nLSt060178; Sat, 24 Aug 2002 19:49:21 -0700 (PDT) Date: Sat, 24 Aug 2002 19:49:21 -0700 (PDT) From: Johan Karlsson Message-Id: <200208250249.g7P2nLSt060178@freefall.freebsd.org> To: johan@FreeBSD.org, freebsd-scsi@FreeBSD.org, scsi@FreeBSD.org Subject: Re: i386/30527: does not like scsi on atrend 6260 dual PIII (adaptec 7880) 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: does not like scsi on atrend 6260 dual PIII (adaptec 7880) Responsible-Changed-From-To: freebsd-scsi->scsi Responsible-Changed-By: johan Responsible-Changed-When: Sat Aug 24 19:48:57 PDT 2002 Responsible-Changed-Why: Use short names for mailing list to make searches using the web query form work with the shown responsible. http://www.freebsd.org/cgi/query-pr.cgi?pr=30527 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Sat Aug 24 19:49:24 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 E70E437B400; Sat, 24 Aug 2002 19:49:21 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9629A43E65; Sat, 24 Aug 2002 19:49:21 -0700 (PDT) (envelope-from johan@FreeBSD.org) Received: from freefall.freebsd.org (johan@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7P2nLJU060182; Sat, 24 Aug 2002 19:49:21 -0700 (PDT) (envelope-from johan@freefall.freebsd.org) Received: (from johan@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7P2nLSt060178; Sat, 24 Aug 2002 19:49:21 -0700 (PDT) Date: Sat, 24 Aug 2002 19:49:21 -0700 (PDT) From: Johan Karlsson Message-Id: <200208250249.g7P2nLSt060178@freefall.freebsd.org> To: johan@FreeBSD.org, freebsd-scsi@FreeBSD.org, scsi@FreeBSD.org Subject: Re: i386/30527: does not like scsi on atrend 6260 dual PIII (adaptec 7880) 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: does not like scsi on atrend 6260 dual PIII (adaptec 7880) Responsible-Changed-From-To: freebsd-scsi->scsi Responsible-Changed-By: johan Responsible-Changed-When: Sat Aug 24 19:48:57 PDT 2002 Responsible-Changed-Why: Use short names for mailing list to make searches using the web query form work with the shown responsible. http://www.freebsd.org/cgi/query-pr.cgi?pr=30527 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Sun Aug 25 0: 2:10 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 8CC1637B400; Sun, 25 Aug 2002 00:02:04 -0700 (PDT) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id B5C9643E65; Sun, 25 Aug 2002 00:02:02 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id HAA06963; Sun, 25 Aug 2002 07:01:41 GMT Date: Sun, 25 Aug 2002 17:07:32 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: "Kenneth D. Merry" Cc: "M. Warner Losh" , , , , , , Subject: Re: kern/15608: acd0 / cd0 give inconsistent errors on empty tray open() In-Reply-To: <20020822223203.A13222@panzer.kdm.org> Message-ID: <20020825164629.H14756-100000@gamplex.bde.org> 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 Thu, 22 Aug 2002, Kenneth D. Merry wrote: > On Fri, Aug 23, 2002 at 12:41:28 +1000, Bruce Evans wrote: > > I think the bug is that the open doesn't succeed. The device is > > reported as being there at boot time, and there is enough of it there > > to tell which parts of it aren't there, so why not open() it so that > > you do things like ioctl() on it to close its door and make it there? > > There is no ioctl in the interface for loading a CD. None of the other > ioctls, I think, make much sense without media in the drive. There is a CDIOCCLOSE which seems to be supported by acd and by some unmaintained cdrom drivers by not by the scsi cdrom driver. > The reason we need to do a read capacity in the open() routine, which is > why the open fails when there is no media, is so we can fill in the > d_secsize and d_secperunit fields in the disklabel. acdopen() calls acd_read_toc() which does similar things. When there is no media, acd_read_toc() fails with the not quite right error EBUSY, but acdopen() ignores this error and the open succeeds and you can try CDIOCCLOSE() to attempt to load media. So it seems that acdopen() already works like I want, and the EIO error reported earlier doesn't actually occur for acdopen(). dsopen() has similar issues. It attempts to read MBRs and disk labels and can probably return EIO for read errors when there is no media or bad media. One reason why the fd driver doesn't use the slice layer is that I never got this working well enough for floppies. It is hard to issue formatting ioctls when the open fails because the MBR is unreadable. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message