Subject: QLogic 12160 SCSI controller
To: None <port-alpha@netbsd.org, current-users@netbsd.org>
From: MOCHIDA Shuji <mochid@netside.co.jp>
List: current-users
Date: 05/28/2000 23:59:55
----Next_Part(Sun_May_28_23:56:36_2000_595)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


 I got QLogic 12160 SCSI controller(Iwill SIDE DU3160) today,
put it in my AlphaPC164 box.

| Q Logic product 0x1216 (SCSI mass storage, revision 0x05) at pci0 dev 7 function 0 not configured

So, I added a line to sys/dev/pci/pcidevs, 

| product QLOGIC ISP12160 0x1216  ISP12160

generated pcidevs.h, pcidevs_data.h, and compile kernel.
It panics.
Sources was supped today from sup.jp.netbsd.org.

Any help appreciated.

-mochid

----Next_Part(Sun_May_28_23:56:36_2000_595)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=conslog

>>>boot dqa0
(boot dqa0.0.0.11.0 -flags 0)
block 0 of dqa0.0.0.11.0 is a valid boot block
reading 14 blocks from dqa0.0.0.11.0
bootstrap code read in
base = 180000, image_start = 0, image_bytes = 1c00
initializing HWRPB at 2000
initializing page table at 172000
initializing machine state
setting affinity to the primary CPU
jumping to bootstrap code

NetBSD/alpha 1.4T FFS Primary Bootstrap
Jumping to entry point...

NetBSD/alpha 1.4T Secondary Bootstrap, Revision 1.10
(mycroft@eniwetok.ihack.net, Feb 27 16:40:06 EST 2000)

VMS PAL rev: 0x1000900010114
OSF PAL rev: 0x1000800020116
Switch to OSF PAL code succeeded.

Boot flags: 0
3772992+309768 [85+224088+126692]=0x43aa60

Entering netbsd at 0xfffffc0000301060...
Unrecognized boot flag '0'.
[ preserving 351768 bytes of netbsd ELF symbol table ]
Copyright (c) 1996, 1997, 1998, 1999, 2000
    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.4Z (CEDAR1) #0: Sun May 28 21:36:23 JST 2000
    mochid@cedar:/amd/pine/var/ex/home/pine/netside/ftptop/pub/NetBSD/NetBSD-current/src/sys/arch/alpha/compile/CEDAR1
Digital AlphaPC 164 432 MHz
8192 byte page size, 1 processor.
total memory = 128 MB
(2472 KB reserved for PROM, 125 MB used by NetBSD)
avail memory = 112 MB
using 816 buffers containing 6528 KB of memory
mainbus0 (root)
cpu0 at mainbus0: ID 0 (primary), 21164A-2 (pass 2)
cpu0: Architecture extensions: 1<BWX>
cia0 at mainbus0: DECchip 2117x Core Logic Chipset (ALCOR/ALCOR2), pass 3
cia0: extended capabilities: 21<DWEN,BWEN>
cia0: using BWX for PCI config access
pci0 at cia0 bus 0
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
vr0 at pci0 dev 5 function 0: VIA VT3043 (Rhine) 10/100 Ethernet
vr0: interrupting at eb164 irq 2
vr0: Ethernet address: 00:90:fe:03:d1:4e
ukphy0 at vr0 phy 8: Generic IEEE 802.3u media interface
ukphy0: Am79C873 10/100 media interface (OUI 0x00606e, model 0x0000), rev. 0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isp0 at pci0 dev 7 function 0
isp0: interrupting at eb164 irq 1

unexpected machine check:

    mces    = 0x1
    vector  = 0x660
    param   = 0xfffffc0000006060
    pc      = 0xfffffc00005750a0
    ra      = 0xfffffc0000527e80
    curproc = 0xfffffc00006c1ae8
        pid = 0, comm = swapper

panic: machine check
Stopped in swapper at   cpu_Debugger+0x4:       ret     zero,(ra)
db> t
cpu_Debugger() at cpu_Debugger+0x4
panic() at panic+0xe4
machine_check() at machine_check+0x1dc
interrupt() at interrupt+0x114
XentInt() at XentInt+0x1c
--- interrupt (from ipl 6) ---
cia_swiz_mem_read_2() at cia_swiz_mem_read_2+0x20
isp_pci_rd_reg_1080() at isp_pci_rd_reg_1080+0x120
isp_mboxcmd() at isp_mboxcmd+0x2f0
isp_reset() at isp_reset+0xa0
isp_pci_attach() at isp_pci_attach+0x7c4
config_attach() at config_attach+0x43c
config_found_sm() at config_found_sm+0x54
pci_probe_bus() at pci_probe_bus+0x2e8
pciattach() at pciattach+0x280
config_attach() at config_attach+0x43c
config_found_sm() at config_found_sm+0x54
ciaattach() at ciaattach+0x1e8
config_attach() at config_attach+0x43c
config_found_sm() at config_found_sm+0x54
mbattach() at mbattach+0x148
config_attach() at config_attach+0x43c
config_rootfound() at config_rootfound+0x6c
cpu_configure() at cpu_configure+0x38
configure() at configure+0x4c
main() at main+0x42c
locorestart() at locorestart+0x64
--- root of call graph ---
db> 

