Skip to contentSkip to conversation

IDE cdrom problem with PLEXTOR DVDR PX-608AL

DISCUSSION Hans-Peter Jansen 3 participants 8 messages Feb 12, 2008 – Feb 15, 2008 libata

lore
Share & tools
lore
#0 lore raw

Hi,

I suffer from unreliable cdrom operations (failing DAE and burn sessions) with the openSUSE 2.6.18.8-0.7-bigsmp kernel.

Additionally, the syslog is continuesly spammed with:

Feb 12 00:03:22 kernel: hdc: cdrom_pc_intr: The drive appears confused (ireason = 0x01).
 Trying to recover by ending request.
Feb 12 00:57:52 kernel: hdc: cdrom_pc_intr: The drive appears confused (ireason = 0x01).
 Trying to recover by ending request.
Feb 12 01:36:21 kernel: hdc: cdrom_pc_intr: The drive appears confused (ireason = 0x01).
 Trying to recover by ending request.
Feb 12 01:38:49 kernel: hde: cdrom_pc_intr: The drive appears confused (ireason = 0x01).
 Trying to recover by ending request.
Feb 12 08:06:07 kernel: hde: cdrom_pc_intr: The drive appears confused (ireason = 0x01).
 Trying to recover by ending request.

I drove that devices on a pdc20268 based Promise Ultra TX/2 100 card for some time, which had some IDE/ATAPI issues documented. After exchanging that PCI card with a "Silicon Image PCI0680 based one, the problem persists.

Is there any firmware/atapi protocol problem known with these drives?

These are the offenders:

42: IDE 02.0: 10602 CD-ROM (DVD)
[Created at block.222]
UDI: /org/freedesktop/Hal/devices/storage_model_PLEXTOR_DVDR_PX_608AL Unique ID: 90A1.yYhZwSaKZZ6
Parent ID: ejN_.zzJBQoyZsp8
SysFS ID: /block/hdc
SysFS BusID: 1.0
SysFS Device Link: /devices/pci0000:00/0000:00:0e.0/0000:02:06.0/ide1/1.0 Hardware Class: cdrom
Model: "PLEXTOR DVDR PX-608AL"
Vendor: "PLEXTOR"
Device: "DVDR PX-608AL"
Revision: "1.01"
Serial ID: "GDDL000676UE"
Driver: "SiI_IDE", "ide-cdrom"
Driver Modules: "siimage", "ide_cd"
Device File: /dev/hdc
Device Files: /dev/hdc, /dev/disk/by-path/pci-0000:02:06.0-ide-0:0 Device Number: block 22:0
Features: CD-R, CD-RW, DVD, DVD-R, DVD-RW, DVD+R, DVD+RW, DVD+DL, DVDRAM Drive status: no medium
Config Status: cfg=no, avail=yes, need=no, active=unknown Attached to: #34 (Unknown mass storage controller)
Drive Speed: 24

43: IDE 04.0: 10602 CD-ROM (DVD)
[Created at block.222]
UDI: /org/freedesktop/Hal/devices/storage_model_PLEXTOR_DVDR_PX_608AL_0 Unique ID: 3Ng9.rKN6BMng3oC
Parent ID: ejN_.zzJBQoyZsp8
SysFS ID: /block/hde
SysFS BusID: 2.0
SysFS Device Link: /devices/pci0000:00/0000:00:0e.0/0000:02:06.0/ide2/2.0 Hardware Class: cdrom
Model: "PLEXTOR DVDR PX-608AL"
Vendor: "PLEXTOR"
Device: "DVDR PX-608AL"
Revision: "1.01"
Serial ID: "GGDL007101UE"
Driver: "SiI_IDE", "ide-cdrom"
Driver Modules: "siimage", "ide_cd"
Device File: /dev/hde
Device Files: /dev/hde, /dev/disk/by-path/pci-0000:02:06.0-ide-1:0 Device Number: block 33:0
Features: CD-R, CD-RW, DVD, DVD-R, DVD-RW, DVD+R, DVD+RW, DVD+DL, DVDRAM Drive status: no medium
Config Status: cfg=no, avail=yes, need=no, active=unknown Attached to: #34 (Unknown mass storage controller)
Drive Speed: 24

