lkml.org 
[lkml]   [2009]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Bug in 2.6.29 ide-cd: Kernel freeze: bisected + unacceptable workaround
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.


\
 
 \ /
  Last update: 2009-03-29 22:17    [W:0.055 / U:1.944 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site