----Next_Part(Sun_May_28_23:56:36_2000_595)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=CEDAR1

# $NetBSD: GENERIC,v 1.153 2000/05/23 02:04:29 thorpej Exp $
#
# Generic Alpha kernel.  Enough to get booted, etc., but not much more.
#
# If you add stuff to this, please add it to the ALPHA configuration, too.

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

#ident 		"GENERIC-$Revision: 1.153 $"

maxusers 32

# CPU Support
#options 	DEC_2000_300	# "Jensen":	2000/300 (DECpc AXP 150)
# options 	DEC_2100_A50	# Avanti etc:	AlphaStation 400, 200, etc.
# options 	DEC_3000_500	# Flamingo etc:	3000/[4-9]00*
# options 	DEC_3000_300	# Pelican etc:	3000/300*
# options 	DEC_AXPPCI_33	# NoName:	AXPpci33, etc.
options 	DEC_EB164	# EB164:	AlphaPC 164
options 	DEC_EB64PLUS	# EB64+:	AlphaPC 64, etc.
# options 	DEC_KN20AA	# KN20AA:	AlphaStation 500 and 600
# options 	DEC_KN8AE	# KN8AE:	AlphaServer 8200 and 8400
# options 	DEC_KN300	# KN300:	AlphaServer 4100 and 1200
# options 	DEC_550		# Miata:	Digital Personal Workstation
# options 	DEC_1000	# Mikasa etc:	Digital AlphaServer 1000
# options 	DEC_1000A	# Corelle etc:	Digital AlphaServer 800/1000A
# options 	DEC_ALPHABOOK1	# AlphaBook1:	Tadpole/DEC AlphaBook
# options 	DEC_EB66	# EB66:		21066 Evaluation Board
# options 	DEC_6600	# EV6:		264DP OEM Board

# 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	NTFS		# Windows/NT file system (experimental)
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
#options 	SOFTDEP		# FFS soft updates support.

# Pull in config fragments for kernel crypto.  This is required for
# options IPSEC etc. to work. If you want to run with IPSEC, uncomment
# one of these, based on whether you use crypto-us or crypto-intl, and
# adjust the prefixes as necessary.

#prefix ../crypto-us/sys
#cinclude "conf/files.crypto-us"
#prefix

#prefix ../crypto-intl/sys
#cinclude "conf/files.crypto-intl"
#prefix

# Networking options
options 	INET		# Internet protocol suite
options 	INET6		# IPV6
#options 	IPSEC		# IP security
#options 	IPSEC_ESP	# IP security (encryption part; define w/IPSEC)
#options 	IPSEC_DEBUG	# debug for IP security

# 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
options 	COMPAT_14

# 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 	MIIVERBOSE		# verbose PHY autoconfig messages
#options 	PCI_CONFIG_DUMP		# verbosely dump PCI config space
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 sd0 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
#options 	ADW_WDTR_DISABLE		# 	disable WDTR
#options 	ADW_SDTR_DISABLE		# 	disable SDTR
#options 	ADW_TAGQ_DISABLE		# 	disable Tag Queuing
ahc*	at	pci? dev ? function ?		# Adaptec [23]94x, aic78x0 SCSI
# bha*	at	pci? dev ? function ?		# BusLogic 9xx SCSI (untested)
cac*	at	pci? dev ? function ?		# Compaq array controller (untested)
cy*	at	pci? dev ? function ?		# Cyclades Cyclom-Y (untested)
# de*	at	pci? dev ? function ?		# 21x4x-based Ethernet
# dpt*	at	pci? dev ? function ?		# DPT SmartCache/SmartRAID
eap*	at	pci? dev ? function ?		# Ensoniq AudioPCI
en*	at	pci? dev ? function ?		# ENI PCI ATM (untested)
# ep*	at	pci? dev ? function ?		# 3COM 3c59x
# epic*	at	pci? dev ? function ?		# SMC EPIC/100 Ethernet
eso*	at	pci? dev ? function ?		# ESS Solo-1 PCI AudioDrive
# ex*	at	pci? dev ? function ?		# 3COM 3c90x[B] 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
siop*	at	pci? dev ? function ?		# NCR 53c8xx SCSI
# ne*	at	pci? dev ? function ?		# NE2000-compatible Ethernet
ohci*	at	pci? dev ? function ?		# USB Open Host Controller
pceb*	at	pci? dev ? function ?		# Intel PCI-EISA Bridges
pciide*	at	pci? dev ? function ?		# PCI IDE controllers
pcscp*	at	pci? dev ? function ?		# AMD Am53c974 PCscsi-PCI
ppb*	at	pci? dev ? function ?		# PCI-PCI Bridges
rtk*	at	pci? dev ? function ?		# RealTek 8129/8139 Ethernet
sio*	at	pci? dev ? function ?		# Intel PCI-ISA Bridges
sip*	at	pci? dev ? function ?		# SiS 900 Ethernet
sv*	at	pci? dev ? function ?		# S3 SonicVibes
tga*	at	pci? dev ? function ?		# DEC ZLXp-E[123] Graphics
ti*	at	pci? dev ? function ?		# Alteon Tigon Gig-E
tl*	at	pci? dev ? function ?		# TI ThunderLAN Ethernet
tlp*	at	pci? dev ? function ?		# DECchip 21x4x and clones
#options 	TLP_MATCH_21040
#options 	TLP_MATCH_21041
#options 	TLP_MATCH_21140
#options 	TLP_MATCH_21142
uhci*	at	pci? dev ? function ?		# USB Univ. Host Controller
vga*	at	pci? dev ? function ?		# PCI VGA Graphics
vr*	at	pci? dev ? function ?		# VIA Rhine Fast Ethernet

