Bug 2769 - kernel BUG during read access on cdrom device
Summary: kernel BUG during read access on cdrom device
Status: CLOSED PATCH_ALREADY_AVAILABLE
Alias: None
Product: IO/Storage
Classification: Unclassified
Component: IDE (show other bugs)
Hardware: i386 Linux
: P2 normal
Assignee: fs_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-25 12:58 UTC by Edouard RONDEPIERRE
Modified: 2007-01-21 07:09 UTC (History)
1 user (show)

See Also:
Kernel Version: 2.6.6
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

Description Edouard RONDEPIERRE 2004-05-25 12:58:01 UTC
Distribution: debian unstable 2.6.6-1-686
Hardware Environment:

edouard@doudlaptop:~$ lspci -vvv
0000:00:00.0 Host bridge: VIA Technologies, Inc. VT8601 [Apollo ProMedia] (rev 05)
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort+ >SERR- <PERR+
        Latency: 0
        Region 0: Memory at f8000000 (32-bit, prefetchable)
        Capabilities: <available only to root>
 
0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT8601 [Apollo ProMedia AGP]
(prog-if 00 [Normal decode])
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort+ >SERR- <PERR+
        Latency: 0
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        I/O behind bridge: 0000f000-00000fff
        Memory behind bridge: f4100000-f57fffff
        Prefetchable memory behind bridge: fff00000-000fffff
        BridgeCtl: Parity- SERR- NoISA+ VGA+ MAbort- >Reset- FastB2B-
 
0000:00:07.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South]
(rev 22)
        Subsystem: VIA Technologies, Inc. VT82C686/A PCI to ISA Bridge
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping+ SERR- FastB2B-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort+ >SERR- <PERR-
        Latency: 0
 
0000:00:07.1 IDE interface: VIA Technologies, Inc.
VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 10) (prog-if 8a
[Master SecP PriP])
        Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 64
        Region 4: I/O ports at 1460 [size=16]
        Capabilities: <available only to root>
 
0000:00:07.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (rev 10) (prog-if 00 [UHCI])
        Subsystem: VIA Technologies, Inc. (Wrong ID) USB Controller
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 64, Cache Line Size: 0x08 (32 bytes)
        Interrupt: pin D routed to IRQ 11
        Region 4: I/O ports at 1440 [size=32]
        Capabilities: <available only to root>
 
0000:00:07.4 Bridge: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev 30)
        Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Capabilities: <available only to root>
 
0000:00:07.5 Multimedia audio controller: VIA Technologies, Inc. VT82C686 AC97
Audio Controller (rev 20)
        Subsystem: Compaq Computer Corporation Soundmax integrated digital audio
        Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Interrupt: pin C routed to IRQ 9
        Region 0: I/O ports at 1000
        Region 1: I/O ports at 1474 [size=4]
        Region 2: I/O ports at 1470 [size=4]
        Capabilities: <available only to root>
 
0000:00:09.0 Ethernet controller: Intel Corp. 82557/8/9 [Ethernet Pro 100] (rev 09)
        Subsystem: Intel Corp. EtherExpress PRO/100 P Mobile Combo Adapter
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 66 (2000ns min, 14000ns max), Cache Line Size: 0x08 (32 bytes)
        Interrupt: pin A routed to IRQ 11
        Region 0: Memory at f4020000 (32-bit, non-prefetchable)
        Region 1: I/O ports at 1400 [size=64]
        Region 2: Memory at f4000000 (32-bit, non-prefetchable) [size=128K]
        Capabilities: <available only to root>
 
0000:00:09.1 Serial controller: Lucent Microelectronics LT WinModem (prog-if 00
[8250])
        Subsystem: Intel Corp.: Unknown device 2201
        Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Interrupt: pin A routed to IRQ 11
        Region 0: I/O ports at 1478
        Region 1: Memory at f4021000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: <available only to root>
 
0000:00:0a.0 CardBus bridge: Texas Instruments PCI1410 PC card Cardbus
Controller (rev 01)
        Subsystem: Compaq Computer Corporation: Unknown device b103
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 168, Cache Line Size: 0x08 (32 bytes)
        Interrupt: pin A routed to IRQ 11
        Region 0: Memory at 10000000 (32-bit, non-prefetchable)
        Bus: primary=00, secondary=02, subordinate=05, sec-latency=176
        Memory window 0: 10400000-107ff000 (prefetchable)
        Memory window 1: 10800000-10bff000
        I/O window 0: 00004000-000040ff
        I/O window 1: 00004400-000044ff
        BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset+ 16bInt+ PostWrite+
        16-bit legacy interface ports at 0001
 
0000:01:00.0 VGA compatible controller: Trident Microsystems CyberBlade i1 (rev
6a) (prog-if 00 [VGA])
        Subsystem: Compaq Computer Corporation CyberBlade i1 AGP
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B+
        Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 64
        Interrupt: pin A routed to IRQ 9
        Region 0: Memory at f5000000 (32-bit, non-prefetchable)
        Region 1: Memory at f4100000 (32-bit, non-prefetchable) [size=128K]
        Region 2: Memory at f4800000 (32-bit, non-prefetchable) [size=8M]
        Capabilities: <available only to root>
 

Software Environment:
edouard@doudlaptop:~$ lsmod
Module                  Size  Used by
nls_cp437               5696  2
vfat                   14656  1
fat                    46624  1 vfat
irtty_sir               9184  2
sir_dev                19180  1 irtty_sir
irda                  197472  2 irtty_sir,sir_dev
binfmt_misc            10408  1
ipv6                  254624  10
af_packet              22376  2
e100                   32384  0
snd_via82xx            26464  3
snd_pcm_oss            54436  0
snd_mixer_oss          20096  2 snd_pcm_oss
snd_pcm                98148  3 snd_via82xx,snd_pcm_oss
snd_timer              25380  1 snd_pcm
snd_ac97_codec         65188  1 snd_via82xx
snd_page_alloc         11460  2 snd_via82xx,snd_pcm
gameport                4704  1 snd_via82xx
snd_mpu401_uart         7968  1 snd_via82xx
snd_rawmidi            24704  1 snd_mpu401_uart
snd_seq_device          8200  1 snd_rawmidi
snd                    54692  12
snd_via82xx,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_ac97_codec,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore              10336  2 snd
uhci_hcd               31632  0
usbcore               108060  3 uhci_hcd
parport_pc             35008  0
parport                41832  1 parport_pc
pci_hotplug            36400  0
via_agp                 7552  1
agpgart                34152  1 via_agp
tsdev                   7328  0
dm_mod                 45376  0
joydev                  9888  0
capability              4100  0
commoncap               7200  1 capability
evdev                   9536  0
psmouse                20424  0
via686a                20008  0
i2c_sensor              2880  1 via686a
i2c_dev                10336  0
i2c_core               23556  3 via686a,i2c_sensor,i2c_dev
mousedev               10068  1
ide_cd                 43268  0
cdrom                  40384  1 ide_cd
eepro100               30700  0
mii                     5120  2 e100,eepro100
ext3                  126184  1
jbd                    62008  1 ext3
mbcache                 9348  1 ext3
ide_disk               19872  4
ide_generic             1408  0
via82cxxx              14524  1
ide_core              149696  4 ide_cd,ide_disk,ide_generic,via82cxxx
unix                   28560  500
font                    8320  0
cfbcopyarea             3840  0
cfbimgblt               3040  0


Problem Description:
The occure with a bad is9660 CDROM. log in the /var/log/messages below...

