From owner-freebsd-current@FreeBSD.ORG Fri Aug 10 18:11:17 2007 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3CAC616A417 for ; Fri, 10 Aug 2007 18:11:17 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.191]) by mx1.freebsd.org (Postfix) with ESMTP id 4C36813C45D for ; Fri, 10 Aug 2007 18:11:16 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: by mu-out-0910.google.com with SMTP id w9so877439mue for ; Fri, 10 Aug 2007 11:11:15 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:received:received:date:from:to:subject:message-id:mail-followup-to:mime-version:content-type:content-disposition:user-agent; b=YwV9pOj8VcHbanxakif4i5p0/mi/wyOLsBRsYP0VaQCd0A2ZligX6UamSrZOyNJvpGRri3qNfynxB2ans4ma1Bh8QGq+6DPpm8R34bKiBm3/oCnk2JnTHIu9r4JttFflBoMkSltbZi9coAbVpvdeDVSn+s3HayNrgQz/8FZqFEM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:to:subject:message-id:mail-followup-to:mime-version:content-type:content-disposition:user-agent; b=la4a/8oTO0b9LWCOxEAV1CnRiKZhOCfDSIgGGTsiZ9rU/QTCxVmGS1lRHUvpYpTZyNklMESiy2b6Pce2osPugy3Rs1Hl+9HITNDjjZvI+4ixkg2IhOYB2BsQmVtsues2FcM0Ii9xpYLzxDklj+NrNxv7kkvYxOhamicaZLhljKY= Received: by 10.86.57.9 with SMTP id f9mr2536089fga.1186769474559; Fri, 10 Aug 2007 11:11:14 -0700 (PDT) Received: from roadrunner.spoerlein.net ( [85.180.188.189]) by mx.google.com with ESMTPS id y6sm10015921mug.2007.08.10.11.11.12 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 10 Aug 2007 11:11:12 -0700 (PDT) Received: from roadrunner.spoerlein.net (localhost [127.0.0.1]) by roadrunner.spoerlein.net (8.14.1/8.14.1) with ESMTP id l7AIAcP1003384 for ; Fri, 10 Aug 2007 20:10:38 +0200 (CEST) (envelope-from uspoerlein@gmail.com) Received: (from q@localhost) by roadrunner.spoerlein.net (8.14.1/8.14.1/Submit) id l7AIAcE4003382 for current@freebsd.org; Fri, 10 Aug 2007 20:10:38 +0200 (CEST) (envelope-from uspoerlein@gmail.com) Date: Fri, 10 Aug 2007 20:10:37 +0200 From: Ulrich Spoerlein To: current@freebsd.org Message-ID: <20070810181037.GB1415@roadrunner.spoerlein.net> Mail-Followup-To: current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.15 (2007-04-06) Cc: Subject: Need help debugging Plextor DVD-RW / external USB enclosure X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Aug 2007 18:11:17 -0000 Hi all, I sent some messages in the past about this problem, but nothing has turned up so far. I do have some new findings, though. To recap: I cannot read (as in very, very basic commands) retail DVDs on this drive. Burned DVD media works flawlessly, as do retail CDs. This has little to do with region codes or CSS, as I cannot even access data DVDs through USB/cd(4). I cracked the drive open and attached the drive directly via ATA to a recent -CURRENT. It identifies as: acd0: DVDR at ata1-master UDMA33 but really is an PX-760A as printed on the drive label. *Everything* is working fine here. I can read retail DVDs (both data and video). dvdbackup is doing it's job, rescuedisk, dd, and diskinfo, too. Attaching it via atausb(4) through the Plextor bridge (initio INIC-1530L), it identifies as atausb0: on uhub0 atausb0: using ATAPI over Bulk-Only ata2: on atausb0 acd1: DEVICE_RESET unsupported acd1: DVDR at ata2-master USB1 GEOM_LABEL: Label for provider acd1 is iso9660/FIREFLY_DISC2. as you can see, geom_label can read the label, and I can even read some bytes of the disk igor# dd if=/dev/acd1 bs=2048 of=/dev/null dd: /dev/acd1: Input/output error 304+0 records in 304+0 records out running dvdbackup to get a track listing fails. Same can be seen when I let the drive attach with a Prolific bridge chip (I attached it to an external HDD enclosure) atausb0: on uhub0 atausb0: using SCSI over Bulk-Only ata2: on atausb0 acd1: DEVICE_RESET unsupported acd1: DVDR at ata2-master USB1 GEOM_LABEL: Label for provider acd1 is iso9660/FIREFLY_DISC2. Running dvdbackup leads to some weird taskqueue errors, though: acd1: WARNING - TEST_UNIT_READY taskqueue timeout - completing request directly acd1: WARNING - TEST_UNIT_READY freeing taskqueue zombie request acd1: WARNING - PREVENT_ALLOW taskqueue timeout - completing request directly acd1: WARNING - PREVENT_ALLOW freeing taskqueue zombie request acd1: WARNING - TEST_UNIT_READY taskqueue timeout - completing request directly acd1: WARNING - TEST_UNIT_READY freeing taskqueue zombie request acd1: WARNING - READ_TOC taskqueue timeout - completing request directly acd1: WARNING - READ_TOC freeing taskqueue zombie request acd1: WARNING - READ_TOC taskqueue timeout - completing request directly acd1: WARNING - READ_TOC freeing taskqueue zombie request acd1: WARNING - READ_CAPACITY taskqueue timeout - completing request directly acd1: WARNING - READ_CAPACITY freeing taskqueue zombie request acd1: WARNING - READ_DVD_STRUCTURE taskqueue timeout - completing request directly acd1: WARNING - TEST_UNIT_READY taskqueue timeout - completing request directly acd1: WARNING - READ_DVD_STRUCTURE freeing taskqueue zombie request acd1: WARNING - PREVENT_ALLOW taskqueue timeout - completing request directly acd1: WARNING - TEST_UNIT_READY freeing taskqueue zombie request Using the more usual umass(4)/cd(4) combo, accessing retail DVDs is completely out of the question. umass0: on uhub0 umass0: 8070i (ATAPI) over Bulk-Only; quirks = 0x0000 umass0:0:0:-1: Attached to scbus0 cd0 at umass-sim0 bus 0 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 1.000MB/s transfers cd0: cd present [3614880 x 2048 byte records] umass0: on uhub0 umass0: SCSI over Bulk-Only; quirks = 0x0000 umass0:0:0:-1: Attached to scbus0 cd0 at umass-sim0 bus 0 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 1.000MB/s transfers cd0: cd present [3614880 x 2048 byte records] igor# diskinfo -v /dev/cd0 diskinfo: /dev/cd0: ioctl(DIOCGMEDIASIZE) failed, probably not a disk.: No such file or directory igor# dvdbackup -i /dev/cd0 -I igor# Funny thing is, that the kernel can somehow read the media size, as shown in dmesg. But diskinfo can't and: geom_label is not reading the label. On a side note, there is a ca. 5s pause between umass and the first cd0 line. Perhaps some timeout occuring? Pretty much the same thing happens if I attach the drive through firewire/sbp, so I think it's not a usb/umass problem, but rather an acd/cd problem. And just FYI: Linux, NetBSD and OpenBSD don't show the problem. I'll try with DragonFly over the weekend, if it is fixed there I'll diff the source code to see if something comes up. I would greatly appreciate, if someone could nudge me into the right direction. Thanks! Cheers, Ulrich Spoerlein -- It is better to remain silent and be thought a fool, than to speak, and remove all doubt.