Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 01 May 2004 11:45:56 +0800
From:      Zhang Weiwu <zhangweiwu@realss.com>
To:        freebsd-mobile@freebsd.org
Subject:   irq conflict: IBM Creditcard Ether II adapter
Message-ID:  <40931D74.7000806@realss.com>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------020805060207050204080703
Content-Type: text/plain; charset=GB18030; format=flowed
Content-Transfer-Encoding: 7bit

Hello. My uname on my Thinkpad 380XD (using OLDCARD kernel) is

FreeBSD thinkpad.realss 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #0: Sat May  
1 01:18:09 CST 2004     
root@thinkpad.realss:/usr/obj/usr/src/sys/TP380XD  i386

I got the following message starting pccardd(8):

May  1 11:21:00 thinkpad pccardd[913]: Card "IBM Corp."("Ethernet") 
[0934214] [PC-NIC ENCC
 990010759-001A] matched "IBM Corp." ("Ethernet") [(null)] [(null)]
May  1 11:21:00 thinkpad pccardd[913]: Ether=00:04:ac:90:ef:c4
May  1 11:21:00 thinkpad pccardd[913]: Failed to allocate IRQ for IBM Corp.
May  1 11:21:00 thinkpad pccardd[913]: pccardd started

Adjusting hint.ed.0.irq or adding "irq 5" to /etc/pccard.conf doesn't 
help. I searched the web it seems my IBM Creditcard Ether II perhaps is 
an irq selfish card occupying irq 5. But irq 5 is taken by pcm.

According to pcm(4) manual, If it's non-PnP card, I can adjust 
hint.pcm.0.irq; but if the sound card is a PnP card, the device hints 
doesn't work, irq is assigned automatically, which is right my situation.

I also tried to adjust loader.conf by adding hw.pcic entries to disable 
PCI irq routing and also set hw.pcic.ignore_pci but that doesn't work.

As far as I can understand, upon booting pcm finds irq 5 is free, and 
takes it; after boot, pccardd(8) wish to take irq 5 too and create an 
irq conflict. Moving pcm away from irq 5 would solve the problem, but 
it's not possible with my limited knowledge; moving the card away from 
irq 5 perhaps will work, but it's as well beyond my knowledge.

Can you enlight me what to do now? Here is my desg: (my kernel config 
file is attached.)

Copyright (c) 1992-2004 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD 5.2.1-RELEASE #0: Sat May  1 01:18:09 CST 2004
    root@thinkpad.realss:/usr/obj/usr/src/sys/TP380XD
Preloaded elf kernel "/boot/kernel/kernel" at 0xc0844000.
Preloaded elf module "/boot/kernel/ng_ubt.ko" at 0xc08441f4.
Preloaded elf module "/boot/kernel/netgraph.ko" at 0xc08442a0.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Pentium/P55C (quarter-micron) (232.11-MHz 586-class CPU)
  Origin = "GenuineIntel"  Id = 0x581  Stepping = 1
  Features=0x8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX>
real memory  = 33357824 (31 MB)
avail memory = 22990848 (21 MB)
Intel Pentium detected, installing workaround for F00F bug
VESA: v2.0, 1984k memory, flags:0x0, mode table:0xc07809c2 (1000022)
VESA: MagicGraph 128XD 40K SVGA BIOS
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcibios: BIOS version 2.10
Using $PIR table, 4 entries at 0xc00fb270
pcib0: <Host to PCI bridge> at pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
pci_cfgintr: 0:3 INTA BIOS irq 11
pci_cfgintr: 0:6 INTD BIOS irq 11
pci0: <bridge, PCI-CardBus> at device 2.0 (no driver attached)
pci0: <bridge, PCI-CardBus> at device 2.1 (no driver attached)
pci0: <display, VGA> at device 3.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 6.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> port 0xfcf0-0xfcff at device 
6.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata0: [MPSAFE]
ata1: at 0x170 irq 15 on atapci0
ata1: [MPSAFE]
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0x9000-0x901f irq 
11 at device 6.2 on pci0
usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ubt0: vendor 0x0a12 product 0x0001, rev 1.10/4.43, addr 2
ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2
ubt0: Interface 1 (alt.config 5) endpoints: isoc-in=0x83, isoc-out=0x3; 
wMaxPacketSize=49; nframes=6, buffer size=294
pci0: <bridge, PCI-unknown> at device 6.3 (no driver attached)
orm0: <Option ROM> at iomem 0xc0000-0xc9fff on isa0
pmtimer0 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> at port 
0x3f7,0x3f0-0x3f5 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
pcic0: <Intel i82365SL-A/B> at port 0x3e0 iomem 0xd0000 on isa0
pcic0: management irq 10
pccard0: <PC Card 16-bit bus (classic)> on pcic0
pccard1: <PC Card 16-bit bus (classic)> on pcic0
ppc0: <Parallel port> at port 0x3bc-0x3c3 irq 7 on isa0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0 lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
unknown: <PNP0303> can't assign resources (port)
unknown: <PNP0f13> can't assign resources (irq) unknown: <PNP0700> can't 
assign resources (port)
unknown: <PNP0c02> can't assign resources (port)
unknown: <PNP0400> can't assign resources (port)
pcm0: <CS423x> at port 0x220-0x233,0x388-0x38b,0x530-0x537 irq 5 drq 0,1 
on isa0unknown: <IBM0071> can't assign resources (port)
Timecounter "TSC" frequency 232106150 Hz quality 800
Timecounters tick every 10.000 msec
GEOM: create disk ad0 dp=0xc19aa960
ad0: 3102MB <IBM-DTCA-23240> [6304/16/63] at ata0-master UDMA33
pccard: card inserted, slot 1
acd0: CDROM <SANYO CRD-S372B> at ata0-slave PIO3
Mounting root from ufs:/dev/ad0s1a
pccard: card removed, slot 1
pccard: card inserted, slot 1



