Subject: port-alpha/8909: Video unusable on Miata (PWS)
To: None <gnats-bugs@gnats.netbsd.org>
From: None <rhialto@polder.ubc.kun.nl>
List: netbsd-bugs
Date: 11/28/1999 13:28:03
>Number:         8909
>Category:       port-alpha
>Synopsis:       Subject: Video unusable on Miata (PWS)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-alpha-maintainer (NetBSD/alpha Portmaster)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 28 13:27:00 1999
>Last-Modified:
>Originator:     Olaf 'Rhialto' Seibert
>Organization:
	
>Release:        1.4.1, and -current of 28-11-1999.
>Environment:
	
System: NetBSD azomenei.falu.nl 1.4.1 NetBSD 1.4.1 (AZENOMEI) #8: Thu Nov 25 02:03:30 CET 1999 rhialto@azomenei.falu.nl:/usr/src/sys/arch/alpha/compile/AZENOMEI alpha


>Description:
	
	When booting with the configuration as shown below, the wscons
	console is unusable.  By this I mean that moderate activity on
	the console causes random junk to appear. This happens when
	switching virtual consoles for instance. When halting back into
	the SRM, the display remains in a weird state, apparently unable
	to scroll, or somesuch.

	Heavy use, such as cat INSTALL.more, can cause spontaneous
	reboots. This is at least repeatable with the installation
	kernel.

	I suspect this is related to the Pyxis with DMA bug in my
	machine, but I have not discovered the use of DMA yet in my
	cursory inspection of the wscons code.

	By default, the SRM refuses to boot with the card inserted, and
	must be pacified with a 
	>>> set pci_device_override 88c15333
	for the machine to boot at all.

	I also tried this with a -current kernel, freshly supped, and
	the problem persists.

>How-To-Repeat:
	

Full config file and dmesg output:

# from: #NetBSD: GENERIC,v 1.114.2.5 1999/07/02 17:40:20 perry Exp $
#
# My Alpha kernel.

include	"arch/alpha/conf/std.alpha"

maxusers 32

# CPU Support (most deleted)
options 	DEC_550		# Miata:	Digital Personal Workstation

# Standard system options
options 	KTRACE			# System call tracing support

# Diagnostic/debugging support options
options 	DIAGNOSTIC		# Cheap kernel consistency checks
options 	DDB			# kernel debugger
makeoptions	DEBUG="-g"

# File systems
file-system	FFS		# Fast file system
file-system	MFS		# Memory-based file system
file-system	CD9660		# ISO-9660 CD-ROM FS (w/RockRidge extensions)
file-system	MSDOSFS		# MS-DOS-compatible file system
file-system	NFS		# Sun NFS-compatible file system client
file-system	KERNFS
file-system	PROCFS

# File system options
options 	NFSSERVER	# Sun NFS-compatible file system server
#options 	FFS_EI		# FFS Endian Independant support

# Networking options
options 	INET		# Internet protocol suite
options		GATEWAY
options		PFIL_HOOKS

# 4.3BSD compatibility.  Should be optional, but necessary for now.
options 	COMPAT_43

# Binary compatibility with previous versions of NetBSD.
#options 	COMPAT_09
options 	COMPAT_10
options 	COMPAT_11
options 	COMPAT_12
options 	COMPAT_13

# OSF/1 binary compatibility
options 	COMPAT_OSF1

# System V-like message queues
options 	SYSVMSG

# System V-like semaphores
options 	SYSVSEM

# System V-like shared memory
options 	SYSVSHM
#options 	SHMMAXPGS=1024		# 1024 pages is the default

# Loadable Kernel Modules
options 	LKM

# Disable kernel security.
#options 	INSECURE

# Misc. options
#options 	EISAVERBOSE		# recognize "unknown" EISA devices
options 	PCIVERBOSE		# recognize "unknown" PCI devices
options 	SCSIVERBOSE		# Verbose SCSI errors
#options 	TCVERBOSE		# recognize "unknown" TC devices
options 	UCONSOLE		# users can use TIOCCONS (for xconsole)

# The Alpha console firmware network boots using the BOOTP
# protocol, so we ask the NFS code to use BOOTP/DHCP as well,
# in case we have NFS root.
options 	NFS_BOOT_DHCP		# superset of BOOTP

# WS console uses SUN or VT100 terminal emulation
options 	WSEMUL_VT100

# realtime clock compatible to OSF/1
#options 	CLOCK_COMPAT_OSF1

#config		netbsd	root on ? type ?
config		netbsd	root on sd0a type ffs
#config		netbsd	root on ? type nfs

mainbus0 at	root
cpu*	at	mainbus0

# TurboLaser bus support and devices
#tlsb*	at	mainbus0
#gbus*	at	tlsb? node ? offset ?
#tlsbmem* at	tlsb? node ? offset ?
#kft*	at	tlsb? node ? offset ?

# Gbus Devices
#mcclock* at	gbus? offset ?

# MCBUS bus support
#mcbus*	at	mainbus0
#mcmem*	at	mcbus? mid ?

#i2c	at	mcbus?

#EV6 Tsunami Core Logic

#tsc*	at	mainbus0

# TurboChannel host bus adapter support
#tcasic*	at	mainbus0

# TurboChannel bus support
#tc*	at	tcasic?

# TurboChannel devices
#ioasic*	at	tc? slot ? offset ?
#mcclock* at	ioasic? offset ?
#le*	at	ioasic? offset ?
#scc0	at	ioasic? offset ?
#scc1	at	ioasic? offset ?
#tcds*	at	tc? slot ? offset ?
#asc*	at	tcds? chip ?
##cfb*	at	tc? slot ? offset ?
##sfb*	at	tc? slot ? offset ?
#le*	at	tc? slot ? offset ?
#fta*	at	tc? slot ? offset ?		# DEC DEFTA FDDI cards

# PCI host bus adapter support
#apecs*	at	mainbus?
cia*	at	mainbus?
#lca*	at	mainbus?
#dwlpx*	at	kft?
#mcpcia*	at	mcbus? mid ?
#tsp*	at	tsc?

# PCI bus support
#pci*	at	apecs?
pci*	at	cia?
#pci*	at	lca?
pci*	at	ppb?
#pci*	at	dwlpx?
#pci*	at	mcpcia?
#pci*	at	tsp?

# PCI devices
#adv*	at	pci? dev ? function ?		# AdvanSys SCSI
#adw*	at	pci? dev ? function ?		# AdvanSys Wide SCSI
ahc*	at	pci? dev ? function ?		# Adaptec [23]94x, aic78x0 SCSI
#bha*	at	pci? dev ? function ?		# BusLogic 9xx SCSI (untested)
#cy*	at	pci? dev ? function ?		# Cyclades Cyclom-Y (untested)
de*	at	pci? dev ? function ?		# 21x4x-based Ethernet
#en*	at	pci? dev ? function ?		# ENI PCI ATM (untested)
ep*	at	pci? dev ? function ?		# 3COM 3c59x
ex*	at	pci? dev ? function ?		# 3COM 3c90x[B] Ethernet
#epic*	at	pci? dev ? function ?		# SMC EPIC/100 Ethernet
#fpa*	at	pci? dev ? function ?		# DEC DEFPA FDDI
#fxp*	at	pci? dev ? function ?		# Intel EEPRO 10+/100B
isp*	at	pci? dev ? function ?		# Qlogic ISP 10x0 SCSI
#le*	at	pci? dev ? function ?		# PCI LANCE Ethernet (untested)
#ncr*	at	pci? dev ? function ?		# NCR 53c8xx SCSI
#pceb*	at	pci? dev ? function ?		# Intel PCI-EISA Bridges
#pcscp*	at	pci? dev ? function ?		# AMD Am53c974 PCscsi-PCI
ppb*	at	pci? dev ? function ?		# PCI-PCI Bridges
pciide*	at	pci? dev ? function ?		# PCI IDE controllers
sio*	at	pci? dev ? function ?		# Intel PCI-ISA Bridges
tga*	at	pci? dev ? function ?		# DEC ZLXp-E[123] Graphics
#tl*	at	pci? dev ? function ?		# TI ThunderLAN Ethernet
vga*	at	pci? dev ? function ?		# PCI VGA Graphics
#uhci*	at	pci? dev ? function ?		# USB Univ. Host Controller
#ohci*	at	pci? dev ? function ?		# USB Open Host Controller
ne*	at	pci? dev ? function ?		# NE2000-compatible Ethernet
#eap*	at	pci? dev ? function ?		# Ensoniq AudioPCI
#audio*	at	eap?
#sv*	at	pci? dev ? function ?		# S3 SonicVibes
#audio*	at	sv?
#opl*	at	sv?

# MII/PHY support
#exphy*	at	mii? phy ?
#inphy*	at	mii? phy ?
#nsphy*	at	mii? phy ?
#qsphy*	at	mii? phy ? 
#tlphy*	at	mii? phy ?

# ISA/EISA bus support
#isa*	at	pceb?
#eisa*	at	pceb?
isa*	at	sio?

