From owner-freebsd-questions@FreeBSD.ORG Fri May 23 07:15:47 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CC47937B401 for ; Fri, 23 May 2003 07:15:47 -0700 (PDT) Received: from jive.SoftHome.net (jive.SoftHome.net [66.54.152.27]) by mx1.FreeBSD.org (Postfix) with SMTP id A253543F75 for ; Fri, 23 May 2003 07:15:46 -0700 (PDT) (envelope-from jason.stubbs@softhome.net) Received: (qmail 21575 invoked by uid 417); 23 May 2003 14:15:46 -0000 Received: from shunt-smtp-out-0 (HELO softhome.net) (172.16.3.12) by shunt-smtp-out-0 with SMTP; 23 May 2003 14:15:46 -0000 Received: from P061204092080.ppp.prin.ne.jp ([61.204.92.80]) by softhome.net with esmtp; Fri, 23 May 2003 08:15:35 -0600 From: Jason Stubbs To: freebsd-questions@freebsd.org Date: Fri, 23 May 2003 23:11:10 +0900 User-Agent: KMail/1.5.2 References: <200305222257.53472.jason.stubbs@softhome.net> In-Reply-To: <200305222257.53472.jason.stubbs@softhome.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200305232311.10731.jason.stubbs@softhome.net> Subject: Please help!! X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 May 2003 14:15:48 -0000 My apologies to anyone who is also subscribed to freebsd-mobile. All I want to know is how can I overide the irq that pccardd is allocating to my pcmcia modem. Can anyone enlighten me? Presently, I have removed M$ software from my machine and am using Gentoo Linux and am trying to set FreeBSD. There are only two things that are preventing me from getting rid of Gentoo (it is pretty good but not the most stable) and moving to a pure BSD system. One problem is that which I have described below; the other is my the system locking up ~5 seconds after getting into Xwindows. I have an Nvidia chipset and am trying to use the beta driver (for mesa support) and haven't had a chance to really figure out that problem yet, but if I can't get semi-decent speeds from my modem (really a wireless internet card) then I'll have to throw BSD away. PLEASE don't make me do that; it seems to be very stable and ridiculously fast. On Thursday 22 May 2003 23:04, Jason Stubbs wrote: > My apologies if this has already been received by the list, but there was > some problem with my subscription. > > I found some information after attempting to post this however. It > basically said that the behavious below was by design as freebsd supports > irq sharing. Also, after closer analysis of dmesg, I think the pcm device > may be on irq 3. Am I correct? Will specifying a different irq in the > kernel configuration force it to a different irq (hopefully freeing it up > for use by the modem)? > > ---------- Forwarded Message ---------- > > Subject: pccardd forces irq 9 on pcmcia modem > Date: Thursday 22 May 2003 13:26 > From: Jason Stubbs > To: freebsd-mobile@freebsd.org > > Hello, > > I'm having trouble with a pcmcia modem. It is actually detected and set up > as a "generic serial" but it runs very slowly. I should be able to get > about 3.4k/s but can only get about 1k/s. I had the same trouble with Linux > but was able to fix it; I found that the irq was being set to 0 and setting > it to 3 made everything run perfectly. Under FreeBSD, I tried setting up > /etc/pccard.conf as follows but it still forces it to irq 9: > > irq 3 > card "HONDA ELECTRON CO.,LTD" "AH-H401C" > config 0x9 "sio" 3 > > As you can see from the output of dmesg below, there is no other device on > irq 3. I also have another (lesser) problem; no pccardd entries appear in > /var/log/messages. If I run pccardd -d, they all show up fine on the > console. I tried uncommenting the "*.* /var/log/all.log" line in > /etc/syslog.conf, but they don't show up there either. > > The output of pccardc dumpcis is as follows: > > Configuration data for card in slot 1 > Tuple #1, code = 0x1 (Common memory descriptor), length = 3 > 000: 00 00 ff > Common memory device information: > Device number 1, type No device, WPS = OFF > Speed = No speed, Memory block size = 512b, 1 units > Tuple #2, code = 0x15 (Version 1 info), length = 35 > 000: 04 01 48 4f 4e 44 41 20 45 4c 45 43 54 52 4f 4e > 010: 20 43 4f 2e 2c 4c 54 44 00 41 48 2d 48 34 30 31 > 020: 43 00 ff > Version = 4.1, Manuf = [HONDA ELECTRON CO.,LTD], card vers = [AH-H401C] > Tuple #3, code = 0x20 (Manufacturer ID), length = 4 > 000: 36 c0 1a 00 > PCMCIA ID = 0xc036, OEM ID = 0x1a > Tuple #4, code = 0x21 (Functional ID), length = 2 > 000: 02 01 > Serial port/modem - POST initialize > Tuple #5, code = 0x22 (Functional EXT), length = 4 > 000: 00 02 0f 5c > Serial interface extension: > 16550 UART, Parity - Space,Mark,Odd,Even > Data bit - 7bit,8bit, Stop bit - 1bit,2bit > Tuple #6, code = 0x22 (Functional EXT), length = 9 > 000: 05 1f 0f 00 10 00 00 10 00 > Data modem interface capabilities: > Tuple #7, code = 0x22 (Functional EXT), length = 9 > 000: 06 1f 0f 00 10 00 00 10 00 > Fax/modem interface capabilities: > Tuple #8, code = 0x22 (Functional EXT), length = 12 > 000: 02 06 00 3b 0c 03 03 0f 02 00 00 00 > Data modem services available: > Tuple #9, code = 0x22 (Functional EXT), length = 8 > 000: 13 06 00 0f 00 02 00 00 > Fax1/modem services available: > Tuple #10, code = 0x22 (Functional EXT), length = 8 > 000: 23 06 00 0f 00 02 00 00 > Fax2/modem services available: > Tuple #11, code = 0x1a (Configuration map), length = 5 > 000: 01 2d 00 04 13 > Reg len = 2, config register addr = 0x400, last config = 0x2d > Registers: XX--X--- > Tuple #12, code = 0x1b (Configuration entry), length = 17 > 000: c9 01 99 17 55 4d 5d 2e ab 60 f8 02 07 30 bc 86 > 010: 00 > Config index = 0x9(default) > Interface byte = 0x1 (I/O) > Vcc pwr: > Nominal operating supply voltage: 5 x 1V > Minimum operating supply voltage: 4.5 x 1V > Maximum operating supply voltage: 5.5 x 1V > Max current average over 1 second: 2.5 x 100mA > Card decodes 11 address lines, 8 Bit I/O only > I/O address # 1: block start = 0x2f8 block length = 0x8 > IRQ modes: Level > IRQs: 2 3 4 5 7 9 10 15 > Max twin cards = 0 > Misc attr: > Tuple #13, code = 0x1b (Configuration entry), length = 10 > 000: 09 01 17 b5 1e b5 0e b5 2e 2e > Config index = 0x9 > Vcc pwr: > Nominal operating supply voltage: 3 x 1V, ext = 0x1e > Minimum operating supply voltage: 3 x 1V, ext = 0xe > Maximum operating supply voltage: 3 x 1V, ext = 0x2e > Max current average over 1 second: 2.5 x 100mA > Tuple #14, code = 0x1b (Configuration entry), length = 17 > 000: c8 01 99 17 55 4d 5d 2e ab 60 f8 03 07 30 bc 86 > 010: 00 > Config index = 0x8(default) > Interface byte = 0x1 (I/O) > Vcc pwr: > Nominal operating supply voltage: 5 x 1V > Minimum operating supply voltage: 4.5 x 1V > Maximum operating supply voltage: 5.5 x 1V > Max current average over 1 second: 2.5 x 100mA > Card decodes 11 address lines, 8 Bit I/O only > I/O address # 1: block start = 0x3f8 block length = 0x8 > IRQ modes: Level > IRQs: 2 3 4 5 7 9 10 15 > Max twin cards = 0 > Misc attr: > Tuple #15, code = 0x1b (Configuration entry), length = 10 > 000: 08 01 17 b5 1e b5 0e b5 2e 2e > Config index = 0x8 > Vcc pwr: > Nominal operating supply voltage: 3 x 1V, ext = 0x1e > Minimum operating supply voltage: 3 x 1V, ext = 0xe > Maximum operating supply voltage: 3 x 1V, ext = 0x2e > Max current average over 1 second: 2.5 x 100mA > Tuple #16, code = 0x1b (Configuration entry), length = 17 > 000: ca 01 99 17 55 4d 5d 2e ab 60 e8 03 07 30 bc 86 > 010: 00 > Config index = 0xa(default) > Interface byte = 0x1 (I/O) > Vcc pwr: > Nominal operating supply voltage: 5 x 1V > Minimum operating supply voltage: 4.5 x 1V > Maximum operating supply voltage: 5.5 x 1V > Max current average over 1 second: 2.5 x 100mA > Card decodes 11 address lines, 8 Bit I/O only > I/O address # 1: block start = 0x3e8 block length = 0x8 > IRQ modes: Level > IRQs: 2 3 4 5 7 9 10 15 > Max twin cards = 0 > Misc attr: > Tuple #17, code = 0x1b (Configuration entry), length = 10 > 000: 0a 01 17 b5 1e b5 0e b5 2e 2e > Config index = 0xa > Vcc pwr: > Nominal operating supply voltage: 3 x 1V, ext = 0x1e > Minimum operating supply voltage: 3 x 1V, ext = 0xe > Maximum operating supply voltage: 3 x 1V, ext = 0x2e > Max current average over 1 second: 2.5 x 100mA > Tuple #18, code = 0x1b (Configuration entry), length = 17 > 000: cb 01 99 17 55 4d 5d 2e ab 60 e8 02 07 30 bc 86 > 010: 00 > Config index = 0xb(default) > Interface byte = 0x1 (I/O) > Vcc pwr: > Nominal operating supply voltage: 5 x 1V > Minimum operating supply voltage: 4.5 x 1V > Maximum operating supply voltage: 5.5 x 1V > Max current average over 1 second: 2.5 x 100mA > Card decodes 11 address lines, 8 Bit I/O only > I/O address # 1: block start = 0x2e8 block length = 0x8 > IRQ modes: Level > IRQs: 2 3 4 5 7 9 10 15 > Max twin cards = 0 > Misc attr: > Tuple #19, code = 0x1b (Configuration entry), length = 10 > 000: 0b 01 17 b5 1e b5 0e b5 2e 2e > Config index = 0xb > Vcc pwr: > Nominal operating supply voltage: 3 x 1V, ext = 0x1e > Minimum operating supply voltage: 3 x 1V, ext = 0xe > Maximum operating supply voltage: 3 x 1V, ext = 0x2e > Max current average over 1 second: 2.5 x 100mA > Tuple #20, code = 0x1b (Configuration entry), length = 10 > 000: 2d 09 17 55 4d 5d 2e a3 40 07 > Config index = 0x2d > Vcc pwr: > Nominal operating supply voltage: 5 x 1V > Minimum operating supply voltage: 4.5 x 1V > Maximum operating supply voltage: 5.5 x 1V > Max current average over 1 second: 2.5 x 100mA > Card decodes 3 address lines, 8 Bit I/O only > I/O address # 1: block length = 0x8 > Tuple #21, code = 0x1b (Configuration entry), length = 10 > 000: 2d 01 17 b5 1e b5 0e b5 2e 2e > Config index = 0x2d > Vcc pwr: > Nominal operating supply voltage: 3 x 1V, ext = 0x1e > Minimum operating supply voltage: 3 x 1V, ext = 0xe > Maximum operating supply voltage: 3 x 1V, ext = 0x2e > Max current average over 1 second: 2.5 x 100mA > Tuple #22, code = 0x14 (No link), length = 0 > Tuple #23, code = 0xff (Terminator), length = 0 > 2 slots found > > The output of dmesg is as follows: > > Copyright (c) 1992-2003 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 4.8-STABLE #1: Thu May 22 10:37:15 JST 2003 > root@localhost:/usr/obj/usr/src/sys/MYKERNEL > Timecounter "i8254" frequency 1193175 Hz > CPU: mobile AMD Athlon(tm) XP 1800+ (1533.38-MHz 686-class CPU) > Origin = "AuthenticAMD" Id = 0x681 Stepping = 1 > > Features=0x383f9ff,P AT,PSE36,MMX,FXSR,SSE> AMD Features=0xc0480000 real > memory = 267321344 (261056K bytes) > avail memory = 255954944 (249956K bytes) > Preloaded elf kernel "kernel" at 0xc0410000. > VESA: v3.0, 16384k memory, flags:0x1, mode table:0xc0392302 (1000022) > VESA: NVidia > netsmb_dev: loaded > Pentium Pro MTRR support enabled > md0: Malloc disk > Using $PIR table, 6 entries at 0xc00fdf60 > apm0: on motherboard > apm0: found APM BIOS v1.2, connected at v1.2 > npx0: on motherboard > npx0: INT 16 interface > pcib0: on motherboard > pci0: on pcib0 > agp0: mem 0xe8000000-0xefffffff at device > 0.0 on pci0 > pcib1: at device 1.0 on pci0 > pci1: on pcib1 > pci1: at 0.0 irq 11 > rl0: port 0x1400-0x14ff mem > 0xe0000000-0xe00001ff irq 9 at device 12.0 on pci0 > rl0: Ethernet address: 08:00:46:95:6d:53 > miibus0: on rl0 > rlphy0: on miibus0 > rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > pci_cfgintr_linked: linked (1) to hard-routed irq 9 > pci_cfgintr: 0:14 INTA routed to irq 9 > pcic0: irq 9 at device 14.0 on pci0 > pcic0: PCI Memory allocated: 0x88000000 > pccard0: on pcic0 > pci_cfgintr_linked: linked (2) to hard-routed irq 9 > pci_cfgintr: 0:14 INTB routed to irq 9 > pcic1: irq 9 at device 14.1 on pci0 > pcic1: PCI Memory allocated: 0x88001000 > pccard1: on pcic1 > pci0: (vendor=0x1180, dev=0x0552) at 14.2 > uhci0: port 0x1020-0x103f irq 9 at device 16.0 > on pci0 > usb0: on uhci0 > usb0: USB revision 1.0 > uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > uhub0: 2 ports with 2 removable, self powered > uhci1: port 0x1040-0x105f irq 0 at device 16.1 > on pci0 > pci_cfgintr_search: linked (0) to configured irq 9 at 0:12:0 > pci_cfgintr: 0:16 INTB routed to irq 9 > usb1: on uhci1 > usb1: USB revision 1.0 > uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > uhub1: 2 ports with 2 removable, self powered > uhci2: port 0x1060-0x107f irq 0 at device 16.2 > on pci0 > pci_cfgintr_search: linked (0) to configured irq 9 at 0:12:0 > pci_cfgintr: 0:16 INTC routed to irq 9 > usb2: on uhci2 > usb2: USB revision 1.0 > uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > uhub2: 2 ports with 2 removable, self powered > pci0: at 16.3 > isab0: at device 17.0 on pci0 > isa0: on isab0 > atapci0: port 0x1000-0x100f irq 0 at device > 17.1 on pci0 > ata0: at 0x1f0 irq 14 on atapci0 > ata1: at 0x170 irq 15 on atapci0 > pcm0: port 0x1800-0x18ff at device 17.5 on pci0 > pci_cfgintr_search: linked (3) to configured irq 9 at 0:14:1 > pci_cfgintr: 0:17 INTC routed to irq 9 > pcm0: (id=0x41445372) > chip0: port 0x1c00-0x1cff at device 17.6 on pci0 > orm0: