public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Borislav Petkov <petkovbb@googlemail.com>
To: Michael Roth <mroth@nessie.de>
Cc: linux-kernel@vger.kernel.org,
	Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Subject: Re: Bug in 2.6.29 ide-cd: Kernel freeze: bisected + unacceptable workaround
Date: Sun, 29 Mar 2009 22:13:37 +0200	[thread overview]
Message-ID: <20090329201337.GA9962@liondog.tnic> (raw)
In-Reply-To: <49CFCB2A.4020505@nessie.de>

Hi Michael,

On Sun, Mar 29, 2009 at 09:25:30PM +0200, Michael Roth wrote:
>
> commit 1e91477aa335fc1c97eb15649ed1a1714cc758ec
> Author: Borislav Petkov <petkovbb@gmail.com>
> Date:   Tue Jan 6 17:20:57 2009 +0100
> 
>     ide-cd: start DMA before sending the actual packet command
> 
>     as it is done for all other IDE ATAPI devices.
> 
>     There should be no functionality change resulting from this patch.
> 
>     Signed-off-by: Borislav Petkov <petkovbb@gmail.com>
>     Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
> 
> 
> I tried to revert this patch in 2.6.29 but the revert produced a merge
> conflict and I don't have the knowledge to resolve this conflict.

Well, its kinda strange that this piece of code could be the problem
since the bits it touches are gone (this'll explain the confict when
attempting to revert the patch.) Can we please see a dmesg of a working
kernel on your machine 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. Probably over a serial console would be best but
photographed with a digicam and uploaded somewhere as a screenshot would
do too.

> So as a quick workaround I disabled ide-cd in my kernel config:
> 
> # CONFIG_BLK_DEV_IDECD is not set
> 
> which does the trick but is of course no solution. (I'm writing
> this email with 2.6.29 and disabled ide-cd.)

You could also try the following patch to see whether that is of any
help:

---
diff --git a/drivers/ide/ide-atapi.c b/drivers/ide/ide-atapi.c
index e9d042d..99fb0b0 100644
--- a/drivers/ide/ide-atapi.c
+++ b/drivers/ide/ide-atapi.c
@@ -567,10 +567,7 @@ static ide_startstop_t ide_transfer_pc(ide_drive_t *drive)
 			timeout, expiry);
 
 	/* Begin DMA, if necessary */
-	if (dev_is_idecd(drive)) {
-		if (drive->dma)
-			hwif->dma_ops->dma_start(drive);
-	} else {
+	if (!dev_is_idecd(drive)) {
 		if (pc->flags & PC_FLAG_DMA_OK) {
 			pc->flags |= PC_FLAG_DMA_IN_PROGRESS;
 			hwif->dma_ops->dma_start(drive);
@@ -581,6 +578,12 @@ static ide_startstop_t ide_transfer_pc(ide_drive_t *drive)
 	if ((drive->atapi_flags & IDE_AFLAG_ZIP_DRIVE) == 0)
 		hwif->tp_ops->output_data(drive, NULL, rq->cmd, cmd_len);
 
+	/* Begin DMA, if necessary */
+	if (dev_is_idecd(drive)) {
+		if (drive->dma)
+			hwif->dma_ops->dma_start(drive);
+	}
+
 	return ide_started;
 }

--

Thanks.

-- 
Regards/Gruss,
    Boris.

  reply	other threads:[~2009-03-29 20:13 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 [this message]
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
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=20090329201337.GA9962@liondog.tnic \
    --to=petkovbb@googlemail.com \
    --cc=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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox