Hi Sanchayan,
I ran into the same timeout issue when using the internal video decoder (VADC/VDEC) on Vybrid Platform. I have tested this on 4.1 Kernel with VADC/VDEC driver and VIU driver modified to also work with internal video decoder on Vybrid. See log below for reference.
I was wondering if you had found a solution to the above issue? Any pointers will be greatly appreciated.
I would be happy to send patches of all my changes (Incl. VDEC, VADC, VIU Driver, Clock changes) for review, in case anyone has any suggestions to resolve the above issue.
# gst-launch v4l2src device=/dev/video0 ! fakesink
Setting pipeline to PAUSED ...
viu: viu: open (minor=0)
viu: open minor=0 type=vid-cap users=1
viu: Open: fh=0x84c59800, dev=0x859ca210, dev->vidq=0x859ca278
viu: Open: list_empty queued=1
viu: Open: list_empty active=1
viu: status reg: 0x00000000, field base: 0x86200000
viu: Field type invalid.
viu: Field type invalid.
viu: Field type invalid.
viu: Field type invalid.
viu: buffer_setup, count=2, size=1658880
viu: mmap called, vma=0x84c35738
cma: cma_alloc(cma 8077f174, count 405, align 8)
cma: cma_alloc(): returned 85fad000
viu: vma start=0x7665a000, size=1658880, ret=0
viu: mmap called, vma=0x84c35e70
cma: cma_alloc(cma 8077f174, count 405, align 8)
cma: cma_alloc(): returned 85fb1000
viu: vma start=0x764c5000, size=1658880, ret=0
viu: adding vb active=0x84c80528
viu: [84c80500/0] buffer_queue - first active
viu: buffer_activate [84c80500/0]: dma addr 0x86200000
viu: adding vb queue2=0x84c802a8
viu: [84c80280/1] buffer_queue - append to active
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
viu: viu/0: [84c80500/0] timeout
viu: viu/0: [84c80280/1] timeout
viu: restart_video_queue vidq=0x859ca278
viu: adding vb active=0x84c80528
viu: [84c80500/0] buffer_queue - first active
viu: buffer_activate [84c80500/0]: dma addr 0x86200000
viu: adding vb queue2=0x84c802a8
viu: [84c80280/1] buffer_queue - append to active
viu: viu/0: [84c80500/0] timeout
viu: viu/0: [84c80280/1] timeout
viu: restart_video_queue vidq=0x859ca278
viu: adding vb active=0x84c80528
viu: [84c80500/0] buffer_queue - first active
viu: buffer_activate [84c80500/0]: dma addr 0x86200000
viu: adding vb queue2=0x84c802a8
viu: [84c80280/1] buffer_queue - append to active
viu: viu/0: [84c80500/0] timeout
viu: viu/0: [84c80280/1] timeout
viu: restart_video_queue vidq=0x859ca278
viu: adding vb active=0x84c80528
viu: [84c80500/0] buffer_queue - first active
viu: buffer_activate [84c80500/0]: dma addr 0x86200000
viu: adding vb queue2=0x84c802a8
viu: [84c80280/1] buffer_queue - append to active
viu: viu/0: [84c80500/0] timeout
viu: viu/0: [84c80280/1] timeout
viu: restart_video_queue vidq=0x859ca278
viu: adding vb active=0x84c80528
viu: [84c80500/0] buffer_queue - first active
viu: buffer_activate [84c80500/0]: dma addr 0x86200000
viu: adding vb queue2=0x84c802a8
viu: [84c80280/1] buffer_queue - append to active
viu: viu/0: [84c80500/0] timeout
viu: viu/0: [84c80280/1] timeout
viu: restart_video_queue vidq=0x859ca278
viu: adding vb active=0x84c80528
viu: [84c80500/0] buffer_queue - first active
viu: buffer_activate [84c80500/0]: dma addr 0x86200000
viu: adding vb queue2=0x84c802a8
viu: [84c80280/1] buffer_queue - append to active
viu: viu/0: [84c80500/0] timeout
viu: viu/0: [84c80280/1] timeout
Thanks,
Roshni