From larson@w6yx.stanford.edu  Sat Feb  7 18:01:24 2004
Return-Path: <larson@w6yx.stanford.edu>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id BA0E516A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  7 Feb 2004 18:01:24 -0800 (PST)
Received: from smtp2.Stanford.EDU (smtp2.Stanford.EDU [171.67.16.116])
	by mx1.FreeBSD.org (Postfix) with ESMTP id B141F43D1D
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  7 Feb 2004 18:01:24 -0800 (PST)
	(envelope-from larson@w6yx.stanford.edu)
Received: from w6yx.stanford.edu (w6yx.Stanford.EDU [171.64.23.31])
	by smtp2.Stanford.EDU (8.12.10/8.12.10) with ESMTP id i1821NJX010598
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 7 Feb 2004 18:01:23 -0800
Received: from w6yx.stanford.edu (localhost [127.0.0.1])
	by w6yx.stanford.edu (8.12.9p2/8.12.9) with ESMTP id i1821Nri016873
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 7 Feb 2004 18:01:23 -0800 (PST)
	(envelope-from larson@w6yx.stanford.edu)
Received: (from larson@localhost)
	by w6yx.stanford.edu (8.12.9p2/8.12.9/Submit) id i1821MC6016872;
	Sat, 7 Feb 2004 18:01:22 -0800 (PST)
	(envelope-from larson)
Message-Id: <200402080201.i1821MC6016872@w6yx.stanford.edu>
Date: Sat, 7 Feb 2004 18:01:22 -0800 (PST)
From: Alan Larson <larson@w6yx.stanford.edu>
Reply-To: Alan Larson <larson@w6yx.stanford.edu>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: atapicam appears to read wrong data
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         62507
>Category:       kern
>Synopsis:       atapicam appears to read wrong data
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    thomas
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 07 18:10:16 PST 2004
>Closed-Date:    Mon Aug 16 13:06:08 GMT 2004
>Last-Modified:  Mon Aug 16 13:06:08 GMT 2004
>Originator:     Alan Larson
>Release:        FreeBSD 4.8-RELEASE i386
>Organization:
none
>Environment:
System: FreeBSD pc.diadem.com 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Sat Feb  7 15:54:53 PST 2004     larson@pc.diadem.com:/usr/src/sys/compile/LOCAL  i386

>Description:

  It appears that when using atapicam, different data is returned from a given CD.
Attempting to rip a cd with cdda2wav once with /dev/acd0c and once with atapicam 1,0,0
gives different results.

  The number of tracks is correct with the /dev/acd0c, but other things are problems.
With atapicam, the the number of tracks and times is incorrect -- it is as if the
wrong block is being read as the table of contents.



pc:1# cdda2wav -D /dev/acd0c -O wav -B -d99999 -F foo
cdrom device (/dev/acd0c) is not of type generic SCSI. Setting interface to cooked_ioctl.
266240 bytes buffer memory requested, 4 buffers, 27 sectors
#Cdda2wav version 2.0_freebsd_4.8-rc_i386_i386, real time sched., soundcard, libparanoia support
EnableCdda_cooked (CDIOCSETCDDA) is not available...
AUDIOtrack pre-emphasis  copy-permitted tracktype channels
      1- 6          yes              no     audio    2
Table of Contents: total tracks:6, (total time 72:49.32)
  1.(11:28.57),  2.(18:02.20),  3.(11:57.38),  4.(10:06.15),  5.(11:29.70),
  6.( 9:42.57)

Table of Contents: starting sectors
  1.(       0),  2.(   51657),  3.(  132827),  4.(  186640),  5.(  232105),
  6.(  283850), lead-out(  327557)
CDINDEX discid: PKFyXqRtPYhgFx2bY9IrjaKib4U-
CDDB discid: 0x5c110f06
CD-Text: not detected
CD-Extra: not detected
samplefile size will be 770414108 bytes.
recording 4367.4266 seconds stereo with 16 bits @ 44100.0 Hz ->'foo'...
overlap:min/max/cur, jitter, percent_done:



pc:2# cdda2wav -D 1,0,0 -O wav -B -d99999 -F foo
Type: ROM, Vendor 'CREATIVE' Model ' CD-RW RW8438E  ' Revision 'FC03' MMC+CDDA
266240 bytes buffer memory requested, 4 buffers, 27 sectors
Read TOC CD Text failed (probably not supported).
#Cdda2wav version 2.0_freebsd_4.8-rc_i386_i386, real time sched., soundcard, libparanoia support
AUDIOtrack pre-emphasis  copy-permitted tracktype channels
      1- 4           no              no     audio    2
Table of Contents: total tracks:3, (total time 8:16.58)
  1.( 3:21.51),  2.( 2:13.40),  4.( 2:39.42)

Table of Contents: starting sectors
  1.(       0),  2.(   15126),  4.(   25141), lead-out(   37108)
CDINDEX discid: j2gBZCg8SD3Gffbep2cf7vXLD.k-
CDDB discid: 0x1401ee03
CD-Text: not detected
CD-Extra: not detected
samplefile size will be 87278060 bytes.
recording 494.7733 seconds stereo with 16 bits @ 44100.0 Hz ->'foo'...
percent_done:



>How-To-Repeat:
 Use kernel with atapicam, run cdda2wav as above.

