Skip to contentSkip to conversation

clarify why DMA gets disabled on broken drives

PATCH New Tomas Szepe 1 participant 1 message Aug 5, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clarify why DMA gets disabled on broken drives

Alan,

I just ran into this and had to look at the sources to find out why the IDE driver was turning off DMA for a particular drive.

(It's nice to see that this actually works, btw. 8))

-
Tomas Szepe <[email protected]>

Patch against 2.4.22-rc1.

drivers/ide/ide-dma.c +3 -2
diff -urN a/drivers/ide/ide-dma.c b/drivers/ide/ide-dma.c
@@ -835,7 +835,8 @@
 #ifdef CONFIG_IDEDMA_NEW_DRIVE_LISTINGS
 	int blacklist = in_drive_list(id, drive_blacklist);
 	if (blacklist) {
-		printk("%s: Disabling (U)DMA for %s\n", drive->name, id->model);
+		printk("%s: Disabling (U)DMA for %s (on blacklist)\n",
+			drive->name, id->model);
 		return(blacklist);
 	}
 #else /* !CONFIG_IDEDMA_NEW_DRIVE_LISTINGS */
@@ -844,7 +845,7 @@
 	list = bad_dma_drives;
 	while (*list) {
 		if (!strcmp(*list++,id->model)) {
-			printk("%s: Disabling (U)DMA for %s\n",
+			printk("%s: Disabling (U)DMA for %s (on blacklist)\n",
 				drive->name, id->model);
 			return 1;
 		}