Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Mar 2009 17:27:17 -0400
From:      Mike Tancsa <mike@sentex.net>
To:        freebsd-usb@freebsd.org
Subject:   u3g panic
Message-ID:  <200903272126.n2RLQjIe052544@lava.sentex.ca>

next in thread | raw e-mail | index | archive | help
Hi,
         I was trying the u3g driver in FreeBSD on RELENG_7. The 
previous version from the webpage seemed to work ok, but the one 
MFC'd causes a panic if I

load the driver
and attach the stick


Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0xc
fault code              = supervisor read, page not present
instruction pointer     = 0x20:0xc357d71f
stack pointer           = 0x28:0xc2fccbc0
frame pointer           = 0x28:0xc2fccbf4
code segment            = base 0x0, limit 0xfffff, type 0x1b
                         = DPL 0, pres 1, def32 1, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 26 (irq19: uhci1)
trap number             = 12
panic: page fault
cpuid = 0
Uptime: 2m39s
Physical memory: 498 MB
Dumping 42 MB: 27 11

(kgdb) bt
#0  doadump () at pcpu.h:196
#1  0xc07198b7 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:418
#2  0xc0719b89 in panic (fmt=Variable "fmt" is not available.
) at /usr/src/sys/kern/kern_shutdown.c:574
#3  0xc09e495c in trap_fatal (frame=0xc2fccb80, eva=12) at 
/usr/src/sys/i386/i386/trap.c:939
#4  0xc09e4be0 in trap_pfault (frame=0xc2fccb80, usermode=0, eva=12) 
at /usr/src/sys/i386/i386/trap.c:852
#5  0xc09e558c in trap (frame=0xc2fccb80) at /usr/src/sys/i386/i386/trap.c:530
#6  0xc09c9c6b in calltrap () at /usr/src/sys/i386/i386/exception.s:159
#7  0xc357d71f in u3gstub_BBB_cb (xfer=0xc3578600, priv=0x0, 
err=USBD_NORMAL_COMPLETION)
     at /usr/src/sys/modules/u3g/../../dev/usb/u3g.c:475
#8  0xc06950d5 in usb_transfer_complete (xfer=0xc3578600) at 
/usr/src/sys/dev/usb/usbdi.c:979
#9  0xc06879bb in uhci_transfer_complete (xfer=0xc3578600) at 
/usr/src/sys/dev/usb/uhci.c:2109
#10 0xc0687b07 in uhci_idone (ii=Variable "ii" is not available.
) at /usr/src/sys/dev/usb/uhci.c:1449
#11 0xc068800d in uhci_softintr (v=0xc319a000) at 
/usr/src/sys/dev/usb/uhci.c:1324
#12 0xc0690c72 in usb_schedsoftintr (bus=0xc319a000) at 
/usr/src/sys/dev/usb/usb.c:844
#13 0xc0688ce3 in uhci_intr1 (sc=0xc319a000) at 
/usr/src/sys/dev/usb/uhci.c:1224
#14 0xc0688fad in uhci_intr (arg=0xc319a000) at 
/usr/src/sys/dev/usb/uhci.c:1139
#15 0xc06f781b in ithread_loop (arg=0xc31a4000) at 
/usr/src/sys/kern/kern_intr.c:1088
#16 0xc06f4369 in fork_exit (callout=0xc06f7660 <ithread_loop>, 
arg=0xc31a4000, frame=0xc2fccd38)
     at /usr/src/sys/kern/kern_fork.c:810
#17 0xc09c9ce0 in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:264
(kgdb)


On CURRENT, it shows and seems to work fine.

Root mount waiting for: usbus1
ugen0.2: <Novatel Wireless> at usbus0
u3g0: <Data Interface> on usbus0
u3g0: Found 2 ports.


0[freebsd-current2]# usbconfig
ugen0.1: <OHCI root HUB nVidia> at usbus0, cfg=0 md=HOST spd=FULL 
(12Mbps) pwr=ON
ugen1.1: <EHCI root HUB nVidia> at usbus1, cfg=0 md=HOST spd=HIGH 
(480Mbps) pwr=ON
ugen0.2: <Novatel Wireless HSUPA Modem Novatel Wireless> at usbus0, 
cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON
ugen0.3: <USB-Serial Controller Prolific Technology Inc.> at usbus0, 
cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON
ugen0.4: <Token 255.255.255.255 2.7.195 Aladdin Knowledge Systems 
Ltd.> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON
0[freebsd-current2]# cu -l /dev/cuaU0.0
Connected
ati
Manufacturer: Novatel Wireless Incorporated
Model: Ovation MC950D Card
Revision: 3.15.02.0-00  [2008-03-04 09:19:50]
IMEI: 356846015465400
+GCAP: +CGSM,+DS,+ES

OK






--------------------------------------------------------------------
Mike Tancsa,                                      tel +1 519 651 3400
Sentex Communications,                            mike@sentex.net
Providing Internet since 1994                    www.sentex.net
Cambridge, Ontario Canada                         www.sentex.net/mike




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903272126.n2RLQjIe052544>