hanging on this controller (now):

44: PCI 206.0: 0180 Unknown mass storage controller
[Created at pci.286]
UDI: /org/freedesktop/Hal/devices/pci_1095_680
Unique ID: ejN_.zzJBQoyZsp8
Parent ID: vuMS.8LoPsVNGJbF
SysFS ID: /devices/pci0000:00/0000:00:0e.0/0000:02:06.0 SysFS BusID: 0000:02:06.0
Hardware Class: storage
Model: "Silicon Image PCI0680 Ultra ATA-133 Host Controller"
Vendor: pci 0x1095 "Silicon Image, Inc."
Device: pci 0x0680 "PCI0680 Ultra ATA-133 Host Controller"
SubVendor: pci 0x1095 "Silicon Image, Inc."
SubDevice: pci 0x0680
Revision: 0x02
Driver: "SiI_IDE"
Driver Modules: "siimage"
I/O Ports: 0x9c00-0x9c07 (rw)
I/O Ports: 0x9800-0x9803 (rw)
I/O Ports: 0x9400-0x9407 (rw)
I/O Ports: 0x9000-0x9003 (rw)
I/O Ports: 0x8c00-0x8c0f (rw)
Memory Range: 0xfdfff000-0xfdfff0ff (rw,non-prefetchable) Memory Range: 0xf4000000-0xf407ffff (ro,prefetchable,disabled)
IRQ: 169 (1767334 events)
Module Alias: "pci:v00001095d00000680sv00001095sd00000680bc01sc80i00" Driver Info #0:
Driver Status: siimage is active
Driver Activation Cmd: "modprobe siimage"
Driver Info #1:
Driver Status: pata_sil680 is active
Driver Activation Cmd: "modprobe pata_sil680"
Config Status: cfg=no, avail=yes, need=no, active=unknown Attached to: #30 (PCI bridge)

Any hints are highly appreciated.

Pete

#1 lore raw
Quoted 4 lines · Hans-Peter Jansen

Hi,

I suffer from unreliable cdrom operations (failing DAE and burn sessions) with the openSUSE 2.6.18.8-0.7-bigsmp kernel.

			^^^^

Hi,

can please you test this with a more recent kernel. Yours is almost ancient - from Sep. 2006.

Thanks.

Signature · 2 lines
Regards/Gruß,
    Boris.
#2 lore raw

Am Dienstag, 12. Februar 2008 schrieb Borislav Petkov:

Quoted 11 lines · Hans-Peter Jansen
Quoted 4 lines

Hi,

I suffer from unreliable cdrom operations (failing DAE and burn sessions) with the openSUSE 2.6.18.8-0.7-bigsmp kernel.

			^^^^

Hi,

can please you test this with a more recent kernel. Yours is almost ancient - from Sep. 2006.

Sure, sorry. Here we go:

Feb 14 00:18:18 kernel: hde: cdrom_pc_intr: The drive appears confused (ireason = 0x01).
 Trying to recover by ending request.
Feb 14 00:27:27 kernel: hdc: cdrom_pc_intr: The drive appears confused (ireason = 0x01). 
 Trying to recover by ending request.

~> uname -a
Linux xrated 2.6.24.1-35-pae #1 SMP 2008/02/12 01:00:18 UTC i686 athlon i386 GNU/Linux

Thanks for caring,
Pete

#3 lore raw

On Thu, Feb 14, 2008 at 12:37:50AM +0100, Hans-Peter Jansen wrote:

[Added Bart to CC]

Quoted 15 lines

Am Dienstag, 12. Februar 2008 schrieb Borislav Petkov:

Quoted 11 lines · Hans-Peter Jansen
Quoted 4 lines

Hi,

I suffer from unreliable cdrom operations (failing DAE and burn sessions) with the openSUSE 2.6.18.8-0.7-bigsmp kernel.

			^^^^

Hi,

can please you test this with a more recent kernel. Yours is almost ancient - from Sep. 2006.

Sure, sorry. Here we go:

Quoted 7 lines
Feb 14 00:18:18 kernel: hde: cdrom_pc_intr: The drive appears confused (ireason = 0x01).
 Trying to recover by ending request.
Feb 14 00:27:27 kernel: hdc: cdrom_pc_intr: The drive appears confused (ireason = 0x01). 
 Trying to recover by ending request.

~> uname -a
Linux xrated 2.6.24.1-35-pae #1 SMP 2008/02/12 01:00:18 UTC i686 athlon i386 GNU/Linux

Actually the interrupt handler in ide-cd got rewritten and you're still using the old one (cdrom_pc_intr vs cdrom_newpc_intr). Those changes went into mainline before the 2.6.25-rc1 so we'll be able to test the new one only when you try out 2.6.25-rc1 or wait until 2.6.25 is released in case you don't want to try hazardous materials such as an -rc kernel[*] :).

Bart?

*. As a matter of fact it runs quite smoothly on my machines.

Signature · 2 lines
Regards/Gruß,
    Boris.
#4 lore raw

Am Donnerstag, 14. Februar 2008 schrieb Borislav Petkov:

Quoted 28 lines · Hans-Peter Jansen

[Added Bart to CC]

Quoted 15 lines

Am Dienstag, 12. Februar 2008 schrieb Borislav Petkov:

Quoted 11 lines · Hans-Peter Jansen
Quoted 4 lines

Hi,

I suffer from unreliable cdrom operations (failing DAE and burn sessions) with the openSUSE 2.6.18.8-0.7-bigsmp kernel.

			^^^^

Hi,

can please you test this with a more recent kernel. Yours is almost ancient - from Sep. 2006.

Sure, sorry. Here we go:

Quoted 8 lines
Feb 14 00:18:18 kernel: hde: cdrom_pc_intr: The drive appears confused
(ireason = 0x01). Trying to recover by ending request.
Feb 14 00:27:27 kernel: hdc: cdrom_pc_intr: The drive appears confused

(ireason = 0x01). Trying to recover by ending request.

~> uname -a
Linux xrated 2.6.24.1-35-pae #1 SMP 2008/02/12 01:00:18 UTC i686 athlon i386 GNU/Linux

Quoted 5 lines

Actually the interrupt handler in ide-cd got rewritten and you're still using the old one (cdrom_pc_intr vs cdrom_newpc_intr). Those changes went into mainline before the 2.6.25-rc1 so we'll be able to test the new one only when you try out 2.6.25-rc1 or wait until 2.6.25 is released in case you don't want to try hazardous materials such as an -rc kernel[*] :).

Hrm, I highly depend on that system being reliable¹, thus I would prefer a diff, if feasible at all. That way, any breakage may be embanked to PATA.

OTOH, I'm willing to help to get down to the issue (knowing that this is the only way to finally get rid of it).

Thanks,
Pete

¹) As a matter of fact, I suffered from way to many regressions in essential
subsystems (kernel, X, nss_ldap) lately, not to speak from the usual calamities in peripheral areas of such complex beasts.

#5 lore raw
In reply to Borislav Petkov
Quoted 33 lines · Borislav Petkov

On Thu, Feb 14, 2008 at 12:37:50AM +0100, Hans-Peter Jansen wrote:

[Added Bart to CC]

Quoted 15 lines

Am Dienstag, 12. Februar 2008 schrieb Borislav Petkov:

Quoted 11 lines · Hans-Peter Jansen
Quoted 4 lines

Hi,

I suffer from unreliable cdrom operations (failing DAE and burn sessions) with the openSUSE 2.6.18.8-0.7-bigsmp kernel.

			^^^^

Hi,

