FAQ: [#5977] adv7393 power test failed in both standby and mem mode(2010)

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

[#5977] adv7393 power test failed in both standby and mem mode

Submitted By: Vivi Li

Open Date

2010-03-18 05:03:03     Close Date

2010-03-22 00:33:18

Priority:

Medium     Assignee:

Michael Hennerich

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2010R1     Release:

Category:

Drivers     Board:

N/A

Processor:

BF537     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.3-2010_Jan_22

App binary format:

N/A     

Summary: adv7393 power test failed in both standby and mem mode

Details:

 

adv7393 power test failed in both standby and mem mode.

 

The last passed version:

--

kernel:    Linux release 2.6.32.9-ADI-2010R1-pre-svn8361, build #4 Thu Mar 4 09:37:58 CST 2010

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

user-dist: release svn-9476, build #53 Thu Mar 4 09:36:16 CST 2010

--

 

The first failed version:

--

kernel:    Linux release 2.6.33-ADI-2010R1-pre-svn8438, build #4 Thu Mar 11 12:31:59 CST 2010

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

user-dist: release svn-9492, build #53 Thu Mar 11 12:30:24 CST 2010

--

 

In adv7393 power test, run video_test in the background and kernel failed to suspend in mem mode. Bellow is the log:

--

root:/> modprobe i2c-bfin-twi

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

root:/> modprobe bfin_adv7393fb

bfin-adv7393 0-002b: fb0: BFIN ADV7393 frame buffer device

bfin-adv7393 0-002b: fb memory address : 0x03f01000

root:/> video_test &

[1] 175 video_test

root:/>

root:/> rtcwake -s 15 -m mem

wakeup from "mem" at Tue Jan  6 18:06:07 1970

PM: Syncing filesystems ... done.

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

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

Suspending console(s) (use no_console_suspend to debug)

PM: suspend of devices complete after 4996.924 msecs

PM: late suspend of devices complete after 0.104 msecs

DMA Channel 0 failed to suspend

PM: early resume of devices complete after 0.012 msecs

PM: resume of devices complete after 0.975 msecs

Restarting tasks ... done.

root:/>

--

 

Run video_test in the background and kernel failed to wake up from standby mode, sometimes kernel will crash here. Bellow is the log:

--

root:/> modprobe i2c-bfin-twi

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

root:/> modprobe bfin_adv7393fb

bfin-adv7393 0-002b: fb0: BFIN ADV7393 frame buffer device

bfin-adv7393 0-002b: fb memory address : 0x03f01000

root:/> video_test &

[1] 178 video_test

root:/>

root:/> rtcwake -s 15 -m standby

wakeup from "standby" at Tue Jan  6 18:13:26 1970

PM: Syncing filesystems ... done.

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

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

Suspending console(s) (use no_console_suspend to debug)

PM: suspend of devices complete after 922.434 msecs

PM: late suspend of devices complete after 0.092 msecs

PM: early resume of devices complete after 0.066 msecs

PM: resume of devices complete after 0.662 msecs

Restarting tasks ... done.

oo:ÿ>ÿÿÿ

--

 

--

root:/> modprobe i2c-bfin-twi

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

root:/> modprobe bfin_adv7393fb

bfin-adv7393 0-002b: fb0: BFIN ADV7393 frame buffer device

bfin-adv7393 0-002b: fb memory address : 0x03f01000

root:/> video_test&

[1] 187 video_test

root:/>

root:/> rtcwake -s 15 -m standby

wakeup from "standby" at Fri Aug 27 17:41:57 1971

PM: Syncing filesystems ... done.

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

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

Suspending console(s) (use no_console_suspend to debug)

PM: suspend of devices complete after 920.539 msecs

PM: late suspend of devices complete after 0.098 msecs

PM: early resume of devices complete after 0.011 msecs

PM: resume of devices complete after 0.720 msecs

Restarting tasks ...

Data access misaligned address violation

<5> - Attempted misaligned data memory or data cache access.

Kernel OOPS in progress

Deferred Exception context

CURRENT PROCESS:

COMM=syslogd PID=150  CPU=0

TEXT = 0x02900040-0x0294ba20        DATA = 0x0294ba40-0x0295f698

BSS = 0x0295f698-0x02961080  USER-STACK = 0x02969f80

 

return address: [0x00035e4c]; contents of:

0x00035e20:  030c  0200  5059  030c  0202  5030  5010  4fa0

0x00035e30:  4e61  5648  b2f1  553b  e3ce  6072  a2f0  5228

0x00035e40:  3238  61fe  6207  206e  ae72  6061 [a390] 0808

0x00035e50:  181b  0000  0000  0000  af22  a3d0  0c00  1814

 

ADSP-BF537-0.2 500(MHz CCLK) 125(MHz SCLK) (mpu off)

Linux version 2.6.33.1-ADI-2010R1-pre-svn8470 (test@uclinux54-adv7393-ad1981-usb1362) (gcc version 4.3.4 (ADI-trunk/svn-3815) ) #12 Wed Mar 17 18:07:29 CST 2010

 

SEQUENCER STATUS:               Not tainted

SEQSTAT: 00002024  IPEND: 8008  IMASK: ffff  SYSCFG: 0006

  EXCAUSE   : 0x24

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

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

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

  logical irq  10 mapped  : <0x000bf594> { _bfin_rtc_interrupt + 0x0 }

  logical irq  16 mapped  : <0x0206c354> /* kernel dynamic memory (maybe user-space) */

  logical irq  18 mapped  : <0x000acbb0> { _bfin_serial_dma_rx_int + 0x0 }

  logical irq  19 mapped  : <0x000ac910> { _bfin_serial_dma_tx_int + 0x0 }

  logical irq  24 mapped  : <0x000babe0> { _bfin_mac_interrupt + 0x0 }

  logical irq  42 mapped  : <0x02ab4000> /* kernel dynamic memory (maybe user-space) */

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

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

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

RETS: <0x00035f2a> { _do_generic_file_read + 0x15e }

PC  : <0x00035e4c> { _do_generic_file_read + 0x80 }

DCPLB_FAULT_ADDR: <0x0004cb4c> { _do_lookup + 0xe0 }

ICPLB_FAULT_ADDR: <0x00035e4c> { _do_generic_file_read + 0x80 }

PROCESSOR STATE:

R0 : 00000002    R1 : 0000000c    R2 : 029e9e14    R3 : 0000333b

R4 : 00000132    R5 : 00000000    R6 : 0000003f    R7 : ffffffc0

P0 : 02851c18    P1 : 029e9e14    P2 : 0004cb16    P3 : 0000330a

P4 : 029bc6c0    P5 : 029e9e14    FP : e9100003    SP : 029cfc34

LB0: 0290d47d    LT0: 0290d47a    LC0: 00000000

LB1: 0290c495    LT1: 0290c494    LC1: 00000000

B0 : 00000000    L0 : 00000000    M0 : 00000004    I0 : 029cd128

B1 : 00000000    L1 : 00000000    M1 : 00000000    I1 : 00000057

B2 : 00000000    L2 : 00000000    M2 : 00000000    I2 : 02969ea0

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

A0.w: 00000000   A0.x: 00000000   A1.w: 00000000   A1.x: 00000000

USP : 02969df0  ASTAT: 02003024

 

Hardware Trace:

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

     Source : <0xffa006c4> { _exception_to_level5 + 0xa4 } JUMP.L

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

     Source : <0xffa004d4> { _bfin_return_from_exception + 0x20 } RTX

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

     Source : <0xffa00578> { _ex_trap_c + 0x74 } JUMP.S

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

     Source : <0xffa00798> { _trap + 0x68 } JUMP (P4)

   4 Target : <0xffa0074e> { _trap + 0x1e }

     Source : <0xffa0074a> { _trap + 0x1a } IF CC JUMP pcrel

   5 Target : <0xffa00730> { _trap + 0x0 }

      FAULT : <0x00035e4c> { _do_generic_file_read + 0x80 } 0xa390

     Source : <0x00035e4a> { _do_generic_file_read + 0x7e } 0x6061

   6 Target : <0x00035e48> { _do_generic_file_read + 0x7c }

     Source : <0x00035f46> { _do_generic_file_read + 0x17a } IF CC JUMP pcrel (BP)

   7 Target : <0x00035f2a> { _do_generic_file_read + 0x15e }

     Source : <0x00035588> { _find_get_page + 0x60 } RTS

   8 Target : <0x00035548> { _find_get_page + 0x20 }

     Source : <0x00091e2e> { _radix_tree_lookup_slot + 0x5a } RTS

   9 Target : <0x00091e2c> { _radix_tree_lookup_slot + 0x58 }

     Source : <0x00091e28> { _radix_tree_lookup_slot + 0x54 } IF CC JUMP pcrel (BP)

  10 Target : <0x00091e26> { _radix_tree_lookup_slot + 0x52 }

     Source : <0x00091de2> { _radix_tree_lookup_slot + 0xe } IF CC JUMP pcrel (BP)

  11 Target : <0x00091dd4> { _radix_tree_lookup_slot + 0x0 }

     Source : <0x00035544> { _find_get_page + 0x1c } JUMP.L

  12 Target : <0x00035528> { _find_get_page + 0x0 }

     Source : <0x00035f26> { _do_generic_file_read + 0x15a } CALL pcrel

  13 Target : <0x00035f22> { _do_generic_file_read + 0x156 }

     Source : <0x00035e46> { _do_generic_file_read + 0x7a } JUMP.S

  14 Target : <0x00035e3c> { _do_generic_file_read + 0x70 }

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

  15 Target : <0xffa01f36> { __cond_resched + 0x1a }

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

Kernel Stack

Stack info:

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

Memory from 0x029cff20 to 029d0000

029cff20: 00000004 [02903ec6] 00008000  00002000  00000000  029d0000  02903ec6  02903ec6

029cff40: 0291a7b8  ffa01078  02001004  0290c495  0290d47d  0290c494  0290d47a  00000000

029cff60: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

029cff80: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

029cffa0: 00000004  00000000  02969ea0  00000057  029cd128  02969df0  02969dfc  02960620

029cffc0: 00000031  00000114  02960b60  029cd348  00000004  00000031  029cd318  00000004

029cffe0: 00000004  02958710  00000031  029cd318  00000004  00000004  00000004  00000006

Return addresses in stack:

Modules linked in: bfin_adv7393fb cfbimgblt cfbcopyarea cfbfillrect i2c_bfin_twi i2c_core

Kernel panic - not syncing: Kernel exception

(...)

--

 

Follow-ups

 

--- Michael Hennerich                                        2010-03-18 06:49:54

Since dev_pm_ops work on i2c bus drivers only use pm_ops

 

Fixed on trunk

 

--- Vivi Li                                                  2010-03-22 00:32:02

OK now.

Close it.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.power    application/octet-stream    35562    Vivi Li

Attachments

Outcomes