Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99288 - CD-ROM Interrupt Problems with 2.6.12-gentoo-r4 kernel
Summary: CD-ROM Interrupt Problems with 2.6.12-gentoo-r4 kernel
Status: VERIFIED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: http://bugzilla.kernel.org/show_bug.c...
Whiteboard:
Keywords:
: 100764 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-07-16 21:33 UTC by David Lloyd
Modified: 2008-12-05 15:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
This evil patch fixes my CD-ROM woes, for better or worse. (fix-the-cdrom.patch,884 bytes, patch)
2005-07-16 21:34 UTC, David Lloyd
Details | Diff
The fateful dmesg output (dmesg.txt,14.72 KB, text/plain)
2005-07-16 21:37 UTC, David Lloyd
Details
dmesg output from 2.6.13-rc3 (dmsg.log,13.78 KB, text/plain)
2005-07-19 07:45 UTC, David Lloyd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Lloyd 2005-07-16 21:33:16 UTC
I noticed during a Pink Floyd-related emergency that my CD-ROM drive was no longer recognized by my kernel (linux-2.6.12-gentoo-r4).  After ruling out cables, and the drive itself, I was left with two possibilities: the IDE controller on the motherboard, and Linux itself.

Basically the problem is this.  Whenever I attempt to read an audio CD with linux-2.6.12-gentoo-r4, I get the following in dmesg:

hdc: cdrom_pc_intr: The drive appears confused (ireason = 0x01)
hdc: cdrom_pc_intr: The drive appears confused (ireason = 0x01)
...repeat a zillion times...

I had upgraded kernels several times since last time I'd tried to read an audio CD, and was not prepared to do massive downgrading, so in a I-don't-think-this-will-work-but-what-the-heck move, I added a patch to the kernel (which I will attach to this report) that is almost certainly not the right thing to do, but it seems to have corrected the problem for me.

So, if this is indeed a kernel bug of some sort, as I suspect it is, please don't even try to use this patch.
Comment 1 David Lloyd 2005-07-16 21:34:43 UTC
Created attachment 63583 [details, diff]
This evil patch fixes my CD-ROM woes, for better or worse.

For the love of all things good, don't submit this to linus.
Comment 2 David Lloyd 2005-07-16 21:37:40 UTC
Created attachment 63584 [details]
The fateful dmesg output

Note the point where I removed the CD module, edited, and reloaded it.
Comment 3 David Lloyd 2005-07-16 21:39:11 UTC
(In reply to comment #0)
> I noticed during a Pink Floyd-related emergency that my CD-ROM drive was no
longer recognized by my kernel (linux-2.6.12-gentoo-r4).

This is a misstatement... I should have said, "my CD-ROM drive was no longer
able to read audio CDs".  Don't know what I was thinking, duh.
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2005-07-18 12:30:58 UTC
Is this reproducable in vanilla-sources-2.6.13_rc3?
Comment 5 David Lloyd 2005-07-18 12:32:37 UTC
I'll check it out tonight.
Comment 6 David Lloyd 2005-07-19 07:42:35 UTC
hdc: cdrom_pc_intr: The drive appears confused (ireason = 0x01)
hdc: cdrom_pc_intr: The drive appears confused (ireason = 0x01)
hdc: cdrom_pc_intr: The drive appears confused (ireason = 0x01)
hdc: cdrom_pc_intr: The drive appears confused (ireason = 0x01)
etc.

It's back!! will attach dmesg.
Comment 7 David Lloyd 2005-07-19 07:45:13 UTC
Created attachment 63782 [details]
dmesg output from 2.6.13-rc3
Comment 8 Daniel Drake (RETIRED) gentoo-dev 2005-07-20 16:56:09 UTC
Ok, looks like an upstream bug. Please file this at http://bugzilla.kernel.org
and post the new bug URL here.
Comment 9 David Lloyd 2005-07-21 07:54:04 UTC
Ok, well for future reference I guess I will go stright to the main kernel bug
list... and since Gentoo aren't following the standard model of supporting their
own gentoo-sources kernels, I might as well simply stop using them since it's
nothing but a bother for an end-user to have to switch to mainline every time a
bug crops up.

Also, I see no point in me as an end-user following up on this any further.  You
can close this bug if you like, or continue tracking it on your own.
Comment 10 John Mylchreest (RETIRED) gentoo-dev 2005-07-21 08:05:18 UTC
Just to reply to the previous comment, I feel somewhere you have misunderstood
our stance.

We strong support our kernels, and any bug which we find, we work on to resolve
and submit the fix upstream. When the bug itself relies in the main kernel tree
the bug being on gentoo.org is problematic since the awareness upstream has not
been raised.

If we are able, we will of course fix this locally, note on the upstream bug and
contribute as per normal.

If you feel this is the incorrect way to approach this then please let me know,
either via the bug report or privately via email and I will try and address the
issues you bring up.
Comment 11 Daniel Drake (RETIRED) gentoo-dev 2005-07-21 08:24:22 UTC
Fair comment, but we do try to support gentoo-sources as best we can.

In this case, I tried to reproduce the bug, on my out-of-action laptop, and on
my server PC which has a CDROM which hasn't been used for a long time.

I searched around looking for people with the same problem as you. I looked at
the source code incase anything obvious stands out.

If you'd have said 2.6.13-rc3 solved the problem, I'd have spent time reviewing
the changes, in search for the solution. When I'd found it, I'd queue it for
inclusion in gentoo-sources. Others facing the same problem would then benefit too.

If the problem still existed in 2.6.13-rc3 (which it does) then we are at least
in a position to report it upstream. If you'll post the bug URL here, I'll tag
this bug and monitor it like I do to about 15 other upstream problems that
Gentoo have reported. I'll contribute to the upstream bugs if I can. I'll
backport any patches that are written there to gentoo-sources.

You're correct in saying that reporting a bug to us will usually involve
switching over to a clean mainline kernel, and that in most cases, we don't
actually fix the problem ourselves - rather, we inform upstream, backport
patches, figure out what change caused the problem, etc. 

However, if the reporter cooperates, we'll almost always get a problem fixed
within a decent timeframe.

Plus, I think you'll find that you'll have a similar experience on the kernel
bugzilla. If someone has a patch, they'll want you to test it, which may well
involve changing kernel.

Hope that clarifies our stance a little.
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2005-07-29 16:33:51 UTC
*** Bug 100764 has been marked as a duplicate of this bug. ***
Comment 13 Daniel Drake (RETIRED) gentoo-dev 2008-12-05 15:44:46 UTC
upstream bug closed due to inactivity