From owner-freebsd-hardware@FreeBSD.ORG Thu Apr 8 21:02:55 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C923616A4CE for ; Thu, 8 Apr 2004 21:02:55 -0700 (PDT) Received: from venus.unixlabplus.com (h-67-100-145-26.nycmny83.covad.net [67.100.145.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8CAE643D53 for ; Thu, 8 Apr 2004 21:02:52 -0700 (PDT) (envelope-from mwang@unixlabplus.com) Received: from venus.unixlabplus.com (localhost [127.0.0.1]) by venus.unixlabplus.com (8.12.5/8.12.5) with ESMTP id i39432P4003352; Fri, 9 Apr 2004 00:03:02 -0400 (EDT) Received: (from mwang@localhost) by venus.unixlabplus.com (8.12.5/8.12.5/Submit) id i3942uip003351; Fri, 9 Apr 2004 00:02:56 -0400 (EDT) Date: Fri, 9 Apr 2004 00:02:55 -0400 From: Michael Wang To: Bruce Evans Message-ID: <20040409040255.GA3318@unixlabplus.com> References: <20040407042821.GB1060@unixlabplus.com> <20040407222807.Y11144@gamplex.bde.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040407222807.Y11144@gamplex.bde.org> User-Agent: Mutt/1.4i cc: freebsd-hardware@FreeBSD.org Subject: Re: 4.9-R panic with Lava DSerial-PCI 3.3v and device puc X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Apr 2004 04:02:55 -0000 Bruce, Thank you very much for your earlier reply! Since I could not get the Lava DSerial-PCI 3.3v dual port serial card to work under 4.9-R. I upgraded the FreeBSD to 5.2.1-R. Here is the new info. (0) Hardware / Software info Hardware: - Dell 1750 - 133 MHz 3.3v PCIX - Lava DSerial-PCI 3.3v (dual serial port PCI adapter) Software: - FreeBSD 5.2.1-R - device puc (1) Boot message On 5.2.1-R, it did not panic (on 4.9-R, it paniced), The verbose boot message shows: ... pci3: on pcib2 pci3: physical bus=3 map[10]: type 4, range 32, base 0000ccf8, size 3, port disabled found-> vendor=0x1407, dev=0x0110, revid=0x00 bus=3, slot=6, func=0 class=07-00-02, hdrtype=0x00, mfdev=1 cmdreg=0x0040, statreg=0x0480, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=a, irq=255 map[10]: type 4, range 32, base 0000ccf0, size 3, port disabled found-> vendor=0x1407, dev=0x0111, revid=0x00 bus=3, slot=6, func=1 class=07-00-02, hdrtype=0x00, mfdev=1 cmdreg=0x0040, statreg=0x0480, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=a, irq=255 puc0: port 0xccf8-0xccff at device 6.0 on pci3 pcib2: matched entry for 3.6.INTA (source ) pcib2: device is hardwired to IRQ 24 puc0: failed to enable port mapping! puc0: could not get resource puc1: port 0xccf0-0xccf7 at device 6.1 on pci3 pcib2: matched entry for 3.6.INTA (source ) pcib2: device is hardwired to IRQ 24 puc1: failed to enable port mapping! puc1: could not get resource ... My reading is on pci3, it found two devices (two ports). Here are things that I doubt: (a) The "irq=255" does not look right. And later it says "device is hardwired to IRQ 24". (b) And I do not know why port disabled. (c) I also do not understand "size 3". The base address are 0000ccf0-0000ccf7 and 0000ccf8-0000ccff. The size should be 8, shouldn't it? On 4.9-R, the boot message is (I did not turn on verbose mode): pcib3: on motherboard pci3: on pcib3 pci3: (vendor=0x1407, dev=0x0110) at 6.0 irq 0 pci3: (vendor=0x1407, dev=0x0111) at 6.1 irq 0 And Bruce Evans said: irq 0 is from the card's PCI registers. The irq should be nonzero here. This is hard to recover from, and FreeBSD-4.9 apparently doesn't manage to figure out the actual irq. Look at BIOS boot messages to see if the BIOS prints a useable irq number. My guess is that it doesn't. (2) BIOS On Dell 1750, BIOS set IRQ for PCI device like this. You hit a "next key", the next IRQ appears. It is not continuously. In my case, it cycle through 5, 7, and 11. When you change the IRQ for one PCI device, the IRQ's for other devices change automatically. This is to avoid conflict. I set the IRQ for both ports to be 11 (they can not be different, they change together when you change one of them); no other PCI device has this IRQ. So I do not understand why this IRQ (11) is not picked up by FreeBSD. I tried other settings, there is no difference. (3) Vendor provided lavaconf.exe output The vendor provided a DOS utility "lavaconf.exe" on floppy. When I run it on DOS environment, I got: 330 Lava DSerial PCI port A = CCF8 331 Lava DSerial PCI port A = CCF0 The documentation says it should print the IRQ and memory address, but I do not know where the IRQ should be printed. I do not see a correct output. I do not know what 330 and 331 are. I recognized the memory address are the same as FreeBSD reported. When I downloaded the "lavaconf.exe" from lavalink website which is different than the one on floppy, I do not get any output when I run it. I would appreciate any advice what the possible problems are, and what should I try next. Thanks. PS: I am afraid I miss something from the boot message, it is included in its entirety here: pcib0: port 0xcf8-0xcff on acpi0 ---- initial configuration ------------------------ \\_SB_.LUSB irq 5: [ 4 5 6 7 10 11 12] low,level,sharable 0.15.0 ---- before setting priority for links ------------ ---- before fixup boot-disabled links ------------- ---- after fixup boot-disabled links -------------- ---- arbitrated configuration --------------------- \\_SB_.LUSB irq 5: [ 4 5 6 7 10 11 12] low,level,sharable 0.15.0 pci0: on pcib0 pci0: physical bus=0 found-> vendor=0x1166, dev=0x0014, revid=0x33 bus=0, slot=0, func=0 class=06-00-00, hdrtype=0x00, mfdev=1 cmdreg=0x0000, statreg=0x0000, cachelnsz=16 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) found-> vendor=0x1166, dev=0x0014, revid=0x00 bus=0, slot=0, func=1 class=06-00-00, hdrtype=0x00, mfdev=1 cmdreg=0x0000, statreg=0x0000, cachelnsz=16 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) found-> vendor=0x1166, dev=0x0014, revid=0x00 bus=0, slot=0, func=2 class=06-00-00, hdrtype=0x00, mfdev=1 cmdreg=0x0000, statreg=0x0000, cachelnsz=16 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) map[10]: type 1, range 32, base fd000000, size 24, enabled map[14]: type 4, range 32, base 0000ec00, size 8, enabled map[18]: type 1, range 32, base fe101000, size 12, enabled found-> vendor=0x1002, dev=0x4752, revid=0x27 bus=0, slot=14, func=0 class=03-00-00, hdrtype=0x00, mfdev=0 cmdreg=0x00a7, statreg=0x0290, cachelnsz=16 (dwords) lattimer=0x20 (960 ns), mingnt=0x08 (2000 ns), maxlat=0x00 (0 ns) powerspec 2 supports D0 D1 D2 D3 current D0 found-> vendor=0x1166, dev=0x0201, revid=0x93 bus=0, slot=15, func=0 class=06-00-00, hdrtype=0x00, mfdev=1 cmdreg=0x0147, statreg=0x2200, cachelnsz=0 (dwords) lattimer=0x20 (960 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) map[10]: type 4, range 32, base 000001f0, size 3, enabled map[14]: type 4, range 32, base 000003f4, size 2, enabled map[18]: type 4, range 32, base 00000170, size 3, enabled map[1c]: type 4, range 32, base 00000374, size 2, enabled map[20]: type 4, range 32, base 000008b0, size 4, enabled found-> vendor=0x1166, dev=0x0212, revid=0x93 bus=0, slot=15, func=1 class=01-01-8a, hdrtype=0x00, mfdev=1 cmdreg=0x0145, statreg=0x0200, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) map[10]: type 1, range 32, base fe100000, size 12, enabled pcib0: matched entry for 0.15.INTA (source \\_SB_.LUSB) pcib0: slot 15 INTA is routed to irq 5 found-> vendor=0x1166, dev=0x0220, revid=0x05 bus=0, slot=15, func=2 class=0c-03-10, hdrtype=0x00, mfdev=1 cmdreg=0x0157, statreg=0x0280, cachelnsz=0 (dwords) lattimer=0x20 (960 ns), mingnt=0x00 (0 ns), maxlat=0x50 (20000 ns) intpin=a, irq=5 found-> vendor=0x1166, dev=0x0225, revid=0x00 bus=0, slot=15, func=3 class=06-01-00, hdrtype=0x00, mfdev=1 cmdreg=0x0005, statreg=0x0200, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) found-> vendor=0x1166, dev=0x0110, revid=0x12 bus=0, slot=16, func=0 class=06-00-00, hdrtype=0x00, mfdev=1 cmdreg=0x0142, statreg=0x2230, cachelnsz=0 (dwords) lattimer=0x20 (960 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) found-> vendor=0x1166, dev=0x0110, revid=0x12 bus=0, slot=16, func=2 class=06-00-00, hdrtype=0x00, mfdev=1 cmdreg=0x0142, statreg=0x0230, cachelnsz=0 (dwords) lattimer=0x20 (960 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) found-> vendor=0x1166, dev=0x0101, revid=0x05 bus=0, slot=17, func=0 class=06-00-00, hdrtype=0x00, mfdev=1 cmdreg=0x0142, statreg=0x2230, cachelnsz=0 (dwords) lattimer=0x20 (960 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) found-> vendor=0x1166, dev=0x0101, revid=0x05 bus=0, slot=17, func=2 class=06-00-00, hdrtype=0x00, mfdev=1 cmdreg=0x0142, statreg=0x0230, cachelnsz=0 (dwords) lattimer=0x20 (960 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) pci0: at device 14.0 (no driver attached) atapci0: port 0x8b0-0x8bf,0x374-0x377,0x170-0x177,0x3f4-0x3f7,0x1f0-0x1f7 at device 15.1 on pci0 ata0: reset tp1 mask=03 ostat0=7f ostat1=7f ata0-master: stat=0x7f err=0x7f lsb=0x7f msb=0x7f ata0-master: stat=0x7f err=0x7f lsb=0x7f msb=0x7f ata0-master: stat=0x7f err=0x7f lsb=0x7f msb=0x7f ata0-master: stat=0x7f err=0x7f lsb=0x7f msb=0x7f ata0-master: stat=0x7f err=0x7f lsb=0x7f msb=0x7f ata0-master: stat=0x7f err=0x7f lsb=0x7f msb=0x7f ata0-master: stat=0x7f err=0x7f lsb=0x7f msb=0x7f ata0-master: stat=0x7f err=0x7f lsb=0x7f msb=0x7f ata0-master: stat=0x7f err=0x7f lsb=0x7f msb=0x7f ata0-master: stat=0x7f err=0x7f lsb=0x7f msb=0x7f ata0-master: stat=0x7f err=0x7f lsb=0x7f msb=0x7f ata0-master: stat=0x7f err=0x7f lsb=0x7f msb=0x7f ata0-master: stat=0x7f err=0x7f lsb=0x7f msb=0x7f ata0-master: stat=0x7f err=0x7f lsb=0x7f msb=0x7f ata0-master: stat=0x7f err=0x7f lsb=0x7f msb=0x7f ata0-master: stat=0x7f err=0x7f lsb=0x7f msb=0x7f ata0-master: stat=0x7f err=0x7f lsb=0x7f msb=0x7f ata0-master: stat=0x7f err=0x7f lsb=0x7f msb=0x7f ata0-master: stat=0x7f err=0x7f lsb=0x7f msb=0x7f ata0-master: stat=0x7f err=0x7f lsb=0x7f msb=0x7f ata0-master: stat=0x7f err=0x7f lsb=0x7f msb=0x7f ata0-master: stat=0x7f err=0x7f lsb=0x7f msb=0x7f ata0-master: stat=0x7f err=0x7f lsb=0x7f msb=0x7f ata0-slave: stat=0x7f err=0x7f lsb=0x7f msb=0x7f ata0: reset tp2 mask=00 stat0=ff stat1=ff devices=0x0 ata0: at 0x1f0 irq 14 on atapci0 ata0: [MPSAFE] ata1: simplex device, DMA on primary only ata1: reset tp1 mask=03 ostat0=50 ostat1=00 ata1-master: stat=0x00 err=0x01 lsb=0x14 msb=0xeb ata1-slave: stat=0x00 err=0x00 lsb=0x00 msb=0xdf ata1: reset tp2 mask=03 stat0=00 stat1=00 devices=0x4 ata1: at 0x170 irq 15 on atapci0 ata1: [MPSAFE] ohci0: mem 0xfe100000-0xfe100fff irq 5 at device 15.2 on pci0 ohci0: (New OHCI DeviceId=0x02201166) usb0: OHCI version 1.0, legacy support usb0: SMM does not respond, resetting usb0: on ohci0 usb0: USB revision 1.0 uhub0: (0x1166) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 4 ports with 4 removable, self powered isab0: at device 15.3 on pci0 isa0: on isab0 pcib1: on acpi0 ---- initial configuration ------------------------ ---- before setting priority for links ------------ ---- before fixup boot-disabled links ------------- ---- after fixup boot-disabled links -------------- ---- arbitrated configuration --------------------- pci4: on pcib1 pci4: physical bus=4 map[10]: type 4, range 32, base 0000bc00, size 8, enabled map[14]: type 1, range 64, base fcc30000, size 16, enabled map[1c]: type 1, range 64, base fcc20000, size 16, enabled pcib1: matched entry for 4.5.INTA (source ) pcib1: device is hardwired to IRQ 18 found-> vendor=0x1000, dev=0x0030, revid=0x07 bus=4, slot=5, func=0 class=01-00-00, hdrtype=0x00, mfdev=1 cmdreg=0x0117, statreg=0x0230, cachelnsz=16 (dwords) lattimer=0x48 (2160 ns), mingnt=0x11 (4250 ns), maxlat=0x12 (4500 ns) intpin=a, irq=18 powerspec 2 supports D0 D1 D2 D3 current D0 MSI supports 1 message, 64 bit map[10]: type 4, range 32, base 0000b800, size 8, enabled map[14]: type 1, range 64, base fcc10000, size 16, enabled map[1c]: type 1, range 64, base fcc00000, size 16, enabled pcib1: matched entry for 4.5.INTB (source ) pcib1: device is hardwired to IRQ 19 found-> vendor=0x1000, dev=0x0030, revid=0x07 bus=4, slot=5, func=1 class=01-00-00, hdrtype=0x00, mfdev=1 cmdreg=0x0117, statreg=0x0230, cachelnsz=16 (dwords) lattimer=0x48 (2160 ns), mingnt=0x11 (4250 ns), maxlat=0x12 (4500 ns) intpin=b, irq=19 powerspec 2 supports D0 D1 D2 D3 current D0 MSI supports 1 message, 64 bit mpt0: port 0xbc00-0xbcff mem 0xfcc20000-0xfcc2ffff,0xfcc30000-0xfcc3ffff irq 18 at device 5.0 on pci4 mpt0: soft reset mpt1: port 0xb800-0xb8ff mem 0xfcc00000-0xfcc0ffff,0xfcc10000-0xfcc1ffff irq 19 at device 5.1 on pci4 mpt1: linking with peer (mpt0) mpt1: soft reset pcib2: on acpi0 ---- initial configuration ------------------------ ---- before setting priority for links ------------ ---- before fixup boot-disabled links ------------- ---- after fixup boot-disabled links -------------- ---- arbitrated configuration --------------------- pci3: on pcib2 pci3: physical bus=3 map[10]: type 4, range 32, base 0000ccf8, size 3, port disabled found-> vendor=0x1407, dev=0x0110, revid=0x00 bus=3, slot=6, func=0 class=07-00-02, hdrtype=0x00, mfdev=1 cmdreg=0x0040, statreg=0x0480, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=a, irq=255 map[10]: type 4, range 32, base 0000ccf0, size 3, port disabled found-> vendor=0x1407, dev=0x0111, revid=0x00 bus=3, slot=6, func=1 class=07-00-02, hdrtype=0x00, mfdev=1 cmdreg=0x0040, statreg=0x0480, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=a, irq=255 puc0: port 0xccf8-0xccff at device 6.0 on pci3 pcib2: matched entry for 3.6.INTA (source ) pcib2: device is hardwired to IRQ 24 puc0: failed to enable port mapping! puc0: could not get resource puc1: port 0xccf0-0xccf7 at device 6.1 on pci3 pcib2: matched entry for 3.6.INTA (source ) pcib2: device is hardwired to IRQ 24 puc1: failed to enable port mapping! puc1: could not get resource pcib3: on acpi0 ---- initial configuration ------------------------ ---- before setting priority for links ------------ ---- before fixup boot-disabled links ------------- ---- after fixup boot-disabled links -------------- ---- arbitrated configuration --------------------- pci2: on pcib3 pci2: physical bus=2 map[10]: type 1, range 64, base fcf30000, size 16, enabled map[18]: type 1, range 64, base fcf20000, size 16, enabled pcib3: matched entry for 2.0.INTA (source ) pcib3: device is hardwired to IRQ 16 found-> vendor=0x14e4, dev=0x1648, revid=0x02 bus=2, slot=0, func=0 class=02-00-00, hdrtype=0x00, mfdev=1 cmdreg=0x0116, statreg=0x02b0, cachelnsz=0 (dwords) lattimer=0x40 (1920 ns), mingnt=0x40 (16000 ns), maxlat=0x00 (0 ns) intpin=a, irq=16 powerspec 2 supports D0 D3 current D0 MSI supports 8 messages, 64 bit map[10]: type 1, range 64, base fcf10000, size 16, enabled map[18]: type 1, range 64, base fcf00000, size 16, enabled pcib3: matched entry for 2.0.INTB (source ) pcib3: device is hardwired to IRQ 17 found-> vendor=0x14e4, dev=0x1648, revid=0x02 bus=2, slot=0, func=1 class=02-00-00, hdrtype=0x00, mfdev=1 cmdreg=0x0116, statreg=0x02b0, cachelnsz=0 (dwords) lattimer=0x40 (1920 ns), mingnt=0x40 (16000 ns), maxlat=0x00 (0 ns) intpin=b, irq=17 powerspec 2 supports D0 D3 current D0 MSI supports 8 messages, 64 bit bge0: mem 0xfcf20000-0xfcf2ffff,0xfcf30000-0xfcf3ffff irq 16 at device 0.0 on pci2 bge0: Ethernet address: 00:0d:56:fd:d0:b3 miibus0: on bge0 brgphy0: on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto bge0: bpf attached bge1: mem 0xfcf00000-0xfcf0ffff,0xfcf10000-0xfcf1ffff irq 17 at device 0.1 on pci2 bge1: Ethernet address: 00:0d:56:fd:d0:b4 miibus1: on bge1 brgphy1: on miibus1 brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto bge1: bpf attached pcib4: on acpi0 ---- initial configuration ------------------------ ---- before setting priority for links ------------ ---- before fixup boot-disabled links ------------- ---- after fixup boot-disabled links -------------- ---- arbitrated configuration --------------------- pci1: on pcib4 pci1: physical bus=1 fdc0: port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: flags 0x1 irq 1 on atkbdc0 atkbd: the current kbd controller command byte 0065 atkbd: keyboard ID 0x41ab (2) kbd0 at atkbd0 kbd0: atkbd0, AT 101/102 (2), config:0x1, flags:0x3d0000 psm0: unable to allocate IRQ psmcpnp0 irq 12 on acpi0 psm0: current command byte:0065 psm0: irq 12 on atkbdc0 psm0: model Generic PS/2 mouse, device ID 0-00, 2 buttons psm0: config:00000000, flags:00000000, packet size:3 psm0: syncmask:c0, syncbits:00 sio0: irq maps: 0x2003 0x2013 0x2003 0x2003 sio0 port 0x3f8-0x3ff irq 4 on acpi0 sio0: type 16550A acpi_cpu2: on acpi0 device_probe_and_attach: acpi_cpu2 attach returned 6 acpi_cpu2: on acpi0 device_probe_and_attach: acpi_cpu2 attach returned 6 ata: ata0 already exists; skipping it ata: ata1 already exists; skipping it atkbdc: atkbdc0 already exists; skipping it fdc: fdc0 already exists; skipping it sio: sio0 already exists; skipping it Trying Read_Port at 203 Trying Read_Port at 243 Trying Read_Port at 283 Trying Read_Port at 2c3 Trying Read_Port at 303 Trying Read_Port at 343 Trying Read_Port at 383 Trying Read_Port at 3c3 ex_isa_identify() sc: sc0 already exists; skipping it vga: vga0 already exists; skipping it unknown: status reg test failed ff unknown: status reg test failed ff unknown: status reg test failed ff unknown: status reg test failed ff unknown: status reg test failed ff unknown: status reg test failed ff isa_probe_children: disabling PnP devices isa_probe_children: probing non-PnP devices orm0: