4.9-R panic with Lava DSerial-PCI 3.3v and device puc

Michael Wang mwang at unixlabplus.com
Tue Apr 6 21:29:27 PDT 2004


I posted it in freebsd-questions, but no response. I try
my luck here. This hardware is supported, but it panics.

Thanks.

(0)

Hardware:
- Dell 1750
- 133 MHz 3.3v PCIX
- Lava DSerial-PCI 3.3v

Software:
- FreeBSD 4.9-R
- device puc

(1)

without "device puc", upon boot, I have

pcib3: <Host to PCI bridge> on motherboard
pci3: <PCI bus> on pcib3
pci3: <unknown card> (vendor=0x1407, dev=0x0110) at 6.0 irq 0
pci3: <unknown card> (vendor=0x1407, dev=0x0111) at 6.1 irq 0
pcib4: <Host to PCI bridge> on motherboard
pci4: <PCI bus> on pcib4

pciconf -lv shows:

none1 at pci3:6:0: class=0x070002 card=0x01101407 chip=0x01101407 rev=0x00 hdr=0x00
    vendor   = 'Lava Computer Manufacturing Inc'
    device   = 'Lava DSerial PCI Port A'
    class    = simple comms
    subclass = UART
none2 at pci3:6:1: class=0x070002 card=0x01111407 chip=0x01111407 rev=0x00 hdr=0x00
    vendor   = 'Lava Computer Manufacturing Inc'
    device   = 'Lava DSerial PCI Port B'
    class    = simple comms
    subclass = UART

(2)
after adding
options COM_MULTIPORT
device puc
device sio

I have the following upon boot. Please note "irq 0".

pcib3: <Host to PCI bridge> on motherboard
pci3: <PCI bus> on pcib3
puc0: <Lava Computers serial port> irq 0 at device 6.0 on pci3
pci_cfgintr_virgin: using routable interrupt 4
kernel trap 12 with interrupts disabled


Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0xbc7c
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc00fcd24
stack pointer           = 0x10:0xc057cd94
frame pointer           = 0x10:0xc057ce04
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = resume, IOPL = 0
current process         = 0 (swapper)
interrupt mask          = net tty bio cam 
kernel: type 12 trap, code=0
Stopped at      0xc00fcd24:     movb    %cs:0xbc7c,%al
db> trace
kernbase(40a,c057ce44,c032cc03,c318f180,c057ce44) at 0xc00fcd24
db> ps
  pid   proc     addr    uid  ppid  pgrp  flag stat wmesg   wchan   cmd
    2 dc05ec60 dda66000    0     0     0 000204  2                  taskqueue
    1 dc05ee00 dc063000    0     0     0 000204  2                  swapper
    0 c04bbe00 c057a000    0     0     0 000204  2                  swapper

(3)

General questions:

>From various documentation:

"
options "COM_MULTIPORT"
device sio4 at isa? port 0x2a0 tty flags 0x781
device sio5 at isa? port 0x2a8 tty flags 0x781
device sio6 at isa? port 0x2b0 tty flags 0x781
device sio7 at isa? port 0x2b8 tty flags 0x781 irq 7 vector siointr
"

My questions are:

(3a) My device is PCI device, should I use isa? 
Why all documentation on sio uses isa?

(3b) How do I know the port number? minor number? irq?
And what is "vector siointr"? Looks like "tty", and "vector siointr"
are illegal in 4.9-R.

(3c) I have Lava DSerial-PCI 3.3v, should I use this?

options "COM_MULTIPORT"
device puc
device sio4 at isa? port 0x2a0 flags 0x581
device sio5 at isa? port 0x2a8 flags 0x581 irq 11

Thanks a lot.

-- 
Michael Wang * http://www.unixlabplus.com/ * mwang at unixlabplus.com


More information about the freebsd-hardware mailing list