FAQ: [#6974] debug_mmrs_test fails on trunk head(2012)

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

[#6974] debug_mmrs_test fails on trunk head

Submitted By: Mingquan Pan

Open Date

2012-02-24 00:49:55     Close Date

2012-03-08 12:55:10

Priority:

Medium     Assignee:

Bob Liu

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

N/A     Board:

N/A

Processor:

BF527     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Duplicate

Uboot version or rev.:

    Toolchain version or rev.:

trunk head

App binary format:

N/A     

Summary: debug_mmrs_test fails on trunk head

Details:

 

debug_mmrs_test fails on trunk head.

 

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

   Image Name:   bf527-0.2-3.2.0-ADI-2012R1-pre-0

   Created:      2012-02-17  19:15:07 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    4541399 Bytes = 4.3 MiB

   Load Address: 00001000

   Entry Point:  001ead04

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 001ead04

Linux version 3.2.0-ADI-2012R1-pre-00340-ga329137 (test@uclinux60-bf527-std) (gcc version 4.3.5 (ADI-trunk/svn-5764) ) #36 Sat Feb 18 03:14:56 CST 2012

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

  rodata    = 0x0014c570-0x001bb94c

  bss       = 0x001bc000-0x001cc4dc

  data      = 0x001cc4dc-0x001e2000

    stack   = 0x001e0000-0x001e2000

  init      = 0x001e2000-0x008a3000

  available = 0x008a3000-0x03f00000

  DMA Zone  = 0x03f00000-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-BF527 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

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,uart1,57600 console=ttyBF1,57600 ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:bf527-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: 55060k/65536k RAM, (6916k init code, 1325k kernel code, 599k data, 1024k dma, 612k reserved)

NR_IRQS:159

Configuring Blackfin Priority Driven Interrupts

console [ttyBF1] enabled, bootconsole disabled

console [ttyBF1] enabled, bootconsole disabled

Calibrating delay loop... 1044.48 BogoMIPS (lpj=2088960)

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)

NET: Registered protocol family 16

Blackfin DMA Controller

ezkit_init(): registering device resources

bio: create slab <bio-0> at 0

SCSI subsystem initialized

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 BF5xx on-chip I2C TWI Contoller, regs_base@ffc01400

Advanced Linux Sound Architecture Driver Version 1.0.24.

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 107

io scheduler noop registered (default)

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

bfin-lq035q1 bfin-lq035q1: 320x240 16-bit RGB FrameBuffer initialized

bfin-uart: Blackfin serial driver

bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 31) is a BFIN-UART

bfin-otp: initialized

brd: module loaded

adp5520 0-0032: failed writing 0x80 to 0x00

adp5520 0-0032: failed to write

adp5520: probe of 0-0032 failed with error -1

m25p80 spi0.1: m25p16 (2048 Kbytes)

Creating 2 MTD partitions on "m25p80":

0x000000000000-0x000000040000 : "bootloader(spi)"

0x000000040000-0x000000200000 : "linux kernel(spi)"

bfin_mii_bus: probed

bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=25)@sclk=131MHz)

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

ad7879 0-002c: Failed to write AD7879 Touchscreen

ad7879: probe of 0-002c failed with error -1

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

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

ALSA device list:

  No soundcards found.

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 2004-05-31 16:31:48 UTC (1086021108)

IP-Config: Complete:

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

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

     bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=

Freeing unused kernel memory: 6916k 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.18.4 (2012-02-18 03:11:32 CST) hush - the humble shell

 

root:/> version

kernel:    Linux release 3.2.0-ADI-2012R1-pre-00340-ga329137, build #36 Sat Feb 18 03:14:56 CST 2012

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

user-dist: release svn-10639, build #499 Sat Feb 18 03:12:27 CST 2012

root:/> successful boot attempt

************** STEP 3: Start testing

 

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

 

root:/> find /sys/kernel/debug/blackfin/ -type f -print -exec cat '{}' \;

/sys/kernel/debug/blackfin/port/MISCPORT_SLEW

0x0000

/sys/kernel/debug/blackfin/port/MISCPORT_HYSTERESIS

0x0000

/sys/kernel/debug/blackfin/port/MISCPORT_DRIVE

0x0555