can please you test this with a more recent kernel. Yours is almost ancient - from Sep. 2006.

Sure, sorry. Here we go:

Quoted 7 lines
Feb 14 00:18:18 kernel: hde: cdrom_pc_intr: The drive appears confused (ireason = 0x01).
 Trying to recover by ending request.
Feb 14 00:27:27 kernel: hdc: cdrom_pc_intr: The drive appears confused (ireason = 0x01). 
 Trying to recover by ending request.

~> uname -a
Linux xrated 2.6.24.1-35-pae #1 SMP 2008/02/12 01:00:18 UTC i686 athlon i386 GNU/Linux

Actually the interrupt handler in ide-cd got rewritten and you're still using the old one (cdrom_pc_intr vs cdrom_newpc_intr). Those changes went into mainline before the 2.6.25-rc1 so we'll be able to test the new one only when you try out 2.6.25-rc1 or wait until 2.6.25 is released in case you don't want to try hazardous materials such as an -rc kernel[*] :).

Quoted 3 lines

Bart?

*. As a matter of fact it runs quite smoothly on my machines.

2.6.25-rc1-git1 if you are using IDE.

however it may still have this problem

	if (ireason == 0) {
		write = 1;
		xferfunc = HWIF(drive)->atapi_output_bytes;
	} else if (ireason == 2 || (ireason == 1 &&
		   (blk_fs_request(rq) || blk_pc_request(rq)))) {

we problably need to call ide_cd_check_ireason() also for REQ_TYPE_ATA_PC requests and remove (blk_fs_request(rq) || blk_pc_request(rq) here

		write = 0;
		xferfunc = HWIF(drive)->atapi_input_bytes;
	} else {
		printk(KERN_ERR "%s: %s: The drive "
				"appears confused (ireason = 0x%02x). "
				"Trying to recover by ending request.\n",
				drive->name, __FUNCTION__, ireason);
		goto end_request;
	}

Bart

#6 lore raw
Quoted 61 lines · Bartlomiej Zolnierkiewicz
Quoted 33 lines · Borislav Petkov

On Thu, Feb 14, 2008 at 12:37:50AM +0100, Hans-Peter Jansen wrote:

[Added Bart to CC]

Quoted 15 lines

Am Dienstag, 12. Februar 2008 schrieb Borislav Petkov:

Quoted 11 lines · Hans-Peter Jansen
Quoted 4 lines

Hi,

I suffer from unreliable cdrom operations (failing DAE and burn sessions) with the openSUSE 2.6.18.8-0.7-bigsmp kernel.

                  ^^^^

Hi,

can please you test this with a more recent kernel. Yours is almost ancient - from Sep. 2006.

Sure, sorry. Here we go:

Quoted 7 lines
Feb 14 00:18:18 kernel: hde: cdrom_pc_intr: The drive appears confused (ireason = 0x01).
 Trying to recover by ending request.
Feb 14 00:27:27 kernel: hdc: cdrom_pc_intr: The drive appears confused (ireason = 0x01).
 Trying to recover by ending request.

~> uname -a
Linux xrated 2.6.24.1-35-pae #1 SMP 2008/02/12 01:00:18 UTC i686 athlon i386 GNU/Linux

Actually the interrupt handler in ide-cd got rewritten and you're still using the old one (cdrom_pc_intr vs cdrom_newpc_intr). Those changes went into mainline before the 2.6.25-rc1 so we'll be able to test the new one only when you try out 2.6.25-rc1 or wait until 2.6.25 is released in case you don't want to try hazardous materials such as an -rc kernel[*] :).

Quoted 3 lines

Bart?

*. As a matter of fact it runs quite smoothly on my machines.

2.6.25-rc1-git1 if you are using IDE.

however it may still have this problem

       if (ireason == 0) {
               write = 1;
               xferfunc = HWIF(drive)->atapi_output_bytes;
       } else if (ireason == 2 || (ireason == 1 &&
                  (blk_fs_request(rq) || blk_pc_request(rq)))) {

we problably need to call ide_cd_check_ireason() also for REQ_TYPE_ATA_PC requests and remove (blk_fs_request(rq) || blk_pc_request(rq) here

               write = 0;
               xferfunc = HWIF(drive)->atapi_input_bytes;
       } else {
               printk(KERN_ERR "%s: %s: The drive "
                               "appears confused (ireason = 0x%02x). "
                               "Trying to recover by ending request.\n",
                               drive->name, __FUNCTION__, ireason);
               goto end_request;
       }
Quoted 2 lines

Bart

Hans-Peter,

i will prepare a patch against 2.6.24 for you to try later.

Thanks,
Boris.

#7 lore raw
Quoted 62 lines · Boris Petkov
Quoted 61 lines · Bartlomiej Zolnierkiewicz
Quoted 33 lines · Borislav Petkov

On Thu, Feb 14, 2008 at 12:37:50AM +0100, Hans-Peter Jansen wrote:

[Added Bart to CC]

Quoted 15 lines

Am Dienstag, 12. Februar 2008 schrieb Borislav Petkov:

Quoted 11 lines · Hans-Peter Jansen
Quoted 4 lines

Hi,

I suffer from unreliable cdrom operations (failing DAE and burn sessions) with the openSUSE 2.6.18.8-0.7-bigsmp kernel.

                  ^^^^

Hi,

can please you test this with a more recent kernel. Yours is almost ancient - from Sep. 2006.

Sure, sorry. Here we go:

Quoted 7 lines
Feb 14 00:18:18 kernel: hde: cdrom_pc_intr: The drive appears confused (ireason = 0x01).
 Trying to recover by ending request.
Feb 14 00:27:27 kernel: hdc: cdrom_pc_intr: The drive appears confused (ireason = 0x01).
 Trying to recover by ending request.

~> uname -a
Linux xrated 2.6.24.1-35-pae #1 SMP 2008/02/12 01:00:18 UTC i686 athlon i386 GNU/Linux

Actually the interrupt handler in ide-cd got rewritten and you're still using the old one (cdrom_pc_intr vs cdrom_newpc_intr). Those changes went into mainline before the 2.6.25-rc1 so we'll be able to test the new one only when you try out 2.6.25-rc1 or wait until 2.6.25 is released in case you don't want to try hazardous materials such as an -rc kernel[*] :).

Quoted 3 lines

Bart?

*. As a matter of fact it runs quite smoothly on my machines.

2.6.25-rc1-git1 if you are using IDE.

however it may still have this problem

       if (ireason == 0) {
               write = 1;
               xferfunc = HWIF(drive)->atapi_output_bytes;
       } else if (ireason == 2 || (ireason == 1 &&
                  (blk_fs_request(rq) || blk_pc_request(rq)))) {

we problably need to call ide_cd_check_ireason() also for REQ_TYPE_ATA_PC requests and remove (blk_fs_request(rq) || blk_pc_request(rq) here

               write = 0;
               xferfunc = HWIF(drive)->atapi_input_bytes;
       } else {
               printk(KERN_ERR "%s: %s: The drive "
                               "appears confused (ireason = 0x%02x). "
                               "Trying to recover by ending request.\n",
                               drive->name, __FUNCTION__, ireason);
               goto end_request;
       }
Quoted 5 lines
Quoted 2 lines

Bart

Hans-Peter,

i will prepare a patch against 2.6.24 for you to try later.

Hi,

i thought that backporting ide-cd to 2.6.24 would be self-contained but the problem is that it pulls in changes made in the block layer (ll_rw_blk.c splitup) and if i pull those also in the patch, i can't guarantee the stability of your system. Besides, this turns pretty fast into a chained pulling which will result into a subset of 2.6.25-rc1 applied ontop of your 2.6.24.1 kernel so the only alternative is to wait after 2.6.25 has been released and tackle the problem then.

Signature · 2 lines
Regards/Gruß,
    Boris.