>Fix:

  Remove atapicam and ata cd drive.  Buy a real scsi card and drive.


	Alan
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->thomas 
Responsible-Changed-By: arved 
Responsible-Changed-When: Sun Apr 25 04:31:29 PDT 2004 
Responsible-Changed-Why:  
Assign to atapicam maintainer 

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

From: Thomas Quinot <thomas@cuivre.fr.eu.org>
To: freebsd-gnats-submit@FreeBSD.org, larson@w6yx.stanford.edu
Cc:  
Subject: Re: kern/62507: atapicam appears to read wrong data
Date: Mon, 26 Apr 2004 22:17:07 +0200

 Does this happen with a more recent -STABLE kernel? With a recent 
 -CURRENt kernel?
 Does this happen with all discs, or only some? Can you mount a data disc 
 using /dev/cd0c?
 
 Thomas.
 
 

From: Alan Larson <larson@w6yx.stanford.edu>
To: freebsd-gnats-submit@FreeBSD.org, larson@w6yx.stanford.edu,
	thomas@cuivre.fr.eu.org
Cc:  
Subject: Re: kern/62507: atapicam appears to read wrong data
Date: Tue, 27 Apr 2004 15:02:38 -0700 (PDT)

 > From thomas@cuivre.fr.eu.org Mon Apr 26 13:17:10 2004
 > Date: Mon, 26 Apr 2004 22:17:07 +0200
 > From: Thomas Quinot <thomas@cuivre.fr.eu.org>
 > User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5) Gecko/20031208
 > X-Accept-Language: fr-fr, en-us
 > MIME-Version: 1.0
 > To: freebsd-gnats-submit@FreeBSD.org, larson@w6yx.stanford.edu
 > Subject: Re: kern/62507: atapicam appears to read wrong data
 > Content-Type: text/plain; charset=us-ascii; format=flowed
 > Content-Transfer-Encoding: 7bit
 >
 > Does this happen with a more recent -STABLE kernel? With a recent 
 > -CURRENt kernel?
 > Does this happen with all discs, or only some? Can you mount a data disc 
 > using /dev/cd0c?
 >
 > Thomas.
 
 
   Thanks for the reply.  I appreciate it.
 
   So far, I have stayed away from CURRENT and STABLE for the reasons
 outlined in
   http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/current-stable.html
 
   If there is a more recent version of the 4.8 kernel that I could get
 the updated sources for, and build it, I would be willing to give that
 a shot.
 
   I do not recall trying a data disc using /dev/cd0c -- I can give that
 a try as soon as I have the machine put back together in a few days.
 
 
 	Alan
 

From: Thomas Quinot <thomas@FreeBSD.ORG>
To: Alan Larson <larson@w6yx.stanford.edu>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/62507: atapicam appears to read wrong data
Date: Wed, 28 Apr 2004 11:12:52 +0200

 * Alan Larson, 2004-04-28 :
 
 >    If there is a more recent version of the 4.8 kernel that I could get
 >  the updated sources for, and build it, I would be willing to give that
 >  a shot.
 
 If you would rather use only released kernels, you can try the
 4.9-RELEASE kernel, or wait for the upcoming 4.10-RELEASE.
   
 >    I do not recall trying a data disc using /dev/cd0c -- I can give that
 >  a try as soon as I have the machine put back together in a few days.
 
 Yes, this would be a useful test.
 
 Thomas.
 
 -- 
     Thomas.Quinot@Cuivre.FR.EU.ORG

From: Thomas Quinot <thomas@FreeBSD.ORG>
To: Alan Larson <larson@w6yx.stanford.edu>,
	freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: kern/62507: atapicam appears to read wrong data
Date: Wed, 23 Jun 2004 18:38:37 +0200

 --82I3+IH0IqGh5yIs
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 * Thomas Quinot, 2004-04-28 :
 
 > >    If there is a more recent version of the 4.8 kernel that I could get
 > >  the updated sources for, and build it, I would be willing to give that
 > >  a shot.
 >=20
 > If you would rather use only released kernels, you can try the
 > 4.9-RELEASE kernel, or wait for the upcoming 4.10-RELEASE.
 >  =20
 > >    I do not recall trying a data disc using /dev/cd0c -- I can give that
 > >  a try as soon as I have the machine put back together in a few days.
 >=20
 > Yes, this would be a useful test.
 
 Was there any progress on this PR? Do you still see problems with
 ATAPI/CAM? If not I'll close the PR.
 
 Thanks for your feedback,
 Thomas.
 
 --=20
     Thomas.Quinot@Cuivre.FR.EU.ORG
 
 --82I3+IH0IqGh5yIs
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.4 (FreeBSD)
 
 iD8DBQFA2bIMAE1UuDk9JGkRAoq4AKCEfAzA7KJGRKrGSFqg9nCP/rzSVwCfTdAT
 bXMTieFsiOaTaVrsAtl80QE=
 =xu3k
 -----END PGP SIGNATURE-----
 
 --82I3+IH0IqGh5yIs--
State-Changed-From-To: open->closed 
State-Changed-By: thomas 
State-Changed-When: Mon Aug 16 13:05:44 GMT 2004 
State-Changed-Why:  
No feedback from customer, issue is assumed to be OBE. 

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