--------------020805060207050204080703
Content-Type: text/plain;
 name="TP380XD"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="TP380XD"

machine		i386
cpu		I586_CPU
ident		TP380XD

#To statically compile in device wiring instead of /boot/device.hints
#hints		"GENERIC.hints"		#Default places to look for devices.

#makeoptions	DEBUG=-g		#Build kernel with gdb(1) debug symbols

options 	SCHED_4BSD		#4BSD scheduler
options 	INET			#InterNETworking
options 	INET6			#IPv6 communications protocols
options 	FFS			#Berkeley Fast Filesystem
options 	SOFTUPDATES		#Enable FFS soft updates support
options 	UFS_ACL			#Support for access control lists
options 	UFS_DIRHASH		#Improve performance on big directories
options 	MD_ROOT			#MD is a potential root device
options 	NFSCLIENT		#Network Filesystem Client
options 	NFS_ROOT		#NFS usable as /, requires NFSCLIENT
options 	CD9660			#ISO 9660 Filesystem
options 	PROCFS			#Process filesystem (requires PSEUDOFS)
options 	PSEUDOFS		#Pseudo-filesystem framework
options 	COMPAT_43		#Compatible with BSD 4.3 [KEEP THIS!]
options 	COMPAT_FREEBSD4		#Compatible with FreeBSD4
options 	SCSI_DELAY=15000	#Delay (in ms) before probing SCSI
options 	KTRACE			#ktrace(1) support
options 	SYSVSHM			#SYSV-style shared memory
options 	SYSVMSG			#SYSV-style message queues
options 	SYSVSEM			#SYSV-style semaphores
options 	_KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions
options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
options 	AHC_REG_PRETTY_PRINT	# Print register bitfields in debug
					# output.  Adds ~128k to driver.
options 	AHD_REG_PRETTY_PRINT	# Print register bitfields in debug
					# output.  Adds ~215k to driver.
options 	PFIL_HOOKS		# pfil(9) framework
options		VESA
options		SC_PIXEL_MODE

# Debugging for use in -current
#options 	DDB			#Enable the kernel debugger
#options 	INVARIANTS		#Enable calls of extra sanity checking
options 	INVARIANT_SUPPORT	#Extra sanity checks of internal structures, required by INVARIANTS
#options 	WITNESS			#Enable checks to detect deadlocks and cycles
#options 	WITNESS_SKIPSPIN	#Don't run witness on spinlocks for speed

device		isa
device		pci

# Floppy drives
device		fdc

# ATA and ATAPI devices
device		ata
device		atadisk			# ATA disk drives
device		atapicd			# ATAPI CDROM drives
options 	ATA_STATIC_ID		#Static device numbering

# SCSI peripherals
device		scbus		# SCSI bus (required for SCSI)
device		ch		# SCSI media changers
device		da		# Direct Access (disks)
device		pass		# Passthrough device (direct SCSI access)
device		ses		# SCSI Environmental Services (and SAF-TE)

# atkbdc0 controls both the keyboard and the PS/2 mouse
device		atkbdc		# AT keyboard controller
device		atkbd		# AT keyboard
device		psm		# PS/2 mouse

device		vga		# VGA video card driver

device		splash		# Splash screen and screen saver support

# syscons is the default console driver, resembling an SCO console
device		sc

# Enable this for the pcvt (VT220 compatible) console driver
#device		vt
#options 	XSERVER			# support for X server on a vt console
#options 	FAT_CURSOR		# start with block cursor

# Floating point support - do not disable.
device		npx

# Power management support (see NOTES for more options)
device		apm
# Add suspend/resume support for the i8254.
device		pmtimer

# PCCARD (PCMCIA) support
# Pcmcia and cardbus bridge support
nodevice        cbb             # cardbus (yenta) bridge
#nodevice       pcic            # ExCA ISA and PCI bridges
nodevice        pccard          # PC Card (16-bit) bus
nodevice        cardbus         # CardBus (32-bit) bus
device          card    1       # pccard bus
device          pcic            # PCMCIA bridge

# Serial (COM) ports
device		sio		# 8250, 16[45]50 based serial ports

# Parallel port
device		ppc
device		ppbus		# Parallel port bus (required)
device		lpt		# Printer
device		plip		# TCP/IP over parallel
device		ppi		# Parallel port interface device
#device		vpo		# Requires scbus and da

# If you've got a "dumb" serial or parallel PCI card that is
# supported by the puc(4) glue driver, uncomment the following
# line to enable it (connects to the sio and/or ppc drivers):
#device         puc

# PCI Ethernet NICs.
device		de		# DEC/Intel DC21x4x (``Tulip'')
device		em		# Intel PRO/1000 adapter Gigabit Ethernet Card
device		txp		# 3Com 3cR990 (``Typhoon'')
device		vx		# 3Com 3c590, 3c595 (``Vortex'')

# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
device		miibus		# MII bus support
device		bfe		# Broadcom BCM440x 10/100 ethernet
device		bge		# Broadcom BCM570xx Gigabit Ethernet
device		dc		# DEC/Intel 21143 and various workalikes
device		fxp		# Intel EtherExpress PRO/100B (82557, 82558)
device		pcn		# AMD Am79C97x PCI 10/100 (precedence over 'lnc')
device		re		# RealTek 8139C+/8169/8169S/8110S
device		rl		# RealTek 8129/8139
device		sf		# Adaptec AIC-6915 (``Starfire'')
device		sis		# Silicon Integrated Systems SiS 900/SiS 7016
device		sk		# SysKonnect SK-984x and SK-982x gigabit ethernet
device		ste		# Sundance ST201 (D-Link DFE-550TX)
device		ti		# Alteon Networks Tigon I/II gigabit ethernet
device		tl		# Texas Instruments ThunderLAN
device		tx		# SMC EtherPower II (83c170 ``EPIC'')
device		vr		# VIA Rhine, Rhine II
device		wb		# Winbond W89C840F
device		xl		# 3Com 3c90x (``Boomerang'', ``Cyclone'')

# ISA Ethernet NICs.  pccard nics included.
device		cs		# Crystal Semiconductor CS89x0 NIC
# 'device ed' requires 'device miibus'
device		ed		# NE[12]000, SMC Ultra, 3c503, DS8390 cards
device		ex		# Intel EtherExpress Pro/10 and Pro/10+
device		ep		# Etherlink III based cards
device		fe		# Fujitsu MB8696x based cards
device		ie		# EtherExpress 8/16, 3C507, StarLAN 10 etc.
device		lnc		# NE2100, NE32-VL Lance Ethernet cards
device		sn		# SMC's 9000 series of ethernet chips
device		xe		# Xircom pccard ethernet

# ISA devices that use the old ISA shims
#device		le

# Pseudo devices - the number indicates how many units to allocate.
device		random		# Entropy device
device		loop		# Network loopback
device		ether		# Ethernet support
device		sl		# Kernel SLIP
device		ppp		# Kernel PPP
device		tun		# Packet tunnel.
device		pty		# Pseudo-ttys (telnet etc)
device		md		# Memory "disks"
device		gif		# IPv6 and IPv4 tunneling
device		faith		# IPv6-to-IPv4 relaying (translation)

# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
device		bpf		# Berkeley packet filter

# USB support
device		uhci		# UHCI PCI->USB interface
device		usb		# USB Bus (required)
#device		udbp		# USB Double Bulk Pipe devices
device		ugen		# Generic
device		uhid		# "Human Interface Devices"
device		ukbd		# Keyboard
device		ulpt		# Printer
device		umass		# Disks/Mass storage - Requires scbus and da
device		ums		# Mouse
#device		urio		# Diamond Rio 500 MP3 player
#device		uscanner	# Scanners

device		pcm

--------------020805060207050204080703--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40931D74.7000806>