Subject: kern/18893: pciide0:0:0: bus-master DMA error: missing interrupt, status=0x21
To: None <gnats-bugs@gnats.netbsd.org>
From: None <gilbert.fernandes@wanadoo.fr>
List: netbsd-bugs
Date: 11/02/2002 09:19:23
>Number:         18893
>Category:       kern
>Synopsis:       pciide0:0:0: bus-master DMA error: missing interrupt, status=0x21
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 02 09:20:03 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Gilbert Fernandes
>Release:        NetBSD 1.6 i386
>Organization:
>Environment:
NetBSD shuttle 1.6 NetBSD 1.6 (KERN1) #0: Sat Nov 2 19:00:36 CET 2002
root@shuttle:/usr/src/sys/arch/i386/compile/KERN1 i386
>Description:
I have a Shuttle SS51G machine (Pentium4 2.66, 1 Gb DDR Ram)
If I do not turn off the UltraDMA in the BIOS for IDE1 and IDE2 the NetBSD kernel (GENERIC) produces this error message:

pciide0:0:0: bus-master DMA error: missing interrupt, status=0x21

I have compiled a new kernel, KERN1 with the following flags value on wd* pciide : 0x0fec
This changed nothing.

If the UltraDMA is turned off in the BIOS the machine boots and produces the following dmesg:

--dmesg start

NetBSD 1.6 (KERN1) #0: Sat Nov  2 19:00:36 CET 2002
    root@shuttle:/usr/src/sys/arch/i386/compile/KERN1
cpu0: Intel Pentium 4 (686-class), 2663.25 MHz
cpu0: D-cache 8 KB 64b/line 4-way
cpu0: L2 cache 512 KB 64b/line 8-way
cpu0: features ffffffffbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features ffffffffbfebfbff<PGE,MCA,CMOV,FGPAT,PSE36,CFLUSH,DS,ACPI,MMX>
cpu0: features ffffffffbfebfbff<FXSR,SSE,SSE2,SS,HTT,TM,B31>
total memory = 1023 MB
avail memory = 944 MB
using 6144 buffers containing 52508 KB of memory
BIOS32 rev. 0 found at 0xfb4e0
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: Silicon Integrated System product 0x0651 (rev. 0x01)
agp0 at pchb0: aperture at 0xe0000000, size 0x8000000
ppb0 at pci0 dev 1 function 0: Silicon Integrated System 86C201 (rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: ATI Technologies Radeon 8500 (rev. 0x00)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
pcib0 at pci0 dev 2 function 0
pcib0: Silicon Integrated System 85C503 or 5597/5598 ISA bridge (rev. 0x04)
pciide0 at pci0 dev 2 function 5: Silicon Integrated System 5597/5598 IDE controller (rev. 0x00)
pciide0: bus-master DMA support present
pciide0: primary channel configured to compatibility mode
wd0 at pciide0 channel 0 drive 0: <MAXTOR 6L080J4>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 76345 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 156355584 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
pciide0: secondary channel configured to compatibility mode
atapibus0 at pciide0 channel 1: 2 targets
cd0 at atapibus0 drive 0: <PLEXTOR CD-R   PX-W4012A, 196413, 1.02> type 5 cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
pciide0: secondary channel interrupting at irq 15
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
Silicon Integrated System product 0x7012 (audio multimedia, revision 0xa0) at pci0 dev 2 function 7 not configured
ohci0 at pci0 dev 3 function 0: Silicon Integrated System 5597/5598 USB host controller (rev. 0x0f)
ohci0: interrupting at irq 5
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Silicon Integra OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ohci1 at pci0 dev 3 function 1: Silicon Integrated System 5597/5598 USB host controller (rev. 0x0f)
ohci1: interrupting at irq 10
ohci1: OHCI version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: Silicon Integra OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
ohci2 at pci0 dev 3 function 2: Silicon Integrated System 5597/5598 USB host controller (rev. 0x0f)
ohci2: interrupting at irq 11
ohci2: OHCI version 1.0, legacy support
usb2 at ohci2: USB revision 1.0
uhub2 at usb2
uhub2: Silicon Integra OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
Silicon Integrated System product 0x7002 (USB serial bus, interface 0x20) at pci0 dev 3 function 3 not configured
rtk0 at pci0 dev 15 function 0: RealTek 8139 10/100BaseTX
rtk0: interrupting at irq 10
rtk0: Ethernet address 00:30:1b:ab:2c:7a
ukphy0 at rtk0 phy 7: Generic IEEE 802.3u media interface
ukphy0: OUI 0x000000, model 0x0000, rev. 0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
VIA Technologies VT3606 OHCI IEEE 1394 Controller (Firewire serial bus, interface 0x10, revision 0x46) at pci0 dev 16 function 0 not configured
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
isapnp0: no ISA Plug 'n Play devices found
biomask ef65 netmask ef65 ttymask ffe7
Kernelized RAIDframe activated
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)

--dmesg stop

Using the wd man page and trying to force drive capabilities didn't seem to work. Also, if I leave the machine for more than one hour or so, no DOWNGRADE of Pio nor DMA happens. The machine is stuck and remains as such.

I'm available in #netbsd on irc.eu.freenode.net if you want me to try various things. I'm usually there most of the time, just leave a message.

Thanks for any help :-)

>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted: