From owner-freebsd-scsi@FreeBSD.ORG Mon Sep 3 12:47:13 2012 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 483191065778; Mon, 3 Sep 2012 12:47:13 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirj.bris.ac.uk (dirj.bris.ac.uk [137.222.10.78]) by mx1.freebsd.org (Postfix) with ESMTP id 0363A8FC16; Mon, 3 Sep 2012 12:47:12 +0000 (UTC) Received: from ncsc.bris.ac.uk ([137.222.10.41]) by dirj.bris.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1T8W1C-0001sD-96; Mon, 03 Sep 2012 13:44:42 +0100 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncsc.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1T8W1B-0001eC-Mu; Mon, 03 Sep 2012 13:44:41 +0100 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5) with ESMTP id q83Cif2P073866; Mon, 3 Sep 2012 13:44:41 +0100 (BST) (envelope-from mexas@mech-cluster241.men.bris.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5/Submit) id q83CifEt073865; Mon, 3 Sep 2012 13:44:41 +0100 (BST) (envelope-from mexas) Date: Mon, 3 Sep 2012 13:44:41 +0100 (BST) From: Anton Shterenlikht Message-Id: <201209031244.q83CifEt073865@mech-cluster241.men.bris.ac.uk> To: marius@alchemy.franken.de, mav@freebsd.org In-Reply-To: <20120821103332.GA89798@alchemy.franken.de> Cc: freebsd-scsi@freebsd.org Subject: Re: can't use cdrecord on -current - lots of warnigs, possible ATA_CAM issue? X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mexas@bristol.ac.uk List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Sep 2012 12:47:13 -0000 From marius@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 ----- > > > > > ># 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@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: 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