This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

saUserPtrLoopback&saMmapLoopback run error on EVM3517

Other Parts Discussed in Thread: TVP5146

Hi,

    saUserPtrLoopback and saMmapLoopback example codes does't work on my LogicPD EVM3517 board.  I used the prebuilt-images in ti-sdk-am3517-evm-05.02.00.00.  and boot from SD card .

xload:   x-load-1.51-psp04.02.00.07
uboot:   u-boot-2010.06-psp04.02.00.07.sdk
kernel:  linux-2.6.37-psp04.02.00.07  
rootfs:   Arago rootfs with Matrix GUI
Matrix GUI is OK, but  av-examples-1.0 

saMmapLoopback  get below error message:

   vpfe-capture vpfe-capture: dma_alloc_coherent size 692224 failed    

saUserPtrLoopback  error message:

[ 2324.553375] DMA transaction error with device 0
[ 2324.686828] DMA transaction error with device 0
[ 2324.820312] DMA transaction error with device 0
[ 2324.953796] DMA transaction error with device 0
...
I have  already turned S11.1 and S11.2 switch to ON.   Any suggestion will be appreciated.




  • Texas Instruments X-Loader 1.51 (Jul 5 2011 - 17:42:20)
    Starting X-loader on MMC
    Reading boot sector

    231544 Bytes Read from MMC
    Starting OS Bootloader from MMC...
    Starting OS Bootloader...


    U-Boot 2010.06 (Jul 06 2011 - 13:32:16)

    OMAP34xx/35xx-GP ES1.0, CPU-OPP2 L3-165MHz
    AM3517EVM Board + LPDDR/NAND
    I2C: ready
    DRAM: 256 MiB
    NAND: HW ECC [Kernel/FS layout] selected
    512 MiB
    *** Warning - bad CRC or NAND, using default environment

    In: serial
    Out: serial
    Err: serial
    Die ID #0c0c000100000000015da39610003017
    Net: davinci_emac_initialize
    Ethernet PHY: GENERIC @ 0x00
    DaVinci EMAC
    Hit any key to stop autoboot: 0
    mmc1 is available
    reading boot.scr

    ** Unable to read "boot.scr" from mmc 0:1 **
    reading uImage

    3059984 bytes read
    Booting from mmc ...
    ## Booting kernel from Legacy Image at 82000000 ...
    Image Name: Arago/2.6.37-psp04.02.00.07/am35
    Image Type: ARM Linux Kernel Image (uncompressed)
    Data Size: 3059920 Bytes = 2.9 MiB
    Load Address: 80008000
    Entry Point: 80008000
    Verifying Checksum ... OK
    Loading Kernel Image ... OK
    OK

    Starting kernel ...

    Uncompressing Linux... done, booting the kernel.
    [ 0.000000] Linux version 2.6.37 (jenkins@sdit-build01) (gcc version 4.3.3 (GCC) ) #1 Wed Jul 6 13:36:13 CDT 2011
    [ 0.000000] CPU: ARMv7 Processor [411fc087] revision 7 (ARMv7), cr=10c53c7f
    [ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
    [ 0.000000] Machine: OMAP3517/AM3517 EVM
    [ 0.000000] Reserving 4194304 bytes SDRAM for VRAM
    [ 0.000000] Memory policy: ECC disabled, Data cache writeback
    [ 0.000000] AM3517 ES1.1 (l2cache iva sgx neon isp )
    [ 0.000000] SRAM: Mapped pa 0x40200000 to va 0xfe400000 size: 0x10000
    [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 64000
    [ 0.000000] Kernel command line: console=ttyO2,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait
    [ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
    [ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
    [ 0.000000] Memory: 252MB = 252MB total
    [ 0.000000] Memory: 242404k/242404k available, 19740k reserved, 0K highmem
    [ 0.000000] Virtual kernel memory layout:
    [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
    [ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
    [ 0.000000] DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
    [ 0.000000] vmalloc : 0xd0800000 - 0xf8000000 ( 632 MB)
    [ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
    [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
    [ 0.000000] .init : 0xc0008000 - 0xc003c000 ( 208 kB)
    [ 0.000000] .text : 0xc003c000 - 0xc05b8aac (5619 kB)
    [ 0.000000] .data : 0xc05ba000 - 0xc07715a0 (1758 kB)
    [ 0.000000] NR_IRQS:375
    [ 0.000000] Clocking rate (Crystal/Core/MPU): 26.0/332/600 MHz
    [ 0.000000] omap_hwmod: i2c1: softreset failed (waited 10000 usec)
    [ 0.000000] omap_hwmod: i2c2: softreset failed (waited 10000 usec)
    [ 0.000000] omap_hwmod: i2c3: softreset failed (waited 10000 usec)
    [ 0.000000] Reprogramming SDRC clock to 332000000 Hz
    [ 0.000000] dpll3_m2_clk rate change failed: -22
    [ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96 interrupts
    [ 0.000000] Total of 96 interrupts on 1 active controller
    [ 0.000000] GPMC revision 5.0
    [ 0.000000] Trying to install interrupt handler for IRQ368
    [ 0.000000] Trying to install interrupt handler for IRQ369
    [ 0.000000] Trying to install interrupt handler for IRQ370
    [ 0.000000] Trying to install interrupt handler for IRQ371
    [ 0.000000] Trying to install interrupt handler for IRQ372
    [ 0.000000] Trying to install interrupt handler for IRQ373
    [ 0.000000] Trying to install interrupt handler for IRQ374
    [ 0.000000] Trying to install type control for IRQ375
    [ 0.000000] Trying to set irq flags for IRQ375
    [ 0.000000] OMAP clockevent source: GPTIMER1 at 32768 Hz
    [ 0.000000] Console: colour dummy device 80x30
    [ 0.000000] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
    [ 0.000000] ... MAX_LOCKDEP_SUBCLASSES: 8
    [ 0.000000] ... MAX_LOCK_DEPTH: 48
    [ 0.000000] ... MAX_LOCKDEP_KEYS: 8191
    [ 0.000000] ... CLASSHASH_SIZE: 4096
    [ 0.000000] ... MAX_LOCKDEP_ENTRIES: 16384
    [ 0.000000] ... MAX_LOCKDEP_CHAINS: 32768
    [ 0.000000] ... CHAINHASH_SIZE: 16384
    [ 0.000000] memory used by lock dependency info: 3951 kB
    [ 0.000000] per task-struct memory footprint: 2304 bytes
    [ 0.000000] Calibrating delay loop... 597.64 BogoMIPS (lpj=2334720)
    [ 0.000000] pid_max: default: 32768 minimum: 301
    [ 0.000000] Security Framework initialized
    [ 0.000000] Mount-cache hash table entries: 512
    [ 0.000000] CPU: Testing write buffer coherency: ok
    [ 0.000000] regulator: core version 0.5
    [ 0.000000] regulator: dummy:
    [ 0.000000] NET: Registered protocol family 16
    [ 0.000000] ------------[ cut here ]------------
    [ 0.000000] WARNING: at arch/arm/mach-omap2/pm.c:94 _init_omap_device+0x84/0xa4()
    [ 0.000000] _init_omap_device: could not find omap_hwmod for iva
    [ 0.000000] Modules linked in:
    [ 0.000000] [<c004caf0>] (unwind_backtrace+0x0/0xec) from [<c00742e8>] (warn_slowpath_common+0x4c/0x64)
    [ 0.000000] [<c00742e8>] (warn_slowpath_common+0x4c/0x64) from [<c0074394>] (warn_slowpath_fmt+0x30/0x40)
    [ 0.000000] [<c0074394>] (warn_slowpath_fmt+0x30/0x40) from [<c00543b8>] (_init_omap_device+0x84/0xa4)
    [ 0.000000] [<c00543b8>] (_init_omap_device+0x84/0xa4) from [<c0010a40>] (omap2_common_pm_init+0x30/0x12c)
    [ 0.000000] [<c0010a40>] (omap2_common_pm_init+0x30/0x12c) from [<c003c3c8>] (do_one_initcall+0xc8/0x198)
    [ 0.000000] [<c003c3c8>] (do_one_initcall+0xc8/0x198) from [<c000869c>] (kernel_init+0x98/0x150)
    [ 0.000000] [<c000869c>] (kernel_init+0x98/0x150) from [<c0047d10>] (kernel_thread_exit+0x0/0x8)
    [ 0.000000] ---[ end trace 1b75b31a2719ed1c ]---
    [ 0.000000] OMAP GPIO hardware version 2.5
    [ 0.000000] OMAP GPIO hardware version 2.5
    [ 0.000000] OMAP GPIO hardware version 2.5
    [ 0.000000] OMAP GPIO hardware version 2.5
    [ 0.000000] OMAP GPIO hardware version 2.5
    [ 0.000000] OMAP GPIO hardware version 2.5
    [ 0.000000] omap_mux_init: Add partition: #1: core, flags: 0
    [ 0.000000] Display initialized successfully
    [ 0.000000] _omap_mux_init_gpio: Multiple gpio paths (2) for gpio126
    [ 0.000000] NOR: Unable to find configuration in GPMC
    [ 0.000000] hw-breakpoint: debug architecture 0x4 unsupported.
    [ 0.000000] OMAP DMA hardware revision 4.0
    [ 0.133880] bio: create slab <bio-0> at 0
    [ 0.142974] SCSI subsystem initialized
    [ 0.157012] usbcore: registered new interface driver usbfs
    [ 0.158905] usbcore: registered new interface driver hub
    [ 0.160308] usbcore: registered new device driver usb
    [ 0.167419] omap_device: omap_i2c.1: new worst case activate latency 0: 30517
    [ 0.167602] omap_i2c omap_i2c.1: bus 1 rev3.12 at 400 kHz
    [ 0.172943] omap_device: omap_i2c.1: new worst case deactivate latency 0: 30517
    [ 0.173339] omap_i2c omap_i2c.2: bus 2 rev3.12 at 400 kHz
    [ 0.178924] pca953x 2-0021: interrupt support not compiled in
    [ 0.190338] omap_i2c omap_i2c.3: bus 3 rev3.12 at 400 kHz
    [ 0.196899] input: tca6416-keys as /devices/platform/omap/omap_i2c.3/i2c-3/3-0020/input/input0
    [ 0.199645] pca953x 3-0021: interrupt support not compiled in
    [ 0.209411] Advanced Linux Sound Architecture Driver Version 1.0.23.
    [ 0.214385] Switching to clocksource 32k_counter
    [ 0.376159] omap_device: omap_i2c.3: new worst case activate latency 0: 91552
    [ 0.378082] musb-hdrc: version 6.0, otg (peripheral+host), debug=0
    [ 0.378845] musb-hdrc musb-hdrc.0: dma type: dma-cppi41
    [ 0.380554] <6>Waiting for PHY clock good...
    [ 0.396759] musb-hdrc musb-hdrc.0: USB OTG mode controller at d0810000 using DMA, IRQ 71
    [ 0.398925] NET: Registered protocol family 2
    [ 0.399749] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
    [ 0.401794] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
    [ 0.402648] TCP bind hash table entries: 8192 (order: 6, 360448 bytes)
    [ 0.406829] TCP: Hash tables configured (established 8192 bind 8192)
    [ 0.406951] TCP reno registered
    [ 0.406982] UDP hash table entries: 128 (order: 1, 12288 bytes)
    [ 0.407318] UDP-Lite hash table entries: 128 (order: 1, 12288 bytes)
    [ 0.408508] NET: Registered protocol family 1
    [ 0.410491] RPC: Registered udp transport module.
    [ 0.410522] RPC: Registered tcp transport module.
    [ 0.410522] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 0.411865] NetWinder Floating Point Emulator V0.97 (double precision)
    [ 0.414825] omap_init_opp_table: no hwmod or odev for iva, [9] cannot add OPPs.
    [ 0.418304] AM3517 Linux PSP version 04.02.00.07 (AM3517EVM)
    [ 0.583740] VFS: Disk quotas dquot_6.5.2
    [ 0.583892] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [ 0.587005] JFFS2 version 2.2. (NAND) (SUMMARY) ? 2001-2006 Red Hat, Inc.
    [ 0.588195] msgmni has been set to 473
    [ 0.593627] io scheduler noop registered
    [ 0.593658] io scheduler deadline registered
    [ 0.593902] io scheduler cfq registered (default)
    [ 0.660247] OMAP DSS rev 2.0
    [ 0.660369] omapdss supply vdds_dsi not found, using dummy regulator
    [ 0.661010] OMAP DISPC rev 3.0
    [ 0.661071] omapdss supply vdda_dac not found, using dummy regulator
    [ 0.661193] OMAP VENC rev 2
    [ 0.662689] OMAP DSI rev 1.0
    [ 0.991180] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    [ 1.002349] omap_uart.0: ttyO0 at MMIO 0x4806a000 (irq = 72) is a OMAP UART0
    [ 1.005432] omap_uart.1: ttyO1 at MMIO 0x4806c000 (irq = 73) is a OMAP UART1
    [ 1.007263] omap_uart.2: ttyO2 at MMIO 0x49020000 (irq = 74) is a OMAP UART2
    [ 1.828308] console [ttyO2] enabled
    [ 1.890594] brd: module loaded
    [ 1.921234] loop: module loaded
    [ 1.932922] mtdoops: mtd device (mtddev=name/number) must be supplied
    [ 1.941925] omap2-nand driver initializing
    [ 1.946899] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xbc (Micron )
    [ 1.954071] Creating 5 MTD partitions on "omap2-nand.0":
    [ 1.959747] 0x000000000000-0x000000080000 : "xloader-nand"
    [ 1.976806] 0x000000080000-0x000000240000 : "uboot-nand"
    [ 1.991180] 0x000000240000-0x000000280000 : "params-nand"
    [ 2.004699] 0x000000280000-0x000000780000 : "linux-nand"
    [ 2.020721] 0x000000780000-0x000020000000 : "jffs2-nand"
    [ 2.347473] davinci_mdio davinci_mdio: davinci mdio revision 1.5
    [ 2.353790] davinci_mdio davinci_mdio: detected phy mask fffffffe
    [ 2.364074] davinci_mdio: probed
    [ 2.367492] davinci_mdio davinci_mdio: phy[0]: device ffffffff:00, driver SMSC LAN8710/LAN8720
    [ 2.377685] vcan: Virtual CAN interface driver
    [ 2.382476] CAN device driver interface
    [ 2.386566] TI High End CAN Controller Driver 0.7
    [ 2.395233] ti_hecc ti_hecc: device registered (reg_base=d0890000, irq=24)
    [ 2.405700] usbcore: registered new interface driver cdc_ether
    [ 2.413421] usbcore: registered new interface driver dm9601
    [ 2.419403] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [ 2.426696] ehci-omap.0 supply hsusb0 not found, using dummy regulator
    [ 3.441162] ehci-omap ehci-omap.0: OMAP-EHCI Host Controller
    [ 3.449554] ehci-omap ehci-omap.0: new USB bus registered, assigned bus number 1
    [ 3.458312] ehci-omap ehci-omap.0: irq 77, io mem 0x48064800
    [ 3.472503] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
    [ 3.479614] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [ 3.486846] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 3.494476] usb usb1: Product: OMAP-EHCI Host Controller
    [ 3.500152] usb usb1: Manufacturer: Linux 2.6.37 ehci_hcd
    [ 3.505889] usb usb1: SerialNumber: ehci-omap.0
    [ 3.517578] hub 1-0:1.0: USB hub found
    [ 3.521881] hub 1-0:1.0: 3 ports detected
    [ 3.559570] Initializing USB Mass Storage driver...
    [ 3.565795] usbcore: registered new interface driver usb-storage
    [ 3.572235] USB Mass Storage support registered.
    [ 3.578491] usbcore: registered new interface driver usbtest
    [ 3.588775] mice: PS/2 mouse device common for all mice
    [ 3.602966] input: TSC2004 Touchscreen as /devices/virtual/input/input1
    [ 3.630401] rtc-s35390a 1-0030: rtc core: registered rtc-s35390a as rtc0
    [ 3.638671] i2c /dev entries driver
    [ 3.649719] Linux video capture interface: v2.00
    [ 3.657623] usbcore: registered new interface driver uvcvideo
    [ 3.663757] USB Video Class driver (v1.0.0)
    [ 3.668212] vpfe_init
    [ 3.671417] vpfe-capture vpfe-capture: v4l2 device registered
    [ 3.680389] vpfe-capture vpfe-capture: video device registered
    [ 3.690216] tvp514x 3-005c: tvp514x 3-005c decoder driver registered !!
    [ 3.702636] tvp514x 3-005c: tvp5146 (Version - 0x03) found at 0xb8 (OMAP I2C adapter)
    [ 3.720184] vpfe-capture vpfe-capture: v4l2 sub device tvp5146 registered
    [ 3.729217] vpfe_register_ccdc_device: DM6446 CCDC
    [ 3.734558] DM6446 CCDC is registered with vpfe.
    [ 3.741058] omap_device: omap_wdt.-1: new worst case activate latency 0: 30517
    [ 3.751007] OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
    [ 3.757507] omap_device: omap_wdt.-1: new worst case deactivate latency 0: 30517
    [ 3.782501] usbcore: registered new interface driver usbhid
    [ 3.788513] usbhid: USB HID core driver
    [ 3.797729] usbcore: registered new interface driver snd-usb-audio
    [ 3.810852] OMAP3517 / AM3517 EVM SoC init
    [ 3.818176] AIC23 Audio Codec 0.1
    [ 3.833831] asoc: tlv320aic23-hifi <-> omap-mcbsp-dai.0 mapping ok
    [ 3.852478] ALSA device list:
    [ 3.855712] #0: am3517evm
    [ 3.858642] oprofile: hardware counters not available
    [ 3.864013] oprofile: using timer interrupt.
    [ 3.869201] TCP cubic registered
    [ 3.872741] Initializing XFRM netlink socket
    [ 3.877502] NET: Registered protocol family 17
    [ 3.882415] NET: Registered protocol family 15
    [ 3.887176] can: controller area network core (rev 20090105 abi 8)
    [ 3.894104] NET: Registered protocol family 29
    [ 3.898986] can: raw protocol (rev 20090105)
    [ 3.903717] can: broadcast manager protocol (rev 20090105 t)
    [ 3.910522] Registering the dns_resolver key type
    [ 3.916168] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 1
    [ 3.926910] ThumbEE CPU extension supported.
    [ 3.947753] Power Management for TI OMAP3.
    [ 4.004241] clock: disabling unused clocks to save power
    [ 4.042938] mmc0: new high speed SDHC card at address b368
    [ 4.052612] mmcblk0: mmc0:b368 USD 3.75 GiB
    [ 4.065887] mmcblk0: p1 p2 p3
    [ 4.096618] rtc-s35390a 1-0030: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
    [ 4.106018] omap_vout omap_vout: Buffer Size = 3686400
    [ 4.115325] omap_vout omap_vout: : registered and initialized video device 1
    [ 4.122894] omap_vout omap_vout: Buffer Size = 3686400
    [ 4.131744] omap_vout omap_vout: : registered and initialized video device 2
    [ 4.158721] EXT3-fs: barriers not enabled
    [ 9.908477] kjournald starting. Commit interval 5 seconds
    [ 9.914825] EXT3-fs (mmcblk0p2): warning: maximal mount count reached, running e2fsck is recommended
    [ 10.002746] EXT3-fs (mmcblk0p2): using internal journal
    [ 10.008331] EXT3-fs (mmcblk0p2): recovery complete
    [ 10.372558] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
    [ 10.380554] VFS: Mounted root (ext3 filesystem) on device 179:2.
    [ 10.387176] Freeing init memory: 208K
    INIT: version 2.86 booting
    [ 10.738922] omap_device: omap_i2c.3: new worst case deactivate latency 0: 183105
    Please wait: booting...
    Starting udev
    [ 11.702697] udevd (645): /proc/645/oom_adj is deprecated, please use /proc/645/oom_score_adj instead.
    [ 27.957214] EXT3-fs: barriers not enabled
    [ 27.963897] kjournald starting. Commit interval 5 seconds
    [ 27.970123] EXT3-fs (mmcblk0p3): warning: maximal mount count reached, running e2fsck is recommended
    [ 28.046569] EXT3-fs (mmcblk0p3): using internal journal
    [ 28.052215] EXT3-fs (mmcblk0p3): recovery complete
    [ 28.057342] EXT3-fs (mmcblk0p3): mounted filesystem with ordered data mode
    Remounting root file system...
    Caching udev devnodes
    Populating dev cachemv: cannot rename '/tmp/devices': No such file or directory
    ALSA: Restoring mixer settings...
    Configuring network interfaces... [ 36.245178] davinci_mdio davinci_mdio: resetting idled controller
    [ 36.252410] net eth0: attached PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=ffffffff:00, id=7c0f1)
    udhcpc (v1.13.2) started
    Sending discover...
    Sending discover...
    Sending discover...
    No lease, forking to background
    done.
    Setting up IP spoofing protection: rp_filter.
    Thu Jul 7 14:53:00 UTC 2011
    INIT: Entering runlevel: 5
    Starting system message bus: dbus.
    Starting Hardware abstraction layer hald
    Starting Dropbear SSH server: dropbear.
    Starting telnet daemon.
    Starting syslogd/klogd: done
    Starting thttpd.
    Starting PVR
    [ 51.695129]
    [ 51.695159] =============================================
    [ 51.702392] [ INFO: possible recursive locking detected ]
    [ 51.708068] 2.6.37 #1
    [ 51.710449] ---------------------------------------------
    [ 51.716094] pvrsrvinit/1946 is trying to acquire lock:
    [ 51.721496] (psPVRSRVMutex){+.+.+.}, at: [<bf00bbc8>] PVRMMapRegisterArea+0x14/0x68 [pvrsrvkm]
    [ 51.730834]
    [ 51.730834] but task is already holding lock:
    [ 51.736968] (psPVRSRVMutex){+.+.+.}, at: [<bf00eb34>] PVRSRV_BridgeDispatchKM+0x20/0x16c [pvrsrvkm]
    [ 51.746673]
    [ 51.746673] other info that might help us debug this:
    [ 51.753509] 1 lock held by pvrsrvinit/1946:
    [ 51.757904] #0: (psPVRSRVMutex){+.+.+.}, at: [<bf00eb34>] PVRSRV_BridgeDispatchKM+0x20/0x16c [pvrsrvkm]
    [ 51.768066]
    [ 51.768066] stack backtrace:
    [ 51.772705] [<c004caf0>] (unwind_backtrace+0x0/0xec) from [<c00a43d0>] (__lock_acquire+0xf98/0x18d0)
    [ 51.782318] [<c00a43d0>] (__lock_acquire+0xf98/0x18d0) from [<c00a4ddc>] (lock_acquire+0xd4/0xf4)
    [ 51.791656] [<c00a4ddc>] (lock_acquire+0xd4/0xf4) from [<c0426984>] (mutex_lock_nested+0x5c/0x2d8)
    [ 51.801147] [<c0426984>] (mutex_lock_nested+0x5c/0x2d8) from [<bf00bbc8>] (PVRMMapRegisterArea+0x14/0x68 [pvrsrvkm])
    [ 51.812377] [<bf00bbc8>] (PVRMMapRegisterArea+0x14/0x68 [pvrsrvkm]) from [<bf00e944>] (OSAllocPages_Impl+0x68/0xa4 [pvrsrvkm])
    [ 51.824523] [<bf00e944>] (OSAllocPages_Impl+0x68/0xa4 [pvrsrvkm]) from [<bf0052e8>] (BM_ImportMemory+0xe4/0x290 [pvrsrvkm])
    [ 51.836364] [<bf0052e8>] (BM_ImportMemory+0xe4/0x290 [pvrsrvkm]) from [<bf009b0c>] (RA_Alloc+0xb4/0x288 [pvrsrvkm])
    [ 51.847442] [<bf009b0c>] (RA_Alloc+0xb4/0x288 [pvrsrvkm]) from [<bf004cb0>] (BM_Alloc+0xa8/0x280 [pvrsrvkm])
    [ 51.857910] [<bf004cb0>] (BM_Alloc+0xa8/0x280 [pvrsrvkm]) from [<bf00aac0>] (AllocDeviceMem+0x80/0x108 [pvrsrvkm])
    [ 51.868927] [<bf00aac0>] (AllocDeviceMem+0x80/0x108 [pvrsrvkm]) from [<bf00afd8>] (_PVRSRVAllocDeviceMemKM+0x80/0x158 [pvrsrvkm])
    [ 51.881347] [<bf00afd8>] (_PVRSRVAllocDeviceMemKM+0x80/0x158 [pvrsrvkm]) from [<bf015190>] (PVRSRVAllocDeviceMemBW+0x9c/0x1a0 [pvrsrvkm])
    [ 51.894500] [<bf015190>] (PVRSRVAllocDeviceMemBW+0x9c/0x1a0 [pvrsrvkm]) from [<bf012d24>] (BridgedDispatchKM+0xd4/0x12c [pvrsrvkm])
    [ 51.907135] [<bf012d24>] (BridgedDispatchKM+0xd4/0x12c [pvrsrvkm]) from [<bf00ec28>] (PVRSRV_BridgeDispatchKM+0x114/0x16c [pvrsrvkm])
    [ 51.919830] [<bf00ec28>] (PVRSRV_BridgeDispatchKM+0x114/0x16c [pvrsrvkm]) from [<c0111f34>] (do_vfs_ioctl+0x4e0/0x54c)
    [ 51.931091] [<c0111f34>] (do_vfs_ioctl+0x4e0/0x54c) from [<c0111ff0>] (sys_ioctl+0x50/0x74)
    [ 51.939880] [<c0111ff0>] (sys_ioctl+0x50/0x74) from [<c0046cc0>] (ret_fast_syscall+0x0/0x3c)
    Starting Matrix GUI application.

    _____ _____ _ _
    | _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
    | | _| .'| . | . | | __| _| . | | | -_| _| _|
    |__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
    |___| |___|

    Arago Project http://arago-project.org am3517-evm ttyO2

    Arago 2011.06 am3517-evm ttyO2

    am3517-evm login: root
    root@am3517-evm:~# /test/saUserPtrLoopback
    Capture: Current Input: Composite
    [ 72.825134] tvp514x 3-005c: tvp5146 (Version - 0x03) found at 0xb8 (OMAP I2C adapter)
    [ 74.113464] vpfe-capture vpfe-capture: vpfe_doioctl:error in setting input in decoder
    VIDIOC_S_INPUT: Invalid argument
    Capture: Input changed to: Composite
    Capture: Current standard: NTSC

    Mem-Allocator: Opened Channel
    Display: Number of requested buffers = 6
    Display: Init done successfully


    Display: Opened Channel
    Display: Capable of streaming
    Display: Number of requested buffers = 4
    [ 74.224395] DMA transaction error with device 0
    Display: Init do[ 74.229522] vpfe-capture vpfe-capture: width = 720, height = 480, bpp = 2
    [ 74.237915] vpfe-capture vpfe-capture: adjusted width = 720, height = 480, bpp = 2, bytesperline = 1440, sizeimage = 691200


    Capture: Capable of streaming
    Capture: Number of requested buffers = 6
    Capture: Init done successfully

    Display: Stream on...
    Capture: Stream on...
    Capture: Stream on...
    [ 74.386047] DMA transaction error with device 0
    [ 82.243377] DMA transaction error with device 0
    [ 90.101959] DMA transaction error with device 0
    [ 97.960540] DMA transaction error with device 0
    [ 105.819183] DMA transaction error with device 0
    [ 113.677825] DMA transaction error with device 0
    [ 121.536437] DMA transaction error with device 0
    [ 129.395050] DMA transaction error with device 0
    [ 137.255493] DMA transaction error with device 0
    [ 145.112457] DMA transaction error with device 0
    [ 152.970947] DMA transaction error with device 0
    [ 160.829589] DMA transaction error with device 0
  • Due to some reason S_INPUT is failing for you,

    [   74.113464] vpfe-capture vpfe-capture: vpfe_doioctl:error in setting input in decoder
    VIDIOC_S_INPUT: Invalid argument


    Please make sure that,

    - Input is connected to the EVM
    - Valid input analog standard is available on the input.

    Also, I believe this error is coming from Display driver and not the capture driver, recently I have fixed same bug in Display driver.
    I recommend you to use latest tip of the Arago repo -

    http://arago-project.org/git/projects/?p=linux-omap3.git;a=shortlog;h=refs/heads/OMAPPSP_04.02.00.07

    Thanks,
    Vaibhav
  • :-)  It works!  

    http://arago-project.org/git/projects/?p=linux-omap3.git;a=commitdiff;h=4d640ae8cb8bb3a51675208caaf45142e7348b08;hp=a0c24275c1df107e6dbc491f229db5e4a5f9d47b

  • Great !!!

    Thanks,

    Vaibhav

  • i  need some help ,i check out this version   and rebuild uImage,but my capture is not work good,it look like as below:

    i dont know why the Frame Rate is very low, i am sure the hardware is connect correct. the log is as below:

    root@am3517-evm:~# saUserPtrLoopback
    Capture: Current Input: Composite
    [ 216.333770] tvp514x 3-005c: tvp5146 (Version - 0x03) found at 0xb8 (OMAP I2C adapter)
    Capture: Input changed to: Composite
    Capture: Current standard: NTSC

    Mem-Allocator: Opened Channel
    Display: Number of requested buffers = 6
    Display: Init done successfully


    Display: Opened Channel
    Display: Capable of streaming
    Display: Number of requested buffers = 4
    Display: Init do[ 216.871215] vpfe-capture vpfe-capture: width = 720, height = 480, bpp = 2
    [ 216.879547] vpfe-capture vpfe-capture: adjusted width = 720, height = 480, bpp = 2, bytesperline = 1440, sizeimage = 691200


    Capture: Capable of streaming
    Capture: Number of requested buffers = 6
    Capture: Init done successfully

    Display: Stream on...
    Capture: Stream on...
    Capture: Stream on...

    Display: Stream off!!
    Capture: Stream off!!

    Loopback Successful

    Timing Analysis:
    ----------------
    Before Time: 1365168754 191314
    After Time: 1365168985 123291
    Result Time: 230 931977
    Calculated Frame Rate: 4 Fps