Hey Kim,

As I recall, I added noapic to grub2 as a workaround.  CD drives work
now, and no strange messages from dmesg.  CD drives recognize blank CDs
properly as well as burned CDs.

It's not the correct way of handling this, but it worked for me and
Tomasz Czapiewski back in May.  (I can't remember, but I think that was
10.04 lucid)

Anyhow, I edited the /etc/default/grub file to include the parameter
"noapic" towards the end of the GRUB_CMDLINE_LINUX_DEFAULT line...  

Just like it says in the file, I ran 'update-grub' afterwards, which
actually updates the grub config.

Good luck.

Kind regards,

Iestyn

-----Original Message-----
From: Kim Tyler <544...@bugs.launchpad.net>
Reply-to: Bug 544548 <544...@bugs.launchpad.net>
To: igu...@charter.net
Subject: [Bug 544548] Re: Kernel doesn't detect media in CD/DVD drives
Date: Wed, 01 Dec 2010 06:31:48 -0000

I have the same problem, also reported previously on different kernels ,
lucid onwards.  I am now on maverick, and same problem, though not as
frequent.  I have installed backport of 2.6.37, and getting the same
problem. uname -a => Linux pio 2.6.37-020637rc2-generic #201011160905
SMP Tue Nov 16 09:08:47 UTC 2010 x86_64 GNU/Linux

It also affects USB devices, and can sometimes cause all USB devices to fail.  
I have pata_via module
I can reproduce effect by loading system, ethernet transfers, tv tuner working 
and running virtualbox.  At other times, it sometimes fails with practically no 
load on system.
/var/log/messages=>
Dec  1 14:18:49 pio kernel: [14688.080072] ata2: lost interrupt (Status 0x51)
Dec  1 14:18:49 pio kernel: [14688.080114] sr 1:0:0:0: CDB: Test Unit Ready: 00 
00 00 00 00 00
Dec  1 14:18:49 pio kernel: [14688.080187] ata2: soft resetting link
Dec  1 14:18:49 pio kernel: [14688.320319] ata2.00: configured for UDMA/33
Dec  1 14:18:49 pio kernel: [14688.360423] ata2.01: configured for UDMA/33
Dec  1 14:18:54 pio kernel: [14693.360046] ata2.00: qc timeout (cmd 0xa0)
Dec  1 14:18:54 pio kernel: [14693.360054] ata2.00: TEST_UNIT_READY failed 
(err_mask=0x5)
Dec  1 14:18:54 pio kernel: [14693.360086] ata2: soft resetting link
Dec  1 14:18:55 pio kernel: [14693.600274] ata2.00: configured for UDMA/33
Dec  1 14:18:55 pio kernel: [14693.640370] ata2.01: configured for UDMA/33
Dec  1 14:19:00 pio kernel: [14698.640084] ata2.00: qc timeout (cmd 0xa0)
Dec  1 14:19:00 pio kernel: [14698.640091] ata2.00: TEST_UNIT_READY failed 
(err_mask=0x5)
Dec  1 14:19:00 pio kernel: [14698.640097] ata2.00: limiting speed to 
UDMA/33:PIO3
Dec  1 14:19:00 pio kernel: [14698.640126] ata2: soft resetting link
Dec  1 14:19:00 pio kernel: [14698.880388] ata2.00: configured for UDMA/33
Dec  1 14:19:00 pio kernel: [14698.920563] ata2.01: configured for UDMA/33
Dec  1 14:19:05 pio kernel: [14703.920075] ata2.00: qc timeout (cmd 0xa0)
Dec  1 14:19:05 pio kernel: [14703.920081] ata2.00: TEST_UNIT_READY failed 
(err_mask=0x5)
Dec  1 14:19:05 pio kernel: [14703.920084] ata2.00: disabled
Dec  1 14:19:05 pio kernel: [14703.920098] ata2.01: TEST_UNIT_READY failed 
(err_mask=0x40)
Dec  1 14:19:05 pio kernel: [14703.920124] ata2: soft resetting link
Dec  1 14:19:05 pio kernel: [14704.140537] ata2.01: configured for UDMA/33
Dec  1 14:19:10 pio kernel: [14709.140059] ata2.01: qc timeout (cmd 0xa0)
Dec  1 14:19:10 pio kernel: [14709.140066] ata2.01: TEST_UNIT_READY failed 
(err_mask=0x5)
Dec  1 14:19:10 pio kernel: [14709.140072] ata2.01: limiting speed to 
UDMA/33:PIO3
Dec  1 14:19:10 pio kernel: [14709.140101] ata2: soft resetting link
Dec  1 14:19:10 pio kernel: [14709.360387] ata2.01: configured for UDMA/33
Dec  1 14:19:15 pio kernel: [14714.360100] ata2.01: qc timeout (cmd 0xa0)
Dec  1 14:19:15 pio kernel: [14714.360108] ata2.01: TEST_UNIT_READY failed 
(err_mask=0x5)
Dec  1 14:19:15 pio kernel: [14714.360111] ata2.01: disabled
Dec  1 14:19:15 pio kernel: [14714.360157] ata2: soft resetting link
Dec  1 14:19:16 pio kernel: [14714.520172] ata2: EH complete

