[#5601] Remove blackfin_cam module will make kernel hang for VS6624 and adv7183

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

[#5601] Remove blackfin_cam module will make kernel hang for VS6624 and adv7183

Submitted By: Vivi Li

Open Date

2009-10-13 04:10:50     Close Date

2009-10-15 03:50:26

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.1-09r1-rc9

App binary format:

N/A     

Summary: Remove blackfin_cam module will make kernel hang for VS6624 and adv7183

Details:

 

Remove blackfin_cam module will make kernel hang for VS6624 and adv7183.

 

Config file is attached for VS6624 on bf537-stamp and bellow is the log:

--

U-Boot 2008.10-svn1956 (ADI-2009R1-rc2) (Jul  2 2009 - 20:05:22)

 

CPU:   ADSP bf537-0.2 (Detected Rev: 0.2) (bypass boot)

Board: ADI BF537 stamp board

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

Clock: VCO: 500 MHz, Core: 500 MHz, System: 125 MHz

RAM:   64 MB

Flash:  4 MB

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

MAC:   00:E0:22:FE:47:D4

Hit any key to stop autoboot:  0

bfin> run ramboot

Using Blackfin EMAC device

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'uImage'.

Load address: 0x1000000

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

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

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

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

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

done

Bytes transferred = 4367209 (42a369 hex)

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

   Image Name:   bf537-2.6.31.3-ADI-2010R1-pre-sv

   Created:      2009-10-13   8:29:27 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    4367145 Bytes =  4.2 MB

   Load Address: 00100000

   Entry Point:  0028785c

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 0028785c

Linux version 2.6.31.3-ADI-2010R1-pre-svn7591 (test@uboot34-bf537stamp) (gcc version 4.1.2 (ADI svn)) #75 Tue Oct 13 16:29:14 CS9

register early platform devices

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart0] enabled

early printk enabled on early_BFuart0

Limiting kernel memory to 56MB due to anomaly 05000263

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00100000-0x002034a0

  rodata    = 0x002034a0-0x0025939c

  bss       = 0x0025a000-0x0026aac4

  data      = 0x0026aac4-0x0027c000

    stack   = 0x0027a000-0x0027c000

  init      = 0x0027c000-0x009b7000

  available = 0x009b7000-0x037ff000

  DMA Zone  = 0x03e00000-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-BF537 Rev 0.2

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

Processor Speed: 500 MHz core clock and 125 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: 14223

Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart0,57600 console=ttyBF0,57600 ip=10.100.4.50f

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

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

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

Memory available: 46824k/65536k RAM, (7404k init code, 1037k kernel code, 483k data, 2048k dma, 7740k reserved)

NR_IRQS:98

Configuring Blackfin Priority Driven Interrupts

console [ttyBF0] enabled, bootconsole disabled

console [ttyBF0] enabled, bootconsole disabled

Calibrating delay loop... 997.37 BogoMIPS (lpj=1994752)

Security Framework initialized

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 (37 KB free)

NET: Registered protocol family 16

Blackfin DMA Controller

stamp_init(): registering device resources

bio: create slab <bio-0> at 0

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 91

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

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 [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=24)@sclk=125MHz)

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

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

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

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

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-01 00:18:56 UTC (1136)

dma_alloc_init: dma_page @ 0x028eb000 - 512 pages at 0x03e00000

IP-Config: Complete:

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

     host=bf537-stamp, domain=, nis-domain=(none),

     bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=

Freeing unused kernel memory: 7404k 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.15.1 (2009-10-13 16:10:56 CST) hush - the humble shell

 

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

 

root:/> modprobe videodev

Linux video capture interface: v2.00

root:/> modprobe blackfin-cam

VS6624: Firmware Version 0.12

VS6624: Patch Version 0.0

VS6624: detected client on address 0x10

VS6624: V4L driver Blackfin CMOS Camera now ready

root:/> modprobe -r blackfin_cam

NULL pointer access

Kernel OOPS in progress

Deferred Exception context

CURRENT PROCESS:

COMM=modprobe PID=167

CPU = 0

TEXT = 0x02b00000-0x02b4e8ac        DATA = 0x02a208ac-0x02a24114

BSS = 0x02a24114-0x02bc0000  USER-STACK = 0x02bdfe90

 

return address: [0x001b4e24]; contents of:

0x001b4e00:  3006  0127  05ab  0010  05e3  e800  0004  3239

0x001b4e10:  3020  e122  ff3c  e12b  00c4  e438  0019  5050

0x001b4e20:  3211  3200 [e511] 0031  e12a  0064  5b17  0844

0x001b4e30:  181c  3269  e125  1001  e126  1001  441d  4f45

 

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

Linux version 2.6.31.3-ADI-2010R1-pre-svn7591 (test@uboot34-bf537stamp) (gcc version 4.1.2 (ADI svn)) #75 Tue Oct 13 16:29:14 CS9

 

SEQUENCER STATUS:               Not tainted

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

  EXCAUSE   : 0x27

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

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

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

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

  logical irq  16 mapped  : <0x001b59a0> { _bfin_twi_interrupt_entry + 0x0 }

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

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

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

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

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

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

RETS: <0x001a6270> { _class_for_each_device + 0x3c }

PC  : <0x001b4e24> { ___detach_adapter + 0x1c }

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

ICPLB_FAULT_ADDR: <0x001b4e24> { ___detach_adapter + 0x1c }

PROCESSOR STATE:

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

R4 : 028ed24c    R5 : 02ac21ec    R6 : 00000000    R7 : 02a2de64

P0 : 00000000    P1 : 00000000    P2 : ffffff3c    P3 : 000000c4

P4 : 02a2debc    P5 : 001b4e08    FP : 02ac21ec    SP : 02a2dd40

LB0: 0292e361    LT0: 0292e354    LC0: 00000000

LB1: 0012a904    LT1: 0012a8fc    LC1: 00000030

B0 : 00000000    L0 : 00000000    M0 : 00000000    I0 : 02ac53fe

B1 : 00000000    L1 : 00000000    M1 : 02ac5164    I1 : 02be9940

B2 : 00000000    L2 : 00000000    M2 : 02be8ed4    I2 : 00000000

B3 : 00000000    L3 : 00000000    M3 : 02be8edc    I3 : 00000000

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

USP : 02bdfb54  ASTAT: 02000002

 

Hardware Trace:

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

     Source : <0xffa00788> { _exception_to_level5 + 0xa4 } CALL pcrel

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

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

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

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

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

     Source : <0xffa004a0> { _ex_workaround_261 + 0x1c } JUMP.S

   4 Target : <0xffa00484> { _ex_workaround_261 + 0x0 }

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

   5 Target : <0xffa00814> { _trap + 0x20 }

     Source : <0xffa00810> { _trap + 0x1c } IF !CC JUMP

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

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

   7 Target : <0xffa00578> { _bfin_return_from_exception + 0x0 }

     Source : <0xffa00496> { _ex_workaround_261 + 0x12 } IF !CC JUMP

   8 Target : <0xffa00484> { _ex_workaround_261 + 0x0 }

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

   9 Target : <0xffa00814> { _trap + 0x20 }

     Source : <0xffa00810> { _trap + 0x1c } IF !CC JUMP

  10 Target : <0xffa007f4> { _trap + 0x0 }

     Source : <0x001b4e22> { ___detach_adapter + 0x1a } 0x3200

  11 Target : <0x001b4e08> { ___detach_adapter + 0x0 }

     Source : <0x001a626e> { _class_for_each_device + 0x3a } CALL (P5)

  12 Target : <0x001a6268> { _class_for_each_device + 0x34 }

     Source : <0x001a606e> { _class_dev_iter_next + 0x36 } RTS

  13 Target : <0x001a6066> { _class_dev_iter_next + 0x2e }

     Source : <0x001a6058> { _class_dev_iter_next + 0x20 } IF !CC JUMP

  14 Target : <0x001a604a> { _class_dev_iter_next + 0x12 }

     Source : <0x0020218a> { _klist_next + 0x5e } RTS

  15 Target : <0x00202182> { _klist_next + 0x56 }

     Source : <0x0020217c> { _klist_next + 0x50 } IF !CC JUMP

Kernel Stack

Stack info:

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

Memory from 0x02a2df20 to 02a2e000

02a2df20: 00000000 [0298c5d4] 00008000  00002000  00000000  02a2e000  0298c5d4  0298c5d4

02a2df40:<02b0acf4><ffa01128> 02001025  0292d7cf  0292e361  0292d7ce  0292e354  00000000

02a2df60: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

02a2df80: 00000000  00000000  00000000  00000000  00000000  02be8edc  02be8ed4  02ac5164

02a2dfa0: 00000000  00000000  00000000  02be9940  02ac53fe  02bdfb54  02bdfb60  02bea380

02a2dfc0: 02ac5148  02be9940  02a25408  0298c5c8  00000081  00000000  02ac50cc  00000000

02a2dfe0: 00000001  00000002  00000000  00000080  02ac5164  02ac5164  00000081  00000006

Return addresses in stack:

    address : <0x02b0acf4> [ /bin/busybox + 0xacf4 ]

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

Modules linked in: blackfin_cam(-) vs6624 videodev v4l1_compat

Kernel panic - not syncing: Kernel exception

Hardware Trace:

Stack info:

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

FP: (0x02a2de6c)

Memory from 0x02a2dc50 to 02a2e000

02a2dc50: 02a2dc58  000000c4 [0022ff74]<0010ee08> 0025dd40  0022ff74  0025f3c2  0025f3c2

02a2dc70: 0025f3c2  02a2dc94  02a2dc94 <0010431e> 02a2dd40  ffe02014  000000c4  0022fa44

02a2dc90: 000200d0  0000003f  ffffffff <001328ec> 02a2dd68  0003000b  020033e0  00265a68

02a2dcb0: 02011614  000000d0  020457d0  0000ffff <0014d112> 00265a60  00265a60 <0014d2f0>

02a2dcd0: 02045760  02a5edb4  020457d0  02a2dd68  0000ffff <001551ec> 02a5edb4  02a5edb4

02a2dcf0:<001465f0> 02045760  02011614 <00146606><0014c528> 02a5edb4 <00146654> 02a3400b

02a2dd10: 02a2de2c <02a2dd78><00146686><ffa0078c> 0025c000  00008008  00002027  02ac21ec

02a2dd30: 028ed24c  02273c40  00000200  00000480  00000480  00008008  00002027  00000000

02a2dd50: 02a2de1c  00000480  001b4e24 <001a6270> 00000000  02000002  0012a904  0292e361

02a2dd70: 0012a8fc  0292e354  00000030  00000000  00000000  00000000  00000000  00000000

02a2dd90: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

02a2ddb0: 02be8edc  02be8ed4  02ac5164  00000000  00000000  00000000  02be9940  02ac53fe

02a2ddd0: 02bdfb54  02ac21ec  001b4e08  02a2debc  000000c4  ffffff3c  00000000  00000000

02a2ddf0: 02a2de64  00000000  02ac21ec  028ed24c  00000000  ffffff3c  ffffff3c  00000000

02a2de10: 00000000  00000000  00000006  00000001 <001a604a> 02a2de64  02a2debc  02bdfb60

02a2de30:<001a6270> 001b4e08  02a2debc  02be9940  02a2de64  00000000  02ac21ec  00000001

02a2de50:<001955b8> 02bdfb60 <001055f6> 00000000  0026b79c  0203c8f0  028ed2d0 (00000000)

02a2de70:<001b4080> 02ac208c  02ac21ec  00274a10  00000000  02ac208c  02a2debc  00000000

02a2de90: 001b4e08 <02ac1140> 00000000  ffffe000  00000001  00000000  02ac5171 <0012a9ba>

02a2deb0: 00000000  02bdfb04  00000000  63616c62  6e69666b  6d61635f  00000000  00000000

02a2ded0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

02a2def0: 00000000  00000000  00000000 <ffa00994> 0012a884  00000081  00000000  ffc00014

02a2df10: 02ac5370  00000034  00000002  00000001  00000000  0298c5d4  00008000  00002000

02a2df30: 00000000  02a2e000  0298c5d4  0298c5d4 <02b0acf4><ffa01128> 02001025  0292d7cf

02a2df50: 0292e361  0292d7ce  0292e354  00000000  00000000  00000000  00000000  00000000

02a2df70: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

02a2df90: 00000000  02be8edc  02be8ed4  02ac5164  00000000  00000000  00000000  02be9940

02a2dfb0: 02ac53fe  02bdfb54  02bdfb60  02bea380  02ac5148  02be9940  02a25408  0298c5c8

02a2dfd0: 00000081  00000000  02ac50cc  00000000  00000001  00000002  00000000  00000080

02a2dff0: 02ac5164  02ac5164  00000081  00000006

Return addresses in stack:

    address : <0x0010ee08> { _panic + 0x4c }

    address : <0x0010431e> { _trap_c + 0x372 }

    address : <0x001328ec> { _rmqueue_bulk + 0x2c }

    address : <0x0014d112> { _d_lookup + 0x22 }

    address : <0x0014d2f0> { _d_alloc + 0x1c }

    address : <0x001551ec> { _simple_lookup + 0x30 }

    address : <0x001465f0> { _real_lookup + 0x78 }

    address : <0x00146606> { _real_lookup + 0x8e }

    address : <0x0014c528> { _d_kill + 0x38 }

    address : <0x00146654> { _do_lookup + 0x14 }

    address : <0x02a2dd78> /* kernel dynamic memory */

    address : <0x00146686> { _do_lookup + 0x46 }

    address : <0xffa0078c> { _exception_to_level5 + 0xa8 }

    address : <0x001a6270> { _class_for_each_device + 0x3c }

    address : <0x001a604a> { _class_dev_iter_next + 0x12 }

    address : <0x001a6270> { _class_for_each_device + 0x3c }

    address : <0x001955b8> { _gpio_unexport + 0x24 }

    address : <0x001055f6> { _bfin_gpio_free + 0x1a }

   frame  1 : <0x001b4080> { _i2c_del_driver + 0x30 }

    address : <0x02ac1140> { :blackfin_cam:_cleanup_module + 0x2c }

    address : <0x0012a9ba> { _sys_delete_module + 0x136 }

    address : <0xffa00994> { _system_call + 0x68 }

    address : <0x02b0acf4> [ /bin/busybox + 0xacf4 ]

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

 

--

 

Follow-ups

 

--- Michael Hennerich                                        2009-10-13 04:27:40

assign to me

 

--- Michael Hennerich                                        2009-10-13 04:56:14

fixed on trunk.

 

--- Vivi Li                                                  2009-10-15 03:50:26

OK now. close it.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.camera    application/octet-stream    29464    Vivi Li

Attachments

Outcomes