2008-04-22 16:40:27     modprobe bfin_mac crashes kernel

Document created by Aaronwu Employee on Aug 6, 2013
Version 1Show Document
  • View in full screen mode

2008-04-22 16:40:27     modprobe bfin_mac crashes kernel

blue hash (UNITED STATES)

Message: 54737    Hello,

I first compiled bfin_mac into the kernel, but then it crashed the kernel while booting. Compiling it as a module allowed the kernel to boot fully. When it's modprobed I get the following followed by /meminfo. I dont think Im running out of memory, modprobing other modules works fine. I tried disabling "L1memory for RX/TX packets" as well as Icache Dcache. None helped.

 

 

root:/> modprobe bfin_mac

Data access misaligned address violation

- Attempted misaligned data memory or data cache access.

Kernel OOPS in progress

Defered Exception context

CURRENT PROCESS:

COMM=insmod PID=47

TEXT = 0x00200040-0x0024ace0        DATA = 0x0024ace4-0x0025df94

BSS = 0x0025df94-0x00264f54  USER-STACK = 0x0026bf34

 

return address: [0x0000917e]; contents of:

0x00009150:  0010  6078  0010  6088  0010  6090  0010  6098

0x00009160:  0010  60a0  0010  60a8  0010  6120  0010  6128

0x00009170:  0010  0000  e14a  2000  3208  e10a  3ffa [9110]

0x00009180:  9308  6c22  9510  b488  0010  0000  e14a  ffc0

 

SEQUENCER STATUS:               Not tainted

SEQSTAT: 00000024  IPEND: 8030  SYSCFG: 0006

  HWERRCAUSE: 0x0

  EXCAUSE   : 0x24

  physical IVG15 asserted : <0xffa00e60> { _evt_system_call + 0x0 }

  logical irq   6 mapped  : <0xffa00250> { _timer_interrupt + 0x0 }

  logical irq  17 mapped  : <0x000b0ba4> { _dma_irq_handler + 0x0 }

  logical irq  18 mapped  : <0x0009cf98> { _bfin_serial_dma_rx_int + 0x0 }

  logical irq  19 mapped  : <0x0009cb48> { _bfin_serial_dma_tx_int + 0x0 }

  logical irq  29 mapped  : <0x006646ec> { :fpga:_error_tasklet + 0x3c0 }

  logical irq  55 mapped  : <0x000b9154> { _spi_mmc_detect_irq_handler + 0x0 }

RETE: <0x00000000> /* Maybe null pointer? */

RETN: <0x00659d7c> /* unknown address */

RETX: <0x0000917e> { _bfin_get_ether_addr + 0xa }

RETS: <0x0065ac4a> { :bfin_mac:_setup_system_regs + 0xc3e }

PC  : <0x0000917e> { _bfin_get_ether_addr + 0xa }

DCPLB_FAULT_ADDR: <0x20003ff8> /* unknown address */

ICPLB_FAULT_ADDR: <0x0000917e> { _bfin_get_ether_addr + 0xa }

 

PROCESSOR STATE:

R0 : 00445930    R1 : 00000000    R2 : 00000000    R3 : ffffffff

R4 : 00e818d8    R5 : 0065bb90    R6 : 0065bb90    R7 : 00152824

P0 : 0045cc66    P1 : 00445930    P2 : 20003ffa    P3 : 00445800

P4 : 00445930    P5 : 0015282c    FP : 0015282c    SP : 00659ca0

LB0: ffa01db4    LT0: ffa01db4    LC0: 00000000

LB1: 000058fe    LT1: 000058f8    LC1: 00000000

B0 : 00000000    L0 : 00000000    M0 : 00000000    I0 : fffffff9

B1 : 00000000    L1 : 00000000    M1 : 00dc6358    I1 : 00e82200

B2 : 00000000    L2 : 00000000    M2 : 00000000    I2 : 00000000

B3 : 00000000    L3 : 00000000    M3 : 00000000    I3 : 00000000

A0.w: 00000000   A0.x: 00000000   A1.w: 00000000   A1.x: 00000000

USP : 0026be44  ASTAT: 02003005

 

Hardware Trace:

   0 Target : <0x00004628> { _trap_c + 0x0 }

     Source : <0xffa0076c> { _exception_to_level5 + 0xb4 }

   1 Target : <0xffa006b8> { _exception_to_level5 + 0x0 }

     Source : <0xffa00614> { _ex_trap_c + 0x5c }

   2 Target : <0xffa005b8> { _ex_trap_c + 0x0 }

     Source : <0xffa0080c> { _trap + 0x28 }

   3 Target : <0xffa007e4> { _trap + 0x0 }

     Source : <0x0000917a> { _bfin_get_ether_addr + 0x6 }

   4 Target : <0x00009174> { _bfin_get_ether_addr + 0x0 }

     Source : <0x0065ac48> { :bfin_mac:_setup_system_regs + 0xc3c }

   5 Target : <0x0065ac3e> { :bfin_mac:_setup_system_regs + 0xc32 }

     Source : <0x0065aa88> { :bfin_mac:_setup_system_regs + 0xa7c }

   6 Target : <0x0065aa82> { :bfin_mac:_setup_system_regs + 0xa76 }

     Source : <0x0065aa50> { :bfin_mac:_setup_system_regs + 0xa44 }

   7 Target : <0x0065aa4e> { :bfin_mac:_setup_system_regs + 0xa42 }

     Source : <0x0065a628> { :bfin_mac:_setup_system_regs + 0x61c }

   8 Target : <0x0065a620> { :bfin_mac:_setup_system_regs + 0x614 }

     Source : <0x00005a60> { _peripheral_request_list + 0x58 }

   9 Target : <0x00005a56> { _peripheral_request_list + 0x4e }

     Source : <0x00005a28> { _peripheral_request_list + 0x20 }

  10 Target : <0x00005a1c> { _peripheral_request_list + 0x14 }

     Source : <0x00005a34> { _peripheral_request_list + 0x2c }

  11 Target : <0x00005a30> { _peripheral_request_list + 0x28 }

     Source : <0x00005896> { _peripheral_request + 0x1a }

  12 Target : <0x0000588c> { _peripheral_request + 0x10 }

     Source : <0x00005930> { _peripheral_request + 0xb4 }

  13 Target : <0x00005930> { _peripheral_request + 0xb4 }

     Source : <0x00004fea> { _set_label + 0x3e }

  14 Target : <0x00004fe4> { _set_label + 0x38 }

     Source : <0x00004fde> { _set_label + 0x32 }

  15 Target : <0x00004fda> { _set_label + 0x2e }

     Source : <0x00004fe2> { _set_label + 0x36 }

Stack from 00659c80:

        00000010 ffa00770 00152564 00152564 00152560 000240d0 00000000 0000000c

        0000917e 00008030 00000024 00000000 00659d7c 0000917e 0000917e 0065ac4a

        00445930 02003005 000058fe ffa01db4 000058f8 ffa01db4 00000000 00000000

        00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

        00000000 00000000 00000000 00000000 00000000 00000000 00dc6358 00000000

        00000000 00000000 00e82200 fffffff9 0026be44 0015282c 0015282c 00445930

 

Call Trace:

[<0000a1ff>] _set_user_nice+0xd3/0xf0

[<0009f540>] _driver_sysfs_add+0x44/0x64

[<0009f63e>] _driver_probe_device+0x7a/0x17c

[<000041ed>] _dump_bfin_trace_buffer+0x35/0xa0

[<00100288>] _klist_next+0x1c/0x60

[<001002a2>] _klist_next+0x36/0x60

[<0009f91a>] ___driver_attach+0x102/0x10c

[<0009ee3a>] _bus_for_each_dev+0x36/0x64