hDec  1 14:18:49 pio kernel: [14688.080072] ata2: lost interrupt (Status 0x51)
Dec  1 14:18:49 pio kernel: [14688.080114] sr 1:0:0:0: CDB: Test Unit Ready: 00 
00 00 00 00 00
Dec  1 14:18:49 pio kernel: [14688.080187] ata2: soft resetting link
Dec  1 14:18:49 pio kernel: [14688.320319] ata2.00: configured for UDMA/33
Dec  1 14:18:49 pio kernel: [14688.360423] ata2.01: configured for UDMA/33
Dec  1 14:18:54 pio kernel: [14693.360046] ata2.00: qc timeout (cmd 0xa0)
Dec  1 14:18:54 pio kernel: [14693.360054] ata2.00: TEST_UNIT_READY failed 
(err_mask=0x5)
Dec  1 14:18:54 pio kernel: [14693.360086] ata2: soft resetting link
Dec  1 14:18:55 pio kernel: [14693.600274] ata2.00: configured for UDMA/33
Dec  1 14:18:55 pio kernel: [14693.640370] ata2.01: configured for UDMA/33
Dec  1 14:19:00 pio kernel: [14698.640084] ata2.00: qc timeout (cmd 0xa0)
Dec  1 14:19:00 pio kernel: [14698.640091] ata2.00: TEST_UNIT_READY failed 
(err_mask=0x5)
Dec  1 14:19:00 pio kernel: [14698.640097] ata2.00: limiting speed to 
UDMA/33:PIO3
Dec  1 14:19:00 pio kernel: [14698.640126] ata2: soft resetting link
Dec  1 14:19:00 pio kernel: [14698.880388] ata2.00: configured for UDMA/33
Dec  1 14:19:00 pio kernel: [14698.920563] ata2.01: configured for UDMA/33
Dec  1 14:19:05 pio kernel: [14703.920075] ata2.00: qc timeout (cmd 0xa0)
Dec  1 14:19:05 pio kernel: [14703.920081] ata2.00: TEST_UNIT_READY failed 
(err_mask=0x5)
Dec  1 14:19:05 pio kernel: [14703.920084] ata2.00: disabled
Dec  1 14:19:05 pio kernel: [14703.920098] ata2.01: TEST_UNIT_READY failed 
(err_mask=0x40)
Dec  1 14:19:05 pio kernel: [14703.920124] ata2: soft resetting link
Dec  1 14:19:05 pio kernel: [14704.140537] ata2.01: configured for UDMA/33
Dec  1 14:19:10 pio kernel: [14709.140059] ata2.01: qc timeout (cmd 0xa0)
Dec  1 14:19:10 pio kernel: [14709.140066] ata2.01: TEST_UNIT_READY failed 
(err_mask=0x5)
Dec  1 14:19:10 pio kernel: [14709.140072] ata2.01: limiting speed to 
UDMA/33:PIO3
Dec  1 14:19:10 pio kernel: [14709.140101] ata2: soft resetting link
Dec  1 14:19:10 pio kernel: [14709.360387] ata2.01: configured for UDMA/33
Dec  1 14:19:15 pio kernel: [14714.360100] ata2.01: qc timeout (cmd 0xa0)
Dec  1 14:19:15 pio kernel: [14714.360108] ata2.01: TEST_UNIT_READY failed 
(err_mask=0x5)
Dec  1 14:19:15 pio kernel: [14714.360111] ata2.01: disabled
Dec  1 14:19:15 pio kernel: [14714.360157] ata2: soft resetting link
Dec  1 14:19:16 pio kernel: [14714.520172] ata2: EH complete

