mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [BUG][PATCH] 2.5.46 ide-dma oops on boot
@ 2002-11-08 10:06 Mikael Pettersson
  2002-11-08 16:22 ` Alan Cox
  0 siblings, 1 reply; 2+ messages in thread
From: Mikael Pettersson @ 2002-11-08 10:06 UTC (permalink / raw)
  To: linux-kernel

I tried 2.5.46 on my News server, and it oopsed on boot in
ide-dma.c:ide_iomio_dma(): the code dereferenced hwif->mate
even though hwif->mate was NULL.

The patch below fixes this issue for me, although this oops
may just be a consequence of some deeper problem.

I suspect this is due to the HW config of the machine in question:
onboard PIIX has nothing on ide0 and a CD-ROM as master on ide1,
the disks are on an add-on Promise Ultra100 card. The oops ocurred
at exactly this point in the boot process:

Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller at PCI slot 00:07.1
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later
    ide1: BM-DMA at 0x1868-0x186f, BIOS settings: hdc:DMA, hdd:pio

*************************** here ^

/Mikael

--- linux-2.5.46/drivers/ide/ide-dma.c.~1~	2002-11-08 09:29:10.000000000 +0100
+++ linux-2.5.46/drivers/ide/ide-dma.c	2002-11-08 10:05:12.000000000 +0100
@@ -926,7 +926,7 @@
 		request_region(base+16, hwif->cds->extra, hwif->cds->name);
 		hwif->dma_extra = hwif->cds->extra;
 	}
-	hwif->dma_master = (hwif->channel) ? hwif->mate->dma_base : base;
+	hwif->dma_master = (hwif->channel && hwif->mate) ? hwif->mate->dma_base : base;
 	if (hwif->dma_base2) {
 		if (!request_region(hwif->dma_base2, ports, hwif->name))
 		{

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

* Re: [BUG][PATCH] 2.5.46 ide-dma oops on boot
  2002-11-08 10:06 [BUG][PATCH] 2.5.46 ide-dma oops on boot Mikael Pettersson
@ 2002-11-08 16:22 ` Alan Cox
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Cox @ 2002-11-08 16:22 UTC (permalink / raw)
  To: Mikael Pettersson; +Cc: Linux Kernel Mailing List

On Fri, 2002-11-08 at 10:06, Mikael Pettersson wrote:
> The patch below fixes this issue for me, although this oops
> may just be a consequence of some deeper problem.

Its part of the needed fix. I have a fuller one in the pending queue
that someone sent me, and is waiting for when I get back into the IDE
code


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

end of thread, other threads:[~2002-11-08 15:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-08 10:06 [BUG][PATCH] 2.5.46 ide-dma oops on boot Mikael Pettersson
2002-11-08 16:22 ` Alan Cox

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®