(resend) Re: unable to map IRQ for my pccard

Zhang Weiwu <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile
Organization Real Softservice
Message-ID <[email protected]>
[I didn't see majordomo send my message back to me, resend in case it's
lost. Sorry if you see this message twice.]

On Wed, 2007-07-11 at 14:31 -0400, John Baldwin wrote:
> No, we only route things once.  Look at /sys/i386/pci/pci_pir.c.  It keeps 
> track of which IRQ a link is routed to, and we only use the BIOS call if it 
> didn't look like the BIOS had already routed it, and we haven't routed it 
> before.  I think we are actually trying to route 0x61 btw, not 0x60 since 
> it's device 2.1 (and thus probably INTB) that is keeling over.
> 
> You can try using a hint like 'hw.pci0.2.INTB.irq=11' and seeing if it works.

Thank you for the insight and suggested solution. After having that
setting in /boot/device.hints I still cannot make the second card work,
just in case you are interested in this issue too, I have attached the
dmesg after used suggested hint. This dmesg is obtained by first insert
both cards and then boot.

And here is the output of pirtool after I used the hints and both cards:

[root@quasimodo /home/zhangweiwu]# pirtool 
PIRTOOL for FreeBSD (c) 2002 Bruce M. Simpson
---------------------------------------------

PCI Interrupt Routing Table at 0x000FB270
-----------------------------------------
0x00: Signature:          $PIR
0x04: Version:            1.0
0x06: Size:               96 bytes (4 entries)
0x08: Device:             0:6:0
0x0a: PCI Exclusive IRQs: 0x00000400
0x0c: Compatible with:    0x00000000 unknown chipset
0x10: Miniport Data:      0x00000000
0x1f: Checksum:           0x4D

Entry 0: Device 0:6:0 Slot 0 (on-board)
	INTA: 60h routable irqs: 3 4 5 6 7 9 10 11 12 14 15
	INTB: 00h (not connected)
	INTC: 00h (not connected)
	INTD: 63h routable irqs: 3 4 5 6 7 9 10 11 12 14 15
Entry 1: Device 0:2:0 Slot 0 (on-board)
	INTA: 60h routable irqs: 3 4 5 6 7 9 10 11 12 14 15
	INTB: 61h routable irqs: 3 4 5 6 7 9 10 11 12 14 15
	INTC: 00h (not connected)
	INTD: 00h (not connected)
Entry 2: Device 0:3:0 Slot 0 (on-board)
	INTA: 60h routable irqs: 3 4 5 6 7 9 10 11 12 14 15
	INTB: 00h (not connected)
	INTC: 00h (not connected)
	INTD: 00h (not connected)
Entry 3: Device 0:7:0 Slot 0 (on-board)
	INTA: 60h routable irqs: 3 4 5 6 7 9 10 11 12 14 15
	INTB: 61h routable irqs: 3 4 5 6 7 9 10 11 12 14 15
	INTC: 00h (not connected)
	INTD: 00h (not connected)

_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
To unsubscribe, send any mail to "[email protected]"
dmesg_with_both_cards (text/plain, 4.2 KB)
Copyright (c) 1992-2006 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 6.1-RELEASE #0: Thu Jul  5 12:26:43 CST 2007
    [email protected]:/usr/obj/usr/src/sys/QUASIMODO
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  = 100466688 (95 MB)
avail memory = 88723456 (84 MB)
Intel Pentium detected, installing workaround for F00F bug
kbd1 at kbdmux0
cpu0 on motherboard
pcib0: <Host to PCI bridge> pcibus 0 on motherboard
pir0: <PCI Interrupt Routing Table: 4 Entries> on motherboard
pci0: <PCI bus> on pcib0
cbb0: <TI1250 PCI-CardBus Bridge> mem 0x20822000-0x20822fff at device 2.0 on pci0
pccard0: <16-bit PCCard bus> on cbb0
cbb1: <TI1250 PCI-CardBus Bridge> mem 0x20821000-0x20821fff at device 2.1 on pci0
pccard1: <16-bit PCCard bus> on cbb1
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 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfcf0-0xfcff at device 6.1 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0x9000-0x901f irq 10 at device 6.2 on pci0
uhci0: [GIANT-LOCKED]
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
pci0: <bridge> at device 6.3 (no driver attached)
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xc0000-0xc9fff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model Generic PS/2 mouse, device ID 0
fdc0: <Enhanced floppy controller> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: [FAST]
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
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
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
sio2: configured irq 5 not in bitmap of probed irqs 0
sio2: port may not be enabled
sio3: configured irq 9 not in bitmap of probed irqs 0
sio3: port may not be enabled
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 (memory)
unknown: <PNP0400> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
pcm0: <CS423x> at port 0x530-0x537,0x388-0x38b,0x220-0x233 irq 5 drq 1,0 on isa0
pcm0: [GIANT-LOCKED]
unknown: <IBM0071> can't assign resources (port)
unknown: <PNP0e03> can't assign resources (port)
ums0: Logitech Optical USB Mouse, rev 2.00/3.40, addr 2, iclass 3/1
ums0: 3 buttons and Z dir.
Timecounter "TSC" frequency 232106281 Hz quality 800
Timecounters tick every 1.000 msec
ep0: <3Com Corporation 3C589D> at port 0x100-0x10f irq 10 function 0 config 1 on pccard0
ep0: Ethernet address: 00:60:97:92:c0:27
ata2: <Lexar Media ATA Flash     STORM  > at port 0x110-0x11f irq 11 function 0 config 1 on pccard1
ad0: 3102MB <IBM DTCA-23240 TC5OAB1A> at ata0-master UDMA33
acd0: CDROM <SANYO CRD-S372B/1.24F> at ata0-slave PIO3
Interrupt storm detected on "irq10:"; throttling interrupt source
Trying to mount root from ufs:/dev/ad0s1a
arplookup 218.193.55.198 failed: could not allocate llinfo
arpresolve: can't allocate route for 218.193.55.198
nfs server emerson:/home/zhangweiwu/public_html: not responding
nfs server emerson:/home/zhangweiwu/public_html: not responding
nfs server emerson:/home/zhangweiwu/public_html: not responding
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.