May 24 23:36:04 doudlaptop kernel: hdc: irq timeout: status=0xd0 { Busy }
May 24 23:36:04 doudlaptop kernel: hdc: irq timeout: error=0xd0LastFailedSense 0x0d
May 24 23:36:04 doudlaptop kernel: hdc: DMA disabled
May 24 23:36:34 doudlaptop kernel: hdc: ATAPI reset timed-out, status=0xd0
May 24 23:37:09 doudlaptop kernel: ide1: reset timed-out, status=0xd0
May 24 23:37:09 doudlaptop kernel: hdc: status timeout: status=0xd0 { Busy }
May 24 23:37:09 doudlaptop kernel: hdc: status timeout:
error=0xd0LastFailedSense 0x0d
May 24 23:37:39 doudlaptop kernel: hdc: ATAPI reset timed-out, status=0xd0
May 24 23:38:09 doudlaptop kernel: ide1: reset timed-out, status=0xd0
May 24 23:38:48 doudlaptop kernel: ------------[ cut here ]------------
May 24 23:38:48 doudlaptop kernel: kernel BUG at fs/buffer.c:1216!
May 24 23:38:48 doudlaptop kernel: invalid operand: 0000 [#1]
May 24 23:38:48 doudlaptop kernel: PREEMPT
May 24 23:38:48 doudlaptop kernel: CPU:    0
May 24 23:38:48 doudlaptop kernel: EIP:    0060:[__getblk_slow+127/288]    Not
tainted
May 24 23:38:48 doudlaptop kernel: EFLAGS: 00210286   (2.6.6-1-686)
May 24 23:38:48 doudlaptop kernel: EIP is at __getblk_slow+0x7f/0x120
May 24 23:38:48 doudlaptop kernel: eax: fffffe00   ebx: 00008000   ecx: 0000ca00
  edx: 0000ca00
May 24 23:38:48 doudlaptop kernel: esi: 00000000   edi: 00008000   ebp: 00000000
  esp: c1cb9db8
May 24 23:38:48 doudlaptop kernel: ds: 007b   es: 007b   ss: 0068
May 24 23:38:48 doudlaptop kernel: Process mount (pid: 4226, threadinfo=c1cb8000
task=c233abb0)
May 24 23:38:48 doudlaptop kernel: Stack: c77df860 00008000 00000000 00000000
00000000 00008000 00000000 00000000
May 24 23:38:48 doudlaptop kernel:        c77df860 c01556f3 c77df860 00008000
00000000 00000000 00000010 00008000
May 24 23:38:48 doudlaptop kernel:        c33e3338 00000000 c0155787 c77df860
00008000 00000000 00000000 c828be5b
May 24 23:38:48 doudlaptop kernel: Call Trace:
May 24 23:38:48 doudlaptop kernel:  [__getblk+99/112] __getblk+0x63/0x70
May 24 23:38:48 doudlaptop kernel:  [__bread+39/80] __bread+0x27/0x50
May 24 23:38:48 doudlaptop kernel:  [__crc_unload_nls+1007397/1895929]
isofs_fill_super+0x15b/0x710 [isofs]
May 24 23:38:48 doudlaptop kernel:  [sb_set_blocksize+37/96]
sb_set_blocksize+0x25/0x60
May 24 23:38:48 doudlaptop kernel:  [get_sb_bdev+297/352] get_sb_bdev+0x129/0x160
May 24 23:38:48 doudlaptop kernel:  [__crc_unload_nls+1012090/1895929]
isofs_get_sb+0x30/0x40 [isofs]
May 24 23:38:48 doudlaptop kernel:  [__crc_unload_nls+1007050/1895929]
isofs_fill_super+0x0/0x710 [isofs]
May 24 23:38:48 doudlaptop kernel:  [do_kern_mount+160/336] do_kern_mount+0xa0/0x150
May 24 23:38:48 doudlaptop kernel:  [do_add_mount+106/368] do_add_mount+0x6a/0x170
May 24 23:38:48 doudlaptop kernel:  [do_mount+366/448] do_mount+0x16e/0x1c0
May 24 23:38:48 doudlaptop kernel:  [copy_mount_options+99/192]
copy_mount_options+0x63/0xc0
May 24 23:38:48 doudlaptop kernel:  [sys_mount+191/320] sys_mount+0xbf/0x140
May 24 23:38:48 doudlaptop kernel:  [syscall_call+7/11] syscall_call+0x7/0xb
May 24 23:38:48 doudlaptop kernel:
May 24 23:38:48 doudlaptop kernel: Code: 0f 0b c0 04 22 bf 28 c0 b9 ff ff ff ff
8d 74 26 00 41 89 f0
May 24 23:39:17 doudlaptop shutdown[4229]: shutting down for system reboot
Ma

Steps to reproduce:

just mount the CDROM (/dev/hdc        /cdrom          iso9660 ro,user,noauto   
      0       0
) and read the CD
Comment 1 Andrew Morton 2004-05-25 13:29:33 UTC
This should be fixed in 2.6.7-rc1.  Please test that and
update this bug report, thanks.
Comment 2 Paul Johnson 2004-11-09 21:02:26 UTC
Distro: Fedora Core 3, kernel-2.6.9
I believe I have this same bug, or one almost exactly like it.  Linux can't
read/mount good cdroms. I posted an error to the Fedora Core 3 bugzilla and
asked in the fedora-test list. Alan Cox suggested I post the error in this
bugzilla. Then I came here and ran a query and I found this report, which has
many of the same elements as mine.

My problem is described here:

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=137831

The short and sweet is that CDs fail to mount and the message (over and over
again) is:

kernel: hdc: irq timeout: status=0xd0 { Busy }
kernel: hdc: irq timeout: error=0xd0LastFailedSense 0x0d
kernel: hdc: DMA disabled
kernel: hdc: ATAPI reset complete

cdroms will not mount at all. If I  use the kernel option hdc=ide-scsi option,
they will mount, but the message log has a deprecation warning in it and I'm
advised to use ide-cd instead.  But that doesn't work.

The device is an NEC-CD/DVD+RW device. IT is a USB hotswappable device in a Dell
Inspiron 8600 laptop. It works great in MSWindows, so I'm pretty sure the drive
itself is not broken. Perhaps it is not compliant with some ATAPI standard. What
to do?
Comment 3 Adrian Bunk 2007-01-21 07:09:36 UTC
According to the infomation in the linked RedHat bug, this issue is already
fixed in recent kernels.

Note You need to log in before you can comment on or make changes to this bug.