audio*	at	eap?
audio*	at	eso?
audio*	at	sv?

opl*	at	eso?
#opl*	at	sv?

mpu*	at	eso?

# MII/PHY support
exphy*	at mii? phy ?			# 3Com internal PHYs
icsphy*	at mii? phy ?			# Integrated Circuit Systems ICS1890
inphy*	at mii? phy ?			# Intel 82555 PHYs
lxtphy*	at mii? phy ?			# Level One LXT-970 PHYs
nsphy*	at mii? phy ?			# NS83840 PHYs
qsphy*	at mii? phy ?			# Quality Semiconductor QS6612 PHYs
sqphy*	at mii? phy ?			# Seeq 80220/80221/80223 PHYs
tlphy*	at mii? phy ?			# ThunderLAN PHYs
ukphy*	at mii? phy ?			# generic unknown PHYs

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

# ISA devices
mcclock* at	isa? port 0x70
pckbc*	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
we0     at 	isa? port 0x280 iomem 0xd0000 irq 9  # WD/SMC Ethernet
we1     at 	isa? port 0x300 iomem 0xcc000 irq 10
#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?
#adv*	at	isa? port ? irq ? drq ?		# AdvanSys APB-514[02]
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.)
pcic0	at	isa? port 0x3e0 iomem 0xd0000 iosiz 0x10000
pcic1	at	isa? port 0x3e2 iomem 0xcc000 iosiz 0x10000
pcmcia*	at	pcic? controller ? socket ?

# 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
# tlp*	at	eisa? slot ?			# DEC DE-425 Ethernet
# uha*	at	eisa? slot ?			# UltraStor 24f SCSI (unt.)

# PCMCIA device
aic*	at	pcmcia? function ?		# Adaptec APA-1460 SCSI
com*	at	pcmcia? function ?		# Modems and serial cards
wdc*	at	pcmcia? function ?		# PCMCIA IDE controllers
ep*	at	pcmcia? function ?		# 3Com 3c589 and 3c562 Eth.
mbe*	at	pcmcia? function ?		# MB8696x based Ethernet
ne*	at	pcmcia? function ?		# NE2000-compatible Eth.
sm*	at	pcmcia? function ?		# Megahertz Ethernet
ray*	at	pcmcia? function ?		# Raytheon Raylink (802.11)
wi*	at	pcmcia? function ?		# Lucent WaveLAN/IEEE

# SCSI bus support
# scsibus* at	adv?
scsibus* at	aic?
# scsibus* at	adw?
scsibus* at	aha?
# scsibus* at	ahb?
scsibus* at	ahc?
# scsibus* at	asc?
scsibus* at	bha?
# scsibus* at	dpt?
scsibus* at	isp?
# scsibus* at	ncr?
scsibus* at	siop?
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 ?

# Hardware RAID devices
ca*	at	cac? unit ?

# USB bus support
usb*	at uhci?
usb*	at ohci?

# USB Hubs
uhub*	at usb?
uhub*	at uhub? port ? configuration ? interface ?

# USB Mice
ums*	at uhub? port ? configuration ? interface ?
wsmouse*	at ums?

# USB Keyboards
ukbd*	at uhub? port ? configuration ? interface ?
wskbd*	at ukbd? console ?

# USB Generic HID devices
uhid*	at uhub? port ? configuration ? interface ?

# USB Printer
ulpt*	at uhub? port ? configuration ? interface ?

# USB Modem
umodem*	at uhub? port ? configuration ?
ucom*	at umodem?

# USB Mass Storage
umass*	at uhub? port ? configuration ? interface ?
atapibus* at umass? channel ?
scsibus* at umass? channel ?

# USB Ethernet adapters
aue*	at uhub? port ?		# ADMtek AN986 Pegasus based adapters
cue*	at uhub? port ?		# CATC USB-EL1201A based adapters
kue*	at uhub? port ?		# Kawasaki LSI KL5KUSB101B based adapters

# USB Generic driver
ugen*	at uhub? port ?

# 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
#options 	RAID_AUTOCONFIG      # auto-configuration of RAID components
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
pseudo-device	gif		4	# IPv[46] over IPv[46] tunnel (RFC1933)
#pseudo-device	faith		1	# IPv[46] tcp relay translation i/f
#pseudo-device	stf		1	# 6to4 IPv6 over IPv4 encapsulation
pseudo-device	sequencer	1	# MIDI sequencer

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

----Next_Part(Sun_May_28_23:56:36_2000_595)----