can't use cdrecord on -current - lots of warnigs, possible ATA_CAM issue?

Anton Shterenlikht mexas at bristol.ac.uk
Mon Sep 3 12:47:13 UTC 2012


	From marius at alchemy.franken.de Tue Aug 21 12:10:36 2012

	On Sat, Jul 21, 2012 at 07:15:00PM +0300, Alexander Motin wrote:
	> On 17.07.2012 18:13, Anton Shterenlikht wrote:
	> >I thought this was a sparc64 issue,
	> >but marius@ advised to ask for help
	> >in this list.
	> >
	> >I've rebuild sysutils/cdrecord (I also tried sysutils/cdrecord-devel)
	> >multiple times.
	> >
	> >Thanks
	> >
	> >----- Forwarded message from Anton Shterenlikht <mexas at bristol.ac.uk> -----
	> >
	> >
	> ># uname -a
	> >FreeBSD mech-anton240.men.bris.ac.uk 10.0-CURRENT FreeBSD 10.0-CURRENT #6 
	> >r235474: Tue Jul 17 13:52:07 BST 2012     
	> >root at mech-anton240.men.bris.ac.uk:/usr/obj/usr/src/sys/QOF  sparc64
	> >#
	> >
	> >After updating to ATA_CAM framework
	> >I cannot use cdrecord:
	> >
	> ># cdrecord -dev=1,0,0 -sao /home/mexas/FreeBSD-8.1-RELEASE-ia64-livefs.iso
	> >Cdrecord-ProDVD-ProBD-Clone 3.01a07 (sparc64-unknown-freebsd10.0) 
	> >Copyright (C)
	> >1995-2012 Joerg Schilling
	> >scsidev: '1,0,0'
	> >scsibus: 1 target: 0 lun: 0
	> >Using libscg version 'schily-0.9'.
	> >Device type    : Removable CD-ROM
	> >Version        : 0
	> >Response Format: 2
	> >Capabilities   :
	> >Vendor_info    : 'TSSTcorp'
	> >Identifikation : 'CDW/DVD TS-H492C'
	> >Revision       : 'SI00'
	> >Device seems to be: Generic mmc2 DVD-ROM.
	> >cdrecord: Warning: controller returns zero sized CD write parameter page.
	> >cdrecord: Warning: controller returns wrong size for CD write parameter 
	> >page.
	> >cdrecord: Warning: controller returns wrong page 0 for CD write parameter 
	> >page (
	> >5).
	> >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: Warning: Cannot read drive buffer.
	> >cdrecord: Warning: The DMA speed test has been skipped.
	> >resid: 2
	> >resid: 24
	> >DMA overrun, resid: -24
	> >resid: 30
	> >cdrecord: Warning: controller returns zero sized CD write parameter page.
	> >cdrecord: Warning: controller returns wrong size for CD write parameter 
	> >page.
	> >cdrecord: Warning: controller returns wrong page 0 for CD write parameter 
	> >page (
	> >5).
	> >cdrecord: Warning: controller returns zero sized CD write parameter page.
	> >cdrecord: Warning: controller returns wrong size for CD write parameter 
	> >page.
	> >cdrecord: Warning: controller returns wrong page 0 for CD write parameter 
	> >page (
	> >5).
	> >cdrecord: Cannot init drive.
	> >#
	> >
	> >
	> >while on the console:
	> >
	> >
	> >ata3: unknown transfer phase
	> >ata3: WARNING - MODE_SENSE_BIG read data overrun 2>0
	> >ata3: WARNING - MODE_SENSE_BIG read data overrun 2>0
	> >ata3: WARNING - MODE_SENSE_BIG read data overrun 2>0
	> >ata3: WARNING - MODE_SENSE_BIG read data overrun 2>0
	> >ata3: WARNING - MODE_SENSE_BIG read data overrun 2>0
	> >ata3: WARNING - MODE_SENSE_BIG read data overrun 2>0
	> >ata3: WARNING - MODE_SENSE_BIG read data overrun 2>0
	> >ata3: WARNING - MODE_SENSE_BIG read data overrun 2>0
	> >ata3: WARNING - TEST_UNIT_READY read data overrun 2>0
	> >ata3: WARNING - TEST_UNIT_READY read data overrun 60>0
	> >ata3: WARNING - TEST_UNIT_READY read data overrun 10>0
	> >ata3: WARNING - READ_BUFFER read data overrun 4>0
	> >ata3: WARNING - START_STOP read data overrun 18>0
	> >ata3: WARNING - TEST_UNIT_READY read data overrun 16>0
	> >ata3: WARNING - READ_CAPACITY read data overrun 8>0
	> >ata3: WARNING - READ_TOC read data overrun 4>0
	> >ata3: WARNING - READ_TOC read data overrun 2>0
	> >ata3: WARNING - READ_DISK_INFO read data overrun 4>0
	> >ata3: WARNING - READ_DISK_INFO read data overrun 4>0
	> >ata3: WARNING - READ_DISK_INFO read data overrun 4>0
	> >ata3: WARNING - READ_DISK_INFO read data overrun 4>0
	> >ata3: WARNING - READ_DISK_INFO read data overrun 4>0
	> >ata3: WARNING - READ_DISK_INFO read data overrun 4>0
	> >ata3: WARNING - TEST_UNIT_READY read data overrun 34>0
	> >ata3: WARNING - TEST_UNIT_READY read data overrun 2>0
	> >ata3: WARNING - TEST_UNIT_READY read data overrun 2>0
	> >ata3: WARNING - TEST_UNIT_READY read data overrun 10>0
	> >ata3: WARNING - TEST_UNIT_READY read data overrun 2>0
	> >ata3: WARNING - TEST_UNIT_READY read data overrun 2>0
	> >ata3: WARNING - TEST_UNIT_READY read data overrun 2>0
	> >ata3: WARNING - TEST_UNIT_READY read data overrun 10>0
	> >ata3: WARNING - SYNCHRONIZE_CACHE read data overrun 2>0
	> >
	> >
	> ># dmesg|grep cd0
	> >cd0 at ata3 bus 0 scbus1 target 0 lun 0
	> >cd0: <TSSTcorp CDW/DVD TS-H492C SI00> Removable CD-ROM SCSI-0 device
	> >cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes)
	> >cd0: Attempt to query device size failed: NOT READY, Medium not present - 
	> >tray c
	> >losed
	> >#
	> 
	> I can't reproduce your problem on my Sun Blade 100. I've fixed two other 
	> problems in ata(4) I've found in process (r238666 and r238673) and now I 
	> can successfully record CD with both cdrtools and cdrtools-devel.
	> 

	Thanks a lot! Could you please MFC these fixes to 8/9/9.1 as
	apparently r238666 affects all and r238673 at least all !x86
	architectures and not just sparc64?

	Also, could you please look into why ATA_CAM breaks ATAPI CAM/
	causes data corruption for/with certain controllers driven by
	ata(4)? At least the the ALi ATA controller in Blade 100, which
	AFAIK you own one of, is affected, but again, this problem is
	also seen with ITE ones on x86.

	Marius


I updated to r239940, and now the cdrom seems to work ok.
I can mount cds and burn with cdrtools-devel-3.01a08,1.
This is on
cpu0: Sun Microsystems UltraSparc-IIIi Processor (1503.00 MHz CPU)

Many thanks

Anton




More information about the freebsd-scsi mailing list