hint from above => sudo rmmod pata_via;sudo modprobe pata_via =>
Dec  1 17:26:13 pio kernel: [25932.081674] pata_via 0000:00:0f.1: PCI INT A 
disabled
Dec  1 17:26:24 pio kernel: [25943.380635] pata_via 0000:00:0f.1: power state 
changed by ACPI to D0
Dec  1 17:26:24 pio kernel: [25943.380654] pata_via 0000:00:0f.1: power state 
changed by ACPI to D0
Dec  1 17:26:24 pio kernel: [25943.380665] pata_via 0000:00:0f.1: PCI INT A -> 
GSI 20 (level, low) -> IRQ 20
Dec  1 17:26:24 pio kernel: [25943.386966] scsi4 : pata_via
Dec  1 17:26:24 pio kernel: [25943.387189] scsi5 : pata_via
Dec  1 17:26:24 pio kernel: [25943.396452] ata5: PATA max UDMA/133 cmd 0x1f0 
ctl 0x3f6 bmdma 0x2090 irq 14
Dec  1 17:26:24 pio kernel: [25943.396457] ata6: PATA max UDMA/133 cmd 0x170 
ctl 0x376 bmdma 0x2098 irq 15
Dec  1 17:26:25 pio kernel: [25943.771209] ata6.00: ATAPI: Optiarc DVD RW 
AD-7580A, ZX09, max UDMA/33
Dec  1 17:26:25 pio kernel: [25943.771218] ata6.01: ATAPI: TSSTcorpCD/DVDW 
TS-L532U, TI04, max UDMA/33
Dec  1 17:26:25 pio kernel: [25943.810268] ata6.00: configured for UDMA/33
Dec  1 17:26:25 pio kernel: [25943.850416] ata6.01: configured for UDMA/33
Dec  1 17:26:25 pio kernel: [25943.852703] scsi 5:0:0:0: CD-ROM            
Optiarc  DVD RW AD-7580A  ZX09 PQ: 0 ANSI: 5
Dec  1 17:26:25 pio kernel: [25943.859910] sr0: scsi3-mmc drive: 24x/24x writer 
dvd-ram cd/rw xa/form2 cdda tray
Dec  1 17:26:25 pio kernel: [25943.860242] sr 5:0:0:0: Attached scsi generic 
sg0 type 5
Dec  1 17:26:25 pio kernel: [25943.867856] scsi 5:0:1:0: CD-ROM            
TSSTcorp CD/DVDW TS-L532U TI04 PQ: 0 ANSI: 5
Dec  1 17:26:25 pio kernel: [25943.877720] sr1: scsi3-mmc drive: 24x/24x writer 
cd/rw xa/form2 cdda tray
Dec  1 17:26:25 pio kernel: [25943.878032] sr 5:0:1:0: Attached scsi generic 
sg1 type 5

and now cdrom drives work.

Any suggestions?

-- 
Kernel doesn't detect media in CD/DVD drives
https://bugs.launchpad.net/bugs/544548
You received this bug notification because you are a direct subscriber
of the bug.

Status in “linux” package in Ubuntu: New