[<0009f818>] ___driver_attach+0x0/0x10c

[<0009f4f6>] _driver_attach+0x1a/0x20

[<0009f818>] ___driver_attach+0x0/0x10c

[<0009f154>] _bus_add_driver+0x68/0x118

[<00017f20>] _blocking_notifier_call_chain+0x10/0x18

[<000259fc>] _sys_init_module+0xc0/0x10c8

[<00033f78>] _do_mmap_pgoff+0x608/0x750

[<0002593c>] _sys_init_module+0x0/0x10c8

[<00003098>] _do_signal+0x65c/0xd74

[<00008000>] _set_dma_next_desc_addr+0x64/0x78

[<0065a000>] 0x65a000

[<00003098>] _do_signal+0x65c/0xd74

[<00003098>] _do_signal+0x65c/0xd74

[<00003098>] _do_signal+0x65c/0xd74

[<00003098>] _do_signal+0x65c/0xd74

 

Modules linked in: bfin_mac fpga

Kernel panic - not syncing: Kernel exception

 

 

 

root:/> cat /proc/meminfo

MemTotal:        13604 kB

MemFree:          6284 kB

Buffers:             0 kB

Cached:           3504 kB

SwapCached:          0 kB

Active:            624 kB

Inactive:         2880 kB

SwapTotal:           0 kB

SwapFree:            0 kB

Dirty:               0 kB

Writeback:           0 kB

AnonPages:           0 kB

Mapped:              0 kB

Slab:             1240 kB

SReclaimable:      768 kB

SUnreclaim:        472 kB

PageTables:          0 kB

NFS_Unstable:        0 kB

Bounce:              0 kB

CommitLimit:      6800 kB

Committed_AS:        0 kB

VmallocTotal:        0 kB

VmallocUsed:         0 kB

VmallocChunk:        0 kB

QuoteReplyEditDelete

 

 

2008-04-22 16:46:35     Re: modprobe bfin_mac crashes kernel

blue hash (UNITED STATES)

Message: 54739    DCPLB_FAULT_ADDR: <0x20003ff8> /* unknown address */

ICPLB_FAULT_ADDR: <0x0000917e> { _bfin_get_ether_addr + 0xa }

 

is it crashing while trying to access the MAC address?

QuoteReplyEditDelete

 

 

2008-04-22 17:15:13     Re: modprobe bfin_mac crashes kernel

Mike Frysinger (UNITED STATES)

Message: 54741    bfin_get_ether_addr() is a function you define in your boards file

QuoteReplyEditDelete

 

 

2008-04-23 12:08:01     Re: modprobe bfin_mac crashes kernel

blue hash (UNITED STATES)

Message: 54793    What does

DCPLB_FAULT_ADDR: <0x20003ff8> /* unknown address */

mean.

QuoteReplyEditDelete

 

 

2008-04-23 12:27:39     Re: modprobe bfin_mac crashes kernel

blue hash (UNITED STATES)

Message: 54794    The crash now stops.

But the board is unable to get the MAC driver up

When modprobe bfin_mac is issued, the board just sits there.

 

Were there any fixes that were done after the 2008-r1 release?

QuoteReplyEditDelete

 

 

2008-04-23 14:03:34     Re: modprobe bfin_mac crashes kernel

Mike Frysinger (UNITED STATES)

Message: 54797    the documentation explains the trace:

http://docs.blackfin.uclinux.org/doku.php?id=debuging_applications#analyzing_traces

 

if you want to know more about the DCPLB_FAULT_ADDR, consult the Blackfin PRM

QuoteReplyEditDelete

 

 

2008-04-23 14:04:20     Re: modprobe bfin_mac crashes kernel

Mike Frysinger (UNITED STATES)

Message: 54798    so connect kgdb and find out where it's hanging

 

there havent been any specific fixes related to the MAC address, but you can view the svn history of trunk online

Attachments

    Outcomes