[#7327] mem access test with mpu kernel fails on bf537-stamp

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

[#7327] mem access test with mpu kernel fails on bf537-stamp

Submitted By: Mingquan Pan

Open Date

2012-09-13 04:57:05     Close Date

2012-09-27 05:35:34

Priority:

Medium     Assignee:

steven miao

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

N/A     Board:

STAMP

Processor:

BF537     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Out of Date

Uboot version or rev.:

    Toolchain version or rev.:

2012R1-rc2

App binary format:

N/A     

Summary: mem access test with mpu kernel fails on bf537-stamp

Details:

 

mem access test with mpu kernel fails on bf537-stamp.

 

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

   Image Name:   bf537-0.3-3.5.0-ADI-2012R1-pre-0

   Created:      2012-09-13   8:22:20 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    6001708 Bytes =  5.7 MB

   Load Address: 00001000

   Entry Point:  001dfc90

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 001dfc90

Linux version 3.5.0-ADI-2012R1-pre-00827-g3ff4991-dirty (test@adsl) (gcc version 4.3.5 (ADI-2012R1-RC2) ) #4 Thu Sep 13 16:22:17 CST 2012

register early platform devices

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart0] enabled

early printk enabled on early_BFuart0

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x00144da8

  rodata    = 0x00144da8-0x001ad780

  bss       = 0x001ae000-0x001be5fc

  data      = 0x001be600-0x001d8000

    stack   = 0x001d6000-0x001d8000

  init      = 0x001d8000-0x006a1000

  available = 0x006a1000-0x03f00000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace active and enabled

Boot Mode: 0

Reset caused by Software reset

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

Compiled for ADSP-BF537 Rev 0.3

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

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

MPU: setting up cplb tables with memory protection

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: 16002

Kernel command line: root=/dev/mtdblock0 rw ip=10.100.4.50 earlyprintk=serial,uart0,57600 console=ttyBF0,57600 ip=10.100.4.50:10.100.4.174:192.168.0.1:255.255.255.0:bf537-stamp: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: 55712k/65536k RAM, (4900k init code, 1295k kernel code, 589k data, 1024k dma, 2016k reserved)

NR_IRQS:146

Configuring Blackfin Priority Driven Interrupts

console [ttyBF0] enabled, bootconsole disabled

console [ttyBF0] enabled, bootconsole disabled

Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)

pid_max: default: 32768 minimum: 301

Mount-cache hash table entries: 512

devtmpfs: initialized

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 (34 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: master is unqueued, this is deprecated

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

i2c-bfin-twi i2c-bfin-twi.0: Blackfin on-chip I2C TWI Contoller, regs_base@ffc01400

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 108

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 [Generic PHY] (mii_bus:phy_addr=bfin_mii_bus-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

ad714x_captouch 0-002c: I2C read error: -5

ad714x_captouch 0-002c: fail to detect AD714X captouch, read ID is 9608

ad714x_captouch spi0.5: fail to detect AD714X captouch, read ID is ffff

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

i2c /dev entries driver

bfin_wdt: initialized: timeout=20 sec (nowayout=0)

TCP: cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 1970-01-29 05:49:21 UTC (2440161)

IP-Config: Gateway not on directly connected network

dma_alloc_init: dma_page @ 0x02c88000 - 256 pages at 0x03f00000ý

 

BusyBox v1.18.5 (2012-09-13 15:33:13 CST) hush - the humble shell

 

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

eth0 10.100.4.50^[[58;9R

root:/> ^[[58;9REthernet may has been activated already!

version

kernel:    Linux release 3.5.0-ADI-2012R1-pre-00827-g3ff4991-dirty, build #4 Thu Sep 13 16:22:17 CST 2012

toolchain: /home/test/workspace/src/kernel/output/host/usr/bin/bfin-uclinux-gcc release gcc version 4.3.5 (ADI-2012R1-RC2)

user-dist: release git-1263cfd, build #1 Thu Sep 13 15:51:50 CST 2012

root:/> 

Linux version: 3.5.0-ADI-2012R1-pre-00827-g3ff4991-dirty

GCC version: 4.3.5 (ADI-2012R1-RC2)

user-dist version: git-1263cfd

[6n

root:/> ifconfig eth0 10.100.4.5^[[58;9R0 up

root:/>

root:/> ^[[58;9R^[[58;9Rifconfig eth0

eth0      Link encap:Ethernet  HWaddr 00:E0:22:FE:52:4C 

          inet addr:10.100.4.50  Bcast:10.100.4.255  Mask:255.255.255.0

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

 

root:/>

Case 1 ...PASS

 

*******************************************************************

STEP 3: Clean src directory

 

 

spawn make clean -C src

make: Entering directory `/home/test/workspace/src/kernel/testsuites/mem_access/src'

rm -f process_a process_b

^[[58;9Rrm -f process_a.gdb process_b.gdb

make: Leaving directory `/home/test/workspace/src/kernel/testsuites/mem_access/src'

 

Clean src

 

*******************************************************************

STEP 4: Build test program

 

 

spawn make -C src

make: Entering directory `/home/test/workspace/src/kernel/testsuites/mem_access/src'

bfin-uclinux-gcc -Wl,-elf2flt    process_a.c   -o process_a

process_a.c: In function ‘main’:

process_a.c:19: warning: incompatible implicit declaration of built-in function ‘malloc’

process_a.c:22: warning: incompatible implicit declaration of built-in function ‘exit’

process_a.c:26: warning: incompatible implicit declaration of built-in function ‘memset’

process_a.c:30: warning: incompatible implicit declaration of built-in function ‘exit’

process_a.c:35: warning: incompatible implicit declaration of built-in function ‘exit’

process_a.c:51: warning: incompatible implicit declaration of built-in function ‘exit’

process_a.c:56: warning: incompatible implicit declaration of built-in function ‘exit’

bfin-uclinux-gcc -Wl,-elf2flt    process_b.c   -o process_b

process_b.c: In function ‘main’:

process_b.c:24: warning: incompatible implicit declaration of built-in function ‘exit’

process_b.c:33: warning: incompatible implicit declaration of built-in function ‘exit’

make: Leaving directory `/home/test/workspace/src/kernel/testsuites/mem_access/src'

 

Build test program done

 

*******************************************************************

STEP 5: Copy testcase to target board

 

 

spawn rcp src/process_a root@10.100.4.50:/bin

 

Copy null_point to target board done

spawn rcp src/process_b root@10.100.4.50:/bin

 

Copy null_point to target board done

process_a&

[1] 195 process_a

root:/> ssssssssssssssss

buffer address is 0x0141dd60(21093728)

Now sleep...

 

Case 2 ...PASS

^[[58;9Rprocess_b

buffer address is 0x0141dd60(21093728)

FAIL: read file content to memory in another process, return value 16

FAIL: write file from memory in another process, return value 16

root:/>

Last passed test result is not found!!

 

Follow-ups

 

--- Mingquan Pan                                             2012-09-13 06:58:47

This bug also fails in uclinus-dist kernel and the regression shows it already

failed in Apr logs.

 

--- Sonic Zhang                                              2012-09-27 04:29:19

Please disable this MPU test case.

 

--- Mingquan Pan                                             2012-09-27 06:36:44

Disabled in kernel_test. close.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes