Cobalt IDE fix
Fix long IDE detection delay by not scanning non-existent channels.
P.
include/asm-mips/mach-cobalt/ide.h new file +8 -0
@@ -0,0 +1,8 @@ +#ifndef __ASM_COBALT_IDE_H +#define __ASM_COBALT_IDE_H + +#define MAX_HWIFS 2 + +#include <asm/mach-generic/ide.h> + +#endif
Quoted 1 line · Peter Horton
Fix long IDE detection delay by not scanning non-existent channels.
That just changes the number of interfaces that can be registered. The right fix is to change the list of non-PCI addresses scanned for the system in question and not blindly copy x86 I suspect.
Quoted 8 lines · Alan Cox
Quoted 1 line · Peter Horton
Fix long IDE detection delay by not scanning non-existent channels.
That just changes the number of interfaces that can be registered. The right fix is to change the list of non-PCI addresses scanned for the system in question and not blindly copy x86 I suspect.
Actually... could a configure option in Kconfig be added to disable probing particular IDE busses?
Or at least, it should probe once then stop when it finds nothing. At the moment, both my Qube2 and my x86 desktop hangs momentarily while via82cxxx loads:
Quoted 20 lines
Linux video capture interface: v1.00
bttv: driver version 0.9.16 loaded
bttv: using 8 buffers with 2080k (520 pages) each for capture Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xxVP_IDE: IDE controller at PCI slot 0000:00:04.1VP_IDE: chipset revision 6VP_IDE: not 100% native mode: will probe irqs laterVP_IDE: VIA vt82c686b (rev 40) IDE UDMA100 controller on pci0000:00:04.1ide0: BM-DMA at 0xb800-0xb807, BIOS settings: hda:pio, hdb:pio ide1: BM-DMA at 0xb808-0xb80f, BIOS settings: hdc:DMA, hdd:pioProbing IDE interface ide0...
hda: IRQ probe failed (0xfff0f5fc)
hda: IRQ probe failed (0xfff0f5fc)
hda: no response (status =0x0a), resetting drive
hda: IRQ probe failed (0xfff0f5fc)
hda: no response (status =0x0a)
hdb: IRQ probe failed (0xfff0f5fc)
hdb: IRQ probe failed (0xfff0f5fc)
hdb: no response (status =0x0a), resetting drive
Quoted 8 lines
hdb: IRQ probe failed (
0xfff0f5fc)
hdb: no response (status =0x0a)
Probing IDE interface ide1...
hdc: DVD-ROM DDU1621, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled ttyS0 at I/O0x3f8(irq = 4) is a 16550A
ttyS1 at I/O0x2f8(irq = 3) is a 16550A
Yep... you guessed it... nothing is plugged into the primary interface ... my HDDs are SCSI. It would be nice to be able to turn off probing ide0, either at compile time, or better still, on the kernel commandline.
I think this would be a better fix... as the problem doesn't just exist on Cobalt, it's any machine with only one IDE bus in use.
Signature · 4 lines
Stuart Longland (aka Redhatter) .'''. Gentoo Linux/MIPS Cobalt and Docs Developer '.'` : . . . . . . . . . . . . . . . . . . . . . . .'.' http://dev.gentoo.org/~redhatter :.'
Quoted 2 lines · Stuart Longland
Actually... could a configure option in
Kconfigbe added to disable probing particular IDE busses?
ide0=noprobe
Quoted 5 lines
Quoted 5 lines
VP_IDE: VIA vt82c686b (rev 40) IDE UDMA100 controller on pci0000:00:04.1ide0: BM-DMA at 0xb800-0xb807, BIOS settings: hda:pio, hdb:pio ide1: BM-DMA at 0xb808-0xb80f, BIOS settings: hdc:DMA, hdd:pioProbing IDE interface ide0...
hda: IRQ probe failed (0xfff0f5fc)
This is probing beause the IDE enable bits have not been set correctly by the BIOS I think. Not much we can do if the BIOS says "yes there is a drive" and there is not.