[1914] in linux-scsi channel archive
Re: AHA1542CF: "Device or resource busy" with new motherboard
daemon@ATHENA.MIT.EDU (doctor@fruitbat.org)
Wed May 28 13:03:25 1997
From: doctor@fruitbat.org
To: trevor@jpj.net (Trevor Johnson)
Date: Wed, 28 May 1997 09:59:53 -0700 (PDT)
Cc: linux-scsi@vger.rutgers.edu, mike.mclagan@linux.org
In-Reply-To: <Pine.LNX.3.96.970528002807.509B-100000@ppp4.csudh.EDU> from "Trevor Johnson" at May 28, 97 01:20:28 am
Hi Trevor,
I happen to have the same no-name motherboard as you ("P5TVX-AT," Intel
Triton II chip set, P100, Award BIOS V1.0A, 1996) as well as an AHA1542CF
and NE2000 clone. I had similar problems to yours. I solved it by
moving the base and IRQ for the 1542CF to base 0x330, IRQ 11, DMA 6, and
marked this IRQ as well as my NE2000's IRQ (IRQ 10, base 0x300) as
"Legacy IRQ"s. I'd noticed that the ordering of the boards determined
which failed to respond to IRQs (usually the second board in the ordering
was the one to fail). If you have any other boards which aren't strictly
PnP (perhaps your soundblaster?), they should be marked as Legacy IRQs.
Other settings for the 1542CF:
Host BIOS Enabled,
Parity Enabled,
DMA Transfer 5.0Mb/sec,
Host Termination Enabled,
switches: all off, except for sw5 (Disable Floppy)
Suggest you run the Host Diagnostics for the 1542.
Good Luck!
> I could use some help (no, not that kind). I recently replaced my ASUS
> PVI-486SP3 motherboard (SiS 85C496/497 chip set) and AMD 5x86 CPU with a
> no-name motherboard ("P5TVX-AT," Intel Triton II chip set) and Pentium
> CPU. My SCSI host adapter doesn't work with the new board.
>
> # insmod aha1542
> /lib/modules/2.1.40/scsi/aha1542.o: init_module: Device or resource busy
>
> I tried adding some printk statements to aha1542.c, and found that the
> driver usually gets that error message as it's doing this:
>
> /* Quick and dirty test for presence of the card. */
> if(inb(STATUS(bse)) == 0xff) return 0;
>
> although one time it apparently got past that:
>
> May 20 18:15:29 topside kernel: aha1542.c: doing quick and dirty test.
> May 20 18:15:29 topside kernel: aha1542.c: quick and dirty test returned
> true, resetting interrupts.
> May 20 18:15:29 topside kernel: aha1542.c: done resetting interrupts,
> writing control.
> May 20 18:15:29 topside kernel: aha1542.c: waiting.
> May 20 18:15:29 topside kernel: aha1542.c: setting debug level to 1.
> May 20 18:15:29 topside kernel: aha1542.c: doing quick and dirty test.
>
> I've tried compiling the driver into the kernel proper, rather than as a
> module. It just reported:
>
> scsi: 0 hosts.
> scsi : detected total.
>
> I tried three different versions of the kernel from {2.1.40, pre-2.0.31,
> 2.0.29, 2.1.29} with the same result (only as a module).
>
> My card is set to use 0x134, DMA 6 and IRQ 10; the BIOS is enabled and DIP
> switches are set to 01011101. In the CMOS setup, I marked IRQ 10 and DMA
> 6 as "legacy ISA." I also have:
>
> - SoundBlaster 32 PnP
> - Realtek PCI NE2000 clone
> - Cirrus Logic DG5424 ISA video card (I'd been using a DG5426-based VESA
> card before)
> - internal modem
>
> - serial mouse running off the motherboard's ALI M5112
> - IDE hard drives
>
> The board has an ALI M5112 chip providing built-in ports:
>
> - USB (disabled)
> - PS/2 (disabled)
> - dual IDE (both working)
> - parallel (working)
> - dual serial (one working, one disabled)
>
> /proc/interrupts:
>
> 0: 1748369 timer
> 1: 61021 keyboard
> 2: 0 cascade
> 3: 273974 serial
> 4: 75962 serial
> 5: 2 soundblaster
> 11: 0 NE2000
> 13: 1 FPU math error
> 14: 3740 ide0
> 15: 16509 ide1
>
> /proc/ioports:
>
> 0000-001f : dma1
> 0020-003f : pic1
> 0040-005f : timer
> 0060-006f : keyboard
> 0080-008f : dma page reg
> 00a0-00bf : pic2
> 00c0-00df : dma2
> 00f0-00ff : npu
> 0170-0177 : ide1
> 01f0-01f7 : ide0
> 0220-022f : soundblaster
> 02f8-02ff : serial(auto)
> 0330-0333 : SB MIDI
> 0376-0376 : ide1
> 0388-038b : OPL3/OPL2
> 03c0-03df : vga+
> 03f6-03f6 : ide0
> 03f8-03ff : serial(auto)
> 0620-0623 : sound driver (AWE32)
> 0a20-0a23 : sound driver (AWE32)
> 0e20-0e23 : sound driver (AWE32)
> 6100-611f : NE2000
> f000-f007 : IDE DMA
> f008-f00f : IDE DMA
>
> /proc/pci:
>
> PCI devices found:
> Bus 0, device 19, function 0:
> Ethernet controller: Realtek 8029 (rev 0).
> Medium devsel. IRQ 255.
> I/O at 0x6100.
> Bus 0, device 7, function 1:
> IDE interface: Intel 82371SB Natoma/Triton II PIIX3 (rev 0).
> Medium devsel. Fast back-to-back capable. Master Capable.
> Latency=32.
> I/O at 0xf000.
> Bus 0, device 7, function 0:
> ISA bridge: Intel 82371SB Natoma/Triton II PIIX3 (rev 1).
> Medium devsel. Fast back-to-back capable. Master Capable. No
> bursts.
> Bus 0, device 0, function 0:
> Host bridge: Intel 82437VX Triton II (rev 2).
> Medium devsel. Master Capable. Latency=32.
--
Peter A. Castro (doctor@fruitbat.org) or (pcastro@us.oracle.com)