[#5371] Sometimes wake up from standby will crash in BF527-EZKIT with ssm2602

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

[#5371] Sometimes wake up from standby will crash in BF527-EZKIT with ssm2602

Submitted By: Vivi Li

Open Date

2009-07-17 07:04:04     Close Date

2009-07-28 23:11:43

Priority:

Medium High     Assignee:

Cliff Cai

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

Drivers     Board:

EZKIT Lite

Processor:

BF527     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Not reproducible

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.1_2009r1-rc9

App binary format:

N/A     

Summary: Sometimes wake up from standby will crash in BF527-EZKIT with ssm2602

Details:

 

Sometimes wake up from standby will crash in BF527-EZKIT with ssm2602.

 

--

Linux version 2.6.28.10-ADI-2009R1-svn7006 (test@uclinux60-bf527-std) (gcc version 4.1.2 (ADI svn)) #8 Thu Jul 16 00:47:35 CST 2009

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

  rodata    = 0x0012bac0-0x0018855c

  bss       = 0x00189000-0x0019a2a0

  data      = 0x0019a2a0-0x001ac000

    stack   = 0x001aa000-0x001ac000

  init      = 0x001ac000-0x0093e000

  available = 0x0093e000-0x03eff000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 9

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

Compiled for ADSP-BF527 Rev 0.0

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

Data Cache Enabled for CPU0 (write-back)

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

Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600 ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:bf527-ezkit:eth0:off

Configuring Blackfin Priority Driven Interrupts

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

console handover:boot [early_BFuart0] boot [early_shadow0]  -> real [ttyBF0]

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

Memory available: 54476k/65536k RAM, (7752k init code, 1194k kernel code, 514k data, 1024k dma, 572k reserved)

Calibrating delay loop... 1046.52 BogoMIPS (lpj=2093056)

Security Framework initialized

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

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

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

Blackfin L1 Instruction SRAM: 48 KB (42 KB free)

net_namespace: 288 bytes

NET: Registered protocol family 16

Blackfin DMA Controller

ezkit_init(): registering device resources

SCSI subsystem initialized

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

NET: Registered protocol family 1

msgmni has been set to 106

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

bfin-otp: initialized

Serial: Blackfin serial driver

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

brd: module loaded

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: Blackfin on-chip Ethernet MAC driver, Version 1.1

Driver 'sd' needs updating - please use bus_type methods

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

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

Advanced Linux Sound Architecture Driver Version 1.0.18rc3.

ALSA device list:

  No soundcards found.

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 1970-01-01 12:31:30 UTC (45090)

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: 7752k freed

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

                           _____________________________________

        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.13.4 (2009-07-16 00:45:36 CST) built-in shell (msh)

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

 

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

ion

kernel:    Linux release 2.6.28.10-ADI-2009R1-svn7006, build #8 Thu Jul 16 00:47:35 CST 2009

toolchain: bfin-linux-uclibc-gcc release gcc version 4.1.2 (ADI svn)

user-dist: release svn-8498, build #139 Thu Jul 16 00:46:31 CST 2009

root:/>

root:/> modprobe i2c-bfin-twi; modprobe snd-ssm2602

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

ASoC version 0.13.2

dma rx:3 tx:4, err irq:15, regs:ffc00800

ssm2602 Audio Codec 0.1<6>asoc: SSM2602 <-> bf5xx-i2s mapping ok

root:/> lsmod

Module                  Size  Used by

snd_ssm2602             1292  0

snd_soc_ssm2602         8160  1 snd_ssm2602

snd_bf5xx_i2s           2668  1 snd_ssm2602

snd_soc_core           22060  2 snd_soc_ssm2602,snd_bf5xx_i2s

ac97_bus                 832  1 snd_soc_core

snd_soc_bf5xx_i2s       2156  1 snd_ssm2602

snd_soc_bf5xx_sport    10480  3 snd_ssm2602,snd_bf5xx_i2s,snd_soc_bf5xx_i2s

i2c_bfin_twi            5248  0

 

root:/> vrec -w -S -b 16 -s 48000 -t 5|vplay

Recording WAVE : 16 bit, Speed 48000 Hz Stereo ...

Playing WAVE : 16 bit, Speed 48000 Hz Stereo ...

 

root:/> arecord -t wav -c 2 -f S16_LE -r 48000 -d 5 |aplay

Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo

Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo

 

root:/> cat /proc/mounts

rootfs / rootfs rw 0 0

proc /proc proc rw,nosuid,nodev,noexec 0 0

sysfs /sys sysfs rw,nosuid,nodev,noexec 0 0

mdev /dev tmpfs rw,nosuid 0 0

devpts /dev/pts devpts rw,nosuid,noexec,mode=600 0 0

var /var ramfs rw 0 0

tmp /tmp tmpfs rw,nosuid,nodev 0 0

debugfs /sys/kernel/debug debugfs rw 0 0

 

root:/> ls /sys/power

state

root:/>

Case 5 ...PASS

 

root:/> rtcwake -s 15 -m standby

wakeup from "standby" at Thu Jan  1 12:32:15 1970

PM: Syncing filesystems ... done.

Freezing user space processes ... (elapsed 0.00 seconds) done.

Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.

Suspending console(s) (use no_console_suspend to debug)

PHY: 0:01 - Link is Down

soc-audio soc-audio: scheduling resume work

soc-audio soc-audio: starting resume work

Restarting tasks ... done.

soc-audio soc-audio: resume work completed

NULL pointer access

Kernel OOPS in progress

Deferred Exception context

CURRENT PROCESS:

COMM=rtcwake PID=212

CPU = 0

invalid mm

return address: [0x00086c8a]; contents of:

0x00086c60:  0000  0000  acaa  0851  180a  0000  0000  0000

0x00086c70:  9110  4800  17d0  2fc5  9358  2fae  ac6a  9110

0x00086c80:  4800  1832  0000  0000  0000 [ac91] 0c41  1807

0x00086c90:  9109  4801  1884  0000  0000  0000  ac50  0c40

 

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

Linux version 2.6.28.10-ADI-2009R1-svn7006

Built with gcc version 4.1.2 (ADI svn)

 

SEQUENCER STATUS:               Not tainted

SEQSTAT: 00062027  IPEND: 8030  SYSCFG: 0006

  EXCAUSE   : 0x27

  interrupts disabled

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

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

  logical irq   6 mapped  : <0xffa00330> { _timer_interrupt + 0x0 }

  logical irq  15 mapped  : <0x00219708> { :snd_soc_bf5xx_sport:_sport_tx_start + 0x258 }

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

  logical irq  23 mapped  : <0x002183dc> { :snd_soc_bf5xx_sport:_sport_done + 0x104 }

  logical irq  24 mapped  : <0x0021836c> { :snd_soc_bf5xx_sport:_sport_done + 0x94 }

  logical irq  27 mapped  : <0x03ec000c> { :i2c_bfin_twi:_init_module + 0x325b26c }

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

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

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

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

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

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

RETS: <0x00086cf8> { _rb_erase + 0x198 }

PC  : <0x00086c8a> { _rb_erase + 0x12a }

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

ICPLB_FAULT_ADDR: <0x00086c8a> { _rb_erase + 0x12a }

 

PROCESSOR STATE:

R0 : 0021ee98    R1 : 0021ee98    R2 : 00d66c38    R3 : 00000001

R4 : 00db1940    R5 : ffffffc0    R6 : ffffffc0    R7 : 00c9f060

P0 : 0021ebd8    P1 : 0021ee98    P2 : 00000000    P3 : 00194d58

P4 : 0021e6f8    P5 : 0021ebd8    FP : 00defe24    SP : 00defd3c

LB0: 001df7cf    LT0: 001df7ce    LC0: 00000000

LB1: 001dfa65    LT1: 001dfa1e    LC1: 00000000

B0 : 00000000    L0 : 00000000    M0 : 00000000    I0 : 001f65b8

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

USP : 0023fd20  ASTAT: 02000000

 

Hardware Trace:

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

     Source : <0xffa00604> { _exception_to_level5 + 0xa8 } CALL pcrel

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

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

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

     Source : <0xffa004aa> { _ex_trap_c + 0x46 } JUMP.S

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

     Source : <0xffa006d0> { _trap + 0x58 } JUMP (P4)

   4 Target : <0xffa00678> { _trap + 0x0 }

     Source : <0x00086cfa> { _rb_erase + 0x19a } JUMP.S

   5 Target : <0x00086cf8> { _rb_erase + 0x198 }

     Source : <0x0008693a> { ___rb_rotate_left + 0x4e } RTS

   6 Target : <0x0008690e> { ___rb_rotate_left + 0x22 }

     Source : <0x00086900> { ___rb_rotate_left + 0x14 } IF !CC JUMP

   7 Target : <0x000868ec> { ___rb_rotate_left + 0x0 }

     Source : <0x00086cf4> { _rb_erase + 0x194 } CALL pcrel

   8 Target : <0x00086ce6> { _rb_erase + 0x186 }

     Source : <0x00086c82> { _rb_erase + 0x122 } IF !CC JUMP

   9 Target : <0x00086c7c> { _rb_erase + 0x11c }

     Source : <0x00086c68> { _rb_erase + 0x108 } IF !CC JUMP

  10 Target : <0x00086c58> { _rb_erase + 0xf8 }

     Source : <0x00086c4a> { _rb_erase + 0xea } IF !CC JUMP

  11 Target : <0x00086c48> { _rb_erase + 0xe8 }

     Source : <0x00086bf4> { _rb_erase + 0x94 } IF !CC JUMP

  12 Target : <0x00086bf2> { _rb_erase + 0x92 }

     Source : <0x00086d9a> { _rb_erase + 0x23a } JUMP.S

  13 Target : <0x00086d98> { _rb_erase + 0x238 }

     Source : <0x00086d26> { _rb_erase + 0x1c6 } IF !CC JUMP

  14 Target : <0x00086d1c> { _rb_erase + 0x1bc }

     Source : <0x00086d0c> { _rb_erase + 0x1ac } IF !CC JUMP

  15 Target : <0x00086cfc> { _rb_erase + 0x19c }

     Source : <0x00086b70> { _rb_erase + 0x10 } IF !CC JUMP

 

Kernel Stack

Stack info:

SP: [0x00deff24] <0x00deff24> /* kernel dynamic memory */

Memory from 0x00deff20 to 00df0000

00deff20: 00000000 [001cc250] 00008000  00002000  00000000  00df0000  001cc250  001cc250

00deff40:<001f1788><ffa00e64> 02000021  001dfa65  001df7cf  001dfa1e  001df7ce  00000000

00deff60: 00000000  00000a3d  00000000  00000a3d  00000000  00000000  00000000  00000000

00deff80: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

00deffa0: 00000000  00000000  00000000  00000000  001f65b8  0023fd20  0023fd2c  00db1940

00deffc0: 00df71c4  00db1940  00db0fa4  00000005  00000001  00db1354  00000001  00000000

00deffe0: 00db1940  00000003  00000000  00000000  00000000  00000000  00000001  00000006

00df0000: 00da3000

Return addresses in stack:

    address : <0x001f1788> [ /lib/libc.so.0 + 0x31788 ]

    address : <0xffa00e64> { _evt_system_call + 0x64 }

Modules linked in: snd_ssm2602 snd_soc_ssm2602 snd_bf5xx_i2s snd_soc_core ac97_bus snd_soc_bf5xx_i2s snd_soc_bf5xx_sport i2c_bfin_twi

Kernel panic - not syncing: Kernel exception

--

 

Follow-ups

 

--- Cliff Cai                                                2009-07-21 01:47:59

kernel crashes at  _rb_erase(),this has nothing to do with audio stuff.

 

Cliff

 

--- Mike Frysinger                                           2009-07-21 01:52:25

a bug still exists somewhere

 

--- Vivi Li                                                  2009-07-28 23:11:43

Not reproducible now.

Close it.

 

--- Robin Getz                                               2009-07-28 23:44:16

Something that mysteriously comes and goes - is still a problem.

 

Do we know _why_ it is not reproducible now? Did a checkin fix it?

 

--- Vivi Li                                                  2009-07-29 03:40:08

Cliff just fixed a bug of power for ssm2602 in bf527-ezkit.

I also add a pull down resistor to SCKE on bf527-ezkit, that will make wake up

from mem stable.

So I close this bug after recent test.

 

--- Robin Getz                                               2009-07-29 08:42:01

Thanks - explaining what changes have been made - and why it causes the bug to

be fix is important.

 

not just "not reproducible".

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.power    application/octet-stream    34280    Vivi Li

Attachments

Outcomes