/sys/kernel/debug/blackfin/port/PORTH_SLEW

0x0000

/sys/kernel/debug/blackfin/port/PORTH_MUX

0x0005

/sys/kernel/debug/blackfin/port/PORTH_HYSTERESIS

0x0000

...

 

0x0000

/sys/kernel/debug/blackfin/usb/USB_EP_NI0_RXCSR

0x0000

/sys/kernel/debug/blackfin/usb/USB_EP_NI0_RXMAXP

0x0000

/sys/kernel/debug/blackfin/usb/USB_EP_NI0_TXCSR

0x0000

/sys/kernel/debug/blackfin/usb/USB_EP_NI0_TXMAXP

0x0000

/sys/kernel/debug/blackfin/usb/USB_SRP_CLKDIV

0x0000

/sys/kernel/debug/blackfin/usb/USB_PLLOSC_CTRL

0x3028

/sys/kernel/debug/blackfin/usb/USB_PHY_TEST

System MMR Error

<5> - An error occurred due to an invalid access to an System MMR location

<5>   Possible reason: a 32-bit register is accessed with a 16-bit instruction

<5>   or a 16-bit register is accessed with a 32-bit instruction.

Kernel OOPS in progress

HW Error context

CURRENT PROCESS:

COMM=cat PID=408  CPU=0

TEXT = 0x02c00040-0x02c54f60        DATA = 0x02c54f80-0x02c699a8

BSS = 0x02c699a8-0x02c6b380  USER-STACK = 0x02c74f54

 

return address: [0x00086ac0]; contents of:

0x00086aa0:  6001  9308  b049  6000  0010  0000  3210  6000

0x00086ab0:  9711  0010  3210  3209  9510  42c0  6001  9308

0x00086ac0: [b049] 6000  0010  0000  3210  6000  9311  0010

0x00086ad0:  3210  3209  9110  9308  6000  b048  0010  0000

 

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

Linux version 3.2.0-ADI-2012R1-pre-00340-ga329137 (test@uclinux60-bf527-std) (gcc version 4.3.5 (ADI-trunk/svn-5764) ) #36 Sat Feb 18 03:14:56 CST 2012

 

SEQUENCER STATUS:        Not tainted

SEQSTAT: 0000a03f  IPEND: 8030  IMASK: 0000  SYSCFG: 0006

  Global Interrupts Disabled (IPEND[4])

  Peripheral interrupts masked off

  Kernel interrupts masked off

  HWERRCAUSE: 0x2

  EXCAUSE   : 0x3f

  interrupts disabled

  physical IVG5 asserted : <0xffa00c78> { _evt_ivhw + 0x0 }

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

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

  logical irq  13 mapped  : <0x000a9ebc> { _bfin_lq035q1_irq_error + 0x0 }

  logical irq  21 mapped  : <0x000df12c> { _bfin_rtc_interrupt + 0x0 }

  logical irq  27 mapped  : <0x000e0fd8> { _bfin_twi_interrupt_entry + 0x0 }

  logical irq  31 mapped  : <0x000b5dec> { _bfin_serial_dma_rx_int + 0x0 }

  logical irq  32 mapped  : <0x000b5b64> { _bfin_serial_dma_tx_int + 0x0 }

  logical irq  35 mapped  : <0x000d7c1c> { _bfin_mac_interrupt + 0x0 }

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

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

RETX: <0x02c0330e> /* kernel dynamic memory (maybe user-space) */

RETS: <0x000635ba> { _simple_attr_read + 0x7e }

PC  : <0x00086ac0> { _debugfs_u16_get + 0xc }

PROCESSOR STATE:

R0 : 00000000    R1 : 00000000    R2 : 00000000    R3 : 00000000

R4 : 00001000    R5 : 02c73e68    R6 : 028d8640    R7 : 00000000

P0 : 0267f4d4    P1 : 02aa1e88    P2 : ffc039ec    P3 : 00000001

P4 : 02aa1ef0    P5 : 028d8600    FP : 02c73e30    SP : 02aa1d98

LB0: 02c0cc97    LT0: 02c0cc8e    LC0: 0000000e

LB1: 02b8cf05    LT1: 02b8ceba    LC1: 00000000

