[#5817] lmbench test fails sometimes on bf561-ezkit SMP kernel

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

[#5817] lmbench test fails sometimes on bf561-ezkit SMP kernel

Submitted By: Vivi Li

Open Date

2010-01-06 04:39:25     Close Date

2010-01-13 03:15:52

Priority:

Medium     Assignee:

Sonic Zhang

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2010R1     Release:

Category:

N/A     Board:

EZKIT Lite

Processor:

BF561     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Not reproducible

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.3_trunk3771

App binary format:

N/A     

Summary: lmbench test fails sometimes on bf561-ezkit SMP kernel

Details:

 

lmbench test fails sometimes on bf561-ezkit SMP kernel.

bf561-ezkit is OK.

 

I check all the recorded results and found it happened on 11-05-2009 for the first time.

--

kernel:    Linux release 2.6.31.5-ADI-2010R1-pre-svn7752, build #4 SMP Thu Nov 5 20:49:53 GMT 2009

toolchain: bfin-uclinux-gcc release gcc version 4.3.4 (ADI-trunk/svn-3679)

user-dist: release svn-9110, build #24 Thu Nov 5 20:48:43 GMT 2009

--

 

The version before that is:

--

kernel:    Linux release 2.6.31.5-ADI-2010R1-pre-svn7752, build #160 SMP Wed Nov 4 19:55:52 GMT 2009

toolchain: bfin-uclinux-gcc release gcc version 4.1.2 (ADI-09r1-9)

user-dist: release svn-9091, build #1350 Wed Nov 4 19:52:52 GMT 2009

--

 

Bellow is the latest log:

--

Linux version 2.6.32.2-ADI-2010R1-pre-svn8115 (test@uclinux65-561-SMP) (gcc version 4.3.4 (ADI-trunk/svn-3771) ) #36 SMP Wed Jan 6 10:37:52 GMT 2010

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-0x0010c010

  rodata    = 0x0010c020-0x0015ebf0

  bss       = 0x0015f000-0x001714c8

  data      = 0x001714e0-0x00182000

    stack   = 0x00180000-0x00182000

  init      = 0x00182000-0x00bef000

  available = 0x00bef000-0x03f00000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 0

Reset caused by Software reset

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

Compiled for ADSP-BF561 Rev 0.5

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

Processor Speed: 600 MHz core clock and 100 MHz System Clock

NOMPU: setting up cplb tables

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: 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:10.100.4.174:255.255.255.0:bf561-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: 51696k/65536k RAM, (10676k init code, 1068k kernel code, 472k data, 1024k dma, 600k reserved)

Hierarchical RCU implementation.

NR_IRQS:121

Configuring Blackfin Priority Driven Interrupts

console [ttyBF0] enabled, bootconsole disabled

console [ttyBF0] enabled, bootconsole disabled

Calibrating delay loop... 1187.84 BogoMIPS (lpj=2375680)

Mount-cache hash table entries: 512

CoreB bootstrap code to SRAM ff600000 via DMA.

Booting Core B.

Instruction Cache Enabled for CPU1

  External memory: cacheable in instruction cache

  L2 SRAM        : uncacheable in instruction cache

Data Cache Enabled for CPU1

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

  L2 SRAM        : uncacheable in data cache

Calibrating delay loop...

Brought up 2 CPUs

SMP: Total of 2 processors activated (4.09 BogoMIPS).

Blackfin Scratchpad data SRAM: 4 KB

Blackfin Scratchpad data SRAM: 4 KB

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

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

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

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

Blackfin L1 Instruction SRAM: 16 KB (15 KB free)

Blackfin L1 Instruction SRAM: 16 KB (15 KB free)

Blackfin L2 SRAM: 128 KB (127 KB free)

NET: Registered protocol family 16

Blackfin DMA Controller

ezkit_init(): registering device resources

bio: create slab <bio-0> at 0

Switching to clocksource jiffies

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)

1601.53 BogoMIPS (lpj=3203072)

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

TCP: Hash tables configured (established 2048 bind 2048)

TCP reno registered

NET: Registered protocol family 1

msgmni has been set to 100

io scheduler noop registered

io scheduler anticipatory registered (default)

bfin-uart: Blackfin serial driver

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

brd: module loaded

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

smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <nico@fluxnic.net>

eth0: SMC91C11xFD (rev 2) at 2c010300 IRQ 82 [nowait]

eth0: Ethernet addr: 00:e0:22:fe:ba:2a

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

TCP cubic registered

NET: Registered protocol family 17

eth0: link down

IP-Config: Complete:

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

     host=bf561-ezkit, domain=, nis-domain=(none),

     bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=

Freeing unused kernel memory: 10676k freed

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

eth0: link up, 100Mbps, full-duplex, lpa 0x41E1

                           _____________________________________

        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.15.3 (2010-01-06 01:48:19 GMT) hush - the humble shell

 

root:/> version

kernel:    Linux release 2.6.32.2-ADI-2010R1-pre-svn8115, build #36 SMP Wed Jan 6 10:37:52 GMT 2010

toolchain: bfin-uclinux-gcc release gcc version 4.3.4 (ADI-trunk/svn-3771)

user-dist: release svn-9344, build #418 Wed Jan 6 10:35:29 GMT 2010

root:/>

root:/> cd lmbench3/bin/blackfin-Linux

root:/lmbench3/bin/blackfin-Linux> ./lat_ctx -s 0 2

 

"size=0k ovr=26.70

2 33.49

 

root:/lmbench3/bin/blackfin-Linux> ./lat_ctx -s 16 2

 

"size=16k ovr=51.36

2 96.90

 

root:/lmbench3/bin/blackfin-Linux> ./lat_ctx -s 64 2

 

"size=64k ovr=357.40

2 42.02

 

root:/lmbench3/bin/blackfin-Linux> ./lat_ctx -s 16 8

 

"size=16k ovr=53.63

8 109.09

root:/lmbench3/bin/blackfin-Linux> ./lat_ctx -s 64 8

 

"size=64k ovr=360.42

8 57.52

 

root:/lmbench3/bin/blackfin-Linux> ./lat_ctx -s 16 16

 

"size=16k ovr=55.51

16 114.20

root:/lmbench3/bin/blackfin-Linux> ./lat_ctx -s 64 16

Unable to read code+data+bss, errno 14

Illegal use of supervisor resource

<5> - Attempted to use a Supervisor register or instruction from User mode.

<5>   Supervisor resources are registers and instructions that are reserved

<5>   for Supervisor use: Supervisor only registers, all MMRs, and Supervisor

<5>   only instructions.

Deferred Exception context

CURRENT PROCESS:

COMM=lat_ctx PID=192 CPU=1

TEXT = 0x(null)-0x(null)        DATA = 0x(null)-0x(null)

BSS = 0x(null)-0x(null)  USER-STACK = 0x(null)

 

return address: [0x02e143a4]; contents of:

0x02e14380:  e14c  02e5  0062  6fe5  e10c  b2d4  304d  3044

0x02e14390:  3017  e300  017f  3210  e14d  02e5  e10d  c5f0

0x02e143a0:  9128  4f18 [9111] 0981  1852  3042  53c8  6467

0x02e143b0:  ac51  3062  302f  6464  0c41  1806  0000  0000

 

ADSP-BF561-0.5 600(MHz CCLK) 100(MHz SCLK) (mpu off)

Linux version 2.6.32.2-ADI-2010R1-pre-svn8115 (test@uclinux65-561-SMP) (gcc version 4.3.4 (ADI-trunk/svn-3771) ) #36 SMP Wed Jan 6 10:37:52 GMT 2010

 

SEQUENCER STATUS:               Not tainted

SEQSTAT: 0000002e  IPEND: 0008  IMASK: ffff  SYSCFG: 0006

  EXCAUSE   : 0x2e

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

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

RETN: <0x02d8a000> /* kernel dynamic memory */

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

RETS: <0x02e14396> [ sh + 0x14396 ]

PC  : <0x02e143a4> [ sh + 0x143a4 ]

DCPLB_FAULT_ADDR: <0xfffffffc> /* core mmrs */

ICPLB_FAULT_ADDR: <0x02e143a4> [ sh + 0x143a4 ]

PROCESSOR STATE:

R0 : 00008000    R1 : 00000008    R2 : 02d2c4ac    R3 : 0000002f

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

P0 : 0000000b    P1 : 00000000    P2 : ffffffff    P3 : 000000c8

P4 : 02e5b2d4    P5 : 02e5c5f0    FP : 02e65d94    SP : 02d89f24

LB0: 02e0e497    LT0: 02e0e484    LC0: ffffffff

LB1: 02e1414f    LT1: 02e14146    LC1: 00000000

B0 : 00000000    L0 : 00000000    M0 : 00000000    I0 : 02d2c330

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 : 02e65d90  ASTAT: 02001004

 

Hardware Trace:

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

     Source : <0x0000a38c> { _exception_to_level5 + 0xb4 } CALL pcrel

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

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

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

     Source : <0x0000a230> { _ex_trap_c + 0x84 } JUMP.S

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

     Source : <0x0000a4ac> { _trap + 0xb4 } JUMP (P4)

   4 Target : <0x0000a454> { _trap + 0x5c }

     Source : <0x0000a450> { _trap + 0x58 } IF !CC JUMP

   5 Target : <0x0000a43c> { _trap + 0x44 }

     Source : <0x0000a428> { _trap + 0x30 } IF !CC JUMP

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

     Source : <0x02e143a2> [ sh + 0x143a2 ] 0x4f18

   7 Target : <0x02e14396> [ sh + 0x14396 ]

     Source : <0x02e15e0a> [ sh + 0x15e0a ] RTS

   8 Target : <0x02e15e02> [ sh + 0x15e02 ]

     Source : <0x02e15e36> [ sh + 0x15e36 ] IF CC JUMP

   9 Target : <0x02e15e2e> [ sh + 0x15e2e ]

     Source : <0x02e046c8> [ sh + 0x46c8 ] RTS

  10 Target : <0x02e046b8> [ sh + 0x46b8 ]

     Source : <0x02e15e2a> [ sh + 0x15e2a ] CALL pcrel

  11 Target : <0x02e15e2a> [ sh + 0x15e2a ]

     Source : <0x02e02824> [ sh + 0x2824 ] RTS

  12 Target : <0x02e0281e> [ sh + 0x281e ]

     Source : <0x02e02832> [ sh + 0x2832 ] JUMP.S

  13 Target : <0x02e0282a> [ sh + 0x282a ]

     Source : <0x02e046c8> [ sh + 0x46c8 ] RTS

  14 Target : <0x02e046b8> [ sh + 0x46b8 ]

     Source : <0x02e02826> [ sh + 0x2826 ] CALL pcrel

  15 Target : <0x02e02826> [ sh + 0x2826 ]

     Source : <0x02e0281a> [ sh + 0x281a ] IF !CC JUMP

Userspace Stack

Stack info:

SP: [0x02e65d90] <0x02e65d90> [ sh + 0x65d90 ]

FP: (0x02e65d94)

Memory from 0x02e65d90 to 02e66000

02e65d90:[00000000](00000000)<02e286aa> 02d2c77c  02d2c764  00000000  00000000  00000000

02e65db0:<02e286aa> 00000000  000000c0  02e65dd8 <02e03760> 00000000  00000001  00000000

02e65dd0: 00000000  00000000  00000000 <02e241b4> 00000080  00000000  00000000  00000000

02e65df0: 02e5c6d4  00000000  00000000 <02e24316> 02d2c2d8  02d2c004  00000000  00000000

02e65e10: 00000000  00000000  00000000  02d2c2d8  02d2c004  00000000 <02e27d36> 02d2c2d8

02e65e30: 00000000  02d2c2d8  00000000  00000000  00000000  00000000  00000000  00000001

02e65e50: 02e5b4d8 <02e27e00> 02d2c004  02e5cbb8  00000000  02d2c2d8  0000003b  02e65ea0

02e65e70: 02e49784  00000000  02e5b1e8  0000003b <02e281e2> 02d2c004  02e65ea0  00000001

02e65e90: 02e55e00  02e65ebc <02e0c050> 02d2c004  02d2c1af  00000000  00000001  00000001

02e65eb0: 02e5b1a8  02e28040 <02e253c8><02e28d2c> 000000ff  00000051  02e5308b  fffff000

02e65ed0: 02e65f28  02e65f64 <02e1b954> 02e5c734  02e65fa8  0000004f  02e4c6b1  00000001

02e65ef0: 000001c5  00000001  02e65fa8  02e49784 <02e1b970> 02e5c7ac  02e65fa8  00000001

02e65f10: 02e65fc3  02e65fa8  02e5c5ec  02e65f64 <02e1bb0e> 02e65fbe <02e1bae8> 02e5c7ac

02e65f30: 02e65fa8  00000000  02e65fa8  02e5c5ec  02e497c4  02e497c4  02e65f64 <02e16cd4>

02e65f50: 02e497c4  02e5b528  00000000  00000000  00000000  00000000 <02da0aea> 02e497c4

02e65f70: 02db80c0  02db80c4  00000000  45984f08  ffffffff  00000048  02e1ba78  00000000

02e65f90: 00000000  02e49784  02e49796  00000000 <02da6388> 00000001  02e65fbd  00000000

02e65fb0: 02e65fc6  02e65fd1  00000000  622f2d00  732f6e69  45540068  6c3d4d52  78756e69

02e65fd0: 54415000  622f3d48  2f3a6e69  2f727375  3a6e6962  6962732f  752f3a6e  732f7273

02e65ff0: 006e6962  6e69622f  0068732f  00000000

Return addresses in stack:

   frame  1 : <0x02e286aa> [ sh + 0x286aa ]

    address : <0x02e286aa> [ sh + 0x286aa ]

    address : <0x02e03760> [ sh + 0x3760 ]

    address : <0x02e241b4> [ sh + 0x241b4 ]

    address : <0x02e24316> [ sh + 0x24316 ]

    address : <0x02e27d36> [ sh + 0x27d36 ]

    address : <0x02e27e00> [ sh + 0x27e00 ]

    address : <0x02e281e2> [ sh + 0x281e2 ]

    address : <0x02e0c050> [ sh + 0xc050 ]

    address : <0x02e253c8> [ sh + 0x253c8 ]

    address : <0x02e28d2c> [ sh + 0x28d2c ]

    address : <0x02e1b954> [ sh + 0x1b954 ]

    address : <0x02e1b970> [ sh + 0x1b970 ]

    address : <0x02e1bb0e> [ sh + 0x1bb0e ]

    address : <0x02e1bae8> [ sh + 0x1bae8 ]

    address : <0x02e16cd4> [ sh + 0x16cd4 ]

    address : <0x02da0aea> [ init + 0xaea ]

    address : <0x02da6388> [ init + 0x6388 ]

ILL

root:/lmbench3/bin/blackfin-Linux>

--

 

Follow-ups

 

--- Sonic Zhang                                              2010-01-12 04:11:06

can't replicate on svn v8144.

 

--- Vivi Li                                                  2010-01-13 03:15:44

I also can not see it.

Close this bug.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes