FAQ:[#6399] Allocation test in l1 data SRAM fail in latest trunk(2010)

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

[#6399] Allocation test in l1 data SRAM fail in latest trunk

Submitted By: Vivi Li

Open Date

2010-12-07 21:59:02     Close Date

2010-12-20 21:59:32

Priority:

Medium     Assignee:

Vivi Li

Mingquan Pan

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2011R1     Release:

Category:

N/A     Board:

N/A

Processor:

BF537     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

trunk

App binary format:

N/A     

Summary: Allocation test in l1 data SRAM fail in latest trunk

Details:

 

Allocation test in l1 data SRAM fail in latest trunk.

 

First failed version:

--

kernel:    Linux release 2.6.36.1-ADI-2011R1-pre-svn9522, build #6 Wed Dec 8 01:34:36 GMT 2010

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

user-dist: release svn-10000, build #25 Wed Dec 8 01:33:53 GMT 2010

--

 

Last passed version:

--

kernel:    Linux release 2.6.36.1-ADI-2011R1-pre-svn9514, build #30 Sun Nov 28 17:41:22 GMT 2010

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

user-dist: release svn-9990, build #510 Sun Nov 28 17:40:13 GMT 2010

--

 

Bellow is the error log:

--

Linux version 2.6.36.1-ADI-2011R1-pre-svn9522 (test@uclinux59-kernel-perf) (gcc version 4.3.5 (ADI-trunk/svn-5013) ) #6 Wed Dec 0

register early platform devices

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart0] enabled

early printk enabled on early_BFuart0

Limiting kernel memory to 56MB due to anomaly 05000263

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x00117b40

  rodata    = 0x00117b40-0x00174a20

  bss       = 0x00175000-0x001856cc

  data      = 0x001856cc-0x00198000

    stack   = 0x00196000-0x00198000

  init      = 0x00198000-0x008ae000

  available = 0x008ae000-0x03800000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 0

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

Compiled for ADSP-BF537 Rev 0.2

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

Processor Speed: 500 MHz core clock and 125 MHz System Clock

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

  External memory: cacheable in instruction cache

Data Cache Enabled for CPU0

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

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

Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart0,57600 console=ttyBF0,57600 ip=10.100.4.50f

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: 47888k/65536k RAM, (7256k init code, 1114k kernel code, 514k data, 1024k dma, 7740k reserved)

Hierarchical RCU implementation.

        RCU-based detection of stalled CPUs is disabled.

        Verbose stalled-CPUs detection is disabled.

NR_IRQS:138

Configuring Blackfin Priority Driven Interrupts

bfin-rtc: invalid date; resetting

console [ttyBF0] enabled, bootconsole disabled

console [ttyBF0] enabled, bootconsole disabled

Calibrating delay loop... 993.28 BogoMIPS (lpj=1986560)

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 (35 KB free)

NET: Registered protocol family 16

Blackfin DMA Controller

stamp_init(): registering device resources

bio: create slab <bio-0> at 0

bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7

Switching to clocksource bfin_cs_cycles

NET: Registered protocol family 2

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

TCP established hash table entries: 2048 (order: 2, 16384 bytes)

TCP bind hash table entries: 2048 (order: 1, 8192 bytes)

TCP: Hash tables configured (established 2048 bind 2048)

TCP reno registered

UDP hash table entries: 256 (order: 0, 4096 bytes)

UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)

NET: Registered protocol family 1

debug-mmrs: setting up Blackfin MMR debugfs

msgmni has been set to 93

io scheduler noop registered (default)

bfin-uart: Blackfin serial driver

bfin-uart.0: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART

brd: module loaded

bfin_mii_bus: probed

bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=24)@sclk=125MHz)

bfin_mac bfin_mac.0: eth0: Blackfin on-chip Ethernet MAC driver, Version 1.1

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0

bfin-wdt: initialized: timeout=20 sec (nowayout=0)

TCP cubic registered

NET: Registered protocol family 17

,IP-Config: Complete:tting system clock to 1970-01-01 00:00:01 UTC (1)

     device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174,

     host=bf537-stamp, domain=, nis-domain=(none),

     bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=

dma_alloc_init: dma_page @ 0x02923000 - 256 pages at 0x03f00000

Freeing unused kernel memory: 7256k freed

                           _____________________________________

        a8888b.           / Welcome to the uClinux distribution \

       d888888b.         /       _     _                         \

       8P"YP"Y88        /       | |   |_|            __  __ (TM)  |

       8|o||o|88  _____/        | |    _ ____  _   _ \ \/ /       |

       8'    .88       \        | |   | |  _ \| | | | \  /        |

       8`._.' Y8.       \       | |__ | | | | | |_| | /  \        |

      d/      `8b.       \      \____||_|_| |_|\____|/_/\_\       |

     dP   .    Y8b.       \   For embedded processors including   |

    d8:'  "  `::88b        \    the Analog Devices Blackfin      /

   d8"         'Y88b        \___________________________________/

  :8P    '      :888

   8a.   :     _a88P         For further information, check out:

