From owner-freebsd-questions Thu Sep 14 9:30:16 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mta06-svc.ntlworld.com (mta06-svc.ntlworld.com [62.253.162.46]) by hub.freebsd.org (Postfix) with ESMTP id DBB5237B42C for ; Thu, 14 Sep 2000 09:30:04 -0700 (PDT) Received: from parish ([62.255.97.91]) by mta06-svc.ntlworld.com (InterMail vM.4.01.02.27 201-229-119-110) with ESMTP id <20000914162952.WSNS312.mta06-svc.ntlworld.com@parish>; Thu, 14 Sep 2000 17:29:52 +0100 Received: (from mark@localhost) by parish (8.11.0/8.11.0) id e8EGTc602679; Thu, 14 Sep 2000 17:29:38 +0100 (BST) (envelope-from mark) Date: Thu, 14 Sep 2000 17:29:32 +0100 From: Mark Ovens To: Antoine Beaupre Cc: freebsd-questions@freebsd.org Subject: Re: PnP modem not recognized at boot, but by pnpinfo(8) Message-ID: <20000914172932.B2261@parish> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: ; from beaupran@IRO.UMontreal.CA on Thu, Sep 14, 2000 at 12:15:02PM -0400 Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Sep 14, 2000 at 12:15:02PM -0400, Antoine Beaupre wrote: > Hi! > > I've upgraded my machine to FreeBSD 4.1 release recently (clean > install) and the kernel is not recognizing my modem. (Please note that > I've read the FAQ, the handbook, searched the mailing lists, read a few > man pages and hacked some of the kernel source, still no luck. Please read > on.) I'm thinking of sending this to -hackers, since it's recognized by > pnpinfo(8) and not on boot (is this normal?). > > Extract from dmesg output: > > sio2: configured irq 5 not in bitmap of probed irqs 0 > [...] Is sio2 in your kernel config file? If so, try commenting it out and re-building your kernel. The message above means, IIRC, that your modem is using IRQ5 but the sio probe is using another IRQ for that port. Just FYI, I have a PnP modem that appears on sio2, but I only sio0 and sio1 in my kernel: % dmesg | grep Pace sio2: at port 0x3e8-0x3ef irq 5 on isa0 % grep 'sio[0-9]' /sys/i386/conf/PARISH device sio0 at isa? port IO_COM1 flags 0x10 irq 4 device sio1 at isa? port IO_COM2 irq 3 % > unknown: can't assign resources > [full dmesg output included at the end of this mail] > > (Side note: The "unknown" tags are something new in 4.1. Why are some > noted as unknownN (N >= 0) and other as unknown?) > > The modem is configured (in windows) as COM3 on irq 10, and is working > fine. > > The FAQ entry about this > (http://www.freebsd.org/FAQ/hardware.html#AEN1395) > is not accurate on this matter. It says that I should configure my kernel > for PnP support using the "controller pnp0 in the configuration > file". However, this option is not supported anymore by the kernel. (If > I'm not mistaken, pnp support is in "by default"). > > I've manage to get the PnP ID of the modem with the pnpinfo command: > > Card assigned CSN #1 > Vendor ID CIR2000 (0x0020320d), Serial Number 0xffffffff > PnP Version 1.0, Vendor Version 0 > Device Description: CIRRUS LOGIC PnP V34 MODEM > > Logical Device ID: CIR1000 0x0010320d #0 > Device powers up active > Device supports I/O Range Check > Vendor register funcs 00 > > [... skipped, included at the end of this mail] > > So I've included this in the sio.c file. Another misinformation in the > FAQ, the file is not "/sys/i386/isa/sio.c", but really > "/sys/isa/sio.c" (has it ever been /sys/i386/isa/sio.c??). Here is the > patch I applied: > > 33c33 > < * $FreeBSD: /c/ncvs/src/sys/isa/sio.c,v 1.291.2.8 2000/06/18 04:43:44 > ps Exp $ > --- > > * $FreeBSD: src/sys/isa/sio.c,v 1.291.2.8 2000/06/18 04:43:44 ps Exp $ > 564a565,567 > > /* This is for the same modem, the first one seems to be wrong */ > > {0x0010320d, NULL}, /* CIR1000 - CIRRUS LOGIC PnP V34 MODEM > (Logical Device ID) */ > > {0x0020320d, NULL}, /* CIR2000 - CIRRUS LOGIC PnP V34 MODEM > (Vendor ID) */ > > However, nothing did it. I get the same dmesg output. The modem _was_ > supported in the FreeBSD 2.x and 3.x series. I could configure it using > the pnp command in userconfig, or simply configure it as a normal > "COM3" modem in windows and then use it as such in FBSD. But this is not > working anymore. > > If I get this to work, I'll submit a PR for the FAQ entry, and the sio.c > source, but right now, I don't know how to work this out, so a PR will be > my last resort. There must be something I missed. I fear that the modem > _might_ just be a winmodem, but then, it would never have worked out in > FBSD 2/3.x... > > Have a nice day! > > A. > > Complete dmesg output (pnpinfo output follows), note the #17, 17th kernel > build, I've made... er.. a few tries... :) > > Copyright (c) 1992-2000 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.1-RELEASE #17: Fri Sep 1 09:09:43 EDT 2000 > root@:/usr/src/sys/compile/SHALL > Timecounter "i8254" frequency 1193182 Hz > CPU: Pentium/P55C (167.05-MHz 586-class CPU) > Origin = "GenuineIntel" Id = 0x543 Stepping = 3 > Features=0x8001bf > real memory = 33554432 (32768K bytes) > avail memory = 29786112 (29088K bytes) > Preloaded elf kernel "kernel" at 0xc02fa000. > Preloaded userconfig_script "/boot/kernel.conf" at 0xc02fa09c. > Intel Pentium detected, installing workaround for F00F bug > md0: Malloc disk > npx0: on motherboard > npx0: INT 16 interface > pcib0: on motherboard > pci0: on pcib0 > isab0: at device 7.0 on pci0 > isa0: on isab0 > atapci0: port 0xf000-0xf00f at device 7.1 > on pci0 > ata0: at 0x1f0 irq 14 on atapci0 > pci0: at 7.2 irq 11 > chip1: port 0x5000-0x500f at > device 7.3 on pci0 > pci0: at 9.0 > ahc0: port 0x6400-0x64ff mem > 0xe1001000-0xe1001fff irq 9 at device 11.0 on pci0 > ahc0: aic7859 Single Channel A, SCSI Id=7, 3/255 SCBs > isa0: too many dependant configs (8) > isa0: too many dependant configs (8) > isa0: unexpected small tag 14 > atkbdc0: at port 0x60,0x64 on isa0 > atkbd0: flags 0x1 irq 1 on atkbdc0 > kbd0 at atkbd0 > vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 > sc0: at flags 0x100 on isa0 > sc0: VGA <16 virtual consoles, flags=0x300> > fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 > fdc0: FIFO enabled, 8 bytes threshold > fd0: <1440-KB 3.5" drive> on fdc0 drive 0 > 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 > ppc0: at port 0x378-0x37f irq 7 on isa0 > ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode > ppi0: on ppbus0 > lpt0: on ppbus0 > lpt0: Interrupt-driven port > plip0: on ppbus0 > ed0 at port 0x300-0x31f iomem 0xd8000 irq 12 on isa0 > ed0: address 00:00:1b:4d:57:30, type NE2000 (16 bit) > pca0 at port 0x40 on isa0 > joy0 at port 0x201 on isa0 > unknown: can't assign resources > sbc0: at port 0x220-0x22f,0x330-0x331,0x388-0x38b irq > 5 drq 1,5 on isa0 > sbc0: setting card to irq 5, drq 1, 5 > pcm0: on sbc0 > joy1: at port 0x208-0x20f on isa0 > unknown0: at port 0x620-0x623 on isa0 > ad0: 3079MB [6256/16/63] at ata0-master using > UDMA33 > acd0: CDROM at ata0-slave using PIO3 > Waiting 2 seconds for SCSI devices to settle > Mounting root from ufs:/dev/ad0s2a > da0 at ahc0 bus 0 target 0 lun 0 > da0: Fixed Direct Access SCSI-2 device > da0: 20.000MB/s transfers (20.000MHz, offset 15), Tagged Queueing Enabled > da0: 4091MB (8380080 512 byte sectors: 255H 63S/T 521C) > uhci0: port 0x6900-0x691f irq 11 > at device 7.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 > uhub0: port 1 power on failed, IOERROR > uhub0: port 2 power on failed, IOERROR > cd0 at ahc0 bus 0 target 3 lun 0 > cd0: Removable CD-ROM SCSI-2 device > cd0: 20.000MB/s transfers (20.000MHz, offset 15) > cd0: Attempt to query device size failed: NOT READY, Medium not present - > tray closed > pcm0: play interrupt timeout, channel dead > > > Relevant pnpinfo output: > > Card assigned CSN #1 > Vendor ID CIR2000 (0x0020320d), Serial Number 0xffffffff > PnP Version 1.0, Vendor Version 0 > Device Description: CIRRUS LOGIC PnP V34 MODEM > > Logical Device ID: CIR1000 0x0010320d #0 > Device powers up active > Device supports I/O Range Check > Vendor register funcs 00 > TAG Start DF > I/O Range 0x3f8 .. 0x3f8, alignment 0x8, len 0x8 > [16-bit addr] > IRQ: 4 IRQ: High true edge sensitive > TAG Start DF > I/O Range 0x3f8 .. 0x3f8, alignment 0x8, len 0x8 > [16-bit addr] > IRQ: 5 IRQ: High true edge sensitive > TAG Start DF > I/O Range 0x3f8 .. 0x3f8, alignment 0x8, len 0x8 > [16-bit addr] > IRQ: 7 IRQ: High true edge sensitive > TAG Start DF > I/O Range 0x3f8 .. 0x3f8, alignment 0x8, len 0x8 > [16-bit addr] > IRQ: 10 IRQ: High true edge sensitive > TAG Start DF > I/O Range 0x2f8 .. 0x2f8, alignment 0x8, len 0x8 > [16-bit addr] > IRQ: 3 IRQ: High true edge sensitive > TAG Start DF > I/O Range 0x2f8 .. 0x2f8, alignment 0x8, len 0x8 > [16-bit addr] > IRQ: 5 IRQ: High true edge sensitive > TAG Start DF > I/O Range 0x2f8 .. 0x2f8, alignment 0x8, len 0x8 > [16-bit addr] > IRQ: 7 IRQ: High true edge sensitive > TAG Start DF > I/O Range 0x2f8 .. 0x2f8, alignment 0x8, len 0x8 > [16-bit addr] > IRQ: 10 IRQ: High true edge sensitive > TAG Start DF > I/O Range 0x3e8 .. 0x3e8, alignment 0x8, len 0x8 > [16-bit addr] > IRQ: 4 IRQ: High true edge sensitive > TAG Start DF > I/O Range 0x3e8 .. 0x3e8, alignment 0x8, len 0x8 > [16-bit addr] > IRQ: 5 IRQ: High true edge sensitive > TAG Start DF > I/O Range 0x3e8 .. 0x3e8, alignment 0x8, len 0x8 > [16-bit addr] > IRQ: 7 IRQ: High true edge sensitive > TAG Start DF > I/O Range 0x3e8 .. 0x3e8, alignment 0x8, len 0x8 > [16-bit addr] > IRQ: 10 IRQ: High true edge sensitive > TAG Start DF > I/O Range 0x3e8 .. 0x3e8, alignment 0x8, len 0x8 > [16-bit addr] > IRQ: 11 IRQ: High true edge sensitive > TAG Start DF > I/O Range 0x3e8 .. 0x3e8, alignment 0x8, len 0x8 > [16-bit addr] > IRQ: 12 IRQ: High true edge sensitive > TAG Start DF > I/O Range 0x2e8 .. 0x2e8, alignment 0x8, len 0x8 > [16-bit addr] > IRQ: 3 IRQ: High true edge sensitive > TAG Start DF > I/O Range 0x2e8 .. 0x2e8, alignment 0x8, len 0x8 > [16-bit addr] > IRQ: 5 IRQ: High true edge sensitive > TAG Start DF > I/O Range 0x2e8 .. 0x2e8, alignment 0x8, len 0x8 > [16-bit addr] > IRQ: 7 IRQ: High true edge sensitive > TAG Start DF > I/O Range 0x2e8 .. 0x2e8, alignment 0x8, len 0x8 > [16-bit addr] > IRQ: 10 IRQ: High true edge sensitive > TAG Start DF > I/O Range 0x2e8 .. 0x2e8, alignment 0x8, len 0x8 > [16-bit addr] > IRQ: 11 IRQ: High true edge sensitive > TAG Start DF > I/O Range 0x2e8 .. 0x2e8, alignment 0x8, len 0x8 > [16-bit addr] > IRQ: 12 IRQ: High true edge sensitive > TAG End DF > *** Small Vendor Tag Detected > End Tag > > Successfully got 65 resources, 1 logical fdevs > -- card select # 0x0001 > > CSN CIR2000 (0x0020320d), Serial Number 0xffffffff > > Logical device #0 > IO: 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 > IRQ 0 0 > DMA 4 4 > IO range check 0x00 activate 0x00 > > > Si l'image donne l'illusion de savoir > C'est que l'adage pretend que pour croire, > L'important ne serait que de voir > > Lofofora > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- 4.4 - The number of the Beastie ________________________________________________________________ 51.44°N FreeBSD - The Power To Serve http://www.freebsd.org 2.057°W My Webpage http://ukug.uk.freebsd.org/~mark mailto:marko@freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message