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.

Community kernel and DM6446?

Other Parts Discussed in Thread: TVP5146

Hello All,

I followed following link to update kernel on our custom DM6446 board.

http://processors.wiki.ti.com/index.php/Using_the_community_kernel_on_DM6446_with_the_DVSDK

Everything went great and there were no errors but when i tried to test encode demo with DMAI_DEBUG=2

:

Encode demo started.
@0x000eba1d:[T:0x4001fce0] ti.sdo.dmai - [Dmai] Dmai log level set to '2'. Note that calling CERuntime_init after this point may cause unexpected change to DMAI tracing behavior.
@0x0017bfc3:[T:0x4001fce0] ti.sdo.dmai - [Display] Found width=720 height=480, yres_virtual=480,xres_virtual=720, line_length=384
@0x0017c1a8:[T:0x4001fce0] ti.sdo.dmai - [Display] Setting width=720 height=480, yres_virtual=480, xres_virtual=720
@0x0017c29c:[T:0x4001fce0] ti.sdo.dmai - [Display] New width=720, height=480, yres_virtual=480,xres_virtual=720, line_length=384
@0x0017c3b7:[T:0x4001fce0] ti.sdo.dmai - [BufTab] Allocating BufTab for 1 buffers
@0x0017c55e:[T:0x4001fce0] ti.sdo.dmai - [Buffer] Set user pointer 0x42458000 (physical 0x85100000)
@0x0017cb87:[T:0x4001fce0] ti.sdo.dmai - [Display] Display buffer 0 mapped to 0x42458000 has physical address 0x20678
@0x001ab785:[T:0x4001fce0] ti.sdvpfe-capture vpfe-capture: input information not found for the subdev
o.dmai - [Display] Failed FBIO_WAITFORVSYNC (Connection timed out)
Error: Failed to get attribute window buffer
@0x001abe51:[T:0x42c84490] ti.sdo.dmai - [Capture] Available video input:
@0x001abf34:[T:0x42c84490] ti.sdo.dmai - [Capture]  name=Composite
@0x001abfe4:[T:0x42c84490] ti.stvp514x 1-005d: tvp5146 (Version - 0x07) found at 0xba (DaVinci I2C adapter)
do.dmai - [Capture]  name=S-Video
@0x001adca7:[T:0x42c84490] ti.sdo.dmai - [Capture] Setting video input to COMPOSITE
@0x0025a62d:[T:0x42c84490] ti.sdo.dmai - [Capturvpfe-capture vpfe-capture: input information not found for the subdev
e] Available video standard:
@0x0025a75c:[T:0x42c84490] ti.sdo.dmai - [Capture]  name=NTSC, fps=30000/1001
@0x0025a819:[T:0x42c84490] ti.sdo.dmai - [Capture]  name=NTSC-M, fps=30000/1001
@0x0025a8c6:[T:0x42c84490] ti.sdo.dmai - [Capture]  name=NTSC-M-JP, fps=30000/1001
@0x0025a96e:[T:0x42c84490] ti.sdo.dmai - [Capture]  name=NTSC-M-KR, fps=30000/1001
@0x0025aa15:[T:0x42c84490] ti.sdo.dmai - [Capture]  name=PAL, fps=25/1
@0x0025aab5:[T:0x42c84490] ti.sdo.dmai - [Capture]  name=PAL-BG, fps=25/1
@0x0025ab56:[T:0x42c84490] ti.sdo.dmai - [Capture]  name=PAL-H, fps=25/1
@0x0025ac16:[T:0x42c84490] ti.sdo.dmai - [Capture]  name=PAL-I, fps=25/1
@0x0025acc5:[T:0x42c84490] ti.sdo.dmai - [Capture]  name=PAL-DK, fps=25/1
@0x0025ade0:[T:0x42c84490] ti.sdo.dmai - [Capture] Found NTSC std input
@0x0025aff5:[T:0x42c84490] ti.sdo.dmai - [Capture] Available video input:
@0x0025b0d0:[T:0x42c84490] ti.sdo.dmai - [Capture]  name=Composite
@0x0025b212:[T:0x42c84490] ti.sdo.dmai - [Capture]  name=S-Video
@0x0025d05d:[T:0x42c84490] ti.sdo.dmai - [Capture] Setting video input to COMPOSITE
@0x0025e4f6:[T:0x43484490] ti.sdo.dmai - [Venc1] Creating encoder h264enc for max 720x480 bitrate 2000000 ratectrl 4
@0x00261536:[T:0x43484490] ti.sdo.dmai - [Venc1] Setting dynParams size 720x480 bitrate 2000000
@0x002617d5:[T:0x43484490] ti.sdo.dmai - [Venc1] Made XDM_SETPARAMS control call
@0x00261aa6:[T:0x43484490] ti.sdo.dmai - [BufTab] Allocating BufTab for 3 buffers
@0x00261c7a:[T:0x43484490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 691200 at 0x43485000 (0x8789a000 phys)
@0x00261e97:[T:0x43484490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 691200 at 0x43550000 (0x87965000 phys)
@0x00262078:[T:0x43484490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 691200 at 0x4361b000 (0x87a30000 phys)
@0x00263493:[T:0x43ee5490] ti.sdo.dmai - [BufTab] Allocating BufTab for 2 buffers
@0x0026366b:[T:0x43ee5490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 345600 at 0x43ee6000 (0x87afb000 phys)
@0x00263866:[T:0x43ee5490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 345600 at 0x43fb1000 (0x87bc6000 phys)
@0x002f913a:[T:0x42c84490] ti.sdvpfe-capture vpfe-capture: width = 720, height = 480, bpp = 2
o.dmai - [Capturvpfe-capture vpfe-capture: adjusted width = 720, height = 480, bpp = 2, bytesperline = 1440, sizeimage = 691200
e] Available video standard:
@0x002f9266:[T:0x42c84490] ti.sdo.dmai - [Capture]  name=NTSC, fps=30000/1001
@0x002f932b:[T:0x42c84490] ti.sdo.dmai - [Capture]  name=NTSC-M, fps=30000/1001
@0x002f93d6:[T:0x42c84490] ti.sdo.dmai - [Capture]  name=NTSC-M-JP, fps=30000/1001
@0x002f947d:[T:0x42c84490] ti.sdo.dmai - [Capture]  name=NTSC-M-KR, fps=30000/1001
@0x002f9523:[T:0x42c84490] ti.sdo.dmai - [Capture]  name=PAL, fps=25/1
@0x002f95c4:[T:0x42c84490] ti.sdo.dmai - [Capture]  name=PAL-BG, fps=25/1
@0x002f9664:[T:0x42c84490] ti.sdo.dmai - [Capture]  name=PAL-H, fps=25/1
@0x002f9725:[T:0x42c84490] ti.sdo.dmai - [Capture]  name=PAL-I, fps=25/1
@0x002f97d4:[T:0x42c84490] ti.sdo.dmai - [Capture]  name=PAL-DK, fps=25/1
@0x002f9888:[T:0x42c84490] ti.sdo.dmai - [Capture] Foundvpfe-capture vpfe-capture:
Reading 0x4 to ALAW...
 NTSC std input
vpfe-capture vpfe-capture:
Reading 0x0 to CLAMP...
@0x002f9942:[T:vpfe-capture vpfe-capture:
Reading 0x0 to DCSUB...
0x42c84490] ti.svpfe-capture vpfe-capture:
Reading 0x0 to BLKCMP...
do.dmai - [Captuvpfe-capture vpfe-capture:
Reading 0x0 to FPC_ADDR...
re] Cropping winvpfe-capture vpfe-capture:
Reading 0x0 to FPC...
dow boundry leftvpfe-capture vpfe-capture:
Reading 0x0 to FMTCFG...
=0, top=0, widthvpfe-capture vpfe-capture:
Reading 0x0 to COLPTN...
=720, height=480vpfe-capture vpfe-capture:
Reading 0x0 to FMT_HORZ...

@0x002f99e5:[Tvpfe-capture vpfe-capture:
Reading 0x0 to FMT_VERT...
:0x42c84490] ti.vpfe-capture vpfe-capture:
Reading 0x5a0 to HSIZE_OFF...
sdo.dmai - [Captvpfe-capture vpfe-capture:
Reading 0x249 to SDOFST...
ure] Default crovpfe-capture vpfe-capture:
Reading 0x0 to VP_OUT...
pping rect left=vpfe-capture vpfe-capture:
Reading 0x3af84 to SYN_MODE...
0, top=0, width=vpfe-capture vpfe-capture:
Reading 0x59f to HORZ_INFO...
720, height=480
vpfe-capture vpfe-capture:
Reading 0x10001 to VERT_START...
@0x002fe0cc:[T:vpfe-capture vpfe-capture:
Reading 0xef to VERT_LINES...
0x42c84490] ti.sdo.dmai - [Capture] Video input connected size 720x480 pitch 1440
@0x002fe264:[T:0x42c84490] ti.sdo.dmai - [BufTab] Allocating BufTab for 3 buffers
@0x002fef45:[T:0x42c84490] ti.sdo.dmai - [Buffer] Set user pointer 0x4407c000 (physical 0x83100000)
@0x00303a9e:[T:0x42c84490] ti.sdo.dmai - [Dmai] Driver buffer 0 mapped to 0x4407c000 has physical address 0x83100000
@0x00304710:[T:0x42c84490] ti.sdo.dmai - [Buffer] Set user pointer 0x44125000 (physical 0x85e00000)
@0x0030926f:[T:0x42c84490] ti.sdo.dmai - [Dmai] Driver buffer 1 mapped to 0x44125000 has physical address 0x85e00000
@0x00309f0c:[T:0x42c84490] ti.sdo.dmai - [Buffer] Set user pointer 0x441ce000 (physical 0x85f00000)
@0x0030ea9f:[T:0x42c84490] ti.sdo.dmai - [Dmai] Driver buffer 2 mapped to 0x441ce000 has physical address 0x85f00000
@0x00329e40:[T:0x42c84490] ti.sdo.dmai - [Display] Found width=720 height=576, yres_virtual=576,xres_virtual=720, line_length=1440
@0x00329f21:[T:0x42c84490] ti.sdo.dmai - [Display] Setting width=720 height=480, yres_virtual=1440, xres_virtual=720
@0x0032a0a6:[T:0x42c84490] ti.sdo.dmai - [Display] New width=720, height=480, yres_virtual=1440,xres_virtual=720, line_length=1440
@0x0032a17a:[T:0x42c84490] ti.sdo.dmai - [BufTab] Allocating BufTab for 3 buffers
@0x0032a391:[T:0x42c84490] ti.sdo.dmai - [Buffer] Set user pointer 0x44277000 (physical 0x85800000)
@0x0032e12f:[T:0x42c84490] ti.sdo.dmai - [Display] Display buffer 0 mapped to 0x44277000 has physical address 0x4000001
@0x0032e25a:[T:0x42c84490] ti.sdo.dmai - [Buffer] Set user pointer 0x4431fc00 (physical 0x858a8c00)
@0x00331fee:[T:0x42c84490] ti.sdo.dmai - [Display] Display buffer 1 mapped to 0x4431fc00, physical address 0x4000001
@0x00332113:[T:0x42c84490] ti.sdo.dmai - [Buffer] Set user pointer 0x443c8800 (physical 0x85951800)
@0x00335e36:[T:0x42c84490] ti.sdo.dmai - [Display] Display buffer 2 mapped to 0x443c8800, physical address 0x4000001
@0x00336090:[T:0x42c84490] ti.sdo.dmai - [Framecopy] Configuring resizer to copy image of resolution 720x480
@0x0033621c:[T:0x42c84490] ti.sdo.dmai - [Smooth] Configuring smooth job of size 720x480
@0x0036542f:[T:0x42c84490] ti.sdo.dmai - [Display] Failed FBIO_WAITFORVSYNC (Connection timed out)
Error: Failed to get display buffer
@0x00380ffa:[T:0x43484490] ti.sdo.dmai - [Buffer] Free Buffer of size 691200 at 0x43485000 (0x8789a000 phys)
@0x0038141d:[T:0x43484490] ti.sdo.dmai - [Buffer] Free Buffer of size 691200 at 0x43550000 (0x87965000 phys)
@0x00382956:[T:0x43484490] ti.sdo.dmai - [Buffer] Free Buffer of size 691200 at 0x4361b000 (0x87a30000 phys)
@0x00382ec8:[T:0x43ee5490] ti.sdo.dmai - [Buffer] Free Buffer of size 345600 at 0x43ee6000 (0x87afb000 phys)
@0x003832ab:[T:0x43ee5490] ti.sdo.dmai - [Buffer] Free Buffer of size 345600 at 0x43fb1000 (0x87bc6000 phys)
root@dm6446-evm:~/dm6446#

Can Someone give me a tip what is wrong and how can i fix it?

  • Melih Soydemir said:

    @0x0032a391:[T:0x42c84490] ti.sdo.dmai - [Buffer] Set user pointer 0x44277000 (physical 0x85800000)
    @0x0032e12f:[T:0x42c84490] ti.sdo.dmai - [Display] Display buffer 0 mapped to 0x44277000 has physical address 0x4000001
    @0x0032e25a:[T:0x42c84490] ti.sdo.dmai - [Buffer] Set user pointer 0x4431fc00 (physical 0x858a8c00)
    @0x00331fee:[T:0x42c84490] ti.sdo.dmai - [Display] Display buffer 1 mapped to 0x4431fc00, physical address 0x4000001
    @0x00332113:[T:0x42c84490] ti.sdo.dmai - [Buffer] Set user pointer 0x443c8800 (physical 0x85951800)
    @0x00335e36:[T:0x42c84490] ti.sdo.dmai - [Display] Display buffer 2 mapped to 0x443c8800, physical address 0x4000001
    @

    This part looks strange to me why display thread creates 3 buffer? and why their physical address doesn't look correct at all? Any idea?

  • Melih Soydemir said:

    @0x0032a391:[T:0x42c84490] ti.sdo.dmai - [Buffer] Set user pointer 0x44277000 (physical 0x85800000)
    @0x0032e12f:[T:0x42c84490] ti.sdo.dmai - [Display] Display buffer 0 mapped to 0x44277000 has physical address 0x4000001
    @0x0032e25a:[T:0x42c84490] ti.sdo.dmai - [Buffer] Set user pointer 0x4431fc00 (physical 0x858a8c00)
    @0x00331fee:[T:0x42c84490] ti.sdo.dmai - [Display] Display buffer 1 mapped to 0x4431fc00, physical address 0x4000001
    @0x00332113:[T:0x42c84490] ti.sdo.dmai - [Buffer] Set user pointer 0x443c8800 (physical 0x85951800)
    @0x00335e36:[T:0x42c84490] ti.sdo.dmai - [Display] Display buffer 2 mapped to 0x443c8800, physical address 0x4000001
    @

    This part looks strange to me why display thread creates 3 buffer? and why their physical address doesn't look correct at all? Any idea?

    [/quote]

    I tried to change DMAI version to : dmai_2_20_00_15 and codec engine to :codec_engine_2_26_02_11

    the dmai debug output was almost same except:

    @0x002fb391:[T:0x42c84490] ti.sdo.dmai - [Buffer] Set user pointer 0x44341000 (physical 0x82800000)
    @0x002ff02c:[T:0x42c84490] ti.sdo.dmai - [Display] Display buffer 0 mapped to 0x44341000 has physical address 0
    @0x002ff142:[T:0x42c84490] ti.sdo.dmai - [Buffer] Set user pointer 0x443e9c00 (physical 0x828a8c00)
    @0x00302dfd:[T:0x42c84490] ti.sdo.dmai - [Display] Display buffer 1 mapped to 0x443e9c00, physical address 0
    @0x00302f0e:[T:0x42c84490] ti.sdo.dmai - [Buffer] Set user pointer 0x44492800 (physical 0x82951800)
    @0x00306b77:[T:0x42c84490] ti.sdo.dmai - [Display] Display buffer 2 mapped to 0x44492800, physical address 0
    @0x00306e0a:[T:0x42c84490] ti.sdo.dmai - [Framecopy] Configuring resizer to copy image of resolution 720x480

    EC_DEBUG=3 gave me some more information.(also attached total log file)

    0654.test.log

    @2,450,047us: [+0 T:0x41403490 S:0x41402b1c] OM - Memory_getBufferPhysicalAddress> Enter(virtAddr=0x43276000, size=4)
    @2,450,309us: [+1 T:0x41403490 S:0x41402b1c] OM - Memory__getPhysicalAddress> Enter(virtAddr=0x43276000, size=4)
    @2,450,517us: [+1 T:0x41403490 S:0x41402b1c] OM - Memory__getPhysicalAddress> returning physAddr=0x0
    @2,450,733us: [+1 T:0x41403490 S:0x41402b1c] OM - Memory_getBufferPhysicalAddress> CMEM_getPhys(0x43276000) = 0x82800000.
    @2,450,953us: [+0 T:0x41403490 S:0x41402b1c] OM - Memory_getBufferPhysicalAddress> return (0x82800000)
    @2,451,152us: [+2 T:0x41403490 S:0x41402b54] ti.sdo.dmai - [Buffer] Set user pointer 0x43276000 (physical 0x82800000)
    @2,466,812us: [+2 T:0x41403490 S:0x41402b74] ti.sdo.dmai - [Display] Display buffer 0 mapped to 0x43276000 has physical address 0

    Can someone help me to make sense of this part? what is OM? why getBufferPhysicalAddress returns physAddr=0x0?