._/"Yaa_:   .| 88P|            - http://blackfin.uclinux.org/

\    YP"    `| 8P  `.          - http://docs.blackfin.uclinux.org/

/     \.___.d|    .'           - http://www.uclinux.org/

`--..__)8888P`._.'  jgs/a:f    - http://www.analog.com/blackfin

 

Have a lot of fun...

 

 

BusyBox v1.17.4 (2010-12-07 17:31:31 GMT) hush - the humble shell

 

root:/> PHY: 0:01 - Link is Up - 100/Full

 

root:/> sram_alloc

 

Testing NULL pointer access

Kernel OOPS in progress

Deferred Exception context

CURRENT PROCESS:

COMM=sram_alloc PID=163  CPU=0

TEXT = 0x02ae8040-0x02aec6a0        DATA = 0x02aec6c0-0x02aed2b4

BSS = 0x02aed2b4-0x02aed520  USER-STACK = 0x02aeef78

 

return address: [0x00009898]; contents of:

0x00009870:  914a  e511  002d  e50d  0055  0c45  1820  e12a

0x00009880:  0154  5b11  63ff  2002  3262  a068  0830  180d

0x00009890:  0000  0000  0000  9162 [9155] 0c45  17f6  6c66

0x000098a0:  3007  0127  05b4  0010  3006  e3ff  ffb1  3038

 

ADSP-BF537-0.2 500(MHz CCLK) 125(MHz SCLK) (mpu off)

Linux version 2.6.36.1-ADI-2011R1-pre-svn9522 (test@uclinux59-kernel-perf) (gcc version 4.3.5 (ADI-trunk/svn-5013) ) #6 Wed Dec 0

 

SEQUENCER STATUS:               Not tainted

SEQSTAT: 00000027  IPEND: 8008  IMASK: ffff  SYSCFG: 0006

  EXCAUSE   : 0x27

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

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

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

  logical irq  10 mapped  : <0x000bd630> { _bfin_rtc_interrupt + 0x0 }

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

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

  logical irq  24 mapped  : <0x000b88f0> { _bfin_mac_interrupt + 0x0 }

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

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

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

RETS: <0x000098ba> { _sram_free_with_lsl + 0x5a }

PC  : <0x00009898> { _sram_free_with_lsl + 0x38 }

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

ICPLB_FAULT_ADDR: <0x00009898> { _sram_free_with_lsl + 0x38 }

PROCESSOR STATE:

R0 : 0000ffff    R1 : 00902c40    R2 : 00000004    R3 : ffa032b8

R4 : 00000000    R5 : ffa032b8    R6 : ffa032b8    R7 : 00000000

P0 : 020000c0    P1 : 0000000e    P2 : 00000000    P3 : 02aec6e0

P4 : 029301b4    P5 : 02962680    FP : 02aeee24    SP : 02079e10

LB0: 02aeb03b    LT0: 02aeb03a    LC0: 00000000

LB1: 02ae9175    LT1: 02ae9174    LC1: 00000000

B0 : 00000000    L0 : 00000000    M0 : 00000000    I0 : 02aed148

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: 00000000   A0.x: 00000000   A1.w: 00000000   A1.x: 00000000

USP : 02aeee18  ASTAT: 02001004

 

Hardware Trace:

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

     Source : <0xffa00768> { _exception_to_level5 + 0xa4 } CALL pcrel

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

     Source : <0xffa00578> { _bfin_return_from_exception + 0x20 } RTX

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

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

   3 Target : <0xffa005a8> { _ex_trap_c + 0x0 }

     Source : <0xffa00480> { _ex_workaround_261 + 0x1c } JUMP.S

   4 Target : <0xffa00464> { _ex_workaround_261 + 0x0 }

     Source : <0xffa0083c> { _trap + 0x68 } JUMP (P4)

   5 Target : <0xffa007f2> { _trap + 0x1e }

     Source : <0xffa007ee> { _trap + 0x1a } IF CC JUMP pcrel

   6 Target : <0xffa007d4> { _trap + 0x0 }

      FAULT : <0x00009898> { _sram_free_with_lsl + 0x38 } P5 = [P2]

     Source : <0xffa00578> { _bfin_return_from_exception + 0x20 } RTX

   7 Target : <0xffa00558> { _bfin_return_from_exception + 0x0 }

     Source : <0xffa00476> { _ex_workaround_261 + 0x12 } IF !CC JUMP pcrel

   8 Target : <0xffa00464> { _ex_workaround_261 + 0x0 }

     Source : <0xffa0083c> { _trap + 0x68 } JUMP (P4)

   9 Target : <0xffa007f2> { _trap + 0x1e }

     Source : <0xffa007ee> { _trap + 0x1a } IF CC JUMP pcrel

  10 Target : <0xffa007d4> { _trap + 0x0 }

     Source : <0x00009896> { _sram_free_with_lsl + 0x36 } P2 = [P4]

  11 Target : <0x00009896> { _sram_free_with_lsl + 0x36 }

     Source : <0x000098ba> { _sram_free_with_lsl + 0x5a } JUMP.S

  12 Target : <0x000098ba> { _sram_free_with_lsl + 0x5a }

     Source : <0x00046c40> { _kfree + 0x78 } RTS

  13 Target : <0x00046c10> { _kfree + 0x48 }

     Source : <0x00046c0a> { _kfree + 0x42 } IF !CC JUMP pcrel (BP)

  14 Target : <0x00046c04> { _kfree + 0x3c }

     Source : <0x00046c00> { _kfree + 0x38 } IF CC JUMP pcrel (BP)

  15 Target : <0x00046bfa> { _kfree + 0x32 }

     Source : <0x00046bf6> { _kfree + 0x2e } IF CC JUMP pcrel (BP)