# ISA devices
mcclock* at	isa? port 0x70
pckbc0	at	isa?				# PC keyboard controller
pckbd*	at	pckbc?				# PC keyboard (kbd port)
pms*	at	pckbc?				# PS/2-style mouse (aux port)
pcppi*	at	isa?				# PC prog. periph. interface
spkr0	at	pcppi?				# IBM BASIC emulation
isabeep0 at	pcppi?				# "keyboard" beep
com*	at	isa? port 0x3f8 irq 4		# standard serial ports
com*	at	isa? port 0x2f8 irq 3
#cs*	at	isa? port 0x300 iomem ? irq ? drq ? # CS8900 Ethernet
#ep*	at	isa? port ? irq ?		# 3COM 3c509 Ethernet
fdc0	at	isa? port 0x3f0 irq 6 drq 2	# floppy controller
#lc0	at	isa? port 0x300 iomem ? irq ?	# DEC EtherWORKS III (LEMAC)
#lc1	at	isa? port 0x320 iomem ? irq ?	# DEC EtherWORKS III (LEMAC)
#depca0	at	isa? port 0x300 iomem 0xd0000 iosiz 0x10000 irq 5 	# DEPCA
#depca1	at	isa? port 0x200 iomem 0xd8000 iosiz 0x8000 irq 10 	# DEPCA
#le*	at	depca?
lpt*	at	isa? port 0x3bc irq 7		# standard parallel port
vga*	at	isa?				# ISA (EISA: XXX) VGA
wdc0	at	isa? port 0x1f0 irq 14		# ST506/ESDI/IDE controllers
wdc1	at	isa? port 0x170 irq 15
#wss*	at	isa? port 0x530 irq 9 drq 0	# Windows Sound System
#audio*	at	wss?
#midi*	at	wss?
sb*	at	isa? port 0x220 irq 5 drq 1	# SoundBlaster
#sb*	at	isapnp?
audio*	at	sb?
opl*	at	sb?
midi*	at	opl?
midi*	at	sb?
#aha*	at	isa? port 0x330 irq ? drq ?	# Adaptec 154[02] SCSI
#aha*	at	isa? port 0x334 irq ? drq ?	# Adaptec 154[02] SCSI
#bha*	at	isa? port 0x330 irq ? drq ?	# BusLogic [57]4X SCSI (unt.)
#bha*	at	isa? port 0x334 irq ? drq ?	# BusLogic [57]4X SCSI (unt.)
#uha*	at	isa? port 0x330 irq ? drq ?	# UltraStor [13]4f SCSI (unt.)
#uha*	at	isa? port 0x334 irq ? drq ?	# UltraStor [13]4f SCSI (unt.)
#ne0	at	isa? port 0x320 iomem ? irq 10	# NE2000-compatible Ethernet

# EISA devices
#ahb*	at	eisa? slot ?			# Adaptec 174[024] SCSI (unt.)
#ahc*	at	eisa? slot ?			# Adaptec 274x, aic7770 SCSI
#bha*	at	eisa? slot ?			# BusLogic 7xx SCSI
#ep*	at	eisa? slot ?			# 3COM 3c579 Ethernet (untested)
#fea*	at	eisa? slot ?			# DEC DEFEA FDDI
#uha*	at	eisa? slot ?			# UltraStor 24f SCSI (unt.)

# SCSI bus support
#scsibus* at	adv?
#scsibus* at	adw?
#scsibus* at	aha?
#scsibus* at	ahb?
scsibus* at	ahc?
#scsibus* at	asc?
#scsibus* at	bha?
scsibus* at	isp?
#scsibus* at	ncr?
#scsibus* at	pcscp?
#scsibus* at	uha?

# SCSI devices
cd*	at	scsibus? target ? lun ?		# SCSI CD-ROM drives
sd*	at	scsibus? target ? lun ?		# SCSI disk drives
st*	at	scsibus? target ? lun ?		# SCSI tape drives

# ST506/ESDI/IDE devices
wd*	at	pciide? channel ?
wd*	at	wdc? drive ?

# ATAPI bus support
atapibus* at	pciide? channel ?
atapibus* at	wdc?

# ATAPI devices
sd*	at	atapibus? drive ?		# ATAPI disk devices
cd*	at	atapibus? drive ?		# ATAPI CD-ROM devices

# Floppy drives
fd*	at	fdc? drive ?

# USB stuff deleted

# Workstation Console attachments
#wsdisplay*	at	cfb?
wsdisplay*	at	vga?
#wsdisplay*	at	sfb?
wsdisplay*	at	tga?
wskbd*		at	pckbd?
wsmouse*	at	pms?

pseudo-device	bpfilter	16
pseudo-device	ccd		4
#pseudo-device	raid		4		# RAIDframe disk driver
pseudo-device	ipfilter	1
pseudo-device	loop		1
pseudo-device	md		1
pseudo-device	ppp		4
pseudo-device	pty		64
pseudo-device	sl		4
pseudo-device	vnd		4
#pseudo-device	gre		2	# generic L3 over IP tunnel

# rnd is EXPERIMENTAL
#pseudo-device	rnd			# /dev/random and in-kernel generator
#options 	RND_COM			# use "com" randomness too

