From owner-freebsd-stable Mon Mar 10 20:35:42 2003 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7EBAC37B401 for ; Mon, 10 Mar 2003 20:35:40 -0800 (PST) Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA17B43F75 for ; Mon, 10 Mar 2003 20:35:38 -0800 (PST) (envelope-from ken@panzer.kdm.org) Received: from panzer.kdm.org (localhost [127.0.0.1]) by panzer.kdm.org (8.12.6/8.12.5) with ESMTP id h2B4ZT8U026729; Mon, 10 Mar 2003 21:35:29 -0700 (MST) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.12.6/8.12.5/Submit) id h2B4ZRZZ026728; Mon, 10 Mar 2003 21:35:27 -0700 (MST) (envelope-from ken) Date: Mon, 10 Mar 2003 21:35:27 -0700 From: "Kenneth D. Merry" To: Mamoru Iwaki Cc: stable@FreeBSD.ORG Subject: Re: cdcontrol via atapicam in 4.8-RC Message-ID: <20030310213527.A26660@panzer.kdm.org> References: <20030306124454.5330.qmail@pikachu.bsp.bc.niigata-u.ac.jp> <20030309073546.A19190@panzer.kdm.org> <20030310044541.10713.qmail@pikachu.bsp.bc.niigata-u.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030310044541.10713.qmail@pikachu.bsp.bc.niigata-u.ac.jp>; from iwaki@bc.niigata-u.ac.jp on Mon, Mar 10, 2003 at 01:45:39PM +0900 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Mar 10, 2003 at 13:45:39 +0900, Mamoru Iwaki wrote: > From: "Kenneth D. Merry" > Subject: Re: cdcontrol via atapicam in 4.8-RC > Date: Sun, 9 Mar 2003 07:35:46 -0700 > > > On Thu, Mar 06, 2003 at 21:44:51 +0900, Mamoru Iwaki wrote: > > > Hi, > > > > > > I cannot playback music from audio CD via atapicam using cdcontrol > > > in 4.8-RC while mounting of iso9660 data CD works well. > > > Is it a spec. of atapicam ? > > > > The above operations make the following messages in > > > /var/log/messages without any playbacked sound. > > > > > > Mar 6 21:23:59 mi000 /kernel: (cd1:ata1:0:0:0): MODE SELECT(06). CDB: 15 10 0 0 1c 0 > > > Mar 6 21:23:59 mi000 /kernel: (cd1:ata1:0:0:0): ILLEGAL REQUEST asc:1a,0 > > > Mar 6 21:23:59 mi000 /kernel: (cd1:ata1:0:0:0): Parameter list length error > > > This is a known problem. > > > > I fixed it in current, but the code has not yet been MFCed. > > > > Until I do that (most likely after 4.8 goes out the door), try using the > > regular ATAPI CD device with cdcontrol. e.g.: > > > > cdcontrol -f /dev/acd1c > > I see. > > Hopefully, it would be fixed in 4.8-RELEASE because enabling both > atapicam and atapi?? looks dangerous; i.e. it is hard to guarantee > mutually exclusive access to the device, and there is no description > in case that the device is accessed via both ways simultaneously. I doubt it'll get fixed in 4.8-RELEASE. 4.8 is in code freeze, about to go out the door, and I haven't had time to backport things to -stable yet, much less get it tested for a bit. I wish I had gotten it in before the freeze, but that didn't happen. :( My guess is it'll go in after the freeze, and you can pull down a snapshot or cvsup new sources to get the fixes. As for accessing the devices simultaneously -- yes, you can shoot yourself in the foot if you're not careful. We've had the same issue with the normal CAM devices for a while. You can say access the cd(4) device while you're burning a CD via the pass(4) device and mess up the burning process. The simple answer to that problem is "don't do it". :) There's nothing inherently more dangerous about enabling the atapi code and atapicam at the same time. Just don't use the cd(4) and acd(4) devices (that share the same underlying physical device) simultaneously and you'll be fine. Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message