* IDE cdrom problem with PLEXTOR DVDR PX-608AL
@ 2008-02-12 9:26 Hans-Peter Jansen
2008-02-12 17:20 ` Borislav Petkov
0 siblings, 1 reply; 18+ messages in thread
From: Hans-Peter Jansen @ 2008-02-12 9:26 UTC (permalink / raw)
To: linux-kernel, linux-ide
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
^ permalink raw reply [flat|nested] 18+ messages in thread* Re: IDE cdrom problem with PLEXTOR DVDR PX-608AL 2008-02-12 9:26 IDE cdrom problem with PLEXTOR DVDR PX-608AL Hans-Peter Jansen @ 2008-02-12 17:20 ` Borislav Petkov 2008-02-13 23:37 ` Hans-Peter Jansen 0 siblings, 1 reply; 18+ messages in thread From: Borislav Petkov @ 2008-02-12 17:20 UTC (permalink / raw) To: Hans-Peter Jansen; +Cc: linux-kernel, linux-ide On Tue, Feb 12, 2008 at 10:26:17AM +0100, Hans-Peter Jansen wrote: > 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. -- Regards/Gruß, Boris. ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: IDE cdrom problem with PLEXTOR DVDR PX-608AL 2008-02-12 17:20 ` Borislav Petkov @ 2008-02-13 23:37 ` Hans-Peter Jansen 2008-02-14 6:26 ` Borislav Petkov 0 siblings, 1 reply; 18+ messages in thread From: Hans-Peter Jansen @ 2008-02-13 23:37 UTC (permalink / raw) To: petkovbb, linux-kernel, linux-ide Am Dienstag, 12. Februar 2008 schrieb Borislav Petkov: > On Tue, Feb 12, 2008 at 10:26:17AM +0100, Hans-Peter Jansen wrote: > > 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 ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: IDE cdrom problem with PLEXTOR DVDR PX-608AL 2008-02-13 23:37 ` Hans-Peter Jansen @ 2008-02-14 6:26 ` Borislav Petkov 2008-02-14 10:08 ` Hans-Peter Jansen 2008-02-14 12:24 ` Bartlomiej Zolnierkiewicz 0 siblings, 2 replies; 18+ messages in thread From: Borislav Petkov @ 2008-02-14 6:26 UTC (permalink / raw) To: Hans-Peter Jansen; +Cc: linux-kernel, linux-ide, bzolnier On Thu, Feb 14, 2008 at 12:37:50AM +0100, Hans-Peter Jansen wrote: [Added Bart to CC] > Am Dienstag, 12. Februar 2008 schrieb Borislav Petkov: > > On Tue, Feb 12, 2008 at 10:26:17AM +0100, Hans-Peter Jansen wrote: > > > 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 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. -- Regards/Gruß, Boris. ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: IDE cdrom problem with PLEXTOR DVDR PX-608AL 2008-02-14 6:26 ` Borislav Petkov @ 2008-02-14 10:08 ` Hans-Peter Jansen 2008-02-14 12:24 ` Bartlomiej Zolnierkiewicz 1 sibling, 0 replies; 18+ messages in thread From: Hans-Peter Jansen @ 2008-02-14 10:08 UTC (permalink / raw) To: petkovbb, linux-kernel, linux-ide, bzolnier Am Donnerstag, 14. Februar 2008 schrieb Borislav Petkov: > On Thu, Feb 14, 2008 at 12:37:50AM +0100, Hans-Peter Jansen wrote: > > [Added Bart to CC] > > > Am Dienstag, 12. Februar 2008 schrieb Borislav Petkov: > > > On Tue, Feb 12, 2008 at 10:26:17AM +0100, Hans-Peter Jansen wrote: > > > > 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 > > 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. ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: IDE cdrom problem with PLEXTOR DVDR PX-608AL 2008-02-14 6:26 ` Borislav Petkov 2008-02-14 10:08 ` Hans-Peter Jansen @ 2008-02-14 12:24 ` Bartlomiej Zolnierkiewicz 2008-02-14 13:42 ` Boris Petkov 1 sibling, 1 reply; 18+ messages in thread From: Bartlomiej Zolnierkiewicz @ 2008-02-14 12:24 UTC (permalink / raw) To: petkovbb; +Cc: Hans-Peter Jansen, linux-kernel, linux-ide On Thursday 14 February 2008, Borislav Petkov wrote: > On Thu, Feb 14, 2008 at 12:37:50AM +0100, Hans-Peter Jansen wrote: > > [Added Bart to CC] > > > Am Dienstag, 12. Februar 2008 schrieb Borislav Petkov: > > > On Tue, Feb 12, 2008 at 10:26:17AM +0100, Hans-Peter Jansen wrote: > > > > 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 > > 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. 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 ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: IDE cdrom problem with PLEXTOR DVDR PX-608AL 2008-02-14 12:24 ` Bartlomiej Zolnierkiewicz @ 2008-02-14 13:42 ` Boris Petkov 2008-02-15 10:50 ` Borislav Petkov 0 siblings, 1 reply; 18+ messages in thread From: Boris Petkov @ 2008-02-14 13:42 UTC (permalink / raw) To: Bartlomiej Zolnierkiewicz Cc: petkovbb, Hans-Peter Jansen, linux-kernel, linux-ide On 2/14/08, Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> wrote: > On Thursday 14 February 2008, Borislav Petkov wrote: > > On Thu, Feb 14, 2008 at 12:37:50AM +0100, Hans-Peter Jansen wrote: > > > > [Added Bart to CC] > > > > > Am Dienstag, 12. Februar 2008 schrieb Borislav Petkov: > > > > On Tue, Feb 12, 2008 at 10:26:17AM +0100, Hans-Peter Jansen wrote: > > > > > 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 > > > > 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. > > 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 > Hans-Peter, i will prepare a patch against 2.6.24 for you to try later. Thanks, Boris. ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: IDE cdrom problem with PLEXTOR DVDR PX-608AL 2008-02-14 13:42 ` Boris Petkov @ 2008-02-15 10:50 ` Borislav Petkov 0 siblings, 0 replies; 18+ messages in thread From: Borislav Petkov @ 2008-02-15 10:50 UTC (permalink / raw) To: Boris Petkov Cc: Bartlomiej Zolnierkiewicz, Hans-Peter Jansen, linux-kernel, linux-ide On Thu, Feb 14, 2008 at 02:42:58PM +0100, Boris Petkov wrote: > On 2/14/08, Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> wrote: > > On Thursday 14 February 2008, Borislav Petkov wrote: > > > On Thu, Feb 14, 2008 at 12:37:50AM +0100, Hans-Peter Jansen wrote: > > > > > > [Added Bart to CC] > > > > > > > Am Dienstag, 12. Februar 2008 schrieb Borislav Petkov: > > > > > On Tue, Feb 12, 2008 at 10:26:17AM +0100, Hans-Peter Jansen wrote: > > > > > > 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 > > > > > > 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. > > > > 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 > > > 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. -- Regards/Gruß, Boris. ^ permalink raw reply [flat|nested] 18+ messages in thread
[parent not found: <426a98560802232138q41d45d52ta515f1b791e937f4@mail.gmail.com>]
* Re: IDE cdrom problem with PLEXTOR DVDR PX-608AL [not found] <426a98560802232138q41d45d52ta515f1b791e937f4@mail.gmail.com> @ 2008-02-24 17:34 ` Borislav Petkov 2008-02-24 18:16 ` Bartlomiej Zolnierkiewicz 2008-02-25 1:58 ` Brad Rosser 0 siblings, 2 replies; 18+ messages in thread From: Borislav Petkov @ 2008-02-24 17:34 UTC (permalink / raw) To: Brad Rosser; +Cc: bzolnier, linux-ide, linux-kernel On Sun, Feb 24, 2008 at 03:38:34PM +1000, Brad Rosser wrote: [ Added Bart to CC: ] Hi Brad, > Borislav Petkov wrote: > > > > 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[*] :). > > I have exactly the same problem. I have a two-month old PC with a > Gigabyte P35-DS4 > motherboard, which has the Intel P35 chipset with ICH10 south bridge and > additional JMicron IDE/SATA controller. I have two SATA-II hard disks > and a sole > IDE device, a Pioneer DVR-115D DVD-ROM, hooked up to the JMicron IDE port. > The motherboard also has an embedded Realtek RTL8111/8168B gigabit > ethernet controller. > > The motherboard/bios assigns both the JMicron IDE controller and the Realtek > controller to the same interrupt - typically '15'. There's nothing in > the bios that > allows me to move one away from the other. I can 'reserve' or block IRQs, but > that only shifts them both to another interrupt. well the driver probes the bios for that data and assigns the irq line it gets from it. > Similarly, no matter what I do with the Linux kernel, using boot parameters such > as 'acpi=off', 'noapic', 'nolapic' and the like, I can never get the > kernel to use > different interrupts for these two controllers. A 'cat > /proc/interrupts' always shows > them sharing their IRQ: > > # grep ide /proc/interrupts > 17: 58077 4 98999 129160 IO-APIC-fasteoi ide0, eth0 > > With the IDE driver compiled into the kernel any access to the DVD is fine > until I start using the network. Upon any network activity I get the 'confused' > messages and more: > > kernel: hda: cdrom_pc_intr: The drive appears confused (ireason = > 0x01). Trying to recover by ending request. > last message repeated 3 times > kernel: ide: failed opcode was: unknown > kernel: hda: drive not ready for command > kernel: hda: status error: status=0x58 { DriveReady SeekComplete DataRequest } > > KDE even kindly pops up a window telling me that someone has inserted a (ghost) > DVD disc, would I care to play it? :-( > > I know nothing of modern/PCI hardware and their interrupt magic, but it seemed > to me that the IDE driver was erroneously picking up the interrupts destined for > the Realtek NIC and thinking they were for it. Unfortunately there seemed to be > no way for me to separate the two or get the IDE driver its own IRQ, either via > the PC's bios or linux kernel boot parameters. > > When I saw the recent message from Hans-Peter Jansen about this exact > problem, and Boris's comment that something in interrupt land for the > CD driver had been fixed, I thought the latest version of the kernel would > rectify matters. I installed the 2.6.25-rc2 kernel from kernel.org > but the problem > is still there. Can you please send me your whole boot log of 2.6.25-rc2? Thanks. > > As a workaround I've disabled IDE entirely in my kernel build and am using > sr_mod to present the DVD as /dev/sr0. > > As a result of all this I've got several novice questions relating to > this matter. > I don't know if this mailing list is an appropriate place to ask them > .. my apologies > if not. Any quick references to reference material would be appreciated. > > Given all the kernel parameters to change IRQ routing and turn ACPI actions > up, down and sideways, is there any way to tell it to assign an explicit > IRQ to a device? Or have it that the IDE driver doesn't share? I thought > CONFIG_IDEPCI_SHARE_IRQ might have something to do with it, but fiddling > the value for that had no effect. It 'feels' to me that all these IRQs seem to > be highly adjustable by the kernel, so I was hoping there'd be a way to > let the IDE driver have one to itself. > > Is there any way to leave the IDE driver compiled into the kernel but tell > it to leave the DVD-ROM drive alone, so sr_mod can claim it rather than > ide-cd? I couldn't do it with my kernel, but I think Ubuntu (7.10) does > manage it. I tried various kernel boot parameters like 'hda=scsi' or > 'hda=ide-scsi' but nothing seemed to work. It would be nice to be able > to use IDE hard disks while leaving the DVD-ROM to sr_mod until this > problem is resolved. since your cdrom seems to be hda from what i've seen above, try booting with 'hda=noprobe' or maybe 'hda=none' to see which one turns the probing off for you. See Documentation/ide.txt for details. > > Is there a primer/guide somewhere on how the modules all inter-relate > in the kernel? When IDE is compiled I see 'ide0' sharing IRQ17 with > 'eth0' in /proc/interrupts. When IDE is disabled it's replaced with > 'libata' (which DOESN'T have any problems sharing). I'm just curious > as to why 'libata' isn't seen when IDE is taking front stage; does it > sit underneath somehow? Similarly I'm a bit fuzzy on how sr_mod > sits on top of 'cdrom' while 'ide-cd' uses both 'cdrom' and ide-core. > I'm just curious on how they all work together. Does the 'cdrom' > module talk straight to the DVD-ROM hardware or does it go though > libata? I always thought it used IDE. Roughly speaking, cdrom.c is the unified cdrom layer that delivers common functionality to all the cdrom devices. ide-cd and others are the low-level device drivers that offer drive-specific functionality only. In case you wanna know more about it, see Documentation/cdrom/cdrom-standard.tex (might want to convert it to something more readable) and read the section on stackable kernel modules in Linux Device Drivers, 3 ed. > > My apologies if this post is at too simple/high a level for the wizards > present. I thought the feedback on 2.6.25-rc2 might be useful. > > Thanks, > > > Brad -- Regards/Gruß, Boris. ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: IDE cdrom problem with PLEXTOR DVDR PX-608AL 2008-02-24 17:34 ` Borislav Petkov @ 2008-02-24 18:16 ` Bartlomiej Zolnierkiewicz 2008-02-25 1:58 ` Brad Rosser 1 sibling, 0 replies; 18+ messages in thread From: Bartlomiej Zolnierkiewicz @ 2008-02-24 18:16 UTC (permalink / raw) To: petkovbb; +Cc: Brad Rosser, linux-ide, linux-kernel On Sunday 24 February 2008, Borislav Petkov wrote: > On Sun, Feb 24, 2008 at 03:38:34PM +1000, Brad Rosser wrote: [...] > > kernel: hda: cdrom_pc_intr: The drive appears confused (ireason = > > 0x01). Trying to recover by ending request. > > last message repeated 3 times > > kernel: ide: failed opcode was: unknown > > kernel: hda: drive not ready for command > > kernel: hda: status error: status=0x58 { DriveReady SeekComplete DataRequest } [...] > > When I saw the recent message from Hans-Peter Jansen about this exact > > problem, and Boris's comment that something in interrupt land for the > > CD driver had been fixed, I thought the latest version of the kernel would > > rectify matters. I installed the 2.6.25-rc2 kernel from kernel.org > > but the problem > > is still there. Does the following patch help? [ It makes ireason handling for REQ_TYPE_ATA_PC requests be the same as for other request types so "ireason == 1" quirk is used if needed. ] --- drivers/ide/ide-cd.c | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) Index: b/drivers/ide/ide-cd.c =================================================================== --- a/drivers/ide/ide-cd.c +++ b/drivers/ide/ide-cd.c @@ -670,8 +670,8 @@ static void cdrom_buffer_sectors (ide_dr * and attempt to recover if there are problems. Returns 0 if everything's * ok; nonzero if the request has been terminated. */ -static -int ide_cd_check_ireason(ide_drive_t *drive, int len, int ireason, int rw) +static int ide_cd_check_ireason(ide_drive_t *drive, struct request *rq, + int len, int ireason, int rw) { /* * ireason == 0: the drive wants to receive data from us @@ -701,6 +701,9 @@ int ide_cd_check_ireason(ide_drive_t *dr drive->name, __FUNCTION__, ireason); } + if (rq->cmd_type == REQ_TYPE_ATA_PC) + rq->cmd_flags |= REQ_FAILED; + cdrom_end_request(drive, 0); return -1; } @@ -1071,11 +1074,11 @@ static ide_startstop_t cdrom_newpc_intr( /* * check which way to transfer data */ - if (blk_fs_request(rq) || blk_pc_request(rq)) { - if (ide_cd_check_ireason(drive, len, ireason, write)) - return ide_stopped; + if (ide_cd_check_ireason(drive, rq, len, ireason, write)) + return ide_stopped; - if (blk_fs_request(rq) && write == 0) { + if (blk_fs_request(rq)) { + if (write == 0) { int nskip; if (ide_cd_check_transfer_size(drive, len)) { @@ -1101,16 +1104,9 @@ static ide_startstop_t cdrom_newpc_intr( 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)))) { + } else { 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; } /* ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: IDE cdrom problem with PLEXTOR DVDR PX-608AL 2008-02-24 17:34 ` Borislav Petkov 2008-02-24 18:16 ` Bartlomiej Zolnierkiewicz @ 2008-02-25 1:58 ` Brad Rosser 2008-02-25 5:34 ` Borislav Petkov 2008-02-25 13:56 ` Bartlomiej Zolnierkiewicz 1 sibling, 2 replies; 18+ messages in thread From: Brad Rosser @ 2008-02-25 1:58 UTC (permalink / raw) To: petkovbb, bzolnier, linux-ide, linux-kernel [-- Attachment #1: Type: text/plain, Size: 3748 bytes --] On Mon, Feb 25, 2008 at 3:34 AM, Borislav Petkov <petkovbb@googlemail.com> wrote: > On Sun, Feb 24, 2008 at 03:38:34PM +1000, Brad Rosser wrote: > > > > There's nothing in the bios that allows me to move one away from > > the other. I can 'reserve' or block IRQs, but that only shifts them > > both to another interrupt. > > well the driver probes the bios for that data and assigns the irq line it gets > from it. Oh. I thought from all the 'IRQ routing/balancing' and the like in the kernel there might be a way to switch things around, give the Realtek driver a different IRQ than the one being used by the ide driver. Just my crossed-fingers hope. > Can you please send me your whole boot log of 2.6.25-rc2? Thanks. It's attached as file 'dmesg.bug.out'. > since your cdrom seems to be hda from what i've seen above, try booting with > 'hda=noprobe' or maybe 'hda=none' to see which one turns the probing off for > you. See Documentation/ide.txt for details. I tried both options, but in both cases there was no difference; the ide_cd_mod module was still loaded and the 'confused' message still popped up. I did four boots/tests of the 2.6.25-rc2 kernel, with and without those boot parameters ... on all four I had the 'confused' message several times: hda: cdrom_newpc_intr: The drive appears confused (ireason = 0x01). Trying to recover by ending request. but in one - the boot with hda=noprobe - I got pages of these error messages right after: hda: status error: status=0x58 { DriveReady SeekComplete DataRequest } ide: failed opcode was: unknown hda: drive not ready for command hda: status error: status=0x58 { DriveReady SeekComplete DataRequest } ide: failed opcode was: unknown hda: drive not ready for command hda: status error: status=0x58 { DriveReady SeekComplete DataRequest } ide: failed opcode was: unknown hda: drive not ready for command hda: status error: status=0x58 { DriveReady SeekComplete DataRequest } ide: failed opcode was: unknown hda: drive not ready for command hda: status timeout: status=0xd0 { Busy } ide: failed opcode was: unknown hda: DMA disabled hda: ATAPI reset complete hda: cdrom_decode_status: status=0xc0 { Busy } ide: failed opcode was: unknown hda: ide_intr: huh? expected NULL handler on exit hda: ATAPI reset complete ... and the system essentially hung. I don't know if that was due to the 'hda=noprobe' or if that extra sensitivity is seen only every now and then. Bart wrote: > Does the following patch help? > > [ It makes ireason handling for REQ_TYPE_ATA_PC requests be the same as > for other request types so "ireason == 1" quirk is used if needed. ] I tried to apply the patch but failed; I probably did something wrong. I deleted everything in your message above 'Index: b/drivers/ide/ide-cd.c' and ran 'patch --dry-run -b -p1 < ../bart_patch'. This is part of my script log: root:/usr/src/linux-2.6.25-rc2# pwd /usr/src/linux-2.6.25-rc2 root:/usr/src/linux-2.6.25-rc2# cat ../bart_patch Index: b/drivers/ide/ide-cd.c =================================================================== --- a/drivers/ide/ide-cd.c +++ b/drivers/ide/ide-cd.c @@ -670,8 +670,8 @@ static void cdrom_buffer_sectors (ide_dr * and attempt to recover if there are problems. Returns 0 if everything's ... ... root:/usr/src/linux-2.6.25-rc2# patch --dry-run -b -p1 < ../bart_patch patching file drivers/ide/ide-cd.c Hunk #1 FAILED at 670. Hunk #2 FAILED at 701. Hunk #3 FAILED at 1074. Hunk #4 FAILED at 1104. 4 out of 4 hunks FAILED -- saving rejects to file drivers/ide/ide-cd.c.rej Since it found drivers/ide/ide-cd.c I guess I got the '-p' level right (?), and that's about the sum total of my 'patch' experience to date. Sorry. Can you tell me what I did wrong? Cheers, Brad [-- Attachment #2: dmesg.bug.out --] [-- Type: application/octet-stream, Size: 25424 bytes --] Linux version 2.6.25-rc2 (root@krypton) (gcc version 4.1.2) #1 SMP Mon Feb 25 08:49:44 EST 2008 BIOS-provided physical RAM map: BIOS-e820: 0000000000000000 - 000000000009e800 (usable) BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved) BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved) BIOS-e820: 0000000000100000 - 00000000bfee0000 (usable) BIOS-e820: 00000000bfee0000 - 00000000bfee3000 (ACPI NVS) BIOS-e820: 00000000bfee3000 - 00000000bfef0000 (ACPI data) BIOS-e820: 00000000bfef0000 - 00000000bff00000 (reserved) BIOS-e820: 00000000e0000000 - 00000000e4000000 (reserved) BIOS-e820: 00000000fec00000 - 0000000100000000 (reserved) BIOS-e820: 0000000100000000 - 0000000140000000 (usable) 4224MB HIGHMEM available. 896MB LOWMEM available. Scan SMP from c0000000 for 1024 bytes. Scan SMP from c009fc00 for 1024 bytes. Scan SMP from c00f0000 for 65536 bytes. found SMP MP-table at [c00f53b0] 000f53b0 NX (Execute Disable) protection: active Entering add_active_range(0, 0, 1310720) 0 entries of 256 used Zone PFN ranges: DMA 0 -> 4096 Normal 4096 -> 229376 HighMem 229376 -> 1310720 Movable zone start PFN for each node early_node_map[1] active PFN ranges 0: 0 -> 1310720 On node 0 totalpages: 1310720 DMA zone: 32 pages used for memmap DMA zone: 0 pages reserved DMA zone: 4064 pages, LIFO batch:0 Normal zone: 1760 pages used for memmap Normal zone: 223520 pages, LIFO batch:31 HighMem zone: 8448 pages used for memmap HighMem zone: 1072896 pages, LIFO batch:31 Movable zone: 0 pages used for memmap DMI 2.4 present. ACPI: RSDP 000F6D90, 0014 (r0 GBT ) ACPI: RSDT BFEE3040, 003C (r1 GBT GBTUACPI 42302E31 GBTU 1010101) ACPI: FACP BFEE30C0, 0074 (r1 GBT GBTUACPI 42302E31 GBTU 1010101) ACPI: DSDT BFEE3180, 4A88 (r1 GBT GBTUACPI 1000 MSFT 100000C) ACPI: FACS BFEE0000, 0040 ACPI: HPET BFEE7D80, 0038 (r1 GBT GBTUACPI 42302E31 GBTU 98) ACPI: MCFG BFEE7E00, 003C (r1 GBT GBTUACPI 42302E31 GBTU 1010101) ACPI: APIC BFEE7C80, 0084 (r1 GBT GBTUACPI 42302E31 GBTU 1010101) ACPI: SSDT BFEE7E80, 015C (r1 PmRef Cpu0Ist 3000 INTL 20040311) ACPI: SSDT BFEE8430, 0275 (r1 PmRef CpuPm 3000 INTL 20040311) ACPI: PM-Timer IO Port: 0x408 ACPI: Local APIC address 0xfee00000 ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled) Processor #0 6:15 APIC version 20 ACPI: LAPIC (acpi_id[0x01] lapic_id[0x03] enabled) Processor #3 6:15 APIC version 20 ACPI: LAPIC (acpi_id[0x02] lapic_id[0x02] enabled) Processor #2 6:15 APIC version 20 ACPI: LAPIC (acpi_id[0x03] lapic_id[0x01] enabled) Processor #1 6:15 APIC version 20 ACPI: LAPIC_NMI (acpi_id[0x00] dfl dfl lint[0x1]) ACPI: LAPIC_NMI (acpi_id[0x01] dfl dfl lint[0x1]) ACPI: LAPIC_NMI (acpi_id[0x02] dfl dfl lint[0x1]) ACPI: LAPIC_NMI (acpi_id[0x03] dfl dfl lint[0x1]) ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0]) IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-23 ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level) ACPI: IRQ0 used by override. ACPI: IRQ2 used by override. ACPI: IRQ9 used by override. Enabling APIC mode: Flat. Using 1 I/O APICs ACPI: HPET id: 0x8086a201 base: 0xfed00000 Using ACPI (MADT) for SMP configuration information Allocating PCI resources starting at c0000000 (gap: bff00000:20100000) Built 1 zonelists in Zone order, mobility grouping on. Total pages: 1300480 Kernel command line: BOOT_IMAGE=linux_2.6.25rc2 ro root=900 md=0,/dev/sda5,/dev/sdb5 md: Will configure md0 (super-block) from /dev/sda5,/dev/sdb5, below. mapped APIC to ffffb000 (fee00000) mapped IOAPIC to ffffa000 (fec00000) Enabling fast FPU save and restore... done. Enabling unmasked SIMD FPU exception support... done. Initializing CPU#0 PID hash table entries: 4096 (order: 12, 16384 bytes) Detected 2400.085 MHz processor. Console: colour dummy device 80x25 console [tty0] enabled Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) Memory: 4147168k/5242880k available (1721k kernel code, 44868k reserved, 718k data, 220k init, 3275648k highmem) virtual kernel memory layout: fixmap : 0xfff81000 - 0xfffff000 ( 504 kB) pkmap : 0xffa00000 - 0xffc00000 (2048 kB) vmalloc : 0xf8800000 - 0xff9fe000 ( 113 MB) lowmem : 0xc0000000 - 0xf8000000 ( 896 MB) .init : 0xc0367000 - 0xc039e000 ( 220 kB) .data : 0xc02ae42c - 0xc0361e60 ( 718 kB) .text : 0xc0100000 - 0xc02ae42c (1721 kB) Checking if this processor honours the WP bit even in supervisor mode...Ok. CPA: page pool initialized 64 of 64 pages preallocated hpet clockevent registered Calibrating delay using timer specific routine.. 4802.63 BogoMIPS (lpj=2401315) Mount-cache hash table entries: 512 CPU: L1 I cache: 32K, L1 D cache: 32K CPU: L2 cache: 4096K CPU: Physical Processor ID: 0 CPU: Processor Core ID: 0 Intel machine check architecture supported. Intel machine check reporting enabled on CPU#0. using mwait in idle threads. Compat vDSO mapped to ffffe000. Checking 'hlt' instruction... OK. ACPI: Core revision 20070126 CPU0: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz stepping 0b Booting processor 1/1 ip 4000 Initializing CPU#1 Calibrating delay using timer specific routine.. 4799.99 BogoMIPS (lpj=2399995) CPU: L1 I cache: 32K, L1 D cache: 32K CPU: L2 cache: 4096K CPU: Physical Processor ID: 0 CPU: Processor Core ID: 1 Intel machine check architecture supported. Intel machine check reporting enabled on CPU#1. CPU1: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz stepping 0b Booting processor 2/2 ip 4000 Initializing CPU#2 Calibrating delay using timer specific routine.. 4800.01 BogoMIPS (lpj=2400009) CPU: L1 I cache: 32K, L1 D cache: 32K CPU: L2 cache: 4096K CPU: Physical Processor ID: 0 CPU: Processor Core ID: 2 Intel machine check architecture supported. Intel machine check reporting enabled on CPU#2. CPU2: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz stepping 0b Booting processor 3/3 ip 4000 Initializing CPU#3 Calibrating delay using timer specific routine.. 4800.02 BogoMIPS (lpj=2400011) CPU: L1 I cache: 32K, L1 D cache: 32K CPU: L2 cache: 4096K CPU: Physical Processor ID: 0 CPU: Processor Core ID: 3 Intel machine check architecture supported. Intel machine check reporting enabled on CPU#3. CPU3: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz stepping 0b Total of 4 processors activated (19202.66 BogoMIPS). ENABLING IO-APIC IRQs ..TIMER: vector=0x31 apic1=0 pin1=2 apic2=-1 pin2=-1 checking TSC synchronization [CPU#0 -> CPU#1]: passed. checking TSC synchronization [CPU#0 -> CPU#2]: passed. checking TSC synchronization [CPU#0 -> CPU#3]: passed. Brought up 4 CPUs net_namespace: 548 bytes NET: Registered protocol family 16 ACPI: bus type pci registered PCI: Using MMCONFIG for extended config space PCI: Using configuration type 1 Setting up standard PCI resources ACPI: EC: Look up EC in DSDT ACPI: Interpreter enabled ACPI: (supports S0 S3 S5) ACPI: Using IOAPIC for interrupt routing ACPI: PCI Root Bridge [PCI0] (0000:00) pci 0000:00:1f.0: quirk: region 0400-047f claimed by ICH6 ACPI/GPIO/TCO pci 0000:00:1f.0: quirk: region 0480-04bf claimed by ICH6 GPIO PCI: Transparent bridge - 0000:00:1e.0 ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PEX0._PRT] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PEX4._PRT] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PEX5._PRT] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.HUB0._PRT] ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 9 10 *11 12 14 15) ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 9 10 11 12 14 *15) ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 *5 6 7 9 10 11 12 14 15) ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 9 *10 11 12 14 15) ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled. ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 *9 10 11 12 14 15) ACPI: PCI Interrupt Link [LNK0] (IRQs 3 4 5 6 7 9 10 11 12 *14 15) ACPI: PCI Interrupt Link [LNK1] (IRQs *3 4 5 6 7 9 10 11 12 14 15) Linux Plug and Play Support v0.97 (c) Adam Belay pnp: PnP ACPI init ACPI: bus type pnp registered pnpacpi: exceeded the max number of mem resources: 12 pnp: PnP ACPI: found 15 devices ACPI: ACPI bus type pnp unregistered SCSI subsystem initialized libata version 3.00 loaded. PCI: Using ACPI for IRQ routing PCI: If a device doesn't work, try "pci=routeirq". If it helps, post a report Time: tsc clocksource has been installed. system 00:01: ioport range 0x4d0-0x4d1 has been reserved system 00:01: ioport range 0x290-0x29f has been reserved system 00:01: ioport range 0x800-0x87f has been reserved system 00:01: ioport range 0x290-0x294 has been reserved system 00:01: ioport range 0x880-0x88f has been reserved system 00:0b: ioport range 0x400-0x4bf could not be reserved system 00:0c: iomem range 0xe0000000-0xe3ffffff could not be reserved system 00:0d: iomem range 0xd5000-0xd7fff has been reserved system 00:0d: iomem range 0xf0000-0xf7fff could not be reserved system 00:0d: iomem range 0xf8000-0xfbfff could not be reserved system 00:0d: iomem range 0xfc000-0xfffff could not be reserved system 00:0d: iomem range 0xbfee0000-0xbfefffff could not be reserved system 00:0d: iomem range 0x0-0x9ffff could not be reserved system 00:0d: iomem range 0x100000-0xbfedffff could not be reserved system 00:0d: iomem range 0xfec00000-0xfec00fff could not be reserved system 00:0d: iomem range 0xfed10000-0xfed1dfff could not be reserved system 00:0d: iomem range 0xfed20000-0xfed8ffff could not be reserved system 00:0d: iomem range 0xfee00000-0xfee00fff could not be reserved system 00:0d: iomem range 0xffb00000-0xffb7ffff could not be reserved PCI: Bridge: 0000:00:01.0 IO window: b000-bfff MEM window: 0xe4000000-0xe7ffffff PREFETCH window: 0x00000000c0000000-0x00000000dfffffff PCI: Bridge: 0000:00:1c.0 IO window: a000-afff MEM window: disabled. PREFETCH window: disabled. PCI: Bridge: 0000:00:1c.4 IO window: c000-cfff MEM window: 0xea000000-0xea0fffff PREFETCH window: disabled. PCI: Bridge: 0000:00:1c.5 IO window: d000-dfff MEM window: 0xe8000000-0xe9ffffff PREFETCH window: disabled. PCI: Bridge: 0000:00:1e.0 IO window: disabled. MEM window: 0xea100000-0xea1fffff PREFETCH window: disabled. ACPI: PCI Interrupt 0000:00:01.0[A] -> GSI 16 (level, low) -> IRQ 16 PCI: Setting latency timer of device 0000:00:01.0 to 64 ACPI: PCI Interrupt 0000:00:1c.0[A] -> GSI 16 (level, low) -> IRQ 16 PCI: Setting latency timer of device 0000:00:1c.0 to 64 ACPI: PCI Interrupt 0000:00:1c.4[A] -> GSI 16 (level, low) -> IRQ 16 PCI: Setting latency timer of device 0000:00:1c.4 to 64 ACPI: PCI Interrupt 0000:00:1c.5[B] -> GSI 17 (level, low) -> IRQ 17 PCI: Setting latency timer of device 0000:00:1c.5 to 64 PCI: Setting latency timer of device 0000:00:1e.0 to 64 NET: Registered protocol family 2 IP route cache hash table entries: 32768 (order: 5, 131072 bytes) TCP established hash table entries: 131072 (order: 8, 1048576 bytes) TCP bind hash table entries: 65536 (order: 7, 524288 bytes) TCP: Hash tables configured (established 131072 bind 65536) TCP reno registered highmem bounce pool size: 64 pages io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered (default) pci 0000:01:00.0: Boot video device PCI: Setting latency timer of device 0000:00:01.0 to 64 assign_interrupt_mode Found MSI capability Allocate Port Service[0000:00:01.0:pcie00] Allocate Port Service[0000:00:01.0:pcie03] PCI: Setting latency timer of device 0000:00:1c.0 to 64 assign_interrupt_mode Found MSI capability Allocate Port Service[0000:00:1c.0:pcie00] Allocate Port Service[0000:00:1c.0:pcie02] Allocate Port Service[0000:00:1c.0:pcie03] PCI: Setting latency timer of device 0000:00:1c.4 to 64 assign_interrupt_mode Found MSI capability Allocate Port Service[0000:00:1c.4:pcie00] Allocate Port Service[0000:00:1c.4:pcie02] Allocate Port Service[0000:00:1c.4:pcie03] PCI: Setting latency timer of device 0000:00:1c.5 to 64 assign_interrupt_mode Found MSI capability Allocate Port Service[0000:00:1c.5:pcie00] Allocate Port Service[0000:00:1c.5:pcie02] Allocate Port Service[0000:00:1c.5:pcie03] vesafb: framebuffer at 0xe5000000, mapped to 0xf8880000, using 3072k, total 14336k vesafb: mode is 1024x768x16, linelength=2048, pages=1 vesafb: protected mode interface info at c000:b5c0 vesafb: pmi: set display start = c00cb623, set palette = c00cb67e vesafb: pmi: ports = 3b4 3b5 3ba 3c0 3c1 3c4 3c5 3c6 3c7 3c8 3c9 3cc 3ce 3cf 3d0 3d1 3d2 3d3 3d4 3d5 3da vesafb: scrolling: redraw vesafb: Truecolor: size=0:5:6:5, shift=0:11:5:0 Console: switching to colour frame buffer device 128x48 fb0: VESA VGA frame buffer device Real Time Clock Driver v1.12ac brd: module loaded Loading iSCSI transport class v2.0-868. Driver 'sd' needs updating - please use bus_type methods ahci 0000:00:1f.2: version 3.0 ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 19 (level, low) -> IRQ 19 Switched to high resolution mode on CPU 1 Switched to high resolution mode on CPU 2 Switched to high resolution mode on CPU 3 Switched to high resolution mode on CPU 0 ahci 0000:00:1f.2: AHCI 0001.0200 32 slots 6 ports 3 Gbps 0x3f impl SATA mode ahci 0000:00:1f.2: flags: 64bit ncq sntf stag pm led clo pmp pio slum part PCI: Setting latency timer of device 0000:00:1f.2 to 64 scsi0 : ahci scsi1 : ahci scsi2 : ahci scsi3 : ahci scsi4 : ahci scsi5 : ahci ata1: SATA max UDMA/133 abar m2048@0xea206000 port 0xea206100 irq 19 ata2: SATA max UDMA/133 abar m2048@0xea206000 port 0xea206180 irq 19 ata3: SATA max UDMA/133 abar m2048@0xea206000 port 0xea206200 irq 19 ata4: SATA max UDMA/133 abar m2048@0xea206000 port 0xea206280 irq 19 ata5: SATA max UDMA/133 abar m2048@0xea206000 port 0xea206300 irq 19 ata6: SATA max UDMA/133 abar m2048@0xea206000 port 0xea206380 irq 19 ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300) ata1.00: HPA detected: current 976771055, native 976773168 ata1.00: ATA-8: WDC WD5000AAKS-00YGA0, 12.01C02, max UDMA/133 ata1.00: 976771055 sectors, multi 0: LBA48 NCQ (depth 31/32) ata1.00: configured for UDMA/133 ata2: SATA link down (SStatus 0 SControl 300) ata3: SATA link down (SStatus 0 SControl 300) ata4: SATA link down (SStatus 0 SControl 300) ata5: SATA link down (SStatus 0 SControl 300) ata6: SATA link down (SStatus 0 SControl 300) scsi 0:0:0:0: Direct-Access ATA WDC WD5000AAKS-0 12.0 PQ: 0 ANSI: 5 sd 0:0:0:0: [sda] 976771055 512-byte hardware sectors (500107 MB) sd 0:0:0:0: [sda] Write Protect is off sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sd 0:0:0:0: [sda] 976771055 512-byte hardware sectors (500107 MB) sd 0:0:0:0: [sda] Write Protect is off sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sda: sda1 sda2 sda4 < sda5 sda6 sda7 > sd 0:0:0:0: [sda] Attached SCSI disk ACPI: PCI Interrupt 0000:03:00.0[A] -> GSI 16 (level, low) -> IRQ 16 ahci 0000:03:00.0: AHCI 0001.0000 32 slots 2 ports 3 Gbps 0x3 impl SATA mode ahci 0000:03:00.0: flags: 64bit ncq pm led clo pmp pio slum part PCI: Setting latency timer of device 0000:03:00.0 to 64 scsi6 : ahci scsi7 : ahci ata7: SATA max UDMA/133 abar m8192@0xea000000 port 0xea000100 irq 16 ata8: SATA max UDMA/133 abar m8192@0xea000000 port 0xea000180 irq 16 ata7: SATA link up 3.0 Gbps (SStatus 123 SControl 300) ata7.00: ATA-8: WDC WD5000AAKS-00YGA0, 12.01C02, max UDMA/133 ata7.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32) ata7.00: configured for UDMA/133 ata8: SATA link down (SStatus 0 SControl 300) scsi 6:0:0:0: Direct-Access ATA WDC WD5000AAKS-0 12.0 PQ: 0 ANSI: 5 sd 6:0:0:0: [sdb] 976773168 512-byte hardware sectors (500108 MB) sd 6:0:0:0: [sdb] Write Protect is off sd 6:0:0:0: [sdb] Mode Sense: 00 3a 00 00 sd 6:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sd 6:0:0:0: [sdb] 976773168 512-byte hardware sectors (500108 MB) sd 6:0:0:0: [sdb] Write Protect is off sd 6:0:0:0: [sdb] Mode Sense: 00 3a 00 00 sd 6:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sdb: sdb1 sdb2 sdb4 < sdb5 sdb6 sdb7 > sd 6:0:0:0: [sdb] Attached SCSI disk PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:PS2M] at 0x60,0x64 irq 1,12 serio: i8042 KBD port at 0x60,0x64 irq 1 serio: i8042 AUX port at 0x60,0x64 irq 12 mice: PS/2 mouse device common for all mice md: raid1 personality registered for level 1 device-mapper: ioctl: 4.13.0-ioctl (2007-10-18) initialised: dm-devel@redhat.com cpuidle: using governor ladder cpuidle: using governor menu TCP cubic registered Starting balanced_irq input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0 Using IPI No-Shortcut mode md: Autodetecting RAID arrays. md: Scanned 0 and added 0 devices. md: autorun ... md: ... autorun DONE. md: Loading md0: /dev/sda5 md: bind<sda5> md: bind<sdb5> md: md0: raid array is not clean -- starting background reconstruction raid1: raid set md0 active with 2 out of 2 mirrors md: resync of RAID array md0 md: minimum _guaranteed_ speed: 1000 KB/sec/disk. md: using maximum available idle IO bandwidth (but not more than 200000 KB/sec) for resync. md: using 128k window, over a total of 10008384 blocks. EXT3-fs: INFO: recovery required on readonly filesystem. EXT3-fs: write access will be enabled during recovery. kjournald starting. Commit interval 5 seconds EXT3-fs: recovery complete. EXT3-fs: mounted filesystem with ordered data mode. VFS: Mounted root (ext3 filesystem) readonly. Freeing unused kernel memory: 220k freed NET: Registered protocol family 1 Linux agpgart interface v0.103 input: Power Button (FF) as /devices/virtual/input/input1 ACPI: Power Button (FF) [PWRF] input: Power Button (CM) as /devices/virtual/input/input2 ACPI: Power Button (CM) [PWRB] sd 0:0:0:0: Attached scsi generic sg0 type 0 sd 6:0:0:0: Attached scsi generic sg1 type 0 usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub ACPI: ACPI0007:00 is registered as cooling_device0 ACPI: Processor [CPU0] (supports 8 throttling states) ACPI: SSDT BFEE8280, 0087 (r1 PmRef Cpu1Ist 3000 INTL 20040311) usbcore: registered new device driver usb ACPI: ACPI0007:01 is registered as cooling_device1 ACPI: Processor [CPU1] (supports 8 throttling states) ACPI: SSDT BFEE8310, 0087 (r1 PmRef Cpu2Ist 3000 INTL 20040311) ACPI: ACPI0007:02 is registered as cooling_device2 ACPI: Processor [CPU2] (supports 8 throttling states) ACPI: SSDT BFEE83A0, 0087 (r1 PmRef Cpu3Ist 3000 INTL 20040311) ACPI: ACPI0007:03 is registered as cooling_device3 ACPI: Processor [CPU3] (supports 8 throttling states) r8169 Gigabit Ethernet driver 2.2LK loaded ACPI: PCI Interrupt 0000:04:00.0[A] -> GSI 17 (level, low) -> IRQ 17 PCI: Setting latency timer of device 0000:04:00.0 to 64 r8169 0000:04:00.0: no MSI. Back to INTx. eth0: RTL8168b/8111b at 0xf885a000, 00:1a:4d:58:a3:54, XID 38000000 IRQ 17 ACPI: PCI Interrupt 0000:05:06.0[A] -> GSI 18 (level, low) -> IRQ 18 ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=[18] MMIO=[ea104000-ea1047ff] Max Packet=[2048] IR/IT contexts=[4/8] USB Universal Host Controller Interface driver v3.0 ACPI: PCI Interrupt 0000:00:1a.0[A] -> GSI 16 (level, low) -> IRQ 16 PCI: Setting latency timer of device 0000:00:1a.0 to 64 uhci_hcd 0000:00:1a.0: UHCI Host Controller uhci_hcd 0000:00:1a.0: new USB bus registered, assigned bus number 1 Uniform Multi-Platform E-IDE driver uhci_hcd 0000:00:1a.0: irq 16, io base 0x0000e100 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx ACPI: PCI Interrupt 0000:00:1a.1[B] -> GSI 21 (level, low) -> IRQ 21 PCI: Setting latency timer of device 0000:00:1a.1 to 64 uhci_hcd 0000:00:1a.1: UHCI Host Controller uhci_hcd 0000:00:1a.1: new USB bus registered, assigned bus number 2 uhci_hcd 0000:00:1a.1: irq 21, io base 0x0000e200 usb usb2: configuration #1 chosen from 1 choice hub 2-0:1.0: USB hub found hub 2-0:1.0: 2 ports detected ACPI: PCI Interrupt 0000:00:1a.2[C] -> GSI 18 (level, low) -> IRQ 18 PCI: Setting latency timer of device 0000:00:1a.2 to 64 uhci_hcd 0000:00:1a.2: UHCI Host Controller uhci_hcd 0000:00:1a.2: new USB bus registered, assigned bus number 3 uhci_hcd 0000:00:1a.2: irq 18, io base 0x0000e000 usb usb3: configuration #1 chosen from 1 choice hub 3-0:1.0: USB hub found hub 3-0:1.0: 2 ports detected ACPI: PCI Interrupt 0000:00:1d.0[A] -> GSI 23 (level, low) -> IRQ 23 PCI: Setting latency timer of device 0000:00:1d.0 to 64 uhci_hcd 0000:00:1d.0: UHCI Host Controller uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 4 uhci_hcd 0000:00:1d.0: irq 23, io base 0x0000e300 usb usb4: configuration #1 chosen from 1 choice hub 4-0:1.0: USB hub found hub 4-0:1.0: 2 ports detected ACPI: PCI Interrupt 0000:00:1d.1[B] -> GSI 19 (level, low) -> IRQ 19 PCI: Setting latency timer of device 0000:00:1d.1 to 64 uhci_hcd 0000:00:1d.1: UHCI Host Controller uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 5 uhci_hcd 0000:00:1d.1: irq 19, io base 0x0000e400 usb usb5: configuration #1 chosen from 1 choice hub 5-0:1.0: USB hub found hub 5-0:1.0: 2 ports detected ACPI: PCI Interrupt 0000:00:1d.2[C] -> GSI 18 (level, low) -> IRQ 18 PCI: Setting latency timer of device 0000:00:1d.2 to 64 uhci_hcd 0000:00:1d.2: UHCI Host Controller uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 6 uhci_hcd 0000:00:1d.2: irq 18, io base 0x0000e500 usb usb6: configuration #1 chosen from 1 choice hub 6-0:1.0: USB hub found hub 6-0:1.0: 2 ports detected ACPI: PCI Interrupt 0000:00:1f.3[C] -> GSI 18 (level, low) -> IRQ 18 ACPI: PCI Interrupt 0000:00:1a.7[C] -> GSI 18 (level, low) -> IRQ 18 PCI: Setting latency timer of device 0000:00:1a.7 to 64 ehci_hcd 0000:00:1a.7: EHCI Host Controller ehci_hcd 0000:00:1a.7: new USB bus registered, assigned bus number 7 PCI: cache line size of 32 is not supported by device 0000:00:1a.7 ehci_hcd 0000:00:1a.7: irq 18, io mem 0xea205000 ehci_hcd 0000:00:1a.7: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004 usb usb7: configuration #1 chosen from 1 choice hub 7-0:1.0: USB hub found hub 7-0:1.0: 6 ports detected ACPI: PCI Interrupt 0000:00:1d.7[A] -> GSI 23 (level, low) -> IRQ 23 PCI: Setting latency timer of device 0000:00:1d.7 to 64 ehci_hcd 0000:00:1d.7: EHCI Host Controller ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 8 PCI: cache line size of 32 is not supported by device 0000:00:1d.7 ehci_hcd 0000:00:1d.7: irq 23, io mem 0xea204000 ehci_hcd 0000:00:1d.7: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004 usb usb8: configuration #1 chosen from 1 choice hub 8-0:1.0: USB hub found hub 8-0:1.0: 6 ports detected ACPI: PCI Interrupt 0000:00:1b.0[A] -> GSI 22 (level, low) -> IRQ 22 PCI: Setting latency timer of device 0000:00:1b.0 to 64 hda_codec: Unknown model for ALC882, trying auto-probe from BIOS... JMB: IDE controller (0x197b:0x2363 rev 0x02) at PCI slot 0000:03:00.1 ACPI: PCI Interrupt 0000:03:00.1[B] -> GSI 17 (level, low) -> IRQ 17 JMB: 100% native mode on irq 17 ide0: BM-DMA at 0xc400-0xc407, BIOS settings: hda:PIO, hdb:PIO ide1: BM-DMA at 0xc408-0xc40f, BIOS settings: hdc:DMA, hdd:DMA Probing IDE interface ide0... ieee1394: Host added: ID:BUS[0-00:1023] GUID[00cace7400001a4d] hda: PIONEER DVD-RW DVR-115D, ATAPI CD/DVD-ROM drive hda: host max PIO5 wanted PIO255(auto-tune) selected PIO4 hda: UDMA/66 mode selected Probing IDE interface ide1... ide0 at 0xc000-0xc007,0xc102 on irq 17 hda: ATAPI 126X DVD-ROM DVD-R CD-R/RW drive, 2000kB Cache Uniform CD-ROM driver Revision: 3.20 EXT3 FS on md0, internal journal input: PC Speaker as /devices/platform/pcspkr/input/input3 input: ImPS/2 Generic Wheel Mouse as /devices/platform/i8042/serio1/input/input4 parport_pc 00:08: reported by Plug and Play ACPI parport0: PC-style at 0x378 (0x778), irq 7 [PCSPP,TRISTATE] lp0: using parport0 (interrupt-driven). lp0: console ready NET: Registered protocol family 10 lo: Disabled Privacy Extensions it87: Found IT8718F chip at 0x290, revision 4 it87: in3 is VCC (+5V) coretemp coretemp.0: Using undocumented features, absolute temperature might be wrong! coretemp coretemp.1: Using undocumented features, absolute temperature might be wrong! coretemp coretemp.2: Using undocumented features, absolute temperature might be wrong! coretemp coretemp.3: Using undocumented features, absolute temperature might be wrong! loop: loaded (max 8 devices) Adding 4008172k swap on /dev/loop7. Priority:10 extents:1 across:4008172k Adding 4008172k swap on /dev/loop6. Priority:10 extents:1 across:4008172k md: md1 stopped. md: bind<sdb7> md: bind<sda7> raid1: raid set md1 active with 2 out of 2 mirrors r8169: eth0: link up r8169: eth0: link up eth0: no IPv6 routers present md: md0: resync done. RAID1 conf printout: --- wd:2 rd:2 disk 0, wo:0, o:1, dev:sda5 disk 1, wo:0, o:1, dev:sdb5 hda: cdrom_newpc_intr: The drive appears confused (ireason = 0x01). Trying to recover by ending request. hda: cdrom_newpc_intr: The drive appears confused (ireason = 0x01). Trying to recover by ending request. ISO 9660 Extensions: Microsoft Joliet Level 3 ISO 9660 Extensions: RRIP_1991A ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: IDE cdrom problem with PLEXTOR DVDR PX-608AL 2008-02-25 1:58 ` Brad Rosser @ 2008-02-25 5:34 ` Borislav Petkov 2008-02-25 5:57 ` Brad Rosser 2008-02-25 13:56 ` Bartlomiej Zolnierkiewicz 1 sibling, 1 reply; 18+ messages in thread From: Borislav Petkov @ 2008-02-25 5:34 UTC (permalink / raw) To: Brad Rosser; +Cc: bzolnier, linux-ide, linux-kernel On Mon, Feb 25, 2008 at 11:58:57AM +1000, Brad Rosser wrote: > On Mon, Feb 25, 2008 at 3:34 AM, Borislav Petkov > <petkovbb@googlemail.com> wrote: > > On Sun, Feb 24, 2008 at 03:38:34PM +1000, Brad Rosser wrote: > > > > > > There's nothing in the bios that allows me to move one away from > > > the other. I can 'reserve' or block IRQs, but that only shifts them > > > both to another interrupt. > > > > well the driver probes the bios for that data and assigns the irq line it gets > > from it. > > Oh. I thought from all the 'IRQ routing/balancing' and the like in the > kernel there might be a way to switch things around, give the > Realtek driver a different IRQ than the one being used by the ide driver. > Just my crossed-fingers hope. > > > Can you please send me your whole boot log of 2.6.25-rc2? Thanks. > > It's attached as file 'dmesg.bug.out'. > > > since your cdrom seems to be hda from what i've seen above, try booting with > > 'hda=noprobe' or maybe 'hda=none' to see which one turns the probing off for > > you. See Documentation/ide.txt for details. > > I tried both options, but in both cases there was no difference; the ide_cd_mod > module was still loaded and the 'confused' message still popped up. > > I did four boots/tests of the 2.6.25-rc2 kernel, with and without those > boot parameters ... on all four I had the 'confused' message several times: > > hda: cdrom_newpc_intr: The drive appears confused (ireason = 0x01). > Trying to recover by ending request. Well, this sounds strange. Are you sure you're entering the boot options correctly on the kernel command line? Which is your boot loader? I just booted my machine with 'hdc=noprobe' (hdc is my cdrom drive) and here's what i get: ... [ 0.304774] Probing IDE interface ide0... [ 0.569359] hdb: SAMSUNG SP2014N, ATA DISK drive [ 0.613977] Switched to NOHz mode on CPU #1 [ 0.773368] Switched to NOHz mode on CPU #0 [ 0.874486] hda: QUANTUM FIREBALLlct10 20, ATA DISK drive [ 0.874506] hda: host max PIO4 wanted PIO255(auto-tune) selected PIO4 [ 0.874506] hda: drive side 80-wire cable detection failed, limiting max speed to UDMA33 [ 0.874506] hda: UDMA/33 mode selected [ 0.874533] hdb: host max PIO4 wanted PIO255(auto-tune) selected PIO4 [ 0.874620] hdb: UDMA/100 mode selected [ 0.874744] Probing IDE interface ide1... --> [ 0.877750] hdc: ide_wait_not_busy() skipped --> [ 1.136180] hdd: IC35L120AVV207-0, ATA DISK drive [ 1.186959] hdd: host max PIO4 wanted PIO255(auto-tune) selected PIO4 [ 1.186959] hdd: host side 80-wire cable detection failed, limiting max speed to UDMA33 [ 1.186959] hdd: UDMA/33 mode selected [ 1.186959] ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 [ 1.194971] ide1 at 0x170-0x177,0x376 on irq 15 [ 1.206876] Probing IDE interface ide2... [ 1.720661] Probing IDE interface ide3... [ 2.233564] Probing IDE interface ide4... [ 2.746462] Probing IDE interface ide5... [ 3.259395] hda: max request size: 128KiB [ 3.259571] hda: 39876480 sectors (20416 MB) w/418KiB Cache, CHS=39560/16/63 [ 3.259571] hda: cache flushes not supported [ 3.259571] hda: hda1 hda2 hda3 [ 3.269291] hdb: max request size: 512KiB [ 3.269511] hdb: 390721968 sectors (200049 MB) w/8192KiB Cache, CHS=24321/255/63 [ 3.269962] hdb: cache flushes supported [ 3.270078] hdb: hdb1 [ 3.280914] hdd: max request size: 512KiB [ 3.281247] hdd: 241254720 sectors (123522 MB) w/1821KiB Cache, CHS=16383/255/63 [ 3.281729] hdd: cache flushes supported [ 3.281729] hdd: hdd1 [ 3.296760] PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:PS2M] at 0x60,0x64 irq 1,12 ... so it seems you should check whether your kernel is receiving the 'hda=noprobe' boot option at all, or something along that path is going wrong... [...] > I tried to apply the patch but failed; I probably did something wrong. > I deleted everything in your message above 'Index: b/drivers/ide/ide-cd.c' > and ran 'patch --dry-run -b -p1 < ../bart_patch'. This is part of my script > log: > > root:/usr/src/linux-2.6.25-rc2# pwd > /usr/src/linux-2.6.25-rc2 > root:/usr/src/linux-2.6.25-rc2# cat ../bart_patch > Index: b/drivers/ide/ide-cd.c > =================================================================== > --- a/drivers/ide/ide-cd.c > +++ b/drivers/ide/ide-cd.c > @@ -670,8 +670,8 @@ static void cdrom_buffer_sectors (ide_dr > * and attempt to recover if there are problems. Returns 0 if everything's > ... > ... > root:/usr/src/linux-2.6.25-rc2# patch --dry-run -b -p1 < ../bart_patch > patching file drivers/ide/ide-cd.c > Hunk #1 FAILED at 670. > Hunk #2 FAILED at 701. > Hunk #3 FAILED at 1074. > Hunk #4 FAILED at 1104. > 4 out of 4 hunks FAILED -- saving rejects to file drivers/ide/ide-cd.c.rej > > Since it found drivers/ide/ide-cd.c I guess I got the '-p' level right (?), > and that's about the sum total of my 'patch' experience to date. > Sorry. Can you tell me what I did wrong? are you sure you're _really_ using 2.6.25-rc2? Applying the patch against that kernel works just fine, no fuzziness or even rejects. Care to try out on a fresh kernel source tarball? After all, building a kernel with your quad core cpu won't take that long :-) when using make -j8 or something in that order. -- Regards/Gruß, Boris. ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: IDE cdrom problem with PLEXTOR DVDR PX-608AL 2008-02-25 5:34 ` Borislav Petkov @ 2008-02-25 5:57 ` Brad Rosser 2008-02-25 14:45 ` Borislav Petkov 0 siblings, 1 reply; 18+ messages in thread From: Brad Rosser @ 2008-02-25 5:57 UTC (permalink / raw) To: petkovbb, Brad Rosser, bzolnier, linux-ide, linux-kernel [-- Attachment #1: Type: text/plain, Size: 2756 bytes --] Hi Boris, > Well, this sounds strange. Are you sure you're entering the boot options > correctly on the kernel command line? Which is your boot loader? I just booted > my machine with 'hdc=noprobe' (hdc is my cdrom drive) and here's what i get: > > ... > [ 0.304774] Probing IDE interface ide0... > [ 0.569359] hdb: SAMSUNG SP2014N, ATA DISK drive > [ 0.613977] Switched to NOHz mode on CPU #1 > [ 0.773368] Switched to NOHz mode on CPU #0 > [ 0.874486] hda: QUANTUM FIREBALLlct10 20, ATA DISK drive > [ 0.874506] hda: host max PIO4 wanted PIO255(auto-tune) selected PIO4 > [ 0.874506] hda: drive side 80-wire cable detection failed, limiting max speed to UDMA33 > [ 0.874506] hda: UDMA/33 mode selected > [ 0.874533] hdb: host max PIO4 wanted PIO255(auto-tune) selected PIO4 > [ 0.874620] hdb: UDMA/100 mode selected > [ 0.874744] Probing IDE interface ide1... > so it seems you should check whether your kernel is receiving the 'hda=noprobe' > boot option at all, or something along that path is going wrong... I'm entering the option 'hda=noprobe' (as one example) right after my boot label in LILO. The dmesg output I attached last time was a boot of straight 2.6.25-rc2 without any options; I've attached 'dmesg.noprobe.out' which is the result of a boot with 'hda=noprobe'. I must have done something stupid, but I can't see what; if you look at this line from the dmesg output: Kernel command line: BOOT_IMAGE=linux_2.6.25rc2 ro root=900 md=0,/dev/sda5,/dev/sdb5 hda=noprobe ... it would suggest the option 'hda=noprobe' was entered correctly? > > I tried to apply the patch but failed; I probably did something wrong. > > I deleted everything in your message above 'Index: b/drivers/ide/ide-cd.c' > > and ran 'patch --dry-run -b -p1 < ../bart_patch'. This is part of my script > > log: > > are you sure you're _really_ using 2.6.25-rc2? Applying the patch against that > kernel works just fine, no fuzziness or even rejects. Care to try out on a fresh > kernel source tarball? After all, building a kernel with your quad core cpu won't > take that long :-) when using make -j8 or something in that order. Heh. This is my first new machine in 8 years, and I couldn't wait to start using multiple cores. I was quick to discover the '-j' option ... but I only do '-j 4'. Anyway ... I'd downloaded the full baseline linux-2.6.24.tar.bz2, unpacked it, and then ran the patch patch-2.6.25-rc2.bz2 against it. That patch ran perfectly. And I was in the right directory when I ran Bart's patch, as I listed in my earlier e-mail! All indications were that I was running the 2.6.25-rc2 kernel as required, I thought. Well, I see that rc3 is out; maybe I'll give that a shot. Brad [-- Attachment #2: dmesg.noprobe.out --] [-- Type: application/octet-stream, Size: 30920 bytes --] Linux version 2.6.25-rc2 (root@krypton) (gcc version 4.1.2) #1 SMP Mon Feb 25 08:49:44 EST 2008 BIOS-provided physical RAM map: BIOS-e820: 0000000000000000 - 000000000009e800 (usable) BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved) BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved) BIOS-e820: 0000000000100000 - 00000000bfee0000 (usable) BIOS-e820: 00000000bfee0000 - 00000000bfee3000 (ACPI NVS) BIOS-e820: 00000000bfee3000 - 00000000bfef0000 (ACPI data) BIOS-e820: 00000000bfef0000 - 00000000bff00000 (reserved) BIOS-e820: 00000000e0000000 - 00000000e4000000 (reserved) BIOS-e820: 00000000fec00000 - 0000000100000000 (reserved) BIOS-e820: 0000000100000000 - 0000000140000000 (usable) 4224MB HIGHMEM available. 896MB LOWMEM available. Scan SMP from c0000000 for 1024 bytes. Scan SMP from c009fc00 for 1024 bytes. Scan SMP from c00f0000 for 65536 bytes. found SMP MP-table at [c00f53b0] 000f53b0 NX (Execute Disable) protection: active Entering add_active_range(0, 0, 1310720) 0 entries of 256 used Zone PFN ranges: DMA 0 -> 4096 Normal 4096 -> 229376 HighMem 229376 -> 1310720 Movable zone start PFN for each node early_node_map[1] active PFN ranges 0: 0 -> 1310720 On node 0 totalpages: 1310720 DMA zone: 32 pages used for memmap DMA zone: 0 pages reserved DMA zone: 4064 pages, LIFO batch:0 Normal zone: 1760 pages used for memmap Normal zone: 223520 pages, LIFO batch:31 HighMem zone: 8448 pages used for memmap HighMem zone: 1072896 pages, LIFO batch:31 Movable zone: 0 pages used for memmap DMI 2.4 present. ACPI: RSDP 000F6D90, 0014 (r0 GBT ) ACPI: RSDT BFEE3040, 003C (r1 GBT GBTUACPI 42302E31 GBTU 1010101) ACPI: FACP BFEE30C0, 0074 (r1 GBT GBTUACPI 42302E31 GBTU 1010101) ACPI: DSDT BFEE3180, 4A88 (r1 GBT GBTUACPI 1000 MSFT 100000C) ACPI: FACS BFEE0000, 0040 ACPI: HPET BFEE7D80, 0038 (r1 GBT GBTUACPI 42302E31 GBTU 98) ACPI: MCFG BFEE7E00, 003C (r1 GBT GBTUACPI 42302E31 GBTU 1010101) ACPI: APIC BFEE7C80, 0084 (r1 GBT GBTUACPI 42302E31 GBTU 1010101) ACPI: SSDT BFEE7E80, 015C (r1 PmRef Cpu0Ist 3000 INTL 20040311) ACPI: SSDT BFEE8430, 0275 (r1 PmRef CpuPm 3000 INTL 20040311) ACPI: PM-Timer IO Port: 0x408 ACPI: Local APIC address 0xfee00000 ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled) Processor #0 6:15 APIC version 20 ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled) Processor #1 6:15 APIC version 20 ACPI: LAPIC (acpi_id[0x02] lapic_id[0x03] enabled) Processor #3 6:15 APIC version 20 ACPI: LAPIC (acpi_id[0x03] lapic_id[0x02] enabled) Processor #2 6:15 APIC version 20 ACPI: LAPIC_NMI (acpi_id[0x00] dfl dfl lint[0x1]) ACPI: LAPIC_NMI (acpi_id[0x01] dfl dfl lint[0x1]) ACPI: LAPIC_NMI (acpi_id[0x02] dfl dfl lint[0x1]) ACPI: LAPIC_NMI (acpi_id[0x03] dfl dfl lint[0x1]) ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0]) IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-23 ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level) ACPI: IRQ0 used by override. ACPI: IRQ2 used by override. ACPI: IRQ9 used by override. Enabling APIC mode: Flat. Using 1 I/O APICs ACPI: HPET id: 0x8086a201 base: 0xfed00000 Using ACPI (MADT) for SMP configuration information Allocating PCI resources starting at c0000000 (gap: bff00000:20100000) Built 1 zonelists in Zone order, mobility grouping on. Total pages: 1300480 Kernel command line: BOOT_IMAGE=linux_2.6.25rc2 ro root=900 md=0,/dev/sda5,/dev/sdb5 hda=noprobe md: Will configure md0 (super-block) from /dev/sda5,/dev/sdb5, below. mapped APIC to ffffb000 (fee00000) mapped IOAPIC to ffffa000 (fec00000) Enabling fast FPU save and restore... done. Enabling unmasked SIMD FPU exception support... done. Initializing CPU#0 PID hash table entries: 4096 (order: 12, 16384 bytes) Detected 2400.053 MHz processor. Console: colour dummy device 80x25 console [tty0] enabled Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) Memory: 4147168k/5242880k available (1721k kernel code, 44868k reserved, 718k data, 220k init, 3275648k highmem) virtual kernel memory layout: fixmap : 0xfff81000 - 0xfffff000 ( 504 kB) pkmap : 0xffa00000 - 0xffc00000 (2048 kB) vmalloc : 0xf8800000 - 0xff9fe000 ( 113 MB) lowmem : 0xc0000000 - 0xf8000000 ( 896 MB) .init : 0xc0367000 - 0xc039e000 ( 220 kB) .data : 0xc02ae42c - 0xc0361e60 ( 718 kB) .text : 0xc0100000 - 0xc02ae42c (1721 kB) Checking if this processor honours the WP bit even in supervisor mode...Ok. CPA: page pool initialized 64 of 64 pages preallocated hpet clockevent registered Calibrating delay using timer specific routine.. 4802.64 BogoMIPS (lpj=2401322) Mount-cache hash table entries: 512 CPU: L1 I cache: 32K, L1 D cache: 32K CPU: L2 cache: 4096K CPU: Physical Processor ID: 0 CPU: Processor Core ID: 0 Intel machine check architecture supported. Intel machine check reporting enabled on CPU#0. using mwait in idle threads. Compat vDSO mapped to ffffe000. Checking 'hlt' instruction... OK. ACPI: Core revision 20070126 CPU0: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz stepping 0b Booting processor 1/1 ip 4000 Initializing CPU#1 Calibrating delay using timer specific routine.. 4799.99 BogoMIPS (lpj=2399995) CPU: L1 I cache: 32K, L1 D cache: 32K CPU: L2 cache: 4096K CPU: Physical Processor ID: 0 CPU: Processor Core ID: 1 Intel machine check architecture supported. Intel machine check reporting enabled on CPU#1. CPU1: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz stepping 0b Booting processor 2/2 ip 4000 Initializing CPU#2 Calibrating delay using timer specific routine.. 4800.01 BogoMIPS (lpj=2400009) CPU: L1 I cache: 32K, L1 D cache: 32K CPU: L2 cache: 4096K CPU: Physical Processor ID: 0 CPU: Processor Core ID: 2 Intel machine check architecture supported. Intel machine check reporting enabled on CPU#2. CPU2: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz stepping 0b Booting processor 3/3 ip 4000 Initializing CPU#3 Calibrating delay using timer specific routine.. 4800.00 BogoMIPS (lpj=2400004) CPU: L1 I cache: 32K, L1 D cache: 32K CPU: L2 cache: 4096K CPU: Physical Processor ID: 0 CPU: Processor Core ID: 3 Intel machine check architecture supported. Intel machine check reporting enabled on CPU#3. CPU3: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz stepping 0b Total of 4 processors activated (19202.66 BogoMIPS). ENABLING IO-APIC IRQs ..TIMER: vector=0x31 apic1=0 pin1=2 apic2=-1 pin2=-1 checking TSC synchronization [CPU#0 -> CPU#1]: passed. checking TSC synchronization [CPU#0 -> CPU#2]: passed. checking TSC synchronization [CPU#0 -> CPU#3]: passed. Brought up 4 CPUs net_namespace: 548 bytes NET: Registered protocol family 16 ACPI: bus type pci registered PCI: Using MMCONFIG for extended config space PCI: Using configuration type 1 Setting up standard PCI resources ACPI: EC: Look up EC in DSDT ACPI: Interpreter enabled ACPI: (supports S0 S3 S5) ACPI: Using IOAPIC for interrupt routing ACPI: PCI Root Bridge [PCI0] (0000:00) pci 0000:00:1f.0: quirk: region 0400-047f claimed by ICH6 ACPI/GPIO/TCO pci 0000:00:1f.0: quirk: region 0480-04bf claimed by ICH6 GPIO PCI: Transparent bridge - 0000:00:1e.0 ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PEX0._PRT] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PEX4._PRT] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PEX5._PRT] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.HUB0._PRT] ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 9 10 *11 12 14 15) ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 9 10 11 12 14 *15) ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 *5 6 7 9 10 11 12 14 15) ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 9 *10 11 12 14 15) ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled. ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 *9 10 11 12 14 15) ACPI: PCI Interrupt Link [LNK0] (IRQs 3 4 5 6 7 9 10 11 12 *14 15) ACPI: PCI Interrupt Link [LNK1] (IRQs *3 4 5 6 7 9 10 11 12 14 15) Linux Plug and Play Support v0.97 (c) Adam Belay pnp: PnP ACPI init ACPI: bus type pnp registered pnpacpi: exceeded the max number of mem resources: 12 pnp: PnP ACPI: found 15 devices ACPI: ACPI bus type pnp unregistered SCSI subsystem initialized libata version 3.00 loaded. PCI: Using ACPI for IRQ routing PCI: If a device doesn't work, try "pci=routeirq". If it helps, post a report Time: tsc clocksource has been installed. system 00:01: ioport range 0x4d0-0x4d1 has been reserved system 00:01: ioport range 0x290-0x29f has been reserved system 00:01: ioport range 0x800-0x87f has been reserved system 00:01: ioport range 0x290-0x294 has been reserved system 00:01: ioport range 0x880-0x88f has been reserved system 00:0b: ioport range 0x400-0x4bf could not be reserved system 00:0c: iomem range 0xe0000000-0xe3ffffff could not be reserved system 00:0d: iomem range 0xd5000-0xd7fff has been reserved system 00:0d: iomem range 0xf0000-0xf7fff could not be reserved system 00:0d: iomem range 0xf8000-0xfbfff could not be reserved system 00:0d: iomem range 0xfc000-0xfffff could not be reserved system 00:0d: iomem range 0xbfee0000-0xbfefffff could not be reserved system 00:0d: iomem range 0x0-0x9ffff could not be reserved system 00:0d: iomem range 0x100000-0xbfedffff could not be reserved system 00:0d: iomem range 0xfec00000-0xfec00fff could not be reserved system 00:0d: iomem range 0xfed10000-0xfed1dfff could not be reserved system 00:0d: iomem range 0xfed20000-0xfed8ffff could not be reserved system 00:0d: iomem range 0xfee00000-0xfee00fff could not be reserved system 00:0d: iomem range 0xffb00000-0xffb7ffff could not be reserved PCI: Bridge: 0000:00:01.0 IO window: b000-bfff MEM window: 0xe4000000-0xe7ffffff PREFETCH window: 0x00000000c0000000-0x00000000dfffffff PCI: Bridge: 0000:00:1c.0 IO window: a000-afff MEM window: disabled. PREFETCH window: disabled. PCI: Bridge: 0000:00:1c.4 IO window: c000-cfff MEM window: 0xea000000-0xea0fffff PREFETCH window: disabled. PCI: Bridge: 0000:00:1c.5 IO window: d000-dfff MEM window: 0xe8000000-0xe9ffffff PREFETCH window: disabled. PCI: Bridge: 0000:00:1e.0 IO window: disabled. MEM window: 0xea100000-0xea1fffff PREFETCH window: disabled. ACPI: PCI Interrupt 0000:00:01.0[A] -> GSI 16 (level, low) -> IRQ 16 PCI: Setting latency timer of device 0000:00:01.0 to 64 ACPI: PCI Interrupt 0000:00:1c.0[A] -> GSI 16 (level, low) -> IRQ 16 PCI: Setting latency timer of device 0000:00:1c.0 to 64 ACPI: PCI Interrupt 0000:00:1c.4[A] -> GSI 16 (level, low) -> IRQ 16 PCI: Setting latency timer of device 0000:00:1c.4 to 64 ACPI: PCI Interrupt 0000:00:1c.5[B] -> GSI 17 (level, low) -> IRQ 17 PCI: Setting latency timer of device 0000:00:1c.5 to 64 PCI: Setting latency timer of device 0000:00:1e.0 to 64 NET: Registered protocol family 2 IP route cache hash table entries: 32768 (order: 5, 131072 bytes) TCP established hash table entries: 131072 (order: 8, 1048576 bytes) TCP bind hash table entries: 65536 (order: 7, 524288 bytes) TCP: Hash tables configured (established 131072 bind 65536) TCP reno registered highmem bounce pool size: 64 pages io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered (default) pci 0000:01:00.0: Boot video device PCI: Setting latency timer of device 0000:00:01.0 to 64 assign_interrupt_mode Found MSI capability Allocate Port Service[0000:00:01.0:pcie00] Allocate Port Service[0000:00:01.0:pcie03] PCI: Setting latency timer of device 0000:00:1c.0 to 64 assign_interrupt_mode Found MSI capability Allocate Port Service[0000:00:1c.0:pcie00] Allocate Port Service[0000:00:1c.0:pcie02] Allocate Port Service[0000:00:1c.0:pcie03] PCI: Setting latency timer of device 0000:00:1c.4 to 64 assign_interrupt_mode Found MSI capability Allocate Port Service[0000:00:1c.4:pcie00] Allocate Port Service[0000:00:1c.4:pcie02] Allocate Port Service[0000:00:1c.4:pcie03] PCI: Setting latency timer of device 0000:00:1c.5 to 64 assign_interrupt_mode Found MSI capability Allocate Port Service[0000:00:1c.5:pcie00] Allocate Port Service[0000:00:1c.5:pcie02] Allocate Port Service[0000:00:1c.5:pcie03] vesafb: framebuffer at 0xe5000000, mapped to 0xf8880000, using 3072k, total 14336k vesafb: mode is 1024x768x16, linelength=2048, pages=1 vesafb: protected mode interface info at c000:b5c0 vesafb: pmi: set display start = c00cb623, set palette = c00cb67e vesafb: pmi: ports = 3b4 3b5 3ba 3c0 3c1 3c4 3c5 3c6 3c7 3c8 3c9 3cc 3ce 3cf 3d0 3d1 3d2 3d3 3d4 3d5 3da vesafb: scrolling: redraw vesafb: Truecolor: size=0:5:6:5, shift=0:11:5:0 Console: switching to colour frame buffer device 128x48 fb0: VESA VGA frame buffer device Real Time Clock Driver v1.12ac brd: module loaded Loading iSCSI transport class v2.0-868. Driver 'sd' needs updating - please use bus_type methods ahci 0000:00:1f.2: version 3.0 ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 19 (level, low) -> IRQ 19 Switched to high resolution mode on CPU 1 Switched to high resolution mode on CPU 2 Switched to high resolution mode on CPU 3 Switched to high resolution mode on CPU 0 ahci 0000:00:1f.2: AHCI 0001.0200 32 slots 6 ports 3 Gbps 0x3f impl SATA mode ahci 0000:00:1f.2: flags: 64bit ncq sntf stag pm led clo pmp pio slum part PCI: Setting latency timer of device 0000:00:1f.2 to 64 scsi0 : ahci scsi1 : ahci scsi2 : ahci scsi3 : ahci scsi4 : ahci scsi5 : ahci ata1: SATA max UDMA/133 abar m2048@0xea206000 port 0xea206100 irq 19 ata2: SATA max UDMA/133 abar m2048@0xea206000 port 0xea206180 irq 19 ata3: SATA max UDMA/133 abar m2048@0xea206000 port 0xea206200 irq 19 ata4: SATA max UDMA/133 abar m2048@0xea206000 port 0xea206280 irq 19 ata5: SATA max UDMA/133 abar m2048@0xea206000 port 0xea206300 irq 19 ata6: SATA max UDMA/133 abar m2048@0xea206000 port 0xea206380 irq 19 ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300) ata1.00: HPA detected: current 976771055, native 976773168 ata1.00: ATA-8: WDC WD5000AAKS-00YGA0, 12.01C02, max UDMA/133 ata1.00: 976771055 sectors, multi 0: LBA48 NCQ (depth 31/32) ata1.00: configured for UDMA/133 ata2: SATA link down (SStatus 0 SControl 300) ata3: SATA link down (SStatus 0 SControl 300) ata4: SATA link down (SStatus 0 SControl 300) ata5: SATA link down (SStatus 0 SControl 300) ata6: SATA link down (SStatus 0 SControl 300) scsi 0:0:0:0: Direct-Access ATA WDC WD5000AAKS-0 12.0 PQ: 0 ANSI: 5 sd 0:0:0:0: [sda] 976771055 512-byte hardware sectors (500107 MB) sd 0:0:0:0: [sda] Write Protect is off sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sd 0:0:0:0: [sda] 976771055 512-byte hardware sectors (500107 MB) sd 0:0:0:0: [sda] Write Protect is off sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sda: sda1 sda2 sda4 < sda5 sda6 sda7 > sd 0:0:0:0: [sda] Attached SCSI disk ACPI: PCI Interrupt 0000:03:00.0[A] -> GSI 16 (level, low) -> IRQ 16 ahci 0000:03:00.0: AHCI 0001.0000 32 slots 2 ports 3 Gbps 0x3 impl SATA mode ahci 0000:03:00.0: flags: 64bit ncq pm led clo pmp pio slum part PCI: Setting latency timer of device 0000:03:00.0 to 64 scsi6 : ahci scsi7 : ahci ata7: SATA max UDMA/133 abar m8192@0xea000000 port 0xea000100 irq 16 ata8: SATA max UDMA/133 abar m8192@0xea000000 port 0xea000180 irq 16 ata7: SATA link up 3.0 Gbps (SStatus 123 SControl 300) ata7.00: ATA-8: WDC WD5000AAKS-00YGA0, 12.01C02, max UDMA/133 ata7.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32) ata7.00: configured for UDMA/133 ata8: SATA link down (SStatus 0 SControl 300) scsi 6:0:0:0: Direct-Access ATA WDC WD5000AAKS-0 12.0 PQ: 0 ANSI: 5 sd 6:0:0:0: [sdb] 976773168 512-byte hardware sectors (500108 MB) sd 6:0:0:0: [sdb] Write Protect is off sd 6:0:0:0: [sdb] Mode Sense: 00 3a 00 00 sd 6:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sd 6:0:0:0: [sdb] 976773168 512-byte hardware sectors (500108 MB) sd 6:0:0:0: [sdb] Write Protect is off sd 6:0:0:0: [sdb] Mode Sense: 00 3a 00 00 sd 6:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sdb: sdb1 sdb2 sdb4 < sdb5 sdb6 sdb7 > sd 6:0:0:0: [sdb] Attached SCSI disk PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:PS2M] at 0x60,0x64 irq 1,12 serio: i8042 KBD port at 0x60,0x64 irq 1 serio: i8042 AUX port at 0x60,0x64 irq 12 mice: PS/2 mouse device common for all mice md: raid1 personality registered for level 1 device-mapper: ioctl: 4.13.0-ioctl (2007-10-18) initialised: dm-devel@redhat.com cpuidle: using governor ladder cpuidle: using governor menu TCP cubic registered Starting balanced_irq input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0 Using IPI No-Shortcut mode md: Autodetecting RAID arrays. md: Scanned 0 and added 0 devices. md: autorun ... md: ... autorun DONE. md: Loading md0: /dev/sda5 md: bind<sda5> md: bind<sdb5> raid1: raid set md0 active with 2 out of 2 mirrors kjournald starting. Commit interval 5 seconds EXT3-fs: mounted filesystem with ordered data mode. VFS: Mounted root (ext3 filesystem) readonly. Freeing unused kernel memory: 220k freed NET: Registered protocol family 1 sd 0:0:0:0: Attached scsi generic sg0 type 0 sd 6:0:0:0: Attached scsi generic sg1 type 0 Linux agpgart interface v0.103 usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub ACPI: ACPI0007:00 is registered as cooling_device0 ACPI: Processor [CPU0] (supports 8 throttling states) ACPI: SSDT BFEE8280, 0087 (r1 PmRef Cpu1Ist 3000 INTL 20040311) ACPI: ACPI0007:01 is registered as cooling_device1 ACPI: Processor [CPU1] (supports 8 throttling states) ACPI: SSDT BFEE8310, 0087 (r1 PmRef Cpu2Ist 3000 INTL 20040311) ACPI: ACPI0007:02 is registered as cooling_device2 ACPI: Processor [CPU2] (supports 8 throttling states) ACPI: SSDT BFEE83A0, 0087 (r1 PmRef Cpu3Ist 3000 INTL 20040311) usbcore: registered new device driver usb ACPI: ACPI0007:03 is registered as cooling_device3 ACPI: Processor [CPU3] (supports 8 throttling states) input: Power Button (FF) as /devices/virtual/input/input1 ACPI: Power Button (FF) [PWRF] input: Power Button (CM) as /devices/virtual/input/input2 ACPI: Power Button (CM) [PWRB] USB Universal Host Controller Interface driver v3.0 ACPI: PCI Interrupt 0000:00:1a.0[A] -> GSI 16 (level, low) -> IRQ 16 PCI: Setting latency timer of device 0000:00:1a.0 to 64 uhci_hcd 0000:00:1a.0: UHCI Host Controller uhci_hcd 0000:00:1a.0: new USB bus registered, assigned bus number 1 uhci_hcd 0000:00:1a.0: irq 16, io base 0x0000e100 Uniform Multi-Platform E-IDE driver usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx ACPI: PCI Interrupt 0000:00:1a.1[B] -> GSI 21 (level, low) -> IRQ 21 PCI: Setting latency timer of device 0000:00:1a.1 to 64 uhci_hcd 0000:00:1a.1: UHCI Host Controller uhci_hcd 0000:00:1a.1: new USB bus registered, assigned bus number 2 uhci_hcd 0000:00:1a.1: irq 21, io base 0x0000e200 usb usb2: configuration #1 chosen from 1 choice hub 2-0:1.0: USB hub found hub 2-0:1.0: 2 ports detected ACPI: PCI Interrupt 0000:00:1a.2[C] -> GSI 18 (level, low) -> IRQ 18 PCI: Setting latency timer of device 0000:00:1a.2 to 64 uhci_hcd 0000:00:1a.2: UHCI Host Controller uhci_hcd 0000:00:1a.2: new USB bus registered, assigned bus number 3 uhci_hcd 0000:00:1a.2: irq 18, io base 0x0000e000 usb usb3: configuration #1 chosen from 1 choice hub 3-0:1.0: USB hub found hub 3-0:1.0: 2 ports detected ACPI: PCI Interrupt 0000:00:1d.0[A] -> GSI 23 (level, low) -> IRQ 23 PCI: Setting latency timer of device 0000:00:1d.0 to 64 uhci_hcd 0000:00:1d.0: UHCI Host Controller uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 4 uhci_hcd 0000:00:1d.0: irq 23, io base 0x0000e300 usb usb4: configuration #1 chosen from 1 choice hub 4-0:1.0: USB hub found hub 4-0:1.0: 2 ports detected ACPI: PCI Interrupt 0000:00:1d.1[B] -> GSI 19 (level, low) -> IRQ 19 PCI: Setting latency timer of device 0000:00:1d.1 to 64 uhci_hcd 0000:00:1d.1: UHCI Host Controller uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 5 uhci_hcd 0000:00:1d.1: irq 19, io base 0x0000e400 usb usb5: configuration #1 chosen from 1 choice hub 5-0:1.0: USB hub found hub 5-0:1.0: 2 ports detected ACPI: PCI Interrupt 0000:00:1d.2[C] -> GSI 18 (level, low) -> IRQ 18 PCI: Setting latency timer of device 0000:00:1d.2 to 64 uhci_hcd 0000:00:1d.2: UHCI Host Controller uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 6 uhci_hcd 0000:00:1d.2: irq 18, io base 0x0000e500 usb usb6: configuration #1 chosen from 1 choice hub 6-0:1.0: USB hub found hub 6-0:1.0: 2 ports detected r8169 Gigabit Ethernet driver 2.2LK loaded ACPI: PCI Interrupt 0000:00:1a.7[C] -> GSI 18 (level, low) -> IRQ 18 PCI: Setting latency timer of device 0000:00:1a.7 to 64 ehci_hcd 0000:00:1a.7: EHCI Host Controller ehci_hcd 0000:00:1a.7: new USB bus registered, assigned bus number 7 PCI: cache line size of 32 is not supported by device 0000:00:1a.7 ehci_hcd 0000:00:1a.7: irq 18, io mem 0xea205000 ehci_hcd 0000:00:1a.7: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004 usb usb7: configuration #1 chosen from 1 choice hub 7-0:1.0: USB hub found hub 7-0:1.0: 6 ports detected ACPI: PCI Interrupt 0000:04:00.0[A] -> GSI 17 (level, low) -> IRQ 17 PCI: Setting latency timer of device 0000:04:00.0 to 64 r8169 0000:04:00.0: no MSI. Back to INTx. eth0: RTL8168b/8111b at 0xf8bf4000, 00:1a:4d:58:a3:54, XID 38000000 IRQ 17 ACPI: PCI Interrupt 0000:00:1d.7[A] -> GSI 23 (level, low) -> IRQ 23 PCI: Setting latency timer of device 0000:00:1d.7 to 64 ehci_hcd 0000:00:1d.7: EHCI Host Controller ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 8 PCI: cache line size of 32 is not supported by device 0000:00:1d.7 ehci_hcd 0000:00:1d.7: irq 23, io mem 0xea204000 ehci_hcd 0000:00:1d.7: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004 usb usb8: configuration #1 chosen from 1 choice hub 8-0:1.0: USB hub found hub 8-0:1.0: 6 ports detected ACPI: PCI Interrupt 0000:00:1b.0[A] -> GSI 22 (level, low) -> IRQ 22 PCI: Setting latency timer of device 0000:00:1b.0 to 64 hda_codec: Unknown model for ALC882, trying auto-probe from BIOS... ACPI: PCI Interrupt 0000:05:06.0[A] -> GSI 18 (level, low) -> IRQ 18 ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=[18] MMIO=[ea104000-ea1047ff] Max Packet=[2048] IR/IT contexts=[4/8] ACPI: PCI Interrupt 0000:00:1f.3[C] -> GSI 18 (level, low) -> IRQ 18 JMB: IDE controller (0x197b:0x2363 rev 0x02) at PCI slot 0000:03:00.1 ACPI: PCI Interrupt 0000:03:00.1[B] -> GSI 17 (level, low) -> IRQ 17 JMB: 100% native mode on irq 17 ide0: BM-DMA at 0xc400-0xc407, BIOS settings: hda:PIO, hdb:PIO ide1: BM-DMA at 0xc408-0xc40f, BIOS settings: hdc:DMA, hdd:DMA Probing IDE interface ide0... hda: PIONEER DVD-RW DVR-115D, ATAPI CD/DVD-ROM drive hda: host max PIO5 wanted PIO255(auto-tune) selected PIO4 hda: UDMA/66 mode selected Probing IDE interface ide1... ieee1394: Host added: ID:BUS[0-00:1023] GUID[00cace7400001a4d] ide0 at 0xc000-0xc007,0xc102 on irq 17 hda: ATAPI 126X DVD-ROM DVD-R CD-R/RW drive, 2000kB Cache Uniform CD-ROM driver Revision: 3.20 EXT3 FS on md0, internal journal input: PC Speaker as /devices/platform/pcspkr/input/input3 input: ImPS/2 Generic Wheel Mouse as /devices/platform/i8042/serio1/input/input4 parport_pc 00:08: reported by Plug and Play ACPI parport0: PC-style at 0x378 (0x778), irq 7 [PCSPP,TRISTATE] lp0: using parport0 (interrupt-driven). lp0: console ready NET: Registered protocol family 10 lo: Disabled Privacy Extensions it87: Found IT8718F chip at 0x290, revision 4 it87: in3 is VCC (+5V) coretemp coretemp.0: Using undocumented features, absolute temperature might be wrong! coretemp coretemp.1: Using undocumented features, absolute temperature might be wrong! coretemp coretemp.2: Using undocumented features, absolute temperature might be wrong! coretemp coretemp.3: Using undocumented features, absolute temperature might be wrong! loop: loaded (max 8 devices) Adding 4008172k swap on /dev/loop7. Priority:10 extents:1 across:4008172k Adding 4008172k swap on /dev/loop6. Priority:10 extents:1 across:4008172k md: md1 stopped. md: bind<sdb7> md: bind<sda7> raid1: raid set md1 active with 2 out of 2 mirrors r8169: eth0: link up r8169: eth0: link up eth0: no IPv6 routers present hda: cdrom_newpc_intr: The drive appears confused (ireason = 0x01). Trying to recover by ending request. hda: cdrom_newpc_intr: The drive appears confused (ireason = 0x01). Trying to recover by ending request. hda: status error: status=0x58 { DriveReady SeekComplete DataRequest } ide: failed opcode was: unknown hda: drive not ready for command hda: status error: status=0x58 { DriveReady SeekComplete DataRequest } ide: failed opcode was: unknown hda: drive not ready for command hda: status error: status=0x58 { DriveReady SeekComplete DataRequest } ide: failed opcode was: unknown hda: drive not ready for command hda: status error: status=0x58 { DriveReady SeekComplete DataRequest } ide: failed opcode was: unknown hda: drive not ready for command hda: status timeout: status=0xd0 { Busy } ide: failed opcode was: unknown hda: DMA disabled hda: ATAPI reset complete hda: cdrom_decode_status: status=0xc0 { Busy } ide: failed opcode was: unknown hda: ide_intr: huh? expected NULL handler on exit hda: ATAPI reset complete hda: cdrom_decode_status: status=0xc0 { Busy } ide: failed opcode was: unknown hda: ide_intr: huh? expected NULL handler on exit hda: ATAPI reset complete hda: cdrom_decode_status: status=0xc0 { Busy } ide: failed opcode was: unknown hda: ide_intr: huh? expected NULL handler on exit hda: ATAPI reset complete hda: cdrom_decode_status: status=0xc0 { Busy } ide: failed opcode was: unknown hda: ide_intr: huh? expected NULL handler on exit hda: ATAPI reset complete hda: cdrom_decode_status: status=0xc0 { Busy } ide: failed opcode was: unknown hda: ide_intr: huh? expected NULL handler on exit hda: ATAPI reset complete hda: cdrom_decode_status: status=0xc0 { Busy } ide: failed opcode was: unknown end_request: I/O error, dev hda, sector 128 Buffer I/O error on device hda, logical block 16 hda: cdrom_decode_status: status=0xd0 { Busy } ide: failed opcode was: unknown hda: ide_intr: huh? expected NULL handler on exit hda: ATAPI reset complete end_request: I/O error, dev hda, sector 136 Buffer I/O error on device hda, logical block 17 hda: cdrom_decode_status: status=0xd0 { Busy } ide: failed opcode was: unknown hda: ide_intr: huh? expected NULL handler on exit hda: ATAPI reset complete hda: cdrom_decode_status: status=0xc0 { Busy } ide: failed opcode was: unknown hda: ide_intr: huh? expected NULL handler on exit hda: ATAPI reset complete hda: cdrom_decode_status: status=0xc0 { Busy } ide: failed opcode was: unknown end_request: I/O error, dev hda, sector 144 Buffer I/O error on device hda, logical block 18 hda: cdrom_decode_status: status=0xd0 { Busy } ide: failed opcode was: unknown hda: ide_intr: huh? expected NULL handler on exit hda: ATAPI reset complete hda: cdrom_decode_status: status=0xc0 { Busy } ide: failed opcode was: unknown hda: ide_intr: huh? expected NULL handler on exit hda: ATAPI reset complete hda: cdrom_decode_status: status=0xc0 { Busy } ide: failed opcode was: unknown end_request: I/O error, dev hda, sector 152 Buffer I/O error on device hda, logical block 19 hda: cdrom_decode_status: status=0xd0 { Busy } ide: failed opcode was: unknown hda: ide_intr: huh? expected NULL handler on exit hda: ATAPI reset complete hda: cdrom_decode_status: status=0xc0 { Busy } ide: failed opcode was: unknown hda: ide_intr: huh? expected NULL handler on exit hda: ATAPI reset complete hda: cdrom_decode_status: status=0xc0 { Busy } ide: failed opcode was: unknown end_request: I/O error, dev hda, sector 160 Buffer I/O error on device hda, logical block 20 hda: cdrom_decode_status: status=0xd0 { Busy } ide: failed opcode was: unknown hda: ide_intr: huh? expected NULL handler on exit hda: ATAPI reset complete hda: cdrom_decode_status: status=0xc0 { Busy } ide: failed opcode was: unknown hda: ide_intr: huh? expected NULL handler on exit hda: ATAPI reset complete end_request: I/O error, dev hda, sector 168 Buffer I/O error on device hda, logical block 21 hda: cdrom_decode_status: status=0xd0 { Busy } ide: failed opcode was: unknown hda: ide_intr: huh? expected NULL handler on exit hda: ATAPI reset complete end_request: I/O error, dev hda, sector 176 Buffer I/O error on device hda, logical block 22 hda: cdrom_decode_status: status=0xd0 { Busy } ide: failed opcode was: unknown hda: ide_intr: huh? expected NULL handler on exit hda: ATAPI reset complete hda: cdrom_decode_status: status=0xc0 { Busy } ide: failed opcode was: unknown hda: ide_intr: huh? expected NULL handler on exit hda: ATAPI reset complete hda: cdrom_decode_status: status=0xc0 { Busy } ide: failed opcode was: unknown end_request: I/O error, dev hda, sector 184 Buffer I/O error on device hda, logical block 23 hda: cdrom_decode_status: status=0xd0 { Busy } ide: failed opcode was: unknown hda: ide_intr: huh? expected NULL handler on exit hda: ATAPI reset complete end_request: I/O error, dev hda, sector 192 Buffer I/O error on device hda, logical block 24 hda: cdrom_decode_status: status=0xd0 { Busy } ide: failed opcode was: unknown hda: ide_intr: huh? expected NULL handler on exit hda: ATAPI reset complete end_request: I/O error, dev hda, sector 200 Buffer I/O error on device hda, logical block 25 hda: cdrom_decode_status: status=0xd0 { Busy } ide: failed opcode was: unknown hda: ide_intr: huh? expected NULL handler on exit hda: ATAPI reset complete end_request: I/O error, dev hda, sector 208 hda: cdrom_decode_status: status=0xd0 { Busy } ide: failed opcode was: unknown hda: ide_intr: huh? expected NULL handler on exit hda: ATAPI reset complete end_request: I/O error, dev hda, sector 216 hda: cdrom_decode_status: status=0xd0 { Busy } ide: failed opcode was: unknown hda: ide_intr: huh? expected NULL handler on exit hda: ATAPI reset complete end_request: I/O error, dev hda, sector 224 hda: cdrom_decode_status: status=0xd0 { Busy } ide: failed opcode was: unknown hda: ide_intr: huh? expected NULL handler on exit hda: ATAPI reset complete hda: cdrom_decode_status: status=0xc0 { Busy } ide: failed opcode was: unknown hda: ide_intr: huh? expected NULL handler on exit hda: ATAPI reset complete hda: cdrom_decode_status: status=0xc0 { Busy } ide: failed opcode was: unknown end_request: I/O error, dev hda, sector 232 hda: cdrom_decode_status: status=0xd0 { Busy } ide: failed opcode was: unknown hda: ide_intr: huh? expected NULL handler on exit hda: ATAPI reset complete ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: IDE cdrom problem with PLEXTOR DVDR PX-608AL 2008-02-25 5:57 ` Brad Rosser @ 2008-02-25 14:45 ` Borislav Petkov 2008-02-26 8:32 ` Brad Rosser 0 siblings, 1 reply; 18+ messages in thread From: Borislav Petkov @ 2008-02-25 14:45 UTC (permalink / raw) To: Brad Rosser; +Cc: bzolnier, linux-ide, linux-kernel On Mon, Feb 25, 2008 at 03:57:06PM +1000, Brad Rosser wrote: > Hi Boris, > > > Well, this sounds strange. Are you sure you're entering the boot options > > correctly on the kernel command line? Which is your boot loader? I just booted > > my machine with 'hdc=noprobe' (hdc is my cdrom drive) and here's what i get: > > > > ... > > [ 0.304774] Probing IDE interface ide0... > > [ 0.569359] hdb: SAMSUNG SP2014N, ATA DISK drive > > [ 0.613977] Switched to NOHz mode on CPU #1 > > [ 0.773368] Switched to NOHz mode on CPU #0 > > [ 0.874486] hda: QUANTUM FIREBALLlct10 20, ATA DISK drive > > [ 0.874506] hda: host max PIO4 wanted PIO255(auto-tune) selected PIO4 > > [ 0.874506] hda: drive side 80-wire cable detection failed, limiting max speed to UDMA33 > > [ 0.874506] hda: UDMA/33 mode selected > > [ 0.874533] hdb: host max PIO4 wanted PIO255(auto-tune) selected PIO4 > > [ 0.874620] hdb: UDMA/100 mode selected > > [ 0.874744] Probing IDE interface ide1... > > > so it seems you should check whether your kernel is receiving the 'hda=noprobe' > > boot option at all, or something along that path is going wrong... > > I'm entering the option 'hda=noprobe' (as one example) right after my boot > label in LILO. The dmesg output I attached last time was a boot of straight > 2.6.25-rc2 without any options; I've attached 'dmesg.noprobe.out' which is > the result of a boot with 'hda=noprobe'. > > I must have done something stupid, but I can't see what; if you look at this > line from the dmesg output: > > Kernel command line: BOOT_IMAGE=linux_2.6.25rc2 ro root=900 > md=0,/dev/sda5,/dev/sdb5 hda=noprobe > > ... it would suggest the option 'hda=noprobe' was entered correctly? ok, let's try something else: change the line "#if 0" to "#if 1" at the beginning of kernel/params.c, it looks like: #if 0 #define DEBUGP printk #else #define DEBUGP(fmt, a...) #endif rebuild your kernel, and reboot with it. Then, please send me that boot log to see whether the kernel command line is being received from the boot loader and what exactly is getting parsed. Thanks. > > > I tried to apply the patch but failed; I probably did something wrong. > > > I deleted everything in your message above 'Index: b/drivers/ide/ide-cd.c' > > > and ran 'patch --dry-run -b -p1 < ../bart_patch'. This is part of my script > > > log: > > > > are you sure you're _really_ using 2.6.25-rc2? Applying the patch against that > > kernel works just fine, no fuzziness or even rejects. Care to try out on a fresh > > kernel source tarball? After all, building a kernel with your quad core cpu won't > > take that long :-) when using make -j8 or something in that order. > > Heh. This is my first new machine in 8 years, and I couldn't wait to start > using multiple cores. I was quick to discover the '-j' option ... but I only > do '-j 4'. Anyway ... I'd downloaded the full baseline linux-2.6.24.tar.bz2, > unpacked it, and then ran the patch patch-2.6.25-rc2.bz2 against it. That > patch ran perfectly. And I was in the right directory when I ran Bart's patch, > as I listed in my earlier e-mail! All indications were that I was running the > 2.6.25-rc2 kernel as required, I thought. > > Well, I see that rc3 is out; maybe I'll give that a shot. Please see whether you can apply the patch Bart just sent and if that still gets mangled and cannot be applied, consider making those changes to ide-cd.c by hand - after all, there are only several lines that need to be changed so it won't take that long. Thanks. -- Regards/Gruß, Boris. ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: IDE cdrom problem with PLEXTOR DVDR PX-608AL 2008-02-25 14:45 ` Borislav Petkov @ 2008-02-26 8:32 ` Brad Rosser 2008-02-26 17:46 ` Borislav Petkov 0 siblings, 1 reply; 18+ messages in thread From: Brad Rosser @ 2008-02-26 8:32 UTC (permalink / raw) To: petkovbb, Brad Rosser, bzolnier, linux-ide, linux-kernel [-- Attachment #1: Type: text/plain, Size: 2990 bytes --] Hello Boris, Bart, On Tue, Feb 26, 2008 at 12:45 AM, Borislav Petkov <petkovbb@googlemail.com> wrote: > > On Mon, Feb 25, 2008 at 03:57:06PM +1000, Brad Rosser wrote: > > > > ... it would suggest the option 'hda=noprobe' was entered correctly? > > ok, let's try something else: change the line "#if 0" to "#if 1" at the > beginning of kernel/params.c, it looks like: > > #if 0 > #define DEBUGP printk > #else > #define DEBUGP(fmt, a...) > #endif > > rebuild your kernel, and reboot with it. Then, please send me that boot log to > see whether the kernel command line is being received from the boot loader and > what exactly is getting parsed. Thanks. Boris, I've done that; the output is in attached file dmesg.debug.out. It looks to me that the kernel still found the IDE DVD drive (hda) ... in addition to the system messages when the system was up I found the ide_cd_mod module loaded on top of 'cdrom' as normal. > Please see whether you can apply the patch Bart just sent and if that still gets > mangled and cannot be applied, consider making those changes to ide-cd.c by hand > - after all, there are only several lines that need to be changed so it won't > take that long. Bart, I was able to apply that patch file you attached with no problems, and the behaviour of the patched kernel changed as follows: - no more 'confused' messages, nor the rush of other critical messages that accompanied a system hang on one out of four tests yesterday. - However, a new message that popped up twice; once after a few seconds of network activity, and then about 15-20 seconds afterwards: hda: ide_cd_check_ireason: wrong transfer direction! hda: ide_cd_check_ireason: wrong transfer direction! - also, I'm pretty sure that performance of both network and DVD drive suffered. As to the last ... my new PC, on which I'm doing all this testing, has a gigabit Realtek NIC. It's hooked up via null UTP cable to my older machine which has a 100Mb/s card. ethtool shows that they both auto-negotiate to run at 100Mb/s full duplex. When I run my network test (pumping through /dev/zero across ssh from the old machine to the new) the network stats tell me that I'm getting 10MB/s out of the link, which is what I would expect. With the patched 2.6.25-rc2 kernel running with no activity reading the DVD but the network going flat out (on the old PC's end) I noted that I was only getting only 8.0 or 8.1 MB/sec, rather than the 10 MB/sec I've seen in the other tests.. There was no other network traffic or cpu load on the machine(s). Then, when I mounted a DVD disc and did a 'wc /mnt/*' of its contents an iostat showed me that I was getting only about 6MB/sec out of the DVD drive, which is less than I'd expect. As soon as I killed the network send iostat's report zoomed up to roughly 10MB/sec. So it seemed to me that, in addition to the 'wrong direction' messages, I was losing some performance on both the NIC and the DVD drive. Regards to you both, Brad [-- Attachment #2: dmesg.debug.out --] [-- Type: application/octet-stream, Size: 25824 bytes --] Linux version 2.6.25-rc2 (root@krypton) (gcc version 4.1.2) #1 SMP Tue Feb 26 16:23:03 EST 2008 BIOS-provided physical RAM map: BIOS-e820: 0000000000000000 - 000000000009e800 (usable) BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved) BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved) BIOS-e820: 0000000000100000 - 00000000bfee0000 (usable) BIOS-e820: 00000000bfee0000 - 00000000bfee3000 (ACPI NVS) BIOS-e820: 00000000bfee3000 - 00000000bfef0000 (ACPI data) BIOS-e820: 00000000bfef0000 - 00000000bff00000 (reserved) BIOS-e820: 00000000e0000000 - 00000000e4000000 (reserved) BIOS-e820: 00000000fec00000 - 0000000100000000 (reserved) BIOS-e820: 0000000100000000 - 0000000140000000 (usable) Parsing ARGS: BOOT_IMAGE=linux_2.6.25rc2 ro root=900 md=0,/dev/sda5,/dev/sdb5 hda=noprobe Unknown argument: calling c0367297 Unknown argument: calling c0367297 Unknown argument: calling c0367297 Unknown argument: calling c0367297 Unknown argument: calling c0367297 4224MB HIGHMEM available. 896MB LOWMEM available. Scan SMP from c0000000 for 1024 bytes. Scan SMP from c009fc00 for 1024 bytes. Scan SMP from c00f0000 for 65536 bytes. found SMP MP-table at [c00f53b0] 000f53b0 NX (Execute Disable) protection: active Entering add_active_range(0, 0, 1310720) 0 entries of 256 used Zone PFN ranges: DMA 0 -> 4096 Normal 4096 -> 229376 HighMem 229376 -> 1310720 Movable zone start PFN for each node early_node_map[1] active PFN ranges 0: 0 -> 1310720 On node 0 totalpages: 1310720 DMA zone: 32 pages used for memmap DMA zone: 0 pages reserved DMA zone: 4064 pages, LIFO batch:0 Normal zone: 1760 pages used for memmap Normal zone: 223520 pages, LIFO batch:31 HighMem zone: 8448 pages used for memmap HighMem zone: 1072896 pages, LIFO batch:31 Movable zone: 0 pages used for memmap DMI 2.4 present. ACPI: RSDP 000F6D90, 0014 (r0 GBT ) ACPI: RSDT BFEE3040, 003C (r1 GBT GBTUACPI 42302E31 GBTU 1010101) ACPI: FACP BFEE30C0, 0074 (r1 GBT GBTUACPI 42302E31 GBTU 1010101) ACPI: DSDT BFEE3180, 4A88 (r1 GBT GBTUACPI 1000 MSFT 100000C) ACPI: FACS BFEE0000, 0040 ACPI: HPET BFEE7D80, 0038 (r1 GBT GBTUACPI 42302E31 GBTU 98) ACPI: MCFG BFEE7E00, 003C (r1 GBT GBTUACPI 42302E31 GBTU 1010101) ACPI: APIC BFEE7C80, 0084 (r1 GBT GBTUACPI 42302E31 GBTU 1010101) ACPI: SSDT BFEE7E80, 015C (r1 PmRef Cpu0Ist 3000 INTL 20040311) ACPI: SSDT BFEE8430, 0275 (r1 PmRef CpuPm 3000 INTL 20040311) ACPI: PM-Timer IO Port: 0x408 ACPI: Local APIC address 0xfee00000 ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled) Processor #0 6:15 APIC version 20 ACPI: LAPIC (acpi_id[0x01] lapic_id[0x03] enabled) Processor #3 6:15 APIC version 20 ACPI: LAPIC (acpi_id[0x02] lapic_id[0x02] enabled) Processor #2 6:15 APIC version 20 ACPI: LAPIC (acpi_id[0x03] lapic_id[0x01] enabled) Processor #1 6:15 APIC version 20 ACPI: LAPIC_NMI (acpi_id[0x00] dfl dfl lint[0x1]) ACPI: LAPIC_NMI (acpi_id[0x01] dfl dfl lint[0x1]) ACPI: LAPIC_NMI (acpi_id[0x02] dfl dfl lint[0x1]) ACPI: LAPIC_NMI (acpi_id[0x03] dfl dfl lint[0x1]) ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0]) IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-23 ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level) ACPI: IRQ0 used by override. ACPI: IRQ2 used by override. ACPI: IRQ9 used by override. Enabling APIC mode: Flat. Using 1 I/O APICs ACPI: HPET id: 0x8086a201 base: 0xfed00000 Using ACPI (MADT) for SMP configuration information Allocating PCI resources starting at c0000000 (gap: bff00000:20100000) Built 1 zonelists in Zone order, mobility grouping on. Total pages: 1300480 Kernel command line: BOOT_IMAGE=linux_2.6.25rc2 ro root=900 md=0,/dev/sda5,/dev/sdb5 hda=noprobe Parsing ARGS: BOOT_IMAGE=linux_2.6.25rc2 ro root=900 md=0,/dev/sda5,/dev/sdb5 hda=noprobe Unknown argument: calling c03670ce Unknown argument: calling c03670ce Unknown argument: calling c03670ce Unknown argument: calling c03670ce md: Will configure md0 (super-block) from /dev/sda5,/dev/sdb5, below. Unknown argument: calling c03670ce mapped APIC to ffffb000 (fee00000) mapped IOAPIC to ffffa000 (fec00000) Enabling fast FPU save and restore... done. Enabling unmasked SIMD FPU exception support... done. Initializing CPU#0 PID hash table entries: 4096 (order: 12, 16384 bytes) Detected 2400.017 MHz processor. Console: colour dummy device 80x25 console [tty0] enabled Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) Memory: 4147168k/5242880k available (1721k kernel code, 44868k reserved, 718k data, 220k init, 3275648k highmem) virtual kernel memory layout: fixmap : 0xfff81000 - 0xfffff000 ( 504 kB) pkmap : 0xffa00000 - 0xffc00000 (2048 kB) vmalloc : 0xf8800000 - 0xff9fe000 ( 113 MB) lowmem : 0xc0000000 - 0xf8000000 ( 896 MB) .init : 0xc0367000 - 0xc039e000 ( 220 kB) .data : 0xc02ae45c - 0xc0361e60 ( 718 kB) .text : 0xc0100000 - 0xc02ae45c (1721 kB) Checking if this processor honours the WP bit even in supervisor mode...Ok. CPA: page pool initialized 64 of 64 pages preallocated hpet clockevent registered Calibrating delay using timer specific routine.. 4802.65 BogoMIPS (lpj=2401325) Mount-cache hash table entries: 512 CPU: L1 I cache: 32K, L1 D cache: 32K CPU: L2 cache: 4096K CPU: Physical Processor ID: 0 CPU: Processor Core ID: 0 Intel machine check architecture supported. Intel machine check reporting enabled on CPU#0. using mwait in idle threads. Compat vDSO mapped to ffffe000. Checking 'hlt' instruction... OK. ACPI: Core revision 20070126 CPU0: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz stepping 0b Booting processor 1/1 ip 4000 Initializing CPU#1 Calibrating delay using timer specific routine.. 4799.99 BogoMIPS (lpj=2399999) CPU: L1 I cache: 32K, L1 D cache: 32K CPU: L2 cache: 4096K CPU: Physical Processor ID: 0 CPU: Processor Core ID: 1 Intel machine check architecture supported. Intel machine check reporting enabled on CPU#1. CPU1: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz stepping 0b Booting processor 2/2 ip 4000 Initializing CPU#2 Calibrating delay using timer specific routine.. 4800.01 BogoMIPS (lpj=2400009) CPU: L1 I cache: 32K, L1 D cache: 32K CPU: L2 cache: 4096K CPU: Physical Processor ID: 0 CPU: Processor Core ID: 2 Intel machine check architecture supported. Intel machine check reporting enabled on CPU#2. CPU2: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz stepping 0b Booting processor 3/3 ip 4000 Initializing CPU#3 Calibrating delay using timer specific routine.. 4800.01 BogoMIPS (lpj=2400007) CPU: L1 I cache: 32K, L1 D cache: 32K CPU: L2 cache: 4096K CPU: Physical Processor ID: 0 CPU: Processor Core ID: 3 Intel machine check architecture supported. Intel machine check reporting enabled on CPU#3. CPU3: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz stepping 0b Total of 4 processors activated (19202.68 BogoMIPS). ENABLING IO-APIC IRQs ..TIMER: vector=0x31 apic1=0 pin1=2 apic2=-1 pin2=-1 checking TSC synchronization [CPU#0 -> CPU#1]: passed. checking TSC synchronization [CPU#0 -> CPU#2]: passed. checking TSC synchronization [CPU#0 -> CPU#3]: passed. Brought up 4 CPUs net_namespace: 548 bytes NET: Registered protocol family 16 ACPI: bus type pci registered PCI: Using MMCONFIG for extended config space PCI: Using configuration type 1 Setting up standard PCI resources ACPI: EC: Look up EC in DSDT ACPI: Interpreter enabled ACPI: (supports S0 S3 S5) ACPI: Using IOAPIC for interrupt routing ACPI: PCI Root Bridge [PCI0] (0000:00) pci 0000:00:1f.0: quirk: region 0400-047f claimed by ICH6 ACPI/GPIO/TCO pci 0000:00:1f.0: quirk: region 0480-04bf claimed by ICH6 GPIO PCI: Transparent bridge - 0000:00:1e.0 ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PEX0._PRT] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PEX4._PRT] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PEX5._PRT] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.HUB0._PRT] ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 9 10 *11 12 14 15) ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 9 10 11 12 14 *15) ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 *5 6 7 9 10 11 12 14 15) ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 9 *10 11 12 14 15) ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled. ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 *9 10 11 12 14 15) ACPI: PCI Interrupt Link [LNK0] (IRQs 3 4 5 6 7 9 10 11 12 *14 15) ACPI: PCI Interrupt Link [LNK1] (IRQs *3 4 5 6 7 9 10 11 12 14 15) Linux Plug and Play Support v0.97 (c) Adam Belay pnp: PnP ACPI init ACPI: bus type pnp registered pnpacpi: exceeded the max number of mem resources: 12 pnp: PnP ACPI: found 15 devices ACPI: ACPI bus type pnp unregistered SCSI subsystem initialized libata version 3.00 loaded. PCI: Using ACPI for IRQ routing PCI: If a device doesn't work, try "pci=routeirq". If it helps, post a report Time: tsc clocksource has been installed. system 00:01: ioport range 0x4d0-0x4d1 has been reserved system 00:01: ioport range 0x290-0x29f has been reserved system 00:01: ioport range 0x800-0x87f has been reserved system 00:01: ioport range 0x290-0x294 has been reserved system 00:01: ioport range 0x880-0x88f has been reserved system 00:0b: ioport range 0x400-0x4bf could not be reserved system 00:0c: iomem range 0xe0000000-0xe3ffffff could not be reserved system 00:0d: iomem range 0xd5000-0xd7fff has been reserved system 00:0d: iomem range 0xf0000-0xf7fff could not be reserved system 00:0d: iomem range 0xf8000-0xfbfff could not be reserved system 00:0d: iomem range 0xfc000-0xfffff could not be reserved system 00:0d: iomem range 0xbfee0000-0xbfefffff could not be reserved system 00:0d: iomem range 0x0-0x9ffff could not be reserved system 00:0d: iomem range 0x100000-0xbfedffff could not be reserved system 00:0d: iomem range 0xfec00000-0xfec00fff could not be reserved system 00:0d: iomem range 0xfed10000-0xfed1dfff could not be reserved system 00:0d: iomem range 0xfed20000-0xfed8ffff could not be reserved system 00:0d: iomem range 0xfee00000-0xfee00fff could not be reserved system 00:0d: iomem range 0xffb00000-0xffb7ffff could not be reserved PCI: Bridge: 0000:00:01.0 IO window: b000-bfff MEM window: 0xe4000000-0xe7ffffff PREFETCH window: 0x00000000c0000000-0x00000000dfffffff PCI: Bridge: 0000:00:1c.0 IO window: a000-afff MEM window: disabled. PREFETCH window: disabled. PCI: Bridge: 0000:00:1c.4 IO window: c000-cfff MEM window: 0xea000000-0xea0fffff PREFETCH window: disabled. PCI: Bridge: 0000:00:1c.5 IO window: d000-dfff MEM window: 0xe8000000-0xe9ffffff PREFETCH window: disabled. PCI: Bridge: 0000:00:1e.0 IO window: disabled. MEM window: 0xea100000-0xea1fffff PREFETCH window: disabled. ACPI: PCI Interrupt 0000:00:01.0[A] -> GSI 16 (level, low) -> IRQ 16 PCI: Setting latency timer of device 0000:00:01.0 to 64 ACPI: PCI Interrupt 0000:00:1c.0[A] -> GSI 16 (level, low) -> IRQ 16 PCI: Setting latency timer of device 0000:00:1c.0 to 64 ACPI: PCI Interrupt 0000:00:1c.4[A] -> GSI 16 (level, low) -> IRQ 16 PCI: Setting latency timer of device 0000:00:1c.4 to 64 ACPI: PCI Interrupt 0000:00:1c.5[B] -> GSI 17 (level, low) -> IRQ 17 PCI: Setting latency timer of device 0000:00:1c.5 to 64 PCI: Setting latency timer of device 0000:00:1e.0 to 64 NET: Registered protocol family 2 IP route cache hash table entries: 32768 (order: 5, 131072 bytes) TCP established hash table entries: 131072 (order: 8, 1048576 bytes) TCP bind hash table entries: 65536 (order: 7, 524288 bytes) TCP: Hash tables configured (established 131072 bind 65536) TCP reno registered highmem bounce pool size: 64 pages io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered (default) pci 0000:01:00.0: Boot video device PCI: Setting latency timer of device 0000:00:01.0 to 64 assign_interrupt_mode Found MSI capability Allocate Port Service[0000:00:01.0:pcie00] Allocate Port Service[0000:00:01.0:pcie03] PCI: Setting latency timer of device 0000:00:1c.0 to 64 assign_interrupt_mode Found MSI capability Allocate Port Service[0000:00:1c.0:pcie00] Allocate Port Service[0000:00:1c.0:pcie02] Allocate Port Service[0000:00:1c.0:pcie03] PCI: Setting latency timer of device 0000:00:1c.4 to 64 assign_interrupt_mode Found MSI capability Allocate Port Service[0000:00:1c.4:pcie00] Allocate Port Service[0000:00:1c.4:pcie02] Allocate Port Service[0000:00:1c.4:pcie03] PCI: Setting latency timer of device 0000:00:1c.5 to 64 assign_interrupt_mode Found MSI capability Allocate Port Service[0000:00:1c.5:pcie00] Allocate Port Service[0000:00:1c.5:pcie02] Allocate Port Service[0000:00:1c.5:pcie03] vesafb: framebuffer at 0xe5000000, mapped to 0xf8880000, using 3072k, total 14336k vesafb: mode is 1024x768x16, linelength=2048, pages=1 vesafb: protected mode interface info at c000:b5c0 vesafb: pmi: set display start = c00cb623, set palette = c00cb67e vesafb: pmi: ports = 3b4 3b5 3ba 3c0 3c1 3c4 3c5 3c6 3c7 3c8 3c9 3cc 3ce 3cf 3d0 3d1 3d2 3d3 3d4 3d5 3da vesafb: scrolling: redraw vesafb: Truecolor: size=0:5:6:5, shift=0:11:5:0 Console: switching to colour frame buffer device 128x48 fb0: VESA VGA frame buffer device Real Time Clock Driver v1.12ac brd: module loaded Loading iSCSI transport class v2.0-868. Driver 'sd' needs updating - please use bus_type methods ahci 0000:00:1f.2: version 3.0 ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 19 (level, low) -> IRQ 19 Switched to high resolution mode on CPU 1 Switched to high resolution mode on CPU 2 Switched to high resolution mode on CPU 3 Switched to high resolution mode on CPU 0 ahci 0000:00:1f.2: AHCI 0001.0200 32 slots 6 ports 3 Gbps 0x3f impl SATA mode ahci 0000:00:1f.2: flags: 64bit ncq sntf stag pm led clo pmp pio slum part PCI: Setting latency timer of device 0000:00:1f.2 to 64 scsi0 : ahci scsi1 : ahci scsi2 : ahci scsi3 : ahci scsi4 : ahci scsi5 : ahci ata1: SATA max UDMA/133 abar m2048@0xea206000 port 0xea206100 irq 19 ata2: SATA max UDMA/133 abar m2048@0xea206000 port 0xea206180 irq 19 ata3: SATA max UDMA/133 abar m2048@0xea206000 port 0xea206200 irq 19 ata4: SATA max UDMA/133 abar m2048@0xea206000 port 0xea206280 irq 19 ata5: SATA max UDMA/133 abar m2048@0xea206000 port 0xea206300 irq 19 ata6: SATA max UDMA/133 abar m2048@0xea206000 port 0xea206380 irq 19 ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300) ata1.00: HPA detected: current 976771055, native 976773168 ata1.00: ATA-8: WDC WD5000AAKS-00YGA0, 12.01C02, max UDMA/133 ata1.00: 976771055 sectors, multi 0: LBA48 NCQ (depth 31/32) ata1.00: configured for UDMA/133 ata2: SATA link down (SStatus 0 SControl 300) ata3: SATA link down (SStatus 0 SControl 300) ata4: SATA link down (SStatus 0 SControl 300) ata5: SATA link down (SStatus 0 SControl 300) ata6: SATA link down (SStatus 0 SControl 300) scsi 0:0:0:0: Direct-Access ATA WDC WD5000AAKS-0 12.0 PQ: 0 ANSI: 5 sd 0:0:0:0: [sda] 976771055 512-byte hardware sectors (500107 MB) sd 0:0:0:0: [sda] Write Protect is off sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sd 0:0:0:0: [sda] 976771055 512-byte hardware sectors (500107 MB) sd 0:0:0:0: [sda] Write Protect is off sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sda: sda1 sda2 sda4 < sda5 sda6 sda7 > sd 0:0:0:0: [sda] Attached SCSI disk ACPI: PCI Interrupt 0000:03:00.0[A] -> GSI 16 (level, low) -> IRQ 16 ahci 0000:03:00.0: AHCI 0001.0000 32 slots 2 ports 3 Gbps 0x3 impl SATA mode ahci 0000:03:00.0: flags: 64bit ncq pm led clo pmp pio slum part PCI: Setting latency timer of device 0000:03:00.0 to 64 scsi6 : ahci scsi7 : ahci ata7: SATA max UDMA/133 abar m8192@0xea000000 port 0xea000100 irq 16 ata8: SATA max UDMA/133 abar m8192@0xea000000 port 0xea000180 irq 16 ata7: SATA link up 3.0 Gbps (SStatus 123 SControl 300) ata7.00: ATA-8: WDC WD5000AAKS-00YGA0, 12.01C02, max UDMA/133 ata7.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32) ata7.00: configured for UDMA/133 ata8: SATA link down (SStatus 0 SControl 300) scsi 6:0:0:0: Direct-Access ATA WDC WD5000AAKS-0 12.0 PQ: 0 ANSI: 5 sd 6:0:0:0: [sdb] 976773168 512-byte hardware sectors (500108 MB) sd 6:0:0:0: [sdb] Write Protect is off sd 6:0:0:0: [sdb] Mode Sense: 00 3a 00 00 sd 6:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sd 6:0:0:0: [sdb] 976773168 512-byte hardware sectors (500108 MB) sd 6:0:0:0: [sdb] Write Protect is off sd 6:0:0:0: [sdb] Mode Sense: 00 3a 00 00 sd 6:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sdb: sdb1 sdb2 sdb4 < sdb5 sdb6 sdb7 > sd 6:0:0:0: [sdb] Attached SCSI disk PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:PS2M] at 0x60,0x64 irq 1,12 serio: i8042 KBD port at 0x60,0x64 irq 1 serio: i8042 AUX port at 0x60,0x64 irq 12 mice: PS/2 mouse device common for all mice md: raid1 personality registered for level 1 device-mapper: ioctl: 4.13.0-ioctl (2007-10-18) initialised: dm-devel@redhat.com cpuidle: using governor ladder cpuidle: using governor menu TCP cubic registered input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0 Starting balanced_irq Using IPI No-Shortcut mode md: Autodetecting RAID arrays. md: Scanned 0 and added 0 devices. md: autorun ... md: ... autorun DONE. md: Loading md0: /dev/sda5 md: bind<sda5> md: bind<sdb5> raid1: raid set md0 active with 2 out of 2 mirrors kjournald starting. Commit interval 5 seconds EXT3-fs: mounted filesystem with ordered data mode. VFS: Mounted root (ext3 filesystem) readonly. Freeing unused kernel memory: 220k freed Parsing ARGS: NET: Registered protocol family 1 Parsing ARGS: sd 0:0:0:0: Attached scsi generic sg0 type 0 sd 6:0:0:0: Attached scsi generic sg1 type 0 Parsing ARGS: Parsing ARGS: input: Power Button (FF) as /devices/virtual/input/input1 ACPI: Power Button (FF) [PWRF] input: Power Button (CM) as /devices/virtual/input/input2 Parsing ARGS: Linux agpgart interface v0.103 ACPI: Power Button (CM) [PWRB] Parsing ARGS: Uniform Multi-Platform E-IDE driver ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx Parsing ARGS: Parsing ARGS: ACPI: ACPI0007:00 is registered as cooling_device0 ACPI: Processor [CPU0] (supports 8 throttling states) ACPI: SSDT BFEE8280, 0087 (r1 PmRef Cpu1Ist 3000 INTL 20040311) ACPI: ACPI0007:01 is registered as cooling_device1 ACPI: Processor [CPU1] (supports 8 throttling states) ACPI: SSDT BFEE8310, 0087 (r1 PmRef Cpu2Ist 3000 INTL 20040311) Parsing ARGS: ACPI: ACPI0007:02 is registered as cooling_device2 ACPI: Processor [CPU2] (supports 8 throttling states) ACPI: SSDT BFEE83A0, 0087 (r1 PmRef Cpu3Ist 3000 INTL 20040311) ACPI: ACPI0007:03 is registered as cooling_device3 ACPI: Processor [CPU3] (supports 8 throttling states) Parsing ARGS: ACPI: PCI Interrupt 0000:00:1f.3[C] -> GSI 18 (level, low) -> IRQ 18 Parsing ARGS: usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb Parsing ARGS: r8169 Gigabit Ethernet driver 2.2LK loaded ACPI: PCI Interrupt 0000:04:00.0[A] -> GSI 17 (level, low) -> IRQ 17 PCI: Setting latency timer of device 0000:04:00.0 to 64 r8169 0000:04:00.0: no MSI. Back to INTx. eth0: RTL8168b/8111b at 0xf8858000, 00:1a:4d:58:a3:54, XID 38000000 IRQ 17 Parsing ARGS: Parsing ARGS: Parsing ARGS: Parsing ARGS: Parsing ARGS: ACPI: PCI Interrupt 0000:00:1a.7[C] -> GSI 18 (level, low) -> IRQ 18 Parsing ARGS: PCI: Setting latency timer of device 0000:00:1a.7 to 64 ehci_hcd 0000:00:1a.7: EHCI Host Controller ehci_hcd 0000:00:1a.7: new USB bus registered, assigned bus number 1 PCI: cache line size of 32 is not supported by device 0000:00:1a.7 ehci_hcd 0000:00:1a.7: irq 18, io mem 0xea205000 ehci_hcd 0000:00:1a.7: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 6 ports detected Parsing ARGS: USB Universal Host Controller Interface driver v3.0 Parsing ARGS: Parsing ARGS: ACPI: PCI Interrupt 0000:00:1a.0[A] -> GSI 16 (level, low) -> IRQ 16 Parsing ARGS: PCI: Setting latency timer of device 0000:00:1a.0 to 64 uhci_hcd 0000:00:1a.0: UHCI Host Controller uhci_hcd 0000:00:1a.0: new USB bus registered, assigned bus number 2 uhci_hcd 0000:00:1a.0: irq 16, io base 0x0000e100 usb usb2: configuration #1 chosen from 1 choice hub 2-0:1.0: USB hub found hub 2-0:1.0: 2 ports detected Parsing ARGS: Parsing ARGS: ACPI: PCI Interrupt 0000:00:1a.1[B] -> GSI 21 (level, low) -> IRQ 21 PCI: Setting latency timer of device 0000:00:1a.1 to 64 uhci_hcd 0000:00:1a.1: UHCI Host Controller uhci_hcd 0000:00:1a.1: new USB bus registered, assigned bus number 3 uhci_hcd 0000:00:1a.1: irq 21, io base 0x0000e200 usb usb3: configuration #1 chosen from 1 choice hub 3-0:1.0: USB hub found hub 3-0:1.0: 2 ports detected ACPI: PCI Interrupt 0000:00:1a.2[C] -> GSI 18 (level, low) -> IRQ 18 PCI: Setting latency timer of device 0000:00:1a.2 to 64 uhci_hcd 0000:00:1a.2: UHCI Host Controller uhci_hcd 0000:00:1a.2: new USB bus registered, assigned bus number 4 uhci_hcd 0000:00:1a.2: irq 18, io base 0x0000e000 usb usb4: configuration #1 chosen from 1 choice hub 4-0:1.0: USB hub found hub 4-0:1.0: 2 ports detected ACPI: PCI Interrupt 0000:00:1d.0[A] -> GSI 23 (level, low) -> IRQ 23 PCI: Setting latency timer of device 0000:00:1d.0 to 64 uhci_hcd 0000:00:1d.0: UHCI Host Controller uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 5 uhci_hcd 0000:00:1d.0: irq 23, io base 0x0000e300 usb usb5: configuration #1 chosen from 1 choice hub 5-0:1.0: USB hub found hub 5-0:1.0: 2 ports detected ACPI: PCI Interrupt 0000:00:1d.1[B] -> GSI 19 (level, low) -> IRQ 19 PCI: Setting latency timer of device 0000:00:1d.1 to 64 uhci_hcd 0000:00:1d.1: UHCI Host Controller uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 6 uhci_hcd 0000:00:1d.1: irq 19, io base 0x0000e400 usb usb6: configuration #1 chosen from 1 choice hub 6-0:1.0: USB hub found hub 6-0:1.0: 2 ports detected ACPI: PCI Interrupt 0000:00:1d.2[C] -> GSI 18 (level, low) -> IRQ 18 PCI: Setting latency timer of device 0000:00:1d.2 to 64 uhci_hcd 0000:00:1d.2: UHCI Host Controller uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 7 uhci_hcd 0000:00:1d.2: irq 18, io base 0x0000e500 usb usb7: configuration #1 chosen from 1 choice hub 7-0:1.0: USB hub found hub 7-0:1.0: 2 ports detected ACPI: PCI Interrupt 0000:00:1d.7[A] -> GSI 23 (level, low) -> IRQ 23 PCI: Setting latency timer of device 0000:00:1d.7 to 64 ehci_hcd 0000:00:1d.7: EHCI Host Controller ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 8 PCI: cache line size of 32 is not supported by device 0000:00:1d.7 ehci_hcd 0000:00:1d.7: irq 23, io mem 0xea204000 ehci_hcd 0000:00:1d.7: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004 usb usb8: configuration #1 chosen from 1 choice hub 8-0:1.0: USB hub found hub 8-0:1.0: 6 ports detected ACPI: PCI Interrupt 0000:00:1b.0[A] -> GSI 22 (level, low) -> IRQ 22 PCI: Setting latency timer of device 0000:00:1b.0 to 64 hda_codec: Unknown model for ALC882, trying auto-probe from BIOS... ACPI: PCI Interrupt 0000:05:06.0[A] -> GSI 18 (level, low) -> IRQ 18 ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=[18] MMIO=[ea104000-ea1047ff] Max Packet=[2048] IR/IT contexts=[4/8] Parsing ARGS: JMB: IDE controller (0x197b:0x2363 rev 0x02) at PCI slot 0000:03:00.1 ACPI: PCI Interrupt 0000:03:00.1[B] -> GSI 17 (level, low) -> IRQ 17 JMB: 100% native mode on irq 17 ide0: BM-DMA at 0xc400-0xc407, BIOS settings: hda:PIO, hdb:PIO ide1: BM-DMA at 0xc408-0xc40f, BIOS settings: hdc:DMA, hdd:DMA Probing IDE interface ide0... hda: PIONEER DVD-RW DVR-115D, ATAPI CD/DVD-ROM drive hda: host max PIO5 wanted PIO255(auto-tune) selected PIO4 hda: UDMA/66 mode selected Probing IDE interface ide1... ide0 at 0xc000-0xc007,0xc102 on irq 17 ieee1394: Host added: ID:BUS[0-00:1023] GUID[00cace7400001a4d] Parsing ARGS: Parsing ARGS: Parsing ARGS: Parsing ARGS: hda: ATAPI 40X DVD-ROM DVD-R CD-R/RW drive, 2000kB Cache Uniform CD-ROM driver Revision: 3.20 EXT3 FS on md0, internal journal Parsing ARGS: proto=imps They are equal! Calling f8c2358c Parsing ARGS: input: PC Speaker as /devices/platform/pcspkr/input/input3 input: ImPS/2 Generic Wheel Mouse as /devices/platform/i8042/serio1/input/input4 Parsing ARGS: loop: loaded (max 8 devices) kjournald starting. Commit interval 5 seconds EXT3 FS on sda2, internal journal EXT3-fs: mounted filesystem with ordered data mode. Adding 4008172k swap on /dev/loop7. Priority:10 extents:1 across:4008172k Adding 4008172k swap on /dev/loop6. Priority:10 extents:1 across:4008172k Parsing ARGS: NET: Registered protocol family 10 lo: Disabled Privacy Extensions Parsing ARGS: Parsing ARGS: Parsing ARGS: Parsing ARGS: Parsing ARGS: Parsing ARGS: md: md1 stopped. md: bind<sdb7> md: bind<sda7> raid1: raid set md1 active with 2 out of 2 mirrors Parsing ARGS: Parsing ARGS: Parsing ARGS: Parsing ARGS: it87: Found IT8718F chip at 0x290, revision 4 it87: in3 is VCC (+5V) Parsing ARGS: coretemp coretemp.0: Using undocumented features, absolute temperature might be wrong! coretemp coretemp.1: Using undocumented features, absolute temperature might be wrong! coretemp coretemp.2: Using undocumented features, absolute temperature might be wrong! coretemp coretemp.3: Using undocumented features, absolute temperature might be wrong! Parsing ARGS: Parsing ARGS: Parsing ARGS: Parsing ARGS: Parsing ARGS: Parsing ARGS: Parsing ARGS: ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: IDE cdrom problem with PLEXTOR DVDR PX-608AL 2008-02-26 8:32 ` Brad Rosser @ 2008-02-26 17:46 ` Borislav Petkov 2008-02-26 20:48 ` Bartlomiej Zolnierkiewicz 0 siblings, 1 reply; 18+ messages in thread From: Borislav Petkov @ 2008-02-26 17:46 UTC (permalink / raw) To: Brad Rosser; +Cc: bzolnier, linux-ide, linux-kernel On Tue, Feb 26, 2008 at 06:32:41PM +1000, Brad Rosser wrote: Hi Brad, > Hello Boris, Bart, > > On Tue, Feb 26, 2008 at 12:45 AM, Borislav Petkov > <petkovbb@googlemail.com> wrote: > > > > On Mon, Feb 25, 2008 at 03:57:06PM +1000, Brad Rosser wrote: > > > > > > ... it would suggest the option 'hda=noprobe' was entered correctly? > > > > ok, let's try something else: change the line "#if 0" to "#if 1" at the > > beginning of kernel/params.c, it looks like: > > > > #if 0 > > #define DEBUGP printk > > #else > > #define DEBUGP(fmt, a...) > > #endif > > > > rebuild your kernel, and reboot with it. Then, please send me that boot log to > > see whether the kernel command line is being received from the boot loader and > > what exactly is getting parsed. Thanks. > > Boris, I've done that; the output is in attached file dmesg.debug.out. it seems that your boot loader is not supplying the kernel with the boot params properly as can be seen from the excerpt below: ... Kernel command line: BOOT_IMAGE=linux_2.6.25rc2 ro root=900 md=0,/dev/sda5,/dev/sdb5 hda=noprobe Parsing ARGS: BOOT_IMAGE=linux_2.6.25rc2 ro root=900 md=0,/dev/sda5,/dev/sdb5 hda=noprobe Unknown argument: calling c03670ce Unknown argument: calling c03670ce Unknown argument: calling c03670ce Unknown argument: calling c03670ce md: Will configure md0 (super-block) from /dev/sda5,/dev/sdb5, below. Unknown argument: calling c03670ce ... and, as a result, the probing of hda still takes place. > It looks to me that the kernel still found the IDE DVD drive (hda) ... > in addition > to the system messages when the system was up I found the ide_cd_mod > module loaded on top of 'cdrom' as normal. > > > Please see whether you can apply the patch Bart just sent and if that still gets > > mangled and cannot be applied, consider making those changes to ide-cd.c by hand > > - after all, there are only several lines that need to be changed so it won't > > take that long. > > Bart, I was able to apply that patch file you attached with no problems, and the > behaviour of the patched kernel changed as follows: > > - no more 'confused' messages, nor the rush of other critical messages > that accompanied a system hang on one out of four tests yesterday. > > - However, a new message that popped up twice; once after a few seconds > of network activity, and then about 15-20 seconds afterwards: > > hda: ide_cd_check_ireason: wrong transfer direction! > hda: ide_cd_check_ireason: wrong transfer direction! Bart, can we assume here that some of the nic interrupts somehow get handled by ide-cd or something gets mixed up there? > - also, I'm pretty sure that performance of both network and DVD drive suffered. > > As to the last ... my new PC, on which I'm doing all this testing, has a gigabit > Realtek NIC. It's hooked up via null UTP cable to my older machine which has > a 100Mb/s card. ethtool shows that they both auto-negotiate to run at 100Mb/s > full duplex. When I run my network test (pumping through /dev/zero across ssh > from the old machine to the new) the network stats tell me that I'm getting > 10MB/s out of the link, which is what I would expect. > > With the patched 2.6.25-rc2 kernel running with no activity reading the DVD > but the network going flat out (on the old PC's end) I noted that I was only > getting only 8.0 or 8.1 MB/sec, rather than the 10 MB/sec I've seen in the other > tests.. There was no other network traffic or cpu load on the machine(s). > > Then, when I mounted a DVD disc and did a 'wc /mnt/*' of its contents > an iostat showed me that I was getting only about 6MB/sec out of the DVD > drive, which is less than I'd expect. As soon as I killed the network send > iostat's report zoomed up to roughly 10MB/sec. So it seemed to me that, > in addition to the 'wrong direction' messages, I was losing some performance > on both the NIC and the DVD drive. -- Regards/Gruß, Boris. ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: IDE cdrom problem with PLEXTOR DVDR PX-608AL 2008-02-26 17:46 ` Borislav Petkov @ 2008-02-26 20:48 ` Bartlomiej Zolnierkiewicz 0 siblings, 0 replies; 18+ messages in thread From: Bartlomiej Zolnierkiewicz @ 2008-02-26 20:48 UTC (permalink / raw) To: petkovbb; +Cc: Brad Rosser, linux-ide, linux-kernel Hi, On Tuesday 26 February 2008, Borislav Petkov wrote: > On Tue, Feb 26, 2008 at 06:32:41PM +1000, Brad Rosser wrote: > Hi Brad, > > > Hello Boris, Bart, > > > > On Tue, Feb 26, 2008 at 12:45 AM, Borislav Petkov > > <petkovbb@googlemail.com> wrote: > > > > > > On Mon, Feb 25, 2008 at 03:57:06PM +1000, Brad Rosser wrote: > > > > > > > > ... it would suggest the option 'hda=noprobe' was entered correctly? > > > > > > ok, let's try something else: change the line "#if 0" to "#if 1" at the > > > beginning of kernel/params.c, it looks like: > > > > > > #if 0 > > > #define DEBUGP printk > > > #else > > > #define DEBUGP(fmt, a...) > > > #endif > > > > > > rebuild your kernel, and reboot with it. Then, please send me that boot log to > > > see whether the kernel command line is being received from the boot loader and > > > what exactly is getting parsed. Thanks. > > > > Boris, I've done that; the output is in attached file dmesg.debug.out. > > it seems that your boot loader is not supplying the kernel with the boot params > properly as can be seen from the excerpt below: > > ... > Kernel command line: BOOT_IMAGE=linux_2.6.25rc2 ro root=900 md=0,/dev/sda5,/dev/sdb5 hda=noprobe > Parsing ARGS: BOOT_IMAGE=linux_2.6.25rc2 ro root=900 md=0,/dev/sda5,/dev/sdb5 hda=noprobe > Unknown argument: calling c03670ce > Unknown argument: calling c03670ce > Unknown argument: calling c03670ce > Unknown argument: calling c03670ce > md: Will configure md0 (super-block) from /dev/sda5,/dev/sdb5, below. > Unknown argument: calling c03670ce > ... > > and, as a result, the probing of hda still takes place. > > > It looks to me that the kernel still found the IDE DVD drive (hda) ... > > in addition > > to the system messages when the system was up I found the ide_cd_mod > > module loaded on top of 'cdrom' as normal. > > > > > Please see whether you can apply the patch Bart just sent and if that still gets > > > mangled and cannot be applied, consider making those changes to ide-cd.c by hand > > > - after all, there are only several lines that need to be changed so it won't > > > take that long. > > > > Bart, I was able to apply that patch file you attached with no problems, and the > > behaviour of the patched kernel changed as follows: > > > > - no more 'confused' messages, nor the rush of other critical messages > > that accompanied a system hang on one out of four tests yesterday. > > > > - However, a new message that popped up twice; once after a few seconds > > of network activity, and then about 15-20 seconds afterwards: > > > > hda: ide_cd_check_ireason: wrong transfer direction! > > hda: ide_cd_check_ireason: wrong transfer direction! > > Bart, can we assume here that some of the nic interrupts somehow get handled by > ide-cd or something gets mixed up there? I'm aware of one potential deficiency with shared PCI IRQs: disable_irq()+enable_irq() usage in ide_do_request() (can be fixed by not starting the new request from ide_intr() and instead waiting for block layer to do it) but it doesn't seem to be related... Besides ide-cd shouldn't get the control if the device is still BUSY... [ I find it weird that all previous error messages contained ireason == 0x01 while "wrong transfer direction" is triggered by ireason == 0x00/0x02 ? ] > > - also, I'm pretty sure that performance of both network and DVD drive suffered. > > > > As to the last ... my new PC, on which I'm doing all this testing, has a gigabit > > Realtek NIC. It's hooked up via null UTP cable to my older machine which has > > a 100Mb/s card. ethtool shows that they both auto-negotiate to run at 100Mb/s > > full duplex. When I run my network test (pumping through /dev/zero across ssh > > from the old machine to the new) the network stats tell me that I'm getting > > 10MB/s out of the link, which is what I would expect. > > > > With the patched 2.6.25-rc2 kernel running with no activity reading the DVD > > but the network going flat out (on the old PC's end) I noted that I was only > > getting only 8.0 or 8.1 MB/sec, rather than the 10 MB/sec I've seen in the other > > tests.. There was no other network traffic or cpu load on the machine(s). Is there any background process polling DVD drive? haldeamon? If so please stop it and see if it helps. > > Then, when I mounted a DVD disc and did a 'wc /mnt/*' of its contents > > an iostat showed me that I was getting only about 6MB/sec out of the DVD > > drive, which is less than I'd expect. As soon as I killed the network send > > iostat's report zoomed up to roughly 10MB/sec. So it seemed to me that, > > in addition to the 'wrong direction' messages, I was losing some performance > > on both the NIC and the DVD drive. Thanks for testing it. I merged the patch since it is an improvement over the old behavior and it is easier to look for full fix with it applied. Bart ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: IDE cdrom problem with PLEXTOR DVDR PX-608AL 2008-02-25 1:58 ` Brad Rosser 2008-02-25 5:34 ` Borislav Petkov @ 2008-02-25 13:56 ` Bartlomiej Zolnierkiewicz 1 sibling, 0 replies; 18+ messages in thread From: Bartlomiej Zolnierkiewicz @ 2008-02-25 13:56 UTC (permalink / raw) To: Brad Rosser; +Cc: petkovbb, linux-ide, linux-kernel [-- Attachment #1: Type: text/plain, Size: 1417 bytes --] On Monday 25 February 2008, Brad Rosser wrote: [...] > Bart wrote: > > > Does the following patch help? > > > > [ It makes ireason handling for REQ_TYPE_ATA_PC requests be the same as > > for other request types so "ireason == 1" quirk is used if needed. ] > > I tried to apply the patch but failed; I probably did something wrong. > I deleted everything in your message above 'Index: b/drivers/ide/ide-cd.c' > and ran 'patch --dry-run -b -p1 < ../bart_patch'. This is part of my script > log: > > root:/usr/src/linux-2.6.25-rc2# pwd > /usr/src/linux-2.6.25-rc2 > root:/usr/src/linux-2.6.25-rc2# cat ../bart_patch > Index: b/drivers/ide/ide-cd.c > =================================================================== > --- a/drivers/ide/ide-cd.c > +++ b/drivers/ide/ide-cd.c > @@ -670,8 +670,8 @@ static void cdrom_buffer_sectors (ide_dr > * and attempt to recover if there are problems. Returns 0 if everything's > ... > ... > root:/usr/src/linux-2.6.25-rc2# patch --dry-run -b -p1 < ../bart_patch > patching file drivers/ide/ide-cd.c > Hunk #1 FAILED at 670. > Hunk #2 FAILED at 701. > Hunk #3 FAILED at 1074. > Hunk #4 FAILED at 1104. > 4 out of 4 hunks FAILED -- saving rejects to file drivers/ide/ide-cd.c.rej Same command works just fine for me with 2.6.25-rc2/3. It could be that the patch got damaged somewhere on the way (to eleminate this possibility I'm attaching it to this mail). Thanks, Bart [-- Attachment #2: ide-cd-fix-ireason-handling-for-req_type_ata_pc.patch --] [-- Type: text/x-diff, Size: 1969 bytes --] --- drivers/ide/ide-cd.c | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) Index: b/drivers/ide/ide-cd.c =================================================================== --- a/drivers/ide/ide-cd.c +++ b/drivers/ide/ide-cd.c @@ -670,8 +670,8 @@ static void cdrom_buffer_sectors (ide_dr * and attempt to recover if there are problems. Returns 0 if everything's * ok; nonzero if the request has been terminated. */ -static -int ide_cd_check_ireason(ide_drive_t *drive, int len, int ireason, int rw) +static int ide_cd_check_ireason(ide_drive_t *drive, struct request *rq, + int len, int ireason, int rw) { /* * ireason == 0: the drive wants to receive data from us @@ -701,6 +701,9 @@ int ide_cd_check_ireason(ide_drive_t *dr drive->name, __FUNCTION__, ireason); } + if (rq->cmd_type == REQ_TYPE_ATA_PC) + rq->cmd_flags |= REQ_FAILED; + cdrom_end_request(drive, 0); return -1; } @@ -1071,11 +1074,11 @@ static ide_startstop_t cdrom_newpc_intr( /* * check which way to transfer data */ - if (blk_fs_request(rq) || blk_pc_request(rq)) { - if (ide_cd_check_ireason(drive, len, ireason, write)) - return ide_stopped; + if (ide_cd_check_ireason(drive, rq, len, ireason, write)) + return ide_stopped; - if (blk_fs_request(rq) && write == 0) { + if (blk_fs_request(rq)) { + if (write == 0) { int nskip; if (ide_cd_check_transfer_size(drive, len)) { @@ -1101,16 +1104,9 @@ static ide_startstop_t cdrom_newpc_intr( 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)))) { + } else { 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; } /* ^ permalink raw reply [flat|nested] 18+ messages in thread
end of thread, other threads:[~2008-02-26 22:23 UTC | newest]
Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-12 9:26 IDE cdrom problem with PLEXTOR DVDR PX-608AL Hans-Peter Jansen
2008-02-12 17:20 ` Borislav Petkov
2008-02-13 23:37 ` Hans-Peter Jansen
2008-02-14 6:26 ` Borislav Petkov
2008-02-14 10:08 ` Hans-Peter Jansen
2008-02-14 12:24 ` Bartlomiej Zolnierkiewicz
2008-02-14 13:42 ` Boris Petkov
2008-02-15 10:50 ` Borislav Petkov
[not found] <426a98560802232138q41d45d52ta515f1b791e937f4@mail.gmail.com>
2008-02-24 17:34 ` Borislav Petkov
2008-02-24 18:16 ` Bartlomiej Zolnierkiewicz
2008-02-25 1:58 ` Brad Rosser
2008-02-25 5:34 ` Borislav Petkov
2008-02-25 5:57 ` Brad Rosser
2008-02-25 14:45 ` Borislav Petkov
2008-02-26 8:32 ` Brad Rosser
2008-02-26 17:46 ` Borislav Petkov
2008-02-26 20:48 ` Bartlomiej Zolnierkiewicz
2008-02-25 13:56 ` Bartlomiej Zolnierkiewicz
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).