From owner-freebsd-mobile@FreeBSD.ORG Sat May 1 04:07:21 2004 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6EAA116A4CE for ; Sat, 1 May 2004 04:07:21 -0700 (PDT) Received: from fuse1.fusemail.net (smtp.fusemail.net [69.31.1.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C0EF43D5E for ; Sat, 1 May 2004 04:07:20 -0700 (PDT) (envelope-from zhangweiwu@realss.com) Received: from fusemail.com by fuse1.fusemail.net with asmtp (FuseMail extSMTP) id 1BJsKx-00068G-R0 for freebsd-mobile@freebsd.org; Sat, 01 May 2004 06:07:16 -0500 Message-ID: <40938524.5030604@realss.com> Date: Sat, 01 May 2004 19:08:20 +0800 From: Zhang Weiwu User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040425 X-Accept-Language: zh-cn, en-us, en MIME-Version: 1.0 Cc: freebsd-mobile@freebsd.org Content-Type: text/plain; charset=gb18030; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: irq conflict: IBM Creditcard Ether II adapter X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 May 2004 11:07:21 -0000 Very simple. Putting this line to /etc/pccard.conf solved the problem: irq 9 It seems pccard strictly follow the irq sequence defined in /etc/default/pccard.conf (which is 5,7,9..) and don't move to irq 9 even 5, 7, are occupied. I don't know why after I created that /etc/pccard.conf I begin to receiv this message upon booting, but anyway this does not seems to affect the system so I simply ignore it: Setup PC-CARD: memory beeppccardd: /etc/defaults/pccard.conf: syntax error at line 51, near Adaptec, Inc. pccardd: /etc/defaults/pccard.conf: syntax error at line 51, near /APA-1460 .*/ pccardd: /etc/defaults/pccard.conf: syntax error at line 52, near config pccardd: /etc/defaults/pccard.conf: syntax error at line 52, near 0x9 pccardd: /etc/defaults/pccard.conf: syntax error at line 52, near aic pccardd: /etc/defaults/pccard.conf: syntax error at line 52, near ? pccardd: /etc/defaults/pccard.conf: syntax error at line 53, near insert pccardd: /etc/defaults/pccard.conf: syntax error at line 53, near camcontrol pccardd: /etc/defaults/pccard.conf: syntax error at line 53, near rescan Zhang Weiwu wrote: > 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 > 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: on motherboard > npx0: INT 16 interface > pcibios: BIOS version 2.10 > Using $PIR table, 4 entries at 0xc00fb270 > pcib0: at pcibus 0 on motherboard > pci0: on pcib0 > pci_cfgintr: 0:3 INTA BIOS irq 11 > pci_cfgintr: 0:6 INTD BIOS irq 11 > pci0: at device 2.0 (no driver attached) > pci0: at device 2.1 (no driver attached) > pci0: at device 3.0 (no driver attached) > isab0: at device 6.0 on pci0 > isa0: on isab0 > atapci0: 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: port 0x9000-0x901f > irq 11 at device 6.2 on pci0 > usb0: 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: at device 6.3 (no driver attached) > orm0: