From nobody@FreeBSD.org  Mon Oct 15 17:43:22 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 D1BB616A421
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 15 Oct 2007 17:43:22 +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 BE93413C4A7
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 15 Oct 2007 17:43:22 +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 l9FHhEx6004481
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 15 Oct 2007 17:43:14 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l9FHhEmb004480;
	Mon, 15 Oct 2007 17:43:14 GMT
	(envelope-from nobody)
Message-Id: <200710151743.l9FHhEmb004480@www.freebsd.org>
Date: Mon, 15 Oct 2007 17:43:14 GMT
From: "Scott I. Remick" <scott@sremick.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Kernel errors accessing audio CDs w/ Samsung SATA CDRW/DVD drive
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         117215
>Category:       kern
>Synopsis:       [ata] Kernel errors accessing audio CDs w/ Samsung SATA CDRW/DVD drive
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 15 17:50:01 UTC 2007
>Closed-Date:    Wed Dec 09 17:39:34 UTC 2009
>Last-Modified:  Wed Dec 09 17:39:34 UTC 2009
>Originator:     Scott I. Remick
>Release:        6-STABLE from 10/10/2007
>Organization:
>Environment:
FreeBSD desktop.sremick.net 6.2-STABLE FreeBSD 6.2-STABLE #5: Wed Oct 10 02:24:52 EDT 2007     scott@desktop.sremick.net:/usr/obj/usr/src/sys/SCOTT  i386

Gnome 2.18.3

Asus P5B Deluxe motherboard

Samsung SH-S183L DVD+RW SATA drive:
acd0: DVDR <TSSTcorpCD/DVDW SH-S183L/SB02> at ata3-master SATA150

CD drive is connected to one of the Intel ICH8R SATA ports on the motherboard
>Description:
Data CDs (pressed and CD-Rs) work fine, but on this system I've had
consistent troubles with audio CDs. Any task such as playing or ripping
cause hangs that range from a few moments to several minutes. Usually
even if the system returns to responsiveness, the application will not
think there's a disc in the drive. From time to time it will recognize
a disc (such as a CD player momentarily showing the CD and track info),
but it will be brief and soon revert back to thinking the drive is empty.
I have tried several audio CDs so it's not a problem with just one. Discs
are free of scratches and other markings, and pre-date audio CD DRM that
could be causing issues (purchased in the early 90s).

/var/log/messages seems to hold the biggest clue. Immediately upon
inserting an audio CD, the following errors start to be logged:

Oct 14 21:32:27 desktop kernel: acd0: FAILURE - READ_BIG timed out
Oct 14 21:33:03 desktop kernel: acd0: FAILURE - READ_BIG timed out
Oct 14 21:33:39 desktop kernel: acd0: FAILURE - READ_BIG timed out
Oct 14 21:34:52 desktop last message repeated 2 times
Oct 14 21:34:52 desktop kernel: (cd0:ata3:0:0:0): cddone: got error 0x5 back

These will repeat over and over, without launching any CD player/ripper
(although I imagine Gnome might be trying to do something automatically
on its own when an audio CD is inserted so that could be initiating it).

Example user apps tried include Gnome CD Player, Sound Juicer, and Grip,
although launching one of these isn't necessary to cause the errors shown
in /var/log/messages. However, it is the attempted use of apps like these
that trigger the unresponsive hangups.

Full-permissions are being granted to cd0 and acd0:

crw-rw-rw-  1 root  operator    0, 130 Oct 13 17:29 /dev/cd0
crw-rw-rw-  1 root  operator    0, 103 Oct 13 17:29 /dev/acd0

I tried upgrading the firmware on the Samsung drive from SB01 -> SB02
(latest) but that didn't improve things any.

This sounds similar to kern/103602 but that one was supposedly fixed and MFCed.
>How-To-Repeat:
Build a system using a P5B Deluxe motherboard (others?) and hook up a
Samsung SH-S183L DVD+RW SATA drive to one of the Intel ICH8R SATA ports.
Install FreeBSD 6-STABLE with Gnome 2.18.3. Insert an audio CD and watch
/var/log/messages
>Fix:
Unknown

>Release-Note:
>Audit-Trail:

From: "Scott I. Remick" <scott@sremick.net>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/117215: [sata] Kernel errors accessing audio CDs w/ Samsung
 SATA CDRW/DVD drive
Date: Thu, 01 Nov 2007 23:03:59 -0400

 Replaced drive with a PATA one, and on this motherboard the PATA 
 controller is JMicron and not Intel ICH8R. The exact same symptoms 
 persist. So it's not related to the Intel controller or SATA, but 
 something else. The PATA drive is also Samsung... is there an issue with 
 Samsung drives?

From: Alexander Best <alexbestms@math.uni-muenster.de>
To: <bug-followup@FreeBSD.org>,
 <scott@sremick.net>
Cc:  
Subject: Re: kern/117215: [ata] Kernel errors accessing audio CDs w/ Samsung
 SATA CDRW/DVD drive
Date: Sat, 07 Nov 2009 03:48:07 +0100 (CET)

 unfortunately the jmicron controller driver is also suffering from similar
 issues. see kern/133122 for more details. the problems were observed with a
 dvd-drive manufactured by LG. so the problems aren't specific to any dvd-drive
 vendor it appears.
 
 it might be possible that both the ich8r and jmicron drivers are broken and
 this a problem with the ich8r driver after all.
 
 alex
State-Changed-From-To: open->closed 
State-Changed-By: mav 
State-Changed-When: Wed Dec 9 17:39:16 UTC 2009 
State-Changed-Why:  
Should be fixed by r200121, merged to 7/8-STABLE. 

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