FAQ:[#6518] nfs mount by bf548 ezkit would make kernel panic(2011)

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

[#6518] nfs mount by bf548 ezkit would make kernel panic

Submitted By: Mingquan Pan

Open Date

2011-04-01 05:14:08     Close Date

2011-04-21 22:43:59

Priority:

Medium     Assignee:

steven miao

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2011R1     Release:

Category:

N/A     Board:

N/A

Processor:

ALL     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Under Debugging

Uboot version or rev.:

    Toolchain version or rev.:

ADI-trunk/svn-5013

App binary format:

N/A     

Summary: nfs mount by bf548 ezkit would make kernel panic

Details:

 

nfs mount by bf548 ezkit would make kernel panic.

 

U-Boot 2010.06-svn2467 (ADI-2010R1) (Oct 08 2010 - 16:04:41)

 

CPU:   ADSP bf548-0.0 (Detected Rev: 0.2) (parallel flash boot)

Board: ADI BF548 EZ-Kit board

       Support: http://blackfin.uclinux.org/

Clock: VCO: 525 MHz, Core: 525 MHz, System: 131.250 MHz

RAM:   64 MiB

RAM size is 64 MB.

 

Flash: 16 MiB

NAND:  256 MiB

MMC:  Blackfin SDH: 0

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Net:   smc911x-0

Hit any key to stop autoboot:  0

bfin> set bootargs root=/dev/mtdblock0 rw ip=10.100.4.50 earlyprintk=serial,uart1,57600 console=ttyBF1,57600

bfin> set serverip 10.100.4.174

bfin> set ipaddr 10.100.4.50

bfin> save

Saving Environment to Flash...

. done

Un-Protected 1 sectors

Erasing Flash...

. done

Erased 1 sectors

Writing to Flash... done

. done

Protected 1 sectors

bfin> printenv ethaddr

ethaddr=00:E0:22:FE:BF:4E

bfin> mac address=00:E0:22:FE:BF:4E

tftpboot 0x2000000 uImage

smc911x: detected LAN9218 controller

smc911x: phy initialized

smc911x: MAC 00:e0:22:fe:bf:4e

Using smc911x-0 device

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'uImage'.

Load address: 0x2000000

Loading: #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         ##################################

done

Bytes transferred = 5263300 (504fc4 hex)

Image size is 504fc4

bfin> run addip

bfin> bootm

## Booting kernel from Legacy Image at 02000000 ...

   Image Name:   bf548-0.2-2.6.38-ADI-2011R1-pre-

   Created:      2011-03-21  14:46:10 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    5263236 Bytes = 5 MiB

   Load Address: 00001000

   Entry Point:  002d1dd4

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 002d1dd4

Linux version 2.6.38-ADI-2011R1-pre-svn9746 (test@uclinux61-bf548-std) (gcc version 4.3.5 (ADI-trunk/svn-5013) ) #223 Mon Mar 21 22:46:03 CST 2011

register early platform devices

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart1] enabled

early printk enabled on early_BFuart1

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x001e86d0

  rodata    = 0x001e86d0-0x002910ec

  bss       = 0x00292000-0x002a7d28

  data      = 0x002a7d28-0x002c8000

    stack   = 0x002c6000-0x002c8000

  init      = 0x002c8000-0x00992000

  available = 0x00992000-0x03e00000

  DMA Zone  = 0x03e00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 1

Reset caused by Software reset

Blackfin support (C) 2004-2010 Analog Devices, Inc.

Compiled for ADSP-BF548 Rev 0.2

Blackfin Linux support by http://blackfin.uclinux.org/

Processor Speed: 525 MHz core clock and 131 MHz System Clock

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

  External memory: cacheable in instruction cache

  L2 SRAM        : uncacheable in instruction cache

Data Cache Enabled for CPU0

  External memory: cacheable (write-through) in data cache

  L2 SRAM        : uncacheable in data cache

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 15748

Kernel command line: root=/dev/mtdblock0 rw ip=10.100.4.50 earlyprintk=serial,uart1,57600 console=ttyBF1,57600 ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:bf548-ezkit:eth0:off

PID hash table entries: 256 (order: -2, 1024 bytes)

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

Memory available: 53080k/65536k RAM, (6952k init code, 1949k kernel code, 895k data, 2048k dma, 612k reserved)

NR_IRQS:295

Configuring Blackfin Priority Driven Interrupts

console [ttyBF1] enabled, bootconsole disabled

console [ttyBF1] enabled, bootconsole disabled

Calibrating delay loop... 1046.52 BogoMIPS (lpj=2093056)

pid_max: default: 32768 minimum: 301

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

Blackfin L1 Data A SRAM: 16 KB (16 KB free)

Blackfin L1 Data B SRAM: 16 KB (16 KB free)

Blackfin L1 Instruction SRAM: 48 KB (41 KB free)

Blackfin L2 SRAM: 128 KB (128 KB free)

NET: Registered protocol family 16

Blackfin DMA Controller

ezkit_init(): registering device resources

bio: create slab <bio-0> at 0

Data access CPLB miss

<5> - Used by the MMU to signal a CPLB miss on a data access.

Kernel OOPS in progress

Deferred Exception context

CURRENT PROCESS:

COMM=swapper PID=1  CPU=0

invalid mm

return address: [0x000467d2]; contents of:

0x000467b0:  300b  3019  67fb  0c3b  1817  0000  0000  640a

0x000467c0:  ad42  a120  9169  b102  304a  40c8  a0c1  5041

0x000467d0:  5e90 [a1d0] b140  5e8d  b111  6c09  9369  a102

0x000467e0:  a1e0  0982  1fe6  ac41  9142  e120  1001  4f40

 

ADSP-BF548-0.2 525(MHz CCLK) 131(MHz SCLK) (mpu off)

Linux version 2.6.38-ADI-2011R1-pre-svn9746 (test@uclinux61-bf548-std) (gcc version 4.3.5 (ADI-trunk/svn-5013) ) #223 Mon Mar 21 22:46:03 CST 2011

 

SEQUENCER STATUS:               Not tainted

SEQSTAT: 00002026  IPEND: 8008  IMASK: 003f  SYSCFG: 0006

  Peripheral interrupts masked off

  Kernel interrupts masked off

  EXCAUSE   : 0x26

  physical IVG3 asserted : <0xffa007a0> { _trap + 0x0 }

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

  logical irq   6 mapped  : <0xffa003dc> { _bfin_coretmr_interrupt + 0x0 }

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

RETN: <0x0201bef0> /* kernel dynamic memory (maybe user-space) */

RETX: <0x00000480> /* Maybe fixed code section */

RETS: <0x000469f6> { _kmem_cache_alloc + 0x72 }

PC  : <0x000467d2> { _cache_alloc_refill + 0x8e }

DCPLB_FAULT_ADDR: <0xc17e2144> /* reserved memory */

ICPLB_FAULT_ADDR: <0x000467d2> { _cache_alloc_refill + 0x8e }

PROCESSOR STATE:

R0 : f7df4740    R1 : f7df4740    R2 : 00000003    R3 : 00000039

R4 : 00000001    R5 : 00000010    R6 : 000000d0    R7 : 02002ca8

P0 : 02002cb4    P1 : 00000002    P2 : c17e2128    P3 : 02002ca0

P4 : 02000120    P5 : 0200a800    FP : 02002cb0    SP : 0201be14

LB0: ffa017cc    LT0: ffa017c6    LC0: 00000000

LB1: 000466c8    LT1: 000466c2    LC1: 00000000

B0 : 00000000    L0 : 00000000    M0 : 0000002c    I0 : 002c5014

B1 : 00000000    L1 : 00000000    M1 : 00000000    I1 : 00000000

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

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

A0.w: 00211a64   A0.x: 00000000   A1.w: 0000047a   A1.x: 00000000

USP : 00000000  ASTAT: 02002042

 

Hardware Trace:

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

     Source : <0xffa00734> { _exception_to_level5 + 0xa4 } JUMP.L

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

     Source : <0xffa00544> { _bfin_return_from_exception + 0x18 } RTX

   2 Target : <0xffa0052c> { _bfin_return_from_exception + 0x0 }

     Source : <0xffa005e8> { _ex_trap_c + 0x74 } JUMP.S

   3 Target : <0xffa00458> { _ex_dcplb_miss + 0x0 }

     Source : <0xffa007fa> { _trap + 0x5a } JUMP (P4)

   4 Target : <0xffa007a0> { _trap + 0x0 }

      FAULT : <0x000467d2> { _cache_alloc_refill + 0x8e } P0 = W[P2 + 7]

     Source : <0x000467d0> { _cache_alloc_refill + 0x8c } 0x5e90

   5 Target : <0x000467b1> { _cache_alloc_refill + 0x6d }

     Source : <0x000467e4> { _cache_alloc_refill + 0xa0 } IF CC JUMP pcrel (BP)

   6 Target : <0x000467b2> { _cache_alloc_refill + 0x6e }

     Source : <0x00046860> { _cache_alloc_refill + 0x11c } IF CC JUMP pcrel (BP)

   7 Target : <0x0004684c> { _cache_alloc_refill + 0x108 }

     Source : <0x0004679e> { _cache_alloc_refill + 0x5a } IF CC JUMP pcrel

   8 Target : <0x0004678c> { _cache_alloc_refill + 0x48 }

     Source : <0x00046774> { _cache_alloc_refill + 0x30 } IF CC JUMP pcrel

   9 Target : <0x00046744> { _cache_alloc_refill + 0x0 }

     Source : <0x000469f2> { _kmem_cache_alloc + 0x6e } JUMP.L

  10 Target : <0x000469ee> { _kmem_cache_alloc + 0x6a }

     Source : <0x000469ac> { _kmem_cache_alloc + 0x28 } IF CC JUMP pcrel

  11 Target : <0x000469a0> { _kmem_cache_alloc + 0x1c }

     Source : <0x000469fe> { _kmem_cache_alloc + 0x7a } JUMP.S

  12 Target : <0x000469fe> { _kmem_cache_alloc + 0x7a }

     Source : <0x001e7450> { __cond_resched + 0x20 } RTS

  13 Target : <0x001e744a> { __cond_resched + 0x1a }

     Source : <0x001e7442> { __cond_resched + 0x12 } IF CC JUMP pcrel (BP)

  14 Target : <0x001e7430> { __cond_resched + 0x0 }

     Source : <0x000469fa> { _kmem_cache_alloc + 0x76 } CALL pcrel

  15 Target : <0x000469fa> { _kmem_cache_alloc + 0x76 }

     Source : <0x0004699a> { _kmem_cache_alloc + 0x16 } IF !CC JUMP pcrel

Kernel Stack

Stack info:

SP: [0x0201bdc0] <0x0201bdc0> /* kernel dynamic memory (maybe user-space) */

FP: (0x0201bfe0)

Memory from 0x0201bdc0 to 0201c000

0201bdc0:[00000000] 00000000  00000041  01000010  0000000c  00000000  01ffffff  00000010

0201bde0: 002c59c0  00000000  ffffffff  00000000  ffa00738  00294000  00008008  00002026

0201be00: 00000010  00000001  002c59bc  002c59c0  00000480  00000480  00008008  00002026

0201be20: 00000000  0201bef0  00000480  000467d2  000469f6  f7df4740  02002042  000466c8

0201be40: ffa017cc  000466c2  ffa017c6  00000000  00000000  0000047a  00000000  00211a64

0201be60: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0201be80: 00000000  00000000  00000000  00000000  0000002c  00000000  00000000  00000000

0201bea0: 002c5014  00000000  02002cb0  0200a800  02000120  02002ca0  c17e2128  00000002

0201bec0: 02002cb4  02002ca8  000000d0  00000010  00000001  00000039  00000003  f7df4740

0201bee0: f7df4740  f7df4740  02002cb4  00000006  00000000  000469f6  02053c60  00000000

0201bf00: 00000000  000469f6  02000120  00292010  002d981c  00000001  000000d0  0000ffff

0201bf20: 00000000  02073560  00101e20  02073520  00101dea  02073520  00000001  0025723c

0201bf40: 002575ec  00101b9c  002b7d40  00000000  002575e4  00000001  002d99e2  002e7164

0201bf60: 00292010  00000000  00000000  00000000  00000000  002a0ff4  02053c60  00000000

0201bf80: 00000000  00000240  00000000  002d983a  002e9650  00000000  00000000  00255104

0201bfa0: 001fae38 <00001136><00001136> 00000000  002ac7b4  002e0000  00000126  002c817c

0201bfc0: 002e9650  002e98c8  002e95a8  00000000  00000000  00000000  00000000  00000000

0201bfe0:(00000000)<00001576> 00000000  00000000  00000000  00000000  ffffffff  00000006

Return addresses in stack:

    address : <0x00001136> { _do_one_initcall + 0x9a }

    address : <0x00001136> { _do_one_initcall + 0x9a }

   frame  1 : <0x00001576> { _kernel_thread_helper + 0x6 }

Modules linked in:

Kernel panic - not syncing:kernel panic detected... trying to recover from it

 

Hardware Trace Active and Enabled^M

Boot Mode: 1^M

Reset caused by Software reset^M

Blackfin support (C) 2004-2010 Analog Devices, Inc.^M

Compiled for ADSP-BF548 Rev 0.2^M

Blackfin Linux support by http://blackfin.uclinux.org/^M

Processor Speed: 525 MHz core clock and 131 MHz System Clock^M

NOMPU: setting up cplb tables^M

Instruction Cache Enabled for CPU0^M

  External memory: cacheable in instruction cache^M

  L2 SRAM        : uncacheable in instruction cache^M

Data Cache Enabled for CPU0^M

  External memory: cacheable (write-through) in data cache^M

  L2 SRAM        : uncacheable in data cache^M

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 15748^M

Kernel command line: root=/dev/mtdblock0 rw ip=10.100.4.50 earlyprintk=serial,uart1,57600 console=ttyBF1,57600 ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:bf548-ezkit:eth0:off^M

PID hash table entries: 256 (order: -2, 1024 bytes)^M

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)^M

Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)^M