Kernel Stack

Stack info:

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

Memory from 0x02079f20 to 0207a000

02079f20: ffa032b8 [02ae8860] 00008000  00000000  00000000  0207a000  02ae8860  02ae8860

02079f40: 02ae81de  ffa0111c  02001004  02ae9175  02aeb03b  02ae9174  02aeb03a  00000000

02079f60: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

02079f80: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

02079fa0: 00000000  00000000  00000000  00000000  02aed148  02aeee18  02aeee24  02aeee84

02079fc0: ffffff7c  02aec6e0  00000004  02aec72f  00000138  00000000  02aed2dc  ffa032b8

02079fe0: 00000000  02aecd08  00000004  02aecd04  ffa032b8  ffa032b8  00000138  00000006

Return addresses in stack:

Modules linked in:

Kernel panic - not syncing: Kernel exception

Hardware Trace:

Stack info:

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

FP: (0x02079ef4)

Memory from 0x02079d10 to 0207a000

02079d10: 0000000b  02079d1c  00000013 [00147a70] 00117988  02079e10  00147a70  0017a3cf

02079d30: 0017a3cf  0017a3cf  02079d64  02aeee24  0000432c  02079e10  ffe02014  02aec6e0

02079d50: 00008008  0000000b  00000027  00000013  02079e10  0000003f  0000003f  0291e400

02079d70: 028f3600  0003000b  0000ffff  00186c54  00175660  0000003f  0000ffff  00000000

02079d90: 00154c2e  00000fff  000004df  00000002  00000009  0000ffff  0000ffff  0000003f

02079db0:<000a505a> 028f3600  00000008  00000000  000a65e8  00000000  000a65e8  00000000

02079dd0: 00000001  02855ec0 <0009faae> 02855ec0 <0009f8b4> 0291e400  00000020  ffa0076c

02079df0: 00177000  00008008  00000027  ffa032b8  00000000  02855ec0  000a0630  00000480

02079e10: 00000480  00008008  00000027  00000000  02079eec  00000480  00009898  000098ba

02079e30: 0000ffff  02001004  02ae9175  02aeb03b  02ae9174  02aeb03a  00000000  00000000

02079e50: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

02079e70: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

02079e90: 00000000  00000000  00000000  02aed148  02aeee18  02aeee24  02962680  029301b4

02079eb0: 02aec6e0  00000000  0000000e  020000c0  00000000  ffa032b8  ffa032b8  00000000

02079ed0: ffa032b8  00000004  00902c40  0000ffff  0000ffff  020000c0  00000006  02079ef0

02079ef0: 00000000 (00000000)<ffa00976> 00003d7c  00000138  00000000  ffffe000  02ae3fef

02079f10: 020493c0  00000001  02aecd08  00000000  ffa032b8  02ae8860  00008000  00000000

02079f30: 00000000  0207a000  02ae8860  02ae8860  02ae81de  ffa0111c  02001004  02ae9175

02079f50: 02aeb03b  02ae9174  02aeb03a  00000000  00000000  00000000  00000000  00000000

02079f70: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

02079f90: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

02079fb0: 02aed148  02aeee18  02aeee24  02aeee84  ffffff7c  02aec6e0  00000004  02aec72f

02079fd0: 00000138  00000000  02aed2dc  ffa032b8  00000000  02aecd08  00000004  02aecd04

02079ff0: ffa032b8  ffa032b8  00000138  00000006

Return addresses in stack:

    address : <0x000a505a> { _uart_start + 0x66 }

    address : <0x0009faae> { _do_output_char + 0x146 }

    address : <0x0009f8b4> { _process_output_block + 0x8c }

   frame  1 : <0xffa00976> { _system_call + 0x6a }

--

 

Follow-ups

 

--- Mike Frysinger                                           2010-12-07 23:31:30

my svn 9522 commit was slightly wrong ... it missed a break pointed out by

Simon

 

please retest

 

--- Vivi Li                                                  2010-12-20 21:59:32

Not crash now. Close it.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes