kernel panic on CURRENT

View: New views
3 Messages — Rating Filter:   Alert me  

kernel panic on CURRENT

by Eldar T. Zaitov-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

after removing firewire from kernel and using it as module i receive
kernel panic in BUS reset.
how to reproduce:
# kldload firewire.ko

commenting out code
-- cut --
if (!kdb_active)
    taskqueue_enqueue(sc->fc.taskqueue, &sc->fwohci_task_busreset);
-- cut --
in function
static void fwohci_intr_core
preverts kernel panic, but I'm sure it's not a solution.

kldstat:
Id Refs Address    Size     Name
 1   45 0xc0400000 7e8bd4   kernel
 3    1 0xc0c0b000 1b778    snd_hda.ko
 4    2 0xc0c27000 702b4    acpi.ko
 5    1 0xc0c98000 5030     acpi_ibm.ko
 6    1 0xc0c9e000 c1d4     uhci.ko
 7    1 0xc0cab000 eaf4     ehci.ko
 8    1 0xc44ba000 b000     ntfs.ko
 9    1 0xc467e000 2f000    pf.ko
10    1 0xc4730000 f000     nfslockd.ko

if it matter - kernel was build without kdb.

Thank you.

_______________________________________________
freebsd-firewire@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-firewire
To unsubscribe, send any mail to "freebsd-firewire-unsubscribe@..."

Re: kernel panic on CURRENT

by Sean Bruno :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, 2009-08-14 at 04:13 +0000, Eldar T. Zaitov wrote:

> Hi
>
> after removing firewire from kernel and using it as module i receive
> kernel panic in BUS reset.
> how to reproduce:
> # kldload firewire.ko
>
> commenting out code
> -- cut --
> if (!kdb_active)
>     taskqueue_enqueue(sc->fc.taskqueue, &sc->fwohci_task_busreset);
> -- cut --
> in function
> static void fwohci_intr_core
> preverts kernel panic, but I'm sure it's not a solution.
>
> kldstat:
> Id Refs Address    Size     Name
>  1   45 0xc0400000 7e8bd4   kernel
>  3    1 0xc0c0b000 1b778    snd_hda.ko
>  4    2 0xc0c27000 702b4    acpi.ko
>  5    1 0xc0c98000 5030     acpi_ibm.ko
>  6    1 0xc0c9e000 c1d4     uhci.ko
>  7    1 0xc0cab000 eaf4     ehci.ko
>  8    1 0xc44ba000 b000     ntfs.ko
>  9    1 0xc467e000 2f000    pf.ko
> 10    1 0xc4730000 f000     nfslockd.ko
>
> if it matter - kernel was build without kdb.
>
> Thank you.
>

Interesting.  Please post the full panic trace when you load
firewire as a module.  

Sean

_______________________________________________
freebsd-firewire@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-firewire
To unsubscribe, send any mail to "freebsd-firewire-unsubscribe@..."

Parent Message unknown Re: kernel panic on CURRENT

by Eldar T. Zaitov-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

fwohci0: <1394 Open Host Controller Interface> mem
0xe4301000-0xe43017ff,0xe4304000-0xe4307fff irq 17 at device 0.1 on pci21
fwohci0: latency timer 0 -> 32.
fwohci0: cache size 0 -> 8.
fwohci0: [ITHREAD]
fwohci0: OHCI version 1.10 (ROM=0)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 0a:00:06:e4:20:45:7b:15
fwohci0: resetting OHCI...done (loop=0)
fwohci0: fwphy_rddata:: 0x2 loop=0, retry=0
fwohci0: fwphy_rddata:: 0x3 loop=0, retry=0
fwohci0: Phy 1394a available S400, 3 ports.
fwohci0: fwphy_rddata:: 0x5 loop=0, retry=0
fwohci0: Enable 1394a Enhancements
fwohci0: fwphy_rddata:: 0x5 loop=0, retry=0
fwohci0: fwphy_rddata:: 0x2 loop=0, retry=0
fwohci0: fwphy_rddata:: 0x4 loop=0, retry=0
fwohci0: fwphy_rddata:: 0x4 loop=0, retry=0
fwohci0: fwphy_rddata:: 0x4 loop=0, retry=0
fwohci0: Link S400, max_rec 2048 bytes.
fwohci0: BUS_OPT 0xa002 -> 0xf800a002
fwohci0: fwohci_set_intr: 1
fwohci0: phy int
firewire0: <IEEE1394(FireWire) bus> on fwohci0
fwohci0: fwohci_intr_core: BUS reset


Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x18
fault code              = supervisor write, page not present
instruction pointer     = 0x20:0xc6aebe80
stack pointer           = 0x28:0xe69fbc50
frame pointer           = 0x28:0xe69fbc78
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         = 0 (fw0_taskq)
panic: from debugger

ddb said:
stopped at fw_busreset+0x140

here is backtrace:
#0  doadump () at pcpu.h:246
#1  0xc070f373 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:416
#2  0xc070f5ad in panic (fmt=Variable "fmt" is not available.
) at /usr/src/sys/kern/kern_shutdown.c:579
#3  0xc046e7a7 in db_panic (addr=Could not find the frame base for
"db_panic".
) at /usr/src/sys/ddb/db_command.c:478
#4  0xc046ed31 in db_command (last_cmdp=0xc0a93d9c, cmd_table=0x0,
dopager=1)
    at /usr/src/sys/ddb/db_command.c:445
#5  0xc046ee8a in db_command_loop () at /usr/src/sys/ddb/db_command.c:498
#6  0xc0470cfd in db_trap (type=12, code=0) at
/usr/src/sys/ddb/db_main.c:229
#7  0xc07386d4 in kdb_trap (type=12, code=0, tf=0xe69fbc10)
    at /usr/src/sys/kern/subr_kdb.c:535
#8  0xc08f952f in trap_fatal (frame=0xe69fbc10, eva=24)
    at /usr/src/sys/i386/i386/trap.c:922
#9  0xc08f97d0 in trap_pfault (frame=0xe69fbc10, usermode=0, eva=24)
    at /usr/src/sys/i386/i386/trap.c:844
#10 0xc08fa162 in trap (frame=0xe69fbc10) at
/usr/src/sys/i386/i386/trap.c:526
#11 0xc08df96b in calltrap () at /usr/src/sys/i386/i386/exception.s:165
#12 0xc6aebe80 in fw_busreset () from /boot/kernel/firewire.ko
#13 0xc6aef358 in fwohci_task_busreset () from /boot/kernel/firewire.ko
#14 0xc0743a92 in taskqueue_run (queue=0xc65fba00)
    at /usr/src/sys/kern/subr_taskqueue.c:282
#15 0xc0743e2f in taskqueue_thread_loop (arg=0xc627449c)
    at /usr/src/sys/kern/subr_taskqueue.c:403
#16 0xc06e66e0 in fork_exit (callout=0xc0743db0 <taskqueue_thread_loop>,
---Type <return> to continue, or q <return> to quit---
    arg=0xc627449c, frame=0xe69fbd38) at /usr/src/sys/kern/kern_fork.c:838
#17 0xc08df9e0 in fork_trampoline () at
/usr/src/sys/i386/i386/exception.s:270

Hope it help.
Do you need any additional info?

_______________________________________________
freebsd-firewire@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-firewire
To unsubscribe, send any mail to "freebsd-firewire-unsubscribe@..."