Memory available: 53080k/65536k RAM, (6952k init code, 1950k kernel code, 894k data, 2048k dma, 612k reserved)^M

NR_IRQS:295^M

Configuring Blackfin Priority Driven Interrupts^M

console [ttyBF1] enabled, bootconsole disabled^M

console [ttyBF1] enabled, bootconsole disabled^M

Calibrating delay loop... 1046.52 BogoMIPS (lpj=2093056)^M

pid_max: default: 32768 minimum: 301^M

Mount-cache hash table entries: 512^M

Blackfin Scratchpad data SRAM: 4 KB^M

Blackfin L1 Data A SRAM: 16 KB (16 KB free)^M

Blackfin L1 Data B SRAM: 16 KB (16 KB free)^M

Blackfin L1 Instruction SRAM: 48 KB (41 KB free)^M

Blackfin L2 SRAM: 128 KB (128 KB free)^M

NET: Registered protocol family 16^M

Blackfin DMA Controller^M

ezkit_init(): registering device resources^M

bio: create slab <bio-0> at 0^M

------------[ cut here ]------------^M

kernel BUG at mm/slab.c:3057!^M

Kernel panic - not syncing: BUG()^M

kernel panic detected... trying to recover from it

 

sometimes it errors like:

 

 

 

 

the last known good version is:

root:/> ^[[6nversion^M

kernel:    Linux release 2.6.37.4-ADI-2011R1-pre-svn9707, build #217 Fri Mar 18 18:07:30 CST 2011^M

toolchain: bfin-uclinux-gcc release gcc version 4.3.5 (ADI-trunk/svn-5013) ^M

user-dist: release svn-10121, build #3567 Fri Mar 18 18:06:43 CST 2011^M

 

 

Follow-ups

 

--- Mingquan Pan                                             2011-04-01 05:22:30

Actually it hasn't nfs mount yet, it just boot as usual but the kernel includes

the nfs staff. See the attached config file.

 

--- steven miao                                              2011-04-14 05:49:42

crash in ATA driver initialization, after update to 2.6.38

 

--- Mingquan Pan                                             2011-04-17 22:37:18

This issue first happens in Mar 24.

Good version is:

 

root:/> ^[[6nversion^M

kernel:    Linux release 2.6.38-ADI-2011R1-pre-svn9755, build #229 Wed Mar 23

10:32:19 CST 2011^M

toolchain: bfin-uclinux-gcc release gcc version 4.3.5 (ADI-trunk/svn-5013) ^M

user-dist: release svn-10126, build #3755 Wed Mar 23 10:31:32 CST 2011^M

 

failed version is:

root:/> ^[[6nversion^M

kernel:    Linux release 2.6.38.1-ADI-2011R1-pre-svn9766, build #235 Thu Mar 24

22:26:01 CST 2011^M

toolchain: bfin-uclinux-gcc release gcc version 4.3.5 (ADI-trunk/svn-5013) ^M

user-dist: release svn-10126, build #3847 Thu Mar 24 22:25:13 CST 2011^M

 

 

the two config.linux  diff is:

test@uclinux61-bf548-std:~/work/cruise/test_scripts/uclinux-dist/logs/2011_Apr_16_13_22>

diff ../2011_Mar_23_07_58/config.linux.nfs config.linux.nfs -u

--- ../2011_Mar_23_07_58/config.linux.nfs       2011-03-23 10:34:19.000000000

+0800

+++ config.linux.nfs    2011-04-16 15:51:00.000000000 +0800

@@ -1,6 +1,6 @@

#

# Automatically generated make config: don't edit

-# Linux/blackfin 2.6.38 Kernel Configuration

+# Linux/blackfin 2.6.38.3 Kernel Configuration

#

CONFIG_SYMBOL_PREFIX="_"

# CONFIG_MMU is not set

@@ -1357,7 +1357,7 @@

#

# CONFIG_HID_3M_PCT is not set

CONFIG_HID_A4TECH=y

-# CONFIG_HID_ACRUX_FF is not set

+# CONFIG_HID_ACRUX is not set

CONFIG_HID_APPLE=y

CONFIG_HID_BELKIN=y

# CONFIG_HID_CANDO is not set

 

--- Mingquan Pan                                             2011-04-21 22:43:59

It is lucky that after kernel updating the other day, this case runs ok again on

trunk head(svn 9863). So close for now.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.linux.nfs    application/octet-stream    48451    Mingquan Pan

Attachments

Outcomes