Bug description:
After upgrading from Karmic to Lucid Beta 1, my CD/DVD drive stops working (it 
doesn't detects inserted media). When I insert a CD or DVD, the light flashes 
but nothing more happens.

I have the following messages on dmesg:

...
[    0.400909] pata_via 0000:00:0f.1: version 0.3.4
[    0.401137] scsi0 : pata_via
[    0.401214] scsi1 : pata_via
[    0.402618] ata1: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xe400 irq 14
[    0.402621] ata2: PATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 0xe408 irq 15
[    0.402721]   alloc irq_desc for 21 on node -1
[    0.402723]   alloc kstat_irqs on node -1
[    0.402729] pata_acpi 0000:00:0f.0: PCI INT B -> GSI 21 (level, low) -> IRQ 
21
[    0.402762] pata_acpi 0000:00:0f.0: PCI INT B disabled
...
[    0.624914] ata1.00: ATAPI: PHILIPS SPD6000L1, L5P3, max UDMA/66
[    0.653717] ata1.00: configured for UDMA/66
[    0.711567] isapnp: No Plug & Play device found
[    0.712423] scsi 0:0:0:0: CD-ROM            PHILIPS  SPD6000L1        L5P3 
PQ: 0 ANSI: 5
[    0.716534] sr0: scsi3-mmc drive: 48x/48x writer cd/rw xa/form2 cdda tray
[    0.716537] Uniform CD-ROM driver Revision: 3.20
[    0.716645] sr 0:0:0:0: Attached scsi CD-ROM sr0
[    0.716704] sr 0:0:0:0: Attached scsi generic sg0 type 5
...
[    1.026637] sata_via 0000:00:0f.0: version 2.4
[    1.026648] sata_via 0000:00:0f.0: PCI INT B -> GSI 21 (level, low) -> IRQ 21
[    1.026682] sata_via 0000:00:0f.0: routed to hard irq line 11
...
[ 5446.000031] ata1: lost interrupt (Status 0x50)
[ 5477.000035] ata1: lost interrupt (Status 0x51)
[ 5482.000036] ata1.00: qc timeout (cmd 0xa0)
[ 5482.000048] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[ 5482.000054] sr 0:0:0:0: CDB: Test Unit Ready: 00 00 00 00 00 00
[ 5482.000070] ata1.00: cmd a0/00:00:00:00:00/00:00:00:00:00/a0 tag 0
[ 5482.000071]          res 51/20:03:00:00:00/00:00:00:00:00/a0 Emask 0x5 
(timeout)
[ 5482.000075] ata1.00: status: { DRDY ERR }
[ 5482.000100] ata1: soft resetting link
[ 5482.216303] ata1.00: configured for UDMA/66
[ 5487.216031] ata1.00: qc timeout (cmd 0xa0)
[ 5487.216040] ata1.00: TEST_UNIT_READY failed (err_mask=0x5)
[ 5487.216066] ata1: soft resetting link
[ 5487.432316] ata1.00: configured for UDMA/66
[ 5492.432047] ata1.00: qc timeout (cmd 0xa0)
[ 5492.432056] ata1.00: TEST_UNIT_READY failed (err_mask=0x5)
[ 5492.432063] ata1.00: limiting speed to UDMA/66:PIO3
[ 5492.432089] ata1: soft resetting link
[ 5492.644320] ata1.00: configured for UDMA/66
[ 5497.644030] ata1.00: qc timeout (cmd 0xa0)
[ 5497.644039] ata1.00: TEST_UNIT_READY failed (err_mask=0x5)
[ 5497.644042] ata1.00: disabled
[ 5497.644082] ata1: soft resetting link
[ 5497.800096] ata1: EH complete
...

It's the first time I have a non-working CD/DVD drive under Ubuntu (and
I'm an Ubuntu user since Warty).

To unsubscribe from this bug, go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/544548/+subscribe

-- 
Kernel doesn't detect media in CD/DVD drives
https://bugs.launchpad.net/bugs/544548
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to