Re: http://bugzilla.kernel.org/show_bug.cgi?id=11742
From: Valerio Passini <hidden>
Date: 2008-10-22 14:46:19
quoted hunk ↗ jump to hunk
diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c index 13265a8..6943462 100644 --- a/drivers/ide/ide-cd.c +++ b/drivers/ide/ide-cd.c@@ -1251,8 +1251,14 @@ static void cdrom_do_block_pc(ide_drive_t*drive, struct request *rq) */ alignment = queue_dma_alignment(q) | q->dma_pad_mask; if ((unsigned long)buf & alignment || rq->data_len & alignment - || object_is_on_stack(buf)) + || object_is_on_stack(buf)) { + printk(KERN_ERR "Disabling dma for ATA_PC, " + "queue_dma_alignment: 0x%x, q->dma_pad_mask: 0x%x," + "buf: %p, rq->data_len: 0x%x, on_stack: %d\n", + queue_dma_alignment(q), q->dma_pad_mask, buf, + rq->data_len, object_is_on_stack(buf)); drive->dma = 0; + } } }
Hi Boris, please send me patches already formatted to be applied by patch program, because the substitution of spaces with tabs and other indentation characters requires a lot of time and it has never worked (or explain me how to make it work :)) Anyhow, I have given a look to the patch compared to the original file. Is it possible to apply to plain 2.6.27 kernel? From a brief look, it is very different from 2.6.27 ide-cd.c file and maybe I need to download the development branch of the kernel with GIT to apply it or a more recent subversion like 2.6.27.2. Waiting for you. P.S: I have received messages from bugzilla, but I have subscribed to this mailing list on Fujita's suggestion just to ease communication. What do you prefer between bugzilla and linux-ide?