mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH]][2.4-ac] opti621 can't do dma
@ 2002-09-10 17:22 Zwane Mwaikambo
  2002-09-10 17:16 ` Daniela Engert
  0 siblings, 1 reply; 4+ messages in thread
From: Zwane Mwaikambo @ 2002-09-10 17:22 UTC (permalink / raw)
  To: Andre Hedrick; +Cc: Alan Cox, Linux Kernel

Hi Andre, Alan
	afaik the opti621 can't do DMA, also aren't they all addon cards?

ide: Assuming 33MHz system bus speed for PIO modes; override with 
idebus=xx
SIS5513: IDE controller at PCI slot 00:00.1
PCI: No IRQ known for interrupt pin A of device 00:00.1. Please try using 
pci=biosirq.
SIS5513: chipset revision 208
SIS5513: not 100% native mode: will probe irqs later
SiS620    ATA 66 controller
    ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:pio, hdb:pio
    ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdc:pio, hdd:pio
OPTI621: IDE controller at PCI slot 00:09.0
PCI: Found IRQ 9 for device 00:09.0
OPTI621: chipset revision 0
OPTI621: 100% native mode on irq 9
OPTI621: dma_base is invalid (0x0000)
ide2: OPTI621 Bus-Master DMA disabled (BIOS)
OPTI621: dma_base is invalid (0x0000)
ide3: OPTI621 Bus-Master DMA disabled (BIOS)
hda: WDC WD75DA-00AWA1, ATA DISK drive
hdb: WDC AC11200L, ATA DISK drive
blk: queue c04ad7c0, I/O limit 4095Mb (mask 0xffffffff)
blk: queue c04ad91c, I/O limit 4095Mb (mask 0xffffffff)
hdd: ATAPI CDROM, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15

Index: linux-2.4.20-pre5-ac4/drivers/ide/pci//opti621.c
===================================================================
RCS file: /build/cvsroot/linux-2.4.20-pre5-ac4/drivers/ide/pci/opti621.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 opti621.c
--- linux-2.4.20-pre5-ac4/drivers/ide/pci//opti621.c	8 Sep 2002 18:05:34 -0000	1.1.1.1
+++ linux-2.4.20-pre5-ac4/drivers/ide/pci//opti621.c	9 Sep 2002 21:00:42 -0000
@@ -330,30 +330,10 @@
  */
 static void __init init_hwif_opti621 (ide_hwif_t *hwif)
 {
-	hwif->autodma = 0;
 	hwif->drives[0].drive_data = PIO_DONT_KNOW;
 	hwif->drives[1].drive_data = PIO_DONT_KNOW;
 	hwif->tuneproc = &opti621_tune_drive;
-
-	if (!(hwif->dma_base))
-		return;
-
-	hwif->atapi_dma = 1;
-	hwif->mwdma_mask = 0x07;
-	hwif->swdma_mask = 0x07;
-
-#ifdef CONFIG_BLK_DEV_IDEDMA
-	if (!noautodma)
-		hwif->autodma = 1;
-	hwif->drives[0].autodma = hwif->autodma;
-	hwif->drives[1].autodma = hwif->autodma;
-#endif /* CONFIG_BLK_DEV_IDEDMA */
-
-}
-
-static void __init init_dma_opti621 (ide_hwif_t *hwif, unsigned long dmabase)
-{
-	ide_setup_dma(hwif, dmabase, 8);
+	hwif->dma_base = 0;
 }
 
 extern void ide_setup_pci_device(struct pci_dev *, ide_pci_device_t *);
Index: linux-2.4.20-pre5-ac4/drivers/ide/pci//opti621.h
===================================================================
RCS file: /build/cvsroot/linux-2.4.20-pre5-ac4/drivers/ide/pci/opti621.h,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 opti621.h
--- linux-2.4.20-pre5-ac4/drivers/ide/pci//opti621.h	8 Sep 2002 18:05:34 -0000	1.1.1.1
+++ linux-2.4.20-pre5-ac4/drivers/ide/pci//opti621.h	9 Sep 2002 20:56:11 -0000
@@ -18,11 +18,11 @@
 		init_chipset:	NULL,
 		init_iops:	NULL,
 		init_hwif:	init_hwif_opti621,
-		init_dma:	init_dma_opti621,
+		init_dma:	NULL,
 		channels:	2,
-		autodma:	AUTODMA,
+		autodma:	NODMA,
 		enablebits:	{{0x45,0x80,0x00}, {0x40,0x08,0x00}},
-		bootable:	ON_BOARD,
+		bootable:	OFF_BOARD,
 		extra:		0,
 	},{
 		vendor:		PCI_VENDOR_ID_OPTI,
@@ -32,11 +32,11 @@
 		init_chipset:	NULL,
 		init_iops:	NULL,
 		init_hwif:	init_hwif_opti621,
-                init_dma:	init_dma_opti621,
+                init_dma:	NULL,
 		channels:	2,
-		autodma:	AUTODMA,
+		autodma:	NODMA,
 		enablebits:	{{0x45,0x80,0x00}, {0x40,0x08,0x00}},
-		bootable:	ON_BOARD,
+		bootable:	OFF_BOARD,
 		extra:		0,
 	},{
 		vendor:		0,

-- 
function.linuxpower.ca


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-09-11 10:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-10 17:22 [PATCH]][2.4-ac] opti621 can't do dma Zwane Mwaikambo
2002-09-10 17:16 ` Daniela Engert
2002-09-10 18:28   ` Zwane Mwaikambo
2002-09-11 10:09     ` Daniela Engert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®