Subject: kern/11730: Promise Ultra100 causes crash on alpha, despite IDE_16BIT_IOSPACE
To: None <>
From: Dave Huang <>
List: netbsd-bugs
Date: 12/13/2000 15:32:15
>Number:         11730
>Category:       kern
>Synopsis:       Promise Ultra100 causes crash on alpha, despite IDE_16BIT_IOSPACE
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 13 15:32:00 PST 2000
>Originator:     Dave Huang
>Release:        NetBSD 1.5N as of December 12, 2000
Name: Dave Huang     |   Mammal, mammal / their names are called /
INet:   |   they raise a paw / the bat, the cat /
FurryMUCK: Dahan     |   dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 25 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++
System: NetBSD 1.5N NetBSD 1.5N (YERFABLE) #124: Wed Dec 13 08:23:03 CST 2000 alpha

	Apparently, the Promise Ultra100/ATA controller can't handle
I/O ports over 0x10000, so it has the IDE_16BIT_IOSPACE flag set in
pciide.c. When the kernel attaches the card, it prints "pciide0:
bus-master DMA support present, but unused (registers at unsafe
address ...", then promptly crashes. Since the I/O space was never
mapped, sc->sc_dma_iot and sc->sc_dma_ioh aren't valid, but
pdc202xx_chip_map() still attempts to use them (at around line 3152 of

	Boot a -current kernel on an alpha with Promise Ultra100/ATA
	I guess wrap some of that stuff inside an if (sc->sc_dma_ok)...