2.5.46 ide-dma oops on boot
PATCH 1/1 2.5.46 ide-dma oops on boot
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
drivers/ide/ide-dma.c renamed from drivers/ide/ide-dma.c.~1~ +1 -1
@@ -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)) {
Quoted 2 lines · Mikael Pettersson
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