LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Borislav Petkov <petkovbb@googlemail.com>
To: Brad Rosser <brad.rosser@gmail.com>
Cc: bzolnier@gmail.com, linux-ide@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: IDE cdrom problem with PLEXTOR DVDR PX-608AL
Date: Mon, 25 Feb 2008 06:34:04 +0100 [thread overview]
Message-ID: <20080225053404.GA3816@gollum.tnic> (raw)
In-Reply-To: <426a98560802241758j7a9be21m5eecc120ada804e4@mail.gmail.com>
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.
next prev parent reply other threads:[~2008-02-25 5:34 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
[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 [this message]
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
2008-02-12 9:26 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080225053404.GA3816@gollum.tnic \
--to=petkovbb@googlemail.com \
--cc=brad.rosser@gmail.com \
--cc=bzolnier@gmail.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=petkovbb@gmail.com \
--subject='Re: IDE cdrom problem with PLEXTOR DVDR PX-608AL' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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).