From nobody@FreeBSD.org  Sat Aug 18 09:02:42 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 8943716A41B
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 18 Aug 2007 09:02:42 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 79B6713C4A3
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 18 Aug 2007 09:02:42 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l7I92djo008862
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 18 Aug 2007 09:02:39 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l7I92dv3008861;
	Sat, 18 Aug 2007 09:02:39 GMT
	(envelope-from nobody)
Message-Id: <200708180902.l7I92dv3008861@www.freebsd.org>
Date: Sat, 18 Aug 2007 09:02:39 GMT
From: Claus Endres <claus@endresconsulting.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Recent ATA driver changes have broken cdrecord
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         115614
>Category:       kern
>Synopsis:       [ata] Recent ATA driver changes have broken cdrecord [regression]
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 18 09:10:01 GMT 2007
>Closed-Date:    Wed Jul 14 12:50:37 UTC 2010
>Last-Modified:  Wed Jul 14 12:50:37 UTC 2010
>Originator:     Claus Endres
>Release:        6.2 STABLE as of 16/8/2007
>Organization:
Endres Consulting
>Environment:
FreeBSD fw1.ausimm.com.au 6.2-STABLE FreeBSD 6.2-STABLE #1: Fri Aug 17 10:48:12 EST 2007     claus@fw1.ausimm.com.au:/usr/src/sys/i386/compile/FW  i386
>Description:
CDRECORD fails under up-to-date 6.2_STABLE. It works under a 6.2 STABLE version
cvsup'ed in March 2007.

I have tried this with the cdrtools-devel port and the latest beta code
from Joerg Schily's server on both old and new 6.2 systems.

Command:
cdrecord dev=4,0,0 driveropts=burnfree -sao fs=32m /usr/AusIMMfw.iso

The application fails with:

Cdrecord-ProDVD-ProBD-Clone 2.01.01a33 (i386-unknown-freebsd6.2) Copyright (C) 1995-2007 Jrg Schilling
scsidev: '4,0,0'
scsibus: 4 target: 0 lun: 0
Using libscg version 'schily-0.9'.
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   : 
Vendor_info    : 'PIONEER '
Identifikation : 'DVD-RW  DVR-112D'
Revision       : '1.21'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Using generic SCSI-3/mmc-2 DVD-R/DVD-RW/DVD-RAM driver (mmc_dvd).
Driver flags   : NO-CD DVD MMC-3 SWABAUDIO BURNFREE 
Supported modes: PACKET SAO LAYER_JUMP
Starting to write CD/DVD/BD at speed 12 in real SAO mode for single session.
Last chance to quit, starting real write    0 seconds. Operation starts.
cdrecord: Input/output error. write_g1: scsi sendcmd: cmd timeout after 104.107 (100) s
CDB:  2A 00 00 00 03 07 00 00 1F 00
cmd finished after 104.107s timeout 100s
write track data: error after 1587200 bytes
cdrecord: A write error occured.
cdrecord: Please properly read the error message above.
cdrecord: Input/output error. test unit ready: scsi sendcmd: retryable error
CDB:  00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 06 00 00 00 00 0E 00 00 00 00 29 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Sense Key: 0x6 Unit Attention, Segment 0
Sense Code: 0x29 Qual 0x00 (power on, reset, or bus device reset occurred) Fru 0x0
Sense flags: Blk 0 (not valid) 
cmd finished after 0.006s timeout 100s

/var/log/messages contains:

Aug 18 17:54:08 fw1 kernel: acd0: FAILURE - unknown CMD (0x03) ILLEGAL REQUEST asc=0x24 ascq=0x00 
Aug 18 17:54:08 fw1 kernel: acd0: FAILURE - MODE_SENSE_BIG ILLEGAL REQUEST asc=0x24 ascq=0x00 sks=0x4d 0x00 0x02
Aug 18 17:54:08 fw1 kernel: acd0: FAILURE - MODE_SENSE_BIG ILLEGAL REQUEST asc=0x24 ascq=0x00 sks=0x4d 0x00 0x02
Aug 18 17:54:09 fw1 kernel: acd0: FAILURE - READ_BUFFER ILLEGAL REQUEST asc=0x24 ascq=0x00 
Aug 18 17:54:09 fw1 kernel: acd0: FAILURE - MODE_SENSE_BIG ILLEGAL REQUEST asc=0x24 ascq=0x00 sks=0x4d 0x00 0x02
Aug 18 17:54:09 fw1 kernel: acd0: FAILURE - MODE_SENSE_BIG ILLEGAL REQUEST asc=0x24 ascq=0x00 sks=0x4d 0x00 0x02
Aug 18 17:54:09 fw1 kernel: acd0: FAILURE - unknown CMD (0x03) ILLEGAL REQUEST asc=0x24 ascq=0x00 
Aug 18 17:54:18 fw1 kernel: acd0: FAILURE - READ_TOC ILLEGAL REQUEST asc=0x24 ascq=0x00 
Aug 18 17:54:18 fw1 kernel: acd0: FAILURE - MODE_SENSE_BIG ILLEGAL REQUEST asc=0x24 ascq=0x00 sks=0x4d 0x00 0x02
Aug 18 17:54:18 fw1 kernel: acd0: FAILURE - MODE_SENSE_BIG ILLEGAL REQUEST asc=0x24 ascq=0x00 sks=0x4d 0x00 0x02
Aug 18 17:56:02 fw1 kernel: acd0: FAILURE - WRITE_BIG timed out
Aug 18 17:56:09 fw1 kernel: acd0: FAILURE - MODE_SENSE_BIG ILLEGAL REQUEST asc=0x24 ascq=0x00 sks=0x4d 0x00 0x02
Aug 18 17:56:09 fw1 kernel: acd0: FAILURE - MODE_SENSE_BIG ILLEGAL REQUEST asc=0x24 ascq=0x00 sks=0x4d 0x00 0x02

Neither application error messages nor kernel messages appear with the old 6.2 system
>How-To-Repeat:
Required kernel option:

device atapicam

Port sysutils/cdrtools-devel

PIONEER DVR-112D or equivalent DVD burner

Blank DVD-R

ISO image 
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->thomas 
Responsible-Changed-By: thomas 
Responsible-Changed-When: Wed Sep 12 16:45:51 UTC 2007 
Responsible-Changed-Why:  
Appears to be an ATAPI/CAM-related issue, I'm investigating for now. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=115614 

From: Thomas Quinot <thomas@FreeBSD.ORG>
To: Patrick Hajek <pphajek@lbl.gov>
Cc: current@FreeBSD.ORG, bug-followup@freebsd.org,
	claus@endresconsulting.com
Subject: Re: kern/115614: Recent changes in atapi-cam?
Date: Wed, 12 Sep 2007 18:45:35 +0200

 * Patrick Hajek, 2007-09-11 :
 
 > Commenting out atapicam_load="YES" in loader.conf and not precompiled it in
 > the kernel, the errors disappear.
 > 
 > dmesg shows:
 > 
 > d0: 95205MB <TOSHIBA MK1032GAX AB211A> at ata0-master UDMA100
 > acd0: DVDR <MATSHITADVD-RAM UJ-840S/1.52> at ata1-master UDMA33
 > 
 > No sense errors. So, it appears to point to the atapi-cam module.
 
 Don't jump to conclusions hastily. Just because an error shows up only
 when ATAPI/CAM is loaded doesn't mean it's necessarily a bug there.
 
 > Suggestions?
 
 It looks to me like this is similar to the issue described in
 kern/115614. In general, it's a good habit to first check for an already
 open PR when you encounter a problem, and to open one if there isn't an
 existing one. This ensure that the issue and its resolution are properly
 tracked and do not fall into the cracks. It is all to easy to miss or
 lose track of an untracked discussion on -current.
 
 To help investigate this issue, it would be useful to identify as
 precisely as possible at what point of 6.2-STABLE it appeared.
 
 Also, boot -v output and CAM debugging traces (see "man 4 cam") will be
 useful. Please preserve subject line and include
 bug-followup@freebsd.org in all correspondence to ensure a proper audit
 trail. Thanks!
 
 Thomas.
 

From: Thomas Quinot <thomas@FreeBSD.ORG>
To: Claus Endres <claus@endresconsulting.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/115614: Recent ATA driver changes have broken cdrecord
Date: Sun, 9 Dec 2007 22:59:39 +0100

 sorry for the delay in getting back to you on this issue. Do you still
 see this problem with recent versions of FreeBSD 6, 7 or 8?
 
 Regards,
 Thomas.
 
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Tue Jan 15 05:26:24 UTC 2008 
State-Changed-Why:  
Note that submitter was asked for feedback. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=115614 

From: Aline de Freitas <aline@riseup.net>
To: bug-followup@freebsd.org,
 claus@endresconsulting.com
Cc:  
Subject: kern/115614: [ata] Burning CD's as a ordinary user with atapicam is broken
Date: Tue, 19 Feb 2008 14:16:47 -0300

 --nextPart3281185.PgQE45o7aZ
 Content-Type: text/plain;
   charset="utf-8"
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: inline
 
 Hi,
 
 I have the same issue as in the kern/115614. The only difference is that I'=
 m=20
 using a blank CD-R as media (I didn't test it with DVD media).
 
 The point is, I'm able to burn cd's through the atapicam device only as roo=
 t.=20
 The issue happens when I try to burn it as a normal user.=20
 
 Release:=20
 =46reeBSD anderson-herzer.suite 7.0-RC2 FreeBSD 7.0-RC2 #2: Sun Feb 17 13:3=
 5:43=20
 BRT 2008     root@anderson-herzer.suite:/usr/obj/usr/src/sys/ANDERSON  i386
 
 cdrecord output:
 
 cdrecord: No write mode specified.
 cdrecord: Asuming -tao mode.
 cdrecord: Future versions of cdrecord may have different drive dependent=20
 defaults.
 cdrecord: Continuing in 5 seconds...
 Cdrecord-Clone 2.01 (i386-unknown-freebsd7.0) Copyright (C) 1995-2004 J=EF=
 =BF=BDrg=20
 Schilling
 cdrecord: Operation not permitted. WARNING: Cannot do mlockall(2).
 cdrecord: WARNING: This causes a high risk for buffer underruns.
 cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler
 cdrecord: Permission denied. WARNING: Cannot set priority using setpriority=
 ().
 cdrecord: WARNING: This causes a high risk for buffer underruns.
 scsidev: '1,1,0'
 scsibus: 1 target: 1 lun: 0
 Using libscg version 'schily-0.8'.
 Device type    : Removable CD-ROM
 Version        : 0
 Response Format: 2
 Capabilities   :
 Vendor_info    : 'PIONEER '
 Identifikation : 'DVD-RW  DVR-112D'
 Revision       : '1.15'
 Device seems to be: Generic mmc2 DVD-R/DVD-RW.
 cdrecord: This version of cdrecord does not include DVD-R/DVD-RW support co=
 de.
 cdrecord: If you need DVD-R/DVD-RW support, ask the Author for=20
 cdrecord-ProDVD.
 cdrecord: Free test versions and free keys for personal use are at=20
 ftp://ftp.berlios.de/pub/cdrecord/ProDVD/
 Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
 Driver flags   : MMC-3 SWABAUDIO BURNFREE
 Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
 cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler
 cdrecord: Permission denied. WARNING: Cannot set priority using setpriority=
 ().
 cdrecord: WARNING: This causes a high risk for buffer underruns.
 Starting to write CD/DVD at speed 40 in real TAO mode for single session.
 Last chance to quit, starting real write    0 seconds. Operation starts.
 Turning BURN-Free off
 Track 01: Total bytes read/written: 713625600/713625600 (348450 sectors).
 cdrecord: Input/output error. close track/session: scsi sendcmd: retryable=
 =20
 error
 CDB:  5B 00 02 00 00 00 00 00 00 00
 status: 0x2 (CHECK CONDITION)
 Sense Bytes: 70 00 05 00 00 00 00 0E 00 00 00 00 72 03 00 00 00 00 00 00 00=
  00=20
 00 00 00 00 00 00 00 00 00 00
 Sense Key: 0x5 Illegal Request, Segment 0
 Sense Code: 0x72 Qual 0x03 (session fixation error - incomplete track in=20
 session) Fru 0x0
 Sense flags: Blk 0 (not valid)
 cmd finished after 1.372s timeout 480s
 cmd finished after 1.372s timeout 480s
 cdrecord: Cannot fixate disk.
 er.
 
 
 /var/log/messages:
 
 =46eb 19 13:46:50 anderson-herzer kernel: acd0: FAILURE - READ_DVD_STRUCTUR=
 E=20
 ILLEGAL REQUEST asc=3D0x30 ascq=3D0x02
 =46eb 19 13:46:50 anderson-herzer kernel: acd0: FAILURE - MODE_SENSE_BIG IL=
 LEGAL=20
 REQUEST asc=3D0x24 ascq=3D0x00 sks=3D0x4d 0x00 0x02
 =46eb 19 13:46:50 anderson-herzer kernel: acd0: FAILURE - MODE_SENSE_BIG IL=
 LEGAL=20
 REQUEST asc=3D0x24 ascq=3D0x00 sks=3D0x4d 0x00 0x02
 =46eb 19 13:46:51 anderson-herzer kernel: acd0: FAILURE - READ_BUFFER ILLEG=
 AL=20
 REQUEST asc=3D0x24 ascq=3D0x00
 =46eb 19 13:46:54 anderson-herzer kernel: acd0: FAILURE - MODE_SENSE_BIG IL=
 LEGAL=20
 REQUEST asc=3D0x24 ascq=3D0x00 sks=3D0x4d 0x00 0x02
 =46eb 19 13:46:54 anderson-herzer kernel: acd0: FAILURE - MODE_SENSE_BIG IL=
 LEGAL=20
 REQUEST asc=3D0x24 ascq=3D0x00 sks=3D0x4d 0x00 0x02
 =46eb 19 13:47:03 anderson-herzer kernel: acd0: FAILURE - READ_TOC ILLEGAL=
 =20
 REQUEST asc=3D0x24 ascq=3D0x00
 =46eb 19 13:47:03 anderson-herzer kernel: acd0: FAILURE - MODE_SENSE_BIG IL=
 LEGAL=20
 REQUEST asc=3D0x24 ascq=3D0x00 sks=3D0x4d 0x00 0x02
 =46eb 19 13:47:03 anderson-herzer kernel: acd0: FAILURE - MODE_SENSE_BIG IL=
 LEGAL=20
 REQUEST asc=3D0x24 ascq=3D0x00 sks=3D0x4d 0x00 0x02
 =46eb 19 13:50:11 anderson-herzer kernel: acd0: FAILURE - CLOSE_TRACK/SESSI=
 ON=20
 ILLEGAL REQUEST asc=3D0x72 ascq=3D0x03
 =46eb 19 13:50:44 anderson-herzer sudo:    aline : TTY=3Dttyp1 ;=20
 PWD=3D/usr/home/aline/.aMule/Incoming ; USER=3Droot ;=20
 COMMAND=3D/sbin/mount /dev/cd0
 =46eb 19 13:50:49 anderson-herzer sudo:    aline : TTY=3Dttyp1 ;=20
 PWD=3D/usr/home/aline/.aMule/Incoming ; USER=3Droot ;=20
 COMMAND=3D/sbin/mount_cd9660 /dev/cd0
 =46eb 19 13:50:54 anderson-herzer sudo:    aline : TTY=3Dttyp1 ;=20
 PWD=3D/usr/home/aline/.aMule/Incoming ; USER=3Droot ; COMMAND=3D/sbin/mount=
  -t=20
 cd9660 /dev/cd0
 =46eb 19 13:51:03 anderson-herzer sudo:    aline : TTY=3Dttyp1 ;=20
 PWD=3D/usr/home/aline/.aMule/Incoming ; USER=3Droot ; COMMAND=3D/sbin/mount=
  -t=20
 cd9660 /dev/cd0 /mnt/
 =46eb 19 13:51:03 anderson-herzer kernel: acd0: FAILURE - READ_TOC ILLEGAL=
 =20
 REQUEST asc=3D0x24 ascq=3D0x00
 =46eb 19 13:51:03 anderson-herzer kernel: acd0: FAILURE - READ_TOC ILLEGAL=
 =20
 REQUEST asc=3D0x24 ascq=3D0x00
 =46eb 19 13:51:03 anderson-herzer kernel: (cd0:ata1:0:1:0): READ TOC/PMA/AT=
 IP=20
 {MMC Proposed}. CDB: 43 0 0 0 0 0 0 0 4 0
 =46eb 19 13:51:03 anderson-herzer kernel: (cd0:ata1:0:1:0): CAM Status: SCS=
 I=20
 Status Error
 =46eb 19 13:51:03 anderson-herzer kernel: (cd0:ata1:0:1:0): SCSI Status: Ch=
 eck=20
 Condition
 =46eb 19 13:51:03 anderson-herzer kernel: (cd0:ata1:0:1:0): ILLEGAL REQUEST=
 =20
 asc:24,0
 =46eb 19 13:51:03 anderson-herzer kernel: (cd0:ata1:0:1:0): Invalid field i=
 n CDB
 =46eb 19 13:51:03 anderson-herzer kernel: (cd0:ata1:0:1:0): Unretryable err=
 or
 =46eb 19 13:51:03 anderson-herzer kernel: acd0: FAILURE - READ_TOC ILLEGAL=
 =20
 REQUEST asc=3D0x24 ascq=3D0x00
 =46eb 19 13:51:03 anderson-herzer kernel: g_vfs_done():cd0[READ(offset=3D32=
 768,=20
 length=3D2048)]error =3D 5
 =46eb 19 13:51:09 anderson-herzer sudo:    aline : TTY=3Dttyp1 ;=20
 PWD=3D/usr/home/aline/.aMule/Incoming ; USER=3Droot ; COMMAND=3D/sbin/mount=
  -t=20
 cd9660 /dev/acd0 /mnt/
 =46eb 19 13:51:09 anderson-herzer kernel: g_vfs_done():acd0[READ(offset=3D3=
 2768,=20
 length=3D2048)]error =3D 5
 
 =2D-=20
 Aline de Freitas - Chave p=C3=BAblica: ID DE632016 / keys.indymedia.org
 gpg --keyserver keys.indymedia.org --recv-keys DE632016
 
 --nextPart3281185.PgQE45o7aZ
 Content-Type: application/pgp-signature; name=signature.asc 
 Content-Description: This is a digitally signed message part.
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.4 (FreeBSD)
 
 iD8DBQBHuw8ChLRvs95jIBYRAn67AJ4nyzLoQa/sBf5QlWgdrguTOYzEkQCcCazW
 coClfwb0+FNqxwzCLL8BDnc=
 =mzUF
 -----END PGP SIGNATURE-----
 
 --nextPart3281185.PgQE45o7aZ--

From: Thomas Quinot <thomas@FreeBSD.ORG>
To: Aline de Freitas <aline@riseup.net>
Cc: bug-followup@freebsd.org
Subject: Re: kern/115614: [ata] Burning CD's as a ordinary user with
	atapicam is broken
Date: Fri, 22 Feb 2008 11:55:04 +0100

 * Aline de Freitas, 2008-02-19 :
 
 >  I have the same issue as in the kern/115614. The only difference is that I'=
 >  m=20
 >  using a blank CD-R as media (I didn't test it with DVD media).
 >  
 >  The point is, I'm able to burn cd's through the atapicam device only as roo=
 >  t.=20
 >  The issue happens when I try to burn it as a normal user.=20
 
 This is a bit peculiar, ATAPI/CAM does not pay any attention at all to
 user identity.
   
 >  cdrecord: Operation not permitted. WARNING: Cannot do mlockall(2).
 >  cdrecord: WARNING: This causes a high risk for buffer underruns.
 >  cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler
 >  cdrecord: Permission denied. WARNING: Cannot set priority using setpriority=
 >  ().
 >  cdrecord: WARNING: This causes a high risk for buffer underruns.
 
 This could cause issues if the system is loaded, but this is unrelated
 to ATAPI/CAM.
 
 >  Track 01: Total bytes read/written: 713625600/713625600 (348450 sectors).
 >  cdrecord: Input/output error. close track/session: scsi sendcmd: retryable=
 >  =20
 >  error
 >  CDB:  5B 00 02 00 00 00 00 00 00 00
 >  status: 0x2 (CHECK CONDITION)
 >  Sense Bytes: 70 00 05 00 00 00 00 0E 00 00 00 00 72 03 00 00 00 00 00 00 00=
 >   00=20
 >  00 00 00 00 00 00 00 00 00 00
 >  Sense Key: 0x5 Illegal Request, Segment 0
 >  Sense Code: 0x72 Qual 0x03 (session fixation error - incomplete track in=20
 >  session) Fru 0x0
 >  Sense flags: Blk 0 (not valid)
 >  cmd finished after 1.372s timeout 480s
 >  cmd finished after 1.372s timeout 480s
 >  cdrecord: Cannot fixate disk.
 
 Do you see such messages when running as root?
 
 What are the permissions of your CAM device nodes (/dev/cd*,
 /dev/pass*)?
 
 Thomas.
 

From: Yuri <yuri@rawbw.com>
To: bug-followup@FreeBSD.org, claus@endresconsulting.com
Cc:  
Subject: Re: kern/115614: [ata] Recent ATA driver changes have broken cdrecord
 [regression]
Date: Sun, 02 Nov 2008 01:47:26 -0700

 I have a very similar problem burning audio cd with cdrecord on 
 71-PRERELEASE on Pioneer dvdburner.
 
 cdrecord -v -dao -force dev=1,0,0 speed=4 driveropts=burnfree *
 
 Just in case permissions are:
 crw-r-----  1 root  operator    0, 107 Nov  1 23:00 /dev/cd0
 crw-------  1 root  operator    0,  99 Nov  1 23:00 /dev/pass0
 
 
 I get messages like this:
 acd0: FAILURE - READ_BUFFER ILLEGAL REQUEST asc=0x24 ascq=0x00
 acd0: FAILURE - MODE_SENSE_BIG ILLEGAL REQUEST asc=0x24 ascq=0x00 
 sks=0x4d 0x00 0x02
 acd0: FAILURE - MODE_SENSE_BIG ILLEGAL REQUEST asc=0x24 ascq=0x00 
 sks=0x4d 0x00 0x02
 acd0: FAILURE - READ_TOC ILLEGAL REQUEST asc=0x24 ascq=0x00
 acd0: FAILURE - WRITE_BIG ILLEGAL REQUEST asc=0x30 ascq=0x05
 acd0: FAILURE - WRITE_BIG ILLEGAL REQUEST asc=0x30 ascq=0x05
 GEOM_LABEL: Label iso9660/VIDEOCD removed.
 acd0: FAILURE - READ_TRACK_INFO ILLEGAL REQUEST asc=0x24 ascq=0x00
 acd0: FAILURE - MODE_SENSE_BIG ILLEGAL REQUEST asc=0x24 ascq=0x00 
 sks=0x4d 0x00 0x02
 acd0: FAILURE - MODE_SENSE_BIG ILLEGAL REQUEST asc=0x24 ascq=0x00 
 sks=0x4d 0x00 0x02
 acd0: FAILURE - READ_BUFFER ILLEGAL REQUEST asc=0x24 ascq=0x00
 acd0: FAILURE - MODE_SENSE_BIG ILLEGAL REQUEST asc=0x24 ascq=0x00 
 sks=0x4d 0x00 0x02
 acd0: FAILURE - MODE_SENSE_BIG ILLEGAL REQUEST asc=0x24 ascq=0x00 
 sks=0x4d 0x00 0x02
 acd0: FAILURE - READ_TOC ILLEGAL REQUEST asc=0x24 ascq=0x00
 acd0: FAILURE - WRITE_BIG ILLEGAL REQUEST asc=0x30 ascq=0x05
 acd0: FAILURE - WRITE_BIG ILLEGAL REQUEST asc=0x30 ascq=0x05
 ata0: FAILURE - non aligned DMA transfer attempted
 acd0: setting up DMA failed
 

From: Vladimir Grebenschikov <vova@fbsd.ru>
To: bug-followup@FreeBSD.org, claus@endresconsulting.com
Cc:  
Subject: Re: kern/115614: [ata] Recent ATA driver changes have broken
	cdrecord [regression]
Date: Wed, 17 Dec 2008 02:42:39 +0300

 Similar problem on recent 8-CURRENT:
 
 Trying to burn DVD with growisofs (via atapicam):
 
 
 # growisofs -Z /dev/cd0 -speed=1 -JR cd1
 Executing 'mkisofs -JR 1 cd1 | builtin_dd of=/dev/pass0 obs=32k seek=0'
   0.22% done, estimate finish Wed Dec 17 02:35:43 2008
   0.45% done, estimate finish Wed Dec 17 02:35:43 2008
   0.67% done, estimate finish Wed Dec 17 02:35:43 2008
 /dev/pass0: "Current Write Speed" is 4.1x1352KBps.
 :-( unable to WRITE@LBA=220h: Input/output error
 :-( write failed: Input/output error
 /dev/pass0: flushing cache
 :-( unable to FLUSH CACHE: Input/output error
 :-[ SYNCHRONOUS FLUSH CACHE failed with SK=3h/WRITE ERROR]: Input/output
 error
 #
 
 # dmesg
 ...
 cd0 at ata0 bus 0 target 0 lun 0
 cd0: <HL-DT-ST DVDRAM GSA-4083N 1.08> Removable CD-ROM SCSI-0 device 
 cd0: 33.000MB/s transfers
 cd0: cd present [1 x 2048 byte records]
 acd0: FAILURE - READ_TOC ILLEGAL REQUEST asc=0x24 ascq=0x00 sks=0x40
 0x00 0x06
 acd0: FAILURE - READ_TOC ILLEGAL REQUEST asc=0x24 ascq=0x00 sks=0x40
 0x00 0x06
 acd0: FAILURE - READ_TOC ILLEGAL REQUEST asc=0x24 ascq=0x00 sks=0x40
 0x00 0x06
 acd0: FAILURE - READ_TOC ILLEGAL REQUEST asc=0x24 ascq=0x00 sks=0x40
 0x00 0x06
 acd0: FAILURE - READ_TOC ILLEGAL REQUEST asc=0x24 ascq=0x00 sks=0x40
 0x00 0x06
 acd0: FAILURE - READ_TOC ILLEGAL REQUEST asc=0x24 ascq=0x00 sks=0x40
 0x00 0x06
 acd0: FAILURE - WRITE_BIG timed out
 #
 
 
 -- 
 Vladimir B. Grebenschikov
 vova@fbsd.ru
Responsible-Changed-From-To: thomas->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue Feb 23 15:02:47 UTC 2010 
Responsible-Changed-Why:  
thomas' commit bit has been taken for safeskeeping per his request. 

To submitter: does this problem still occur? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=115614 
State-Changed-From-To: feedback->closed 
State-Changed-By: remko 
State-Changed-When: Wed Jul 14 12:50:36 UTC 2010 
State-Changed-Why:  
Feedback timeout 

http://www.freebsd.org/cgi/query-pr.cgi?pr=115614 
>Unformatted:
