4K capture on Nvidia Tegra x1 hang issue

Hi,

We are validating 4K capture on Nvidia Tegra x1 using the Pender card(HDMI2CSI) setup using L4T vR24.2.1. We are facing the following issue with this setup.

  1. The 4K capture with a standard 4K input source(NVIDIA Shield) starts fine, but hangs after some time (around 5 mins) throwing up the following error

root@tegra-ubuntu:/home/ubuntu# Setting pipeline to PAUSED …
Inside NvxLiteH264DecoderLowLatencyInitNvxLiteH264DecoderLowLatencyInit set DPB and MjstreamingInside NvxLiteH265DecoderLowLatencyInitNvxLiteH265DecoderLowLatencyInit set DPB and MjstreamingPipeline is live and does not need PREROLL …
Setting pipeline to PLAYING …
New clock: GstSystemClock
[ 1808.027018] nvmap_alloc_handle: PID 2077: gst-launch-1.0: WARNING: All NvMap Allocations must have a tag to identify the subsystem allocating memory.Plase pass the tag to the API call NvRmMemHanldeAllocAttr() or relevant.
[ 1879.666010] video4linux video0: Initial wait for SOF failed! -11
[ 1879.673128] video4linux video0: PP 0:
[ 1879.677211] video4linux video0: VI STATUS: 0x00000000
[ 1879.682381] video4linux video0: PP STATUS: 0x00000000
[ 1879.687454] video4linux video0: PP 1:
[ 1879.691190] video4linux video0: VI STATUS: 0x00000000
[ 1879.696267] video4linux video0: PP STATUS: 0x000000b4
[ 1879.701436] video4linux video0: Input 0:
[ 1879.705449] video4linux video0: CILA STATUS: 0x00000000
[ 1879.710689] video4linux video0: CILA CIL STATUS: 0x00000000
[ 1879.716398] video4linux video0: Input 0:
[ 1879.720601] video4linux video0: CILB STATUS: 0x00000000
[ 1879.726073] video4linux video0: CILB CIL STATUS: 0x00000000
[ 1879.731642] video4linux video0: Input 1:
[ 1879.735672] video4linux video0: CILC STATUS: 0x00000000
[ 1879.740895] video4linux video0: CILC CIL STATUS: 0x00000000
[ 1879.746480] video4linux video0: Input 1:
[ 1879.750489] video4linux video0: CILD STATUS: 0x00000000
[ 1879.755728] video4linux video0: CILD CIL STATUS: 0x00000000
[ 1881.756399] video4linux video0: Initial wait for SOF failed! -11
[ 1881.762537] video4linux video0: PP 0:
[ 1881.767016] video4linux video0: VI STATUS: 0x00000000
[ 1881.772173] video4linux video0: PP STATUS: 0x00000000
[ 1881.778054] video4linux video0: PP 1:
[ 1881.781711] video4linux video0: VI STATUS: 0x00000000
[ 1881.786814] video4linux video0: PP STATUS: 0x00000000
[ 1881.791870] video4linux video0: Input 0:
[ 1881.795938] video4linux video0: CILA STATUS: 0x00000000
[ 1881.801166] video4linux video0: CILA CIL STATUS: 0x00000000
[ 1881.806795] video4linux video0: Input 0:
[ 1881.810812] video4linux video0: CILB STATUS: 0x00000000
[ 1881.816093] video4linux video0: CILB CIL STATUS: 0x00000000
[ 1881.821667] video4linux video0: Input 1:
[ 1881.825716] video4linux video0: CILC STATUS: 0x00000000
[ 1881.830935] video4linux video0: CILC CIL STATUS: 0x00000000
[ 1881.836538] video4linux video0: Input 1:
[ 1881.840548] video4linux video0: CILD STATUS: 0x00000000
[ 1881.845807] video4linux video0: CILD CIL STATUS: 0x00000000
[ 1883.846484] video4linux video0: Initial wait for SOF failed! -11
[ 1883.852631] video4linux video0: PP 0:
[ 1883.857186] video4linux video0: VI STATUS: 0x00000000
[ 1883.862362] video4linux video0: PP STATUS: 0x00000000
[ 1883.868246] video4linux video0: PP 1:
[ 1883.871914] video4linux video0: VI STATUS: 0x00000000
[ 1883.877024] video4linux video0: PP STATUS: 0x00000000
[ 1883.882080] video4linux video0: Input 0:
[ 1883.886149] video4linux video0: CILA STATUS: 0x00000000
[ 1883.891374] video4linux video0: CILA CIL STATUS: 0x00000000
[ 1883.897003] video4linux video0: Input 0:
[ 1883.901021] video4linux video0: CILB STATUS: 0x00000000
[ 1883.906302] video4linux video0: CILB CIL STATUS: 0x00000000
[ 1883.911875] video4linux video0: Input 1:
[ 1883.915922] video4linux video0: CILC STATUS: 0x00000000
[ 1883.921146] video4linux video0: CILC CIL STATUS: 0x00000000
[ 1883.926792] video4linux video0: Input 1:
[ 1883.930799] video4linux video0: CILD STATUS: 0x00000000
[ 1883.936060] video4linux video0: CILD CIL STATUS: 0x00000000
[ 1885.936432] video4linux video0: Initial wait for SOF failed! -11
[ 1885.942572] video4linux video0: PP 0:
[ 1886.450628] video4linux video0: VI STATUS: 0xffffffff
[ 1886.450635] Host read timeout at address 54080184
[ 1886.962949] video4linux video0: PP STATUS: 0xffffffff
[ 1886.963303] Host read timeout at address 54080854
[ 1886.972768] video4linux video0: PP 1:
[ 1887.478963] video4linux video0: VI STATUS: 0xffffffff
[ 1887.479175] Host read timeout at address 54080384
[ 1887.991274] video4linux video0: PP STATUS: 0xffffffff
[ 1887.991630] Host read timeout at address 54081054
[ 1888.001071] video4linux video0: Input 0:
[ 1888.507604] video4linux video0: CILA STATUS: 0xffffffff
[ 1888.512838] Host read timeout at address 5408093c
[ 1889.020136] video4linux video0: CILA CIL STATUS: 0xffffffff
[ 1889.025750] Host read timeout at address 54080940
[ 1889.030465] video4linux video0: Input 0:
[ 1889.536959] video4linux video0: CILB STATUS: 0xffffffff
[ 1889.542194] Host read timeout at address 54080970
[ 1890.049408] video4linux video0: CILB CIL STATUS: 0xffffffff
[ 1890.054999] Host read timeout at address 54080974
[ 1890.059734] video4linux video0: Input 1:
[ 1890.566219] video4linux video0: CILC STATUS: 0xffffffff
[ 1890.571458] Host read timeout at address 5408113c
[ 1891.078716] video4linux video0: CILC CIL STATUS: 0xffffffff
[ 1891.084304] Host read timeout at address 54081140
[ 1891.089038] video4linux video0: Input 1:
[ 1891.595525] video4linux video0: CILD STATUS: 0xffffffff
[ 1891.600774] Host read timeout at address 54081170
[ 1892.107971] video4linux video0: CILD CIL STATUS: 0xffffffff
[ 1892.113546] Host read timeout at address 54081174
[ 1894.116341] video4linux video0: Initial wait for SOF failed! -11
[ 1894.122481] video4linux video0: PP 0:
[ 1894.629162] video4linux video0: VI STATUS: 0xffffffff
[ 1894.634266] Host read timeout at address 54080184
[ 1895.141471] video4linux video0: PP STATUS: 0xffffffff
[ 1895.146567] Host read timeout at address 54080854
[ 1895.151290] video4linux video0: PP 1:
[ 1895.657422] video4linux video0: VI STATUS: 0xffffffff
[ 1895.662487] Host read timeout at address 54080384
[ 1896.169694] video4linux video0: PP STATUS: 0xffffffff
[ 1896.174755] Host read timeout at address 5

The board hangs after this error dump.
Below is the command used for testing the capture
gst-launch-1.0 v4l2src ! ‘video/x-raw, width=3840, height=2160, framerate=30/1, format=UYVY’ ! nvvidconv ! ‘video/x-raw(memory:NVMM), width=3840, height=2160, framerate=30/1, format=I420’ ! nvoverlaysink sync=false

  1. But we see this issue with 1080p capture on the same HDMI input port(on HDMI2CSI) after few hours(~2 Hours).

Do you foresee any hardware or software issue which can cause this problem.

Regards,
Mallya.

Hi Mallya,
It looks to be an issue in v4l2src. Please check the stability of your source via v4l2-ctl.

nvvidconv and nvonverlaysink are good as the following command runs fine:

gst-launch-1.0 videotestsrc ! 'video/x-raw, width=3840, height=2160, framerate=30/1, format=UYVY' ! nvvidconv ! 'video/x-raw(memory:NVMM), width=3840, height=2160, framerate=30/1, format=I420' ! nvoverlaysink sync=false