From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
To: petkovbb@gmail.com
Cc: Michael Roth <mroth@nessie.de>, linux-kernel@vger.kernel.org
Subject: Re: Bug in 2.6.29 ide-cd: Kernel freeze: bisected + unacceptable workaround
Date: Mon, 30 Mar 2009 22:28:54 +0200 [thread overview]
Message-ID: <200903302228.54601.bzolnier@gmail.com> (raw)
In-Reply-To: <20090330072713.GA13776@liondog.tnic>
On Monday 30 March 2009, Borislav Petkov wrote:
> Hi Michael,
>
> On Sun, Mar 29, 2009 at 11:37:40PM +0200, Michael Roth wrote:
> > Hello Borislav,
> >
> > thank you for your help.
> >
> > Borislav Petkov schrieb:
> >
> > > Can we please see a dmesg of a working
> > > kernel on your machine
> >
> > Sure, dmesg output appended beneath. I also added the dmesg output
> > of the patched kernel. See below.
> >
> >
> > > and also is it possible to catch any kernel output of the crash
> > > any oops or something when your machine freezes - the more the better.
> >
> > There aren't any messages, neither on the console nor in the syslog.
> > The kernel simple freeze, cursor on the console stops blinking, no
> > more ide activity. I have to hit the reset-bottom to restart.
> >
> >
> > > Probably over a serial console would be best but photographed
> > > with a digicam and uploaded somewhere as a screenshot would do too.
> >
> > I will do that on request, but it will take some time (about days)
> > because currently I don't have access to a second computer or so.
>
> That'll definitely be very helpful since I wanna know exactly why it
> locks up. If you still have no output it'd be cool if you could enable
> ide-cd debugging and retry catching the output. Here's a patch for that,
> just recompile and reboot (I admit this is not one of the finest ways to
> enable debugging but since this is work in progress...:) ):
>
> --
> diff --git a/drivers/ide/ide-atapi.c b/drivers/ide/ide-atapi.c
> index e9d042d..4ef3b7e 100644
> --- a/drivers/ide/ide-atapi.c
> +++ b/drivers/ide/ide-atapi.c
> @@ -8,6 +8,8 @@
> #include <linux/ide.h>
> #include <scsi/scsi.h>
>
> +#define DEBUG 1
> +
> #ifdef DEBUG
> #define debug_log(fmt, args...) \
> printk(KERN_INFO "ide: " fmt, ## args)
> diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c
> index ddfbea4..ea36295 100644
> --- a/drivers/ide/ide-cd.c
> +++ b/drivers/ide/ide-cd.c
> @@ -1991,7 +1991,7 @@ static int ide_cd_probe(ide_drive_t *drive)
> }
> }
>
> - drive->debug_mask = debug_mask;
> + drive->debug_mask = 0xffffffff;
> drive->irq_handler = cdrom_newpc_intr;
>
> info = kzalloc(sizeof(struct cdrom_info), GFP_KERNEL);
> diff --git a/drivers/ide/ide-cd.h b/drivers/ide/ide-cd.h
> index c878bfc..225afca 100644
> --- a/drivers/ide/ide-cd.h
> +++ b/drivers/ide/ide-cd.h
> @@ -8,7 +8,7 @@
> #include <linux/cdrom.h>
> #include <asm/byteorder.h>
>
> -#define IDECD_DEBUG_LOG 0
> +#define IDECD_DEBUG_LOG 1
>
> #if IDECD_DEBUG_LOG
> #define ide_debug_log(lvl, fmt, args...) __ide_debug_log(lvl, fmt, args)
>
> > > You could also try the following patch to see whether that is of any
> > > help:
> >
> > Your patch helps perfectly. I'm writing this email on the patched
> > 2.6.29. I also tested CD and DVD access: They work well. Burning not
> > tested but I assume it will work too.
>
> @Bart: can you take at look at this. Somehow, if the device is behind a
> PCI IDE controller, the order of issuing the command and enabling DMA is
> important. Seen something like that before?
Spec is unclear on the ordering but empirically it seems that some hosts
may need packet command to start DMA. I think that we should proceed with
your patch (please repost with patch description) and also apply the same
change to the rest of ATAPI devices in a subsequent patch.
Thanks,
Bart
next prev parent reply other threads:[~2009-03-30 20:26 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-29 19:25 Bug in 2.6.29 ide-cd: Kernel freeze: bisected + unacceptable workaround Michael Roth
2009-03-29 20:13 ` Borislav Petkov
2009-03-29 21:37 ` Michael Roth
2009-03-30 7:27 ` Borislav Petkov
2009-03-30 11:10 ` Michael Roth
2009-03-30 11:38 ` Michael Roth
2009-03-30 11:50 ` Michael Roth
2009-03-30 20:28 ` Bartlomiej Zolnierkiewicz [this message]
2009-03-31 7:45 ` Borislav Petkov
2009-03-31 11:28 ` Alan Cox
2009-03-31 12:35 ` Michael Roth
2009-03-31 14:06 ` Borislav Petkov
2009-03-31 18:01 ` Bartlomiej Zolnierkiewicz
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=200903302228.54601.bzolnier@gmail.com \
--to=bzolnier@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mroth@nessie.de \
--cc=petkovbb@gmail.com \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.