[#5152] mmap1 test fails for bf537 mpu

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

[#5152] mmap1 test fails for bf537 mpu

Submitted By: Vivi Li

Open Date

2009-05-20 23:42:32     Close Date

2009-07-13 05:50:54

Priority:

Medium     Assignee:

Graf Yang

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

N/A     Board:

N/A

Processor:

BF537     Silicon Revision:

bf537 0.3

Is this bug repeatable?:

Yes     Resolution:

Out of Date

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.1-09r1_rc6

App binary format:

N/A     

Summary: mmap1 test fails for bf537 mpu

Details:

 

mmap1 test fails for bf537 MPU.

Test script is in directory uclinux-dist/testsuites/mpu.

 

--

Linux version 2.6.28.10-ADI-2009R1-pre-svn6363 (test@uclinux74-mpu) (gcc version 4.1.2 (ADI svn)) #134 Mon May 18 17:41:29 GMT 2009^M

console [early_BFuart0] enabled^M

early printk enabled on early_BFuart0^M

Board Memory: 64MB^M

Kernel Managed Memory: 64MB^M

Memory map:^M

  fixedcode = 0x00000400-0x00000490^M

  text      = 0x00001000-0x001031a0^M

  rodata    = 0x001031a0-0x001545a8^M

  bss       = 0x00155000-0x001666a8^M

  data      = 0x001666a8-0x00178000^M

    stack   = 0x00176000-0x00178000^M

  init      = 0x00178000-0x008c4000^M

  available = 0x008c4000-0x03eff000^M

  DMA Zone  = 0x03f00000-0x04000000^M

Hardware Trace Active and Enabled^M

Boot Mode: 0^M

Reset caused by Software reset^M

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

Compiled for ADSP-BF537 Rev 0.3^M

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

Processor Speed: 500 MHz core clock and 100 MHz System Clock^M

MPU: setting up cplb tables with memory protection^M

Instruction Cache Enabled for CPU0^M

Data Cache Enabled for CPU0 (write-back)^M

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

Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600 ip=10.100.4.50:10.100.4.174:192.168.0.1:255.255.255.0:bf537-stamp:eth0:off^M

Configuring Blackfin Priority Driven Interrupts^M

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

console handover: boot [early_BFuart0] -> real [ttyBF0]^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: 51652k/65536k RAM, (7472k init code, 1032k kernel code, 468k data, 1024k dma, 3884k reserved)^M

Calibrating delay loop... 997.37 BogoMIPS (lpj=1994752)^M

Security Framework initialized^M

Mount-cache hash table entries: 512^M

Blackfin Scratchpad data SRAM: 4 KB^M

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

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

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

PDA for CPU0 reserved at 00158000^M

net_namespace: 288 bytes^M

NET: Registered protocol family 16^M

Blackfin DMA Controller^M

stamp_init(): registering device resources^M

NET: Registered protocol family 2^M

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

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

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

TCP: Hash tables configured (established 2048 bind 2048)^M

TCP reno registered^M

NET: Registered protocol family 1^M

msgmni has been set to 100^M

io scheduler noop registered^M

io scheduler anticipatory registered (default)^M

io scheduler cfq registered^M

Serial: Blackfin serial driver^M

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

brd: module loaded^M

bfin_mii_bus: probed^M

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

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

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

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

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

TCP cubic registered^M

NET: Registered protocol family 17^M

rtc-bfin rtc-bfin: setting system clock to 2004-05-31 06:33:36 UTC (1085985216)^M

IP-Config: Gateway not on directly connected network.^M

dma_alloc_init: dma_page @ 0x03ad7000 - 256 pages at 0x03f00000^M

PHY: 0:01 - Link is Up - 100/Full^M

                           _____________________________________^M

        a8888b.           / Welcome to the uClinux distribution \^M

       d888888b.         /       _     _                         \^M

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

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

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

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

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

     dP   .    Y8b.       \   For embedded processors including   |^M

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

   d8"         'Y88b        \___________________________________/^M

  :8P    '      :888^M

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

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

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

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

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

^M

Have a lot of fun...^M

^M

^M

BusyBox v1.13.4 (2009-05-18 17:00:37 GMT) built-in shell (msh)^M

Enter 'help' for a list of built-in commands.^M

^M

root:/>

root:/>  echo "nobody:x:1:1:nobody:/:/bin/sh" >> /etc/passwd^M

root:/> cd /bin

root:/bin> ./mmap1

mmap1       0  INFO  :  pid[170]: map, change contents, unmap files 1000 times^M

mmap1       0  INFO  :  created thread[1026]^M

mmap1       0  INFO  :  pid[171] - read contents of memory 0x30ca000 1000 times^M

mmap1       0  INFO  :  created thread[2051]^M

mmap1       0  INFO  :  pid[172]: map, change contents, unmap files 1000 times^M

mmap1       0  INFO  :  created thread[3074]^M

mmap1       0  INFO  :  pid[173] - read contents of memory 0x30ca000 1000 times^M

mmap1       0  INFO  :  created thread[4099]^M

mmap1       0  INFO  :  pid[174]: map, change contents, unmap files 1000 times^M

mmap1       0  INFO  :  created thread[5122]^M

mmap1       0  INFO  :  pid[175] - read contents of memory 0x30ca000 1000 times^M

mmap1       0  INFO  :  created thread[6147]^M

^Ccaught uDexpeated tignaa -  access CPLB protection violation^M

- Attempted read or write to Supervisor resource,^M

   or illegal data memory access. ^M

Deferred Exception context^M

CURRENT PROCESS:^M

COMM=mmap1 PID=168^M

CPU = 0^M

TEXT = 0x032c0040-0x032d19e0        DATA = 0x032d1a00-0x032d48ac^M

BSS = 0x032d48ac-0x032dd0b0  USER-STACK = 0x032e5f88^M

^M

return address: [0x032c9f4e]; contents of:^M

0x032c9f20:  9117  523e  6460  0983  1fe5  0803  51fa  181c ^M

0x032c9f30:  0000  0000  0000  ac51  0c41  1807  3071  9109 ^M

0x032c9f40:  520e  6460  0803  1820  3222  0c40  5a94 [bc51]^M

0x032c9f50:  bc90  1818  bc42  0c41  1802  bc8a  324a  9317 ^M

^M

SEQUENCER STATUS:               Not tainted^M

SEQSTAT: 00062023  IPEND: 0030  SYSCFG: 0006^M

  EXCAUSE   : 0x23^M

  interrupts disabled^M

  physical IVG5 asserted : <0xffa00b3c> { _evt_ivhw + 0x0 }^M

RETE: <0x00000000> { _do_one_initcall + 0xfffff000 }^M

RETN: <0x030b8000> [ watchdogd + 0x0 ]^M

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

RETS: <0x032c9d36> [ mmap1 + 0x9cf6 ]^M

PC  : <0x032c9f4e> [ mmap1 + 0x9f0e ]^M

DCPLB_FAULT_ADDR: <0x0320413c> /* kernel dynamic memory */^M

ICPLB_FAULT_ADDR: <0x032c9f4e> [ mmap1 + 0x9f0e ]^M

^M

PROCESSOR STATE:^M

R0 : 032ac004    R1 : 00000ffc    R2 : 00000144    R3 : 03203144^M

R4 : 00000001    R5 : 032e5bec    R6 : 032acff4    R7 : 00001144^M

P0 : 030d4ff4    P1 : 032acff4    P2 : 03204138    P3 : 032d4700^M

P4 : 00000144    P5 : 032d4700    FP : 032e5aa0    SP : 030b7f24^M

LB0: 032c69e9    LT0: 032c69dc    LC0: 00000000^M

LB1: 032c88a9    LT1: 032c88a8    LC1: 00000000^M

B0 : 00000000    L0 : 00000000    M0 : 00000000    I0 : 00000000^M

B1 : 00000000    L1 : 00000000    M1 : 00000000    I1 : 032e5f8c^M

B2 : 00000000    L2 : 00000000    M2 : 00000000    I2 : 00000000^M

B3 : 00000000    L3 : 00000000    M3 : 00000000    I3 : 00000000^M

A0.w: 00000037   A0.x: 00000000   A1.w: 00000037   A1.x: 00000000^M

USP : 032e5aa0  ASTAT: 02002002^M

^M

Hardware Trace:^M

   0 Target : <0x00004a64> { _trap_c + 0x0 }^M

     Source : <0xffa005fa> { _exception_to_level5 + 0x9e } CALL pcrel^M

   1 Target : <0xffa0055c> { _exception_to_level5 + 0x0 }^M

     Source : <0xffa0042e> { _bfin_return_from_exception + 0x6 } RTX^M

   2 Target : <0xffa00428> { _bfin_return_from_exception + 0x0 }^M

     Source : <0xffa004b6> { _ex_trap_c + 0x66 } JUMP.S^M

   3 Target : <0xffa00430> { _handle_bad_cplb + 0x0 }^M

     Source : <0xffa003ba> { _ex_dcplb_miss + 0x2a } IF !CC JUMP^M

   4 Target : <0xffa003b6> { _ex_dcplb_miss + 0x26 }^M

     Source : <0x00009672> { _dcplb_protection_fault + 0x86 } RTS^M

   5 Target : <0x0000966e> { _dcplb_protection_fault + 0x82 }^M

     Source : <0x00009638> { _dcplb_protection_fault + 0x4c } IF !CC JUMP^M

   6 Target : <0x000095ec> { _dcplb_protection_fault + 0x0 }^M

     Source : <0x00009c44> { _cplb_hdr + 0x28 } JUMP.L^M

   7 Target : <0x00009c42> { _cplb_hdr + 0x26 }^M

     Source : <0x00009c30> { _cplb_hdr + 0x14 } IF !CC JUMP^M

   8 Target : <0x00009c1c> { _cplb_hdr + 0x0 }^M

     Source : <0xffa003b2> { _ex_dcplb_miss + 0x22 } CALL pcrel^M

   9 Target : <0xffa00390> { _ex_dcplb_miss + 0x0 }^M

     Source : <0xffa00686> { _trap + 0x2a } JUMP (P4)^M

  10 Target : <0xffa0065c> { _trap + 0x0 }^M

     Source : <0xffa003da> { _ex_dcplb_miss + 0x4a } RTX^M

  11 Target : <0xffa003b6> { _ex_dcplb_miss + 0x26 }^M

     Source : <0x00009858> { _dcplb_miss + 0x1e4 } RTS^M

  12 Target : <0x000097c0> { _dcplb_miss + 0x14c }^M

     Source : <0x000097ce> { _dcplb_miss + 0x15a } IF CC JUMP^M

  13 Target : <0x000097c0> { _dcplb_miss + 0x14c }^M

     Source : <0x000097ce> { _dcplb_miss + 0x15a } IF CC JUMP^M

  14 Target : <0x000097c0> { _dcplb_miss + 0x14c }^M

     Source : <0x000097ce> { _dcplb_miss + 0x15a } IF CC JUMP^M

  15 Target : <0x000097c0> { _dcplb_miss + 0x14c }^M

     Source : <0x000097ce> { _dcplb_miss + 0x15a } IF CC JUMP^M

Userspace Stack^M

Stack info:^M

SP: [0x032e5aa0] <0x032e5aa0> [ mmap1 + 0x25aa0 ]^M

FP: (0x032e5aa0)^M

Memory from 0x032e5aa0 to 032e6000^M

032e5aa0:[032e5ac4]<032c9d36> 032d4704  00000002  03203000  00000144  00000002  032d4140 ^M

032e5ac0: ffffffff  032e5b04 <032ca686> 032d4140  00000002  032d4140  032e5af4  ffffffff ^M

032e5ae0: 032e5bec  00000001  032d4140  00000000  032e5b6c  032c538c  032d4820  00000000 ^M

032e5b00: 00000000  032e5b24 <032c01e8> 00000000  032e5b6c  00000000  00000000  00000002 ^M

032e5b20: 00000002  032e5b3c <032c236a> 00000002  032e5b6c  032e5bec  00000000  032e5cd0 ^M

032e5b40: 00000400  032e5ce8  032d4508  00001402  032e5f08  00000000  00000002  032e5b6c ^M

032e5b60: 032e5bec  032c052c  00000020  00000002  00000000  00000080  00000000  00000000 ^M

032e5b80: 00000000  00000000  000000a9  00000000  00000000  00000000  00000000  00000000 ^M

032e5ba0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000 ^M

032e5bc0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000 ^M

032e5be0: 00000000  00000000  00000000  00000000  00000000  00000000  00000002  00000000 ^M

032e5c00: fffffffc  00000008  7fffffff  00000008  00000001  00000000  032e5f08  00001402 ^M

032e5c20: 000000b3  032e5ce8  032e5ce8  032d4140  032d4508  032e5ce8  032e5cc4  00000037 ^M

032e5c40: 00000037  00000000  00000000  02002021 <032c3aa6> 032c7ca6  032c7ca6  032e5cd0 ^M

032e5c60: 00000000  032e5f8c  00000000  00000000  00000000  00000000  00000000  00000000 ^M

032e5c80: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000 ^M

032e5ca0: 00000000  00000000  032c943e  032cc472  032c9441  032cc4b9  00002000  80000000 ^M

032e5cc0: 00000000  032cc4b9  00002000  032e5ce0  032e5d68 <032c3aa6> 00001402  00000001 ^M

032e5ce0: 032e5d78 <032c3aa6> 00000000  00000000  032e5d24 <032cec50> 00000000  00000000 ^M

032e5d00: 40000004  00000016  fffffbff  ffffffff  ffffffff  ffffffff  ffffffff  ffffffff ^M

032e5d20: ffffffff  ffffffff  ffffffff  ffffffff  ffffffff  ffffffff  ffffffff  ffffffff ^M

032e5d40: ffffffff  ffffffff  ffffffff  ffffffff  ffffffff  ffffffff  ffffffff  ffffffff ^M

032e5d60: 032e5e2c <032c1012> 032e5e2c <032c109c> 032d1a00  032d8f54 <030d3e24><032c446e>^M

032e5d80: 032e5d98  032d4504  032d4140  00000001  00001003  032d48a8  032d4140  00000000 ^M

032e5da0: 00000000  032c052c  032e5ef4  80000000  00000000  ffffffff  ffffffff  ffffffff ^M

032e5dc0: ffffffff  ffffffff  ffffffff  ffffffff  ffffffff  ffffffff  ffffffff  ffffffff ^M

032e5de0: ffffffff  ffffffff  ffffffff  ffffffff  ffffffff  ffffffff  ffffffff  ffffffff ^M

032e5e00: ffffffff  ffffffff  ffffffff  ffffffff  ffffffff  ffffffff  ffffffff  032d8f54 ^M

032e5e20: 032c0f04  032d4140  00000000  032e5f30 <032c0b52> 032d1a00  032d48a8  032e5f8c ^M

032e5e40: 00000000  032d6d40  032d19a8  00000010  032d2068  00001803  032e5ef4  00000000 ^M

032e5e60: 00000000  032e5f8c  032c013c  fffffbff  ffffffff  ffffffff  ffffffff  ffffffff ^M

032e5e80: ffffffff  ffffffff  ffffffff  ffffffff  ffffffff  ffffffff  ffffffff  ffffffff ^M

032e5ea0: ffffffff  ffffffff  ffffffff  ffffffff  ffffffff  ffffffff  ffffffff  ffffffff ^M

032e5ec0: ffffffff  ffffffff  ffffffff  ffffffff  ffffffff  ffffffff  ffffffff  ffffffff ^M

032e5ee0: ffffffff  ffffffff  ffffffff  40000004  00000016  00000003  00000400  000003e8 ^M

032e5f00: 00001402  00001803  00000000  00000000  ffffffff  00000000  00000400  000003e8 ^M

032e5f20: 00000000  40380000  00000003  00000009  032e5f48 <032cb0f8> 00000000  00000001 ^M

032e5f40: 032e5f8c  00000000  00000000 <03ba2f14> 032d1a00  03b20004  03b405c0  00000000 ^M

032e5f60: 03b405ac  03b4055c  00000001  032c06e4  00000000  00000000  032d19a8  032d19ba ^M

032e5f80: 00000000  03b2077d  00000001  032e5fa9  00000000  032e5fb1  032e5fb8  032e5fc6 ^M

032e5fa0: 032e5fe9  00000000  6d2f2e00  3170616d  4d4f4800  002f3d45  4c454853  622f3d4c ^M

032e5fc0: 732f6e69  41500068  2f3d4854  3a6e6962  7273752f  6e69622f  62732f3a  2f3a6e69 ^M

032e5fe0: 2f727375  6e696273  52455400  696c3d4d  0078756e  6d6d2f2e  00317061  00000000 ^M

032e6000: 00000000 ^M

Return addresses in stack:^M

   frame  1 : <0x032c9d36> [ mmap1 + 0x9cf6 ]^M

   frame  2 : <0x032ca686> [ mmap1 + 0xa646 ]^M

   frame  3 : <0x032c01e8> [ mmap1 + 0x1a8 ]^M

   frame  4 : <0x032c236a> [ mmap1 + 0x232a ]^M

    address : <0x032c3aa6> [ mmap1 + 0x3a66 ]^M

   frame  6 : <0x032c3aa6> [ mmap1 + 0x3a66 ]^M

    address : <0x032c3aa6> [ mmap1 + 0x3a66 ]^M

    address : <0x032cec50> [ mmap1 + 0xec10 ]^M

    address : <0x032c1012> [ mmap1 + 0xfd2 ]^M

   frame  7 : <0x032c109c> [ mmap1 + 0x105c ]^M

    address : <0x030d3e24> [ mmap1 + 0x3e24 ]^M

    address : <0x032c446e> [ mmap1 + 0x442e ]^M

   frame  8 : <0x032c0b52> [ mmap1 + 0xb12 ]^M

   frame  9 : <0x032cb0f8> [ mmap1 + 0xb0b8 ]^M

   frame 10 : <0x03ba2f14> [ sh + 0x22f14 ]^M

2 --- exiting^M

caught unexpected signal - 2 --- exiting^M

Bus error^M

root:/bin>

--

 

Follow-ups

 

--- Graf Yang                                                2009-07-09 22:40:33

This bug have been fixed by Bernd's commit 6958 on Thu, 09 Jul 2009.

 

--- Vivi Li                                                  2009-07-13 05:50:52

OK now. Close it.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.mpu    application/octet-stream    32731    Vivi Li

Attachments

Outcomes