Re: PROBLEM: ide-cd in 2.6.8-2.6.10 and 2.4.26-2.4.28 high cpu use with dma

From: Hikaru1
Date: Sun Jan 09 2005 - 05:56:36 EST


Whoops! Forgot to include the patch.

Sorry.

Timothy Charles McGrathdiff -ur linux-2.6.10-orig/drivers/ide/ide-cd.c linux-2.6.10/drivers/ide/ide-cd.c
--- linux-2.6.10-orig/drivers/ide/ide-cd.c 2004-12-24 16:34:33.000000000 -0500
+++ linux-2.6.10/drivers/ide/ide-cd.c 2005-01-07 07:49:43.000000000 -0500
@@ -3151,7 +3151,7 @@
int nslots;

blk_queue_prep_rq(drive->queue, ide_cdrom_prep_fn);
- blk_queue_dma_alignment(drive->queue, 31);
+ blk_queue_dma_alignment(drive->queue, 3);
drive->queue->unplug_delay = (1 * HZ) / 1000;
if (!drive->queue->unplug_delay)
drive->queue->unplug_delay = 1;
Only in linux-2.6.10/drivers/ide: ide-cd.c~