kern/117215: Kernel errors accessing audio CDs w/ Samsung SATA
Scott I. Remick
scott at sremick.net
Mon Oct 15 10:50:07 PDT 2007
>Synopsis: Kernel errors accessing audio CDs w/ Samsung SATA CDRW/DVD drive
>Arrival-Date: Mon Oct 15 17:50:01 UTC 2007
>Originator: Scott I. Remick
>Release: 6-STABLE from 10/10/2007
FreeBSD desktop.sremick.net 6.2-STABLE FreeBSD 6.2-STABLE #5: Wed Oct 10 02:24:52 EDT 2007 scott at desktop.sremick.net:/usr/obj/usr/src/sys/SCOTT i386
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
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.
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
More information about the freebsd-bugs