[ preserving 181704 bytes of netbsd ELF symbol table ]
Copyright (c) 1996, 1997, 1998, 1999
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.4.1 (AZENOMEI) #8: Thu Nov 25 02:03:30 CET 1999
    rhialto@azomenei.falu.nl:/usr/src/sys/arch/alpha/compile/AZENOMEI
Digital Personal WorkStation 433au, 432MHz
8192 byte page size, 1 processor.
real mem = 67108864 (2039808 reserved for PROM, 65069056 used by NetBSD)
avail mem = 54222848
using 794 buffers containing 6504448 bytes of memory
mainbus0 (root)
cpu0 at mainbus0: ID 0 (primary), 21164A-0 ()
cia0 at mainbus0: DECchip 2117x Core Logic Chipset (Pyxis), pass 1
cia0: extended capabilities: 1<BWEN>
cia0: using BWX for PCI config access
cia0: WARNING: Pyxis pass 1 DMA bug; no bets...
pci0 at cia0 bus 0
pci0: i/o enabled, memory enabled
de0 at pci0 dev 3 function 0
de0: interrupting at dec 550 irq 8
de0: DEC 21143 [10-100Mb/s] pass 3.0
de0: address 00:00:f8:75:ba:d3
de0: enabling 10baseT port
pciide0 at pci0 dev 4 function 0: CMD Technology PCI0646
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
atapibus0 at pciide0 channel 0
cd0 at atapibus0 drive 0: <TOSHIBA CD-ROM XM-6102B, 7800327909, 1106> type 5 cdrom removable
cd0: 32-bits data port
cd0: drive supports PIO mode 3, DMA mode 2
pciide0: secondary channel wired to compatibility mode
pciide0: disabling secondary channel (no drives)
cd0(pciide0:0:0): using PIO mode 3, DMA mode 1 (using DMA data transfers)
sio0 at pci0 dev 7 function 0: Intel 82378ZB System I/O (SIO) (rev. 0x43)
vga0 at pci0 dev 11 function 0: S3 86C864-1 ("Vision864") (rev. 0x00)
wsdisplay0 at vga0
ppb0 at pci0 dev 20 function 0: Digital Equipment DECchip 21152 PCI-PCI Bridge (rev. 0x02)
pci1 at ppb0 bus 1
pci1: i/o enabled, memory enabled
isp0 at pci1 dev 8 function 0
isp0: interrupting at dec 550 irq 20
isp0: Ultra Mode Capable
isp0: Board Revision 1040B, loaded F/W Revision 7.55
isp0: Last F/W revision was 5.57
isp0: driver initiated bus reset
scsibus0 at isp0: 16 targets, 8 luns per target
sd0 at scsibus0 targ 0 lun 0: <DEC, RZ1CC-BA (C) DEC, 883F> SCSI2 0/direct fixed
sd0: 4091MB, 3708 cyl, 20 head, 113 sec, 512 bytes/sect x 8380080 sectors
ne0 at pci1 dev 9 function 0: RealTek 8029 Ethernet
ne0: 10base2, 10baseT, 10baseT-FDX, auto, default auto
ne0: Ethernet address 52:54:05:f0:bd:1b
ne0: interrupting at dec 550 irq 24
isa0 at sio0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: console
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
lpt0 at isa0 port 0x3bc-0x3bf irq 7
sb0 at isa0 port 0x220-0x237 irq 5 drq 1: dsp v3.01
midi at sb0 not configured
audio0 at sb0: half duplex
opl0 at sb0: model OPL3
midi0 at opl0: <SB Yamaha OPL3>
sb: can't map i/o space 0x220/24 in probe
pckbc0 at isa0 port 0x60-0x64
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
isabeep0 at pcppi0
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
mcclock0 at isa0 port 0x70-0x71: mc146818 or compatible
root on sd0a dumps on sd0b
isp0: Target 0 at 20MHz Max Offset 8, 16 bit wide, Tagged Queueing Enabled
WARNING: clock gained 5512 days -- CHECK AND RESET THE DATE!
IP Filter: initialized.  Default = pass all, Logging = disabled
de0: enabling 100baseTX port
wsdisplay0: screen 0 added (80x25, vt100 emulation)
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)
wsdisplay0: screen 5 added (80x25, vt100 emulation)
wsdisplay0: screen 6 added (80x25, vt100 emulation)
wsdisplay0: screen 7 added (80x25, vt100 emulation)


>Fix:
	
	workaround: ignore existence of video card, or even remove it.
	Use serial console instead. This is obviously far from
	satisfactory.

-Olaf.
--
___ Olaf 'Rhialto' Seibert - rhialto@polder.ubc.     -- If one tells the truth,
\X/ .kun.nl     -- one is sure, sooner or later, to be found out. (Oscar Wilde) 
>Audit-Trail:
>Unformatted: