From owner-freebsd-current@FreeBSD.ORG Tue Sep 16 08:57:56 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0CFB916A4B3 for ; Tue, 16 Sep 2003 08:57:56 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 33EFE43FBD for ; Tue, 16 Sep 2003 08:57:55 -0700 (PDT) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.8/8.12.1) with ESMTP id h8GFvdDm023308; Tue, 16 Sep 2003 11:57:41 -0400 (EDT) Date: Tue, 16 Sep 2003 11:57:39 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Thomas Quinot In-Reply-To: <20030916150218.GB62176@melusine.cuivre.fr.eu.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE cc: Vladimir Kushnir cc: current@freebsd.org Subject: Re: scsi_cd or atapicam crash in current. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: deischen@freebsd.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Sep 2003 15:57:56 -0000 On Tue, 16 Sep 2003, Thomas Quinot wrote: > Le 2003-09-16, Daniel Eischen =E9crivait : >=20 > > I get this even without atapicam in the kernel. Is trying > > CAMDEBUG and CAM_DEBUG_CDB going to show anything interesting? >=20 > No, indeed, probably not. Can you try the following patch: OK, on a different system that has similar false CD detection and with the patch and with CAMDEBUG and `camcontrol debug -c all`: # camcontrol cmd cd0 -v -c "25 0 0 0 0 0 0 0 0 0" -i 8 "i4 i4" -791621424 -791621424=20 # tail /var/log/messages (xpt0:xpt0:0:-1:-1): debugging flags now 8 (pass0:ata1:0:0:0): READ CD RECORDED CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0=20 atapi_action: hcb@0xc519a100: 25 0 0 0 0 0 0 0 0 0=20 atapi_cb: hcb@0xc519a100 status =3D 00: (sk =3D 00) acd0: cmd 25 Note that on this system, cd0 is not detected as present when built without atapicam. With atapicam yields false detection: acd0: CDRW at ata1-master UDMA33 cd0 at ata1 bus 0 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device=20 cd0: 33.000MB/s transfers cd0: cd present [3737169375 x 3737169374 byte records] --=20 Dan Eischen