B0 : 00000000    L0 : 00000000    M0 : 00000004    I0 : 02c74fed

B1 : 00000000    L1 : 00000000    M1 : 00000000    I1 : 02c63f50

B2 : 00000000    L2 : 00000000    M2 : 00000000    I2 : 02c74ea0

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

A0.w: 0000147a   A0.x: 00000000   A1.w: 0000147a   A1.x: 00000000

USP : 02c73e24  ASTAT: 02000021

 

Hardware Trace:

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

     Source : <0xffa00d22> { _evt_ivhw + 0xaa } CALL pcrel

   1 Target : <0xffa00d04> { _evt_ivhw + 0x8c }

     Source : <0xffa00cf6> { _evt_ivhw + 0x7e } IF !CC JUMP pcrel

   2 Target : <0xffa00c78> { _evt_ivhw + 0x0 }

      FAULT : <0x00086abe> { _debugfs_u16_get + 0xa } [P1] = R0

   3 Target : <0x00086ab4> { _debugfs_u16_get + 0x0 }

     Source : <0x000635b8> { _simple_attr_read + 0x7c } CALL (P2)

   4 Target : <0x000635b0> { _simple_attr_read + 0x74 }

     Source : <0x00063578> { _simple_attr_read + 0x3c } IF CC JUMP pcrel (BP)

   5 Target : <0x00063564> { _simple_attr_read + 0x28 }

     Source : <0x0014bb40> { _mutex_lock_interruptible + 0x38 } RTS

   6 Target : <0x0014bb14> { _mutex_lock_interruptible + 0xc }

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

   7 Target : <0x0014b0da> { __cond_resched + 0x1a }

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

   8 Target : <0x0014b0c0> { __cond_resched + 0x0 }

     Source : <0x0014bb10> { _mutex_lock_interruptible + 0x8 } JUMP.L

   9 Target : <0x0014bb08> { _mutex_lock_interruptible + 0x0 }

     Source : <0x00063560> { _simple_attr_read + 0x24 } JUMP.L

  10 Target : <0x0006353c> { _simple_attr_read + 0x0 }

     Source : <0x0004de06> { _vfs_read + 0x66 } CALL (P2)

  11 Target : <0x0004dde6> { _vfs_read + 0x46 }

     Source : <0x0004d570> { _rw_verify_area + 0x50 } RTS

  12 Target : <0x0004d520> { _rw_verify_area + 0x0 }

     Source : <0x0004dde2> { _vfs_read + 0x42 } CALL pcrel

  13 Target : <0x0004ddd6> { _vfs_read + 0x36 }

     Source : <0xffa001ae> { __access_ok + 0x5e } RTS

  14 Target : <0xffa001a6> { __access_ok + 0x56 }

     Source : <0xffa001c0> { __access_ok + 0x70 } JUMP.S

  15 Target : <0xffa001ba> { __access_ok + 0x6a }

     Source : <0xffa0018a> { __access_ok + 0x3a } IF !CC JUMP pcrel (BP)

Kernel Stack

Stack info:

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

Memory from 0x02aa1f20 to 02aa2000

02aa1f20: 00000003 [02c0330e] 00008000  00002000  00000000  02aa2000  02c0330e  02c0330e

02aa1f40: 02c51750  ffa00fcc  02001004  02b8cf05  02c0cc97  02b8ceba  02c0cc8e  00000000

02aa1f60: 0000000e  0000147a  00000000  0000147a  00000000  00000000  00000000  00000000

02aa1f80: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

02aa1fa0: 00000004  00000000  02c74ea0  02c63f50  02c74fed  02c73e24  02c73e30  02c6a93c

02aa1fc0: 00000000  00000001  02c6ae68  02c74f7f  00000003  00001000  02c73e68  00000003

02aa1fe0: 00000001  02c74f7f  00001000  02c73e68  00000003  00000003  00000003  00000006

Return addresses in stack:

Modules linked in:

Kernel panic - not syncing: Kernel exception

Hardware Trace:

Stack info:

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

FP: (0x02aa1ef8)

Memory from 0x02aa1ca0 to 02aa2000

02aa1ca0:[001855e8] 0014aae0  02aa1d98  001855e8  001c14cc  001c14cc  001c14cc  02aa1ce8

02aa1cc0: 02c73e30  00004560  02aa1d98  02aa1ef0  00000001  00000000  00000007  0000003f

02aa1ce0: 00000013  02aa1d98  0000ffff  ffffffff  00063616  027f2340  00030001  00086aac

02aa1d00: 00191910  00000000  0200eee0  0277e934  0008702c  027f2340  0267f4d4  0267ea34

02aa1d20: 00000000  00087008  0200eee0  02aa1d8c  02678354  00054460  00086aac  00191910

02aa1d40:<0004c3fe> 00000001  00000001  02aa1da8  0004c518  027f2340  02aa1e34  02aa1df0

02aa1d60: 000540ba  02aa1e34  02aa1e34  02678354  00000000  ffa00d26  028d8600  00000000

02aa1d80: 028d8640  02c73e68  00001000  027f2340  00000000  02a9501f  02c0330e  00008030

02aa1da0: 0000a03f  00000000  02aa2000  02c0330e  00086ac0 <000635ba> 00000000  02000021

02aa1dc0: 02b8cf05  02c0cc97  02b8ceba  02c0cc8e  00000000  0000000e  0000147a  00000000

02aa1de0: 0000147a  00000000  00000000  00000000  00000000  00000000  00000000  00000000

02aa1e00: 00000000  00000000  00000000  00000000  00000000  00000004  00000000  02c74ea0

02aa1e20: 02c63f50  02c74fed  02c73e24  02c73e30  028d8600  02aa1ef0  00000001  ffc039ec

02aa1e40: 02aa1e88  0267f4d4  00000000  028d8640  02c73e68  00001000  00000000  00000000

02aa1e60: 00000000  00000000  00000000  0267f4d4  00000006  0201cd44  00000003  00000000

02aa1e80: 00000000  00000000  00000000  0004c0da <0004de08> 027f2340  00000003  02aa1ef0

02aa1ea0: 00001000  02c73e68  00000001  02aa0000  00000020  027f2348  02aa1ef0  00000000

02aa1ec0: 00000000  0004df20  027f2340  00000003  02c73e68  00001000  00000003  00000001

02aa1ee0: 02c696dc  00000000  ffffe000  02aa1ef0  00000000  00000000 (00000000)<ffa008be>

02aa1f00: 0004def0  00000000  ffffe000  028f3ff6  028ab040  02a97d60  02c74f7f  00000001

02aa1f20: 00000003  02c0330e  00008000  00002000  00000000  02aa2000  02c0330e  02c0330e

02aa1f40: 02c51750  ffa00fcc  02001004  02b8cf05  02c0cc97  02b8ceba  02c0cc8e  00000000

02aa1f60: 0000000e  0000147a  00000000  0000147a  00000000  00000000  00000000  00000000

02aa1f80: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

02aa1fa0: 00000004  00000000  02c74ea0  02c63f50  02c74fed  02c73e24  02c73e30  02c6a93c

02aa1fc0: 00000000  00000001  02c6ae68  02c74f7f  00000003  00001000  02c73e68  00000003

02aa1fe0: 00000001  02c74f7f  00001000  02c73e68  00000003  00000003  00000003  00000006

Return addresses in stack:

    address : <0x0004c3fe> { ___dentry_open + 0x1de }

    address : <0x000635ba> { _simple_attr_read + 0x7e }

    address : <0x0004de08> { _vfs_read + 0x68 }

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

 

 

U-Boot 2011.09-svn2718 (ADI-2011R1-pre) (Oct 10 2011 - 15:31:20)

 

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

Board: ADI BF527 EZ-Kit board

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

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

RAM:   64 MiB

Flash: 4 MiB

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Net:   bfin_mac

Hit any key to stop autoboot:  0

Using bfin_mac device

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'uImage'.

Load address: 0x1000000

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

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

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

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

Last passed test result is not found!!

 

Case 1 ...FAIL

 

 

Follow-ups

 

--- Bob Liu                                                  2012-03-08 01:11:49

what's the last pass version?

 

--- Mike Frysinger                                           2012-03-08 13:37:10

failure is due to readingUSB_PHY_TEST

 

dupe of http://blackfin.uclinux.org/gf/tracker/6109

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes