TC358743 1080P 30FPS on Nano

Hello.
When I was debugging the TC358743 driver, the 1080P60 test was fine, but when I tested the 1080P30, the following error was reported:
Test command: v4l2-ctl -d /dev/video0 --stream-mmap --stream-count=100

Output: New timings found
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.09 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.04 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.03 fps
<<<<<<<<[ 121.993621] video4linux video0: tegra_channel_capture_done: MW_ACK_DONE syncpoint time out!0

Then when running this command:
gst-launch-1.0 v4l2src device=/dev/video0 ! ‘video/x-raw,format=UYVY,width=1920,height=1080,framerate=30/1’ ! nvvidconv ! omxh264enc ! mpegtsmux ! filesink location=test2.ts

which outputs many:
[ 7427.517118] vi 54080000.vi: tegra_channel_error_status: error 4000 frame 0
[ 7427.550438] vi 54080000.vi: tegra_channel_error_status: error 4000 frame 1
[ 7427.583880] vi 54080000.vi: tegra_channel_error_status: error 4000 frame 2
[ 7427.617157] vi 54080000.vi: tegra_channel_error_status: error 4000 frame 3
[ 7427.650524] vi 54080000.vi: tegra_channel_error_status: error 4000 frame 4
[ 7427.683928] vi 54080000.vi: tegra_channel_error_status: error 4000 frame 5
[ 7427.717191] vi 54080000.vi: tegra_channel_error_status: error 4000 frame 6
[ 7427.750716] vi 54080000.vi: tegra_channel_error_status: error 4000 frame 7
[ 7427.783863] vi 54080000.vi: tegra_channel_error_status: error 4000 frame 8
[ 7427.817248] vi 54080000.vi: tegra_channel_error_status: error 4000 frame 9
[ 7427.850677] vi 54080000.vi: tegra_channel_error_status: error 4000 frame 10

May I ask where this error is caused and how to solve it?
Thanks!

Enable the log from csi2_fops.c to check the status.

Thanks


Hi.ShaneCCC,this is my capture log.

Enable the log by below command. Then check the kernel message after issue capture command.

echo file csi2_fops.c +p > /sys/kernel/debug/dynamic_debug/control


This is my driver files by blow.
tegra210-nano-tc358743.dtsi (7.0 KB)
tc358743_regs.h (30.0 KB)
tc358743.c (77.5 KB)
tc358743.h (4.3 KB)

And this file
nano.txt (66.0 KB)

Doesn’t see any log from csi2_fops.c

what do I do? Is there any configuration item that is not turned on?

@ShaneCCC what should I do? Is there any configuration item that is not turned on? Thanks

Print the all of the val in the tegra_csi_error() in csi2_fops.c to check which status REG report error.

Thanks

[  510.831053] tc358743 6-000f: Code ok
[  510.831055] tc358743 6-000f: Index ok
[  510.831058] tc358743 6-000f: !!!!!!!!! tc358743_enum_frame_size() complete successfully, width: 1280, height: 720
[  510.831062] tc358743 6-000f: tc358743_enum_frame_interval()
[  510.831063] tc358743 6-000f: ----------------------------------------
[  510.831066] tc358743 6-000f: Trying to find frame interfval that matches fie->code, code: 8207 (UYVY: 1498831189, ARGB32: 875713089, MEDIA_BUS_FMT_UYVY8_1X16: 8207)
[  510.831067] tc358743 6-000f: Code ok
[  510.831070] tc358743 6-000f: Matched width 1280 and 1280, height 720 and 720
[  510.831072] tc358743 6-000f: w/h ok or end (i=0, num=2)
[  510.831073] tc358743 6-000f: i ok
[  510.831075] tc358743 6-000f: index ok
[  510.831077] tc358743 6-000f: !!!!!!!!!! tc358743_enum_frame_interval() completed successfully, interval: 1/30
[  510.831082] tc358743 6-000f: tc358743_enum_frame_interval()
[  510.831084] tc358743 6-000f: ----------------------------------------
[  510.831086] tc358743 6-000f: Trying to find frame interfval that matches fie->code, code: 8207 (UYVY: 1498831189, ARGB32: 875713089, MEDIA_BUS_FMT_UYVY8_1X16: 8207)
[  510.831087] tc358743 6-000f: Code ok
[  510.831090] tc358743 6-000f: Matched width 1280 and 1280, height 720 and 720
[  510.831091] tc358743 6-000f: w/h ok or end (i=0, num=2)
[  510.831093] tc358743 6-000f: i ok
[  510.831094] tc358743 6-000f: index ok
[  510.831096] tc358743 6-000f: !!!!!!!!!! tc358743_enum_frame_interval() completed successfully, interval: 1/50
[  510.831100] tc358743 6-000f: tc358743_enum_frame_interval()
[  510.831102] tc358743 6-000f: ----------------------------------------
[  510.831104] tc358743 6-000f: Trying to find frame interfval that matches fie->code, code: 8207 (UYVY: 1498831189, ARGB32: 875713089, MEDIA_BUS_FMT_UYVY8_1X16: 8207)
[  510.831106] tc358743 6-000f: Code ok
[  510.831108] tc358743 6-000f: Matched width 1280 and 1280, height 720 and 720
[  510.831110] tc358743 6-000f: w/h ok or end (i=0, num=2)
[  510.831111] tc358743 6-000f: i ok
[  510.831113] tc358743 6-000f: index ok
[  510.831115] tc358743 6-000f: !!!!!!!!!! tc358743_enum_frame_interval() completed successfully, interval: 1/60
[  510.831119] tc358743 6-000f: tc358743_enum_frame_interval()
[  510.831120] tc358743 6-000f: ----------------------------------------
[  510.831123] tc358743 6-000f: Trying to find frame interfval that matches fie->code, code: 8207 (UYVY: 1498831189, ARGB32: 875713089, MEDIA_BUS_FMT_UYVY8_1X16: 8207)
[  510.831124] tc358743 6-000f: Code ok
[  510.831126] tc358743 6-000f: Matched width 1280 and 1280, height 720 and 720
[  510.831128] tc358743 6-000f: w/h ok or end (i=0, num=2)
[  510.831130] tc358743 6-000f: i ok
[  510.831132] tc358743 6-000f: Error in tc358743_enum_frame_interval num framerates (3 outside 3)
[  510.839828] tc358743 6-000f: tc358743_enum_frame_size()
[  510.839830] tc358743 6-000f: fse->code 8207, index 1
[  510.839832] tc358743 6-000f: ----------------------------------------
[  510.839836] tc358743 6-000f: Trying to find frmfmt that matches fse->code, code: 8207 (UYVY: 1498831189, ARGB32: 875713089, MEDIA_BUS_FMT_UYVY8_1X16: 8207, MEDIA_BUS_FMT_RGB888_1X24: 4106)
[  510.839838] tc358743 6-000f: Code ok
[  510.839840] tc358743 6-000f: Index ok
[  510.839843] tc358743 6-000f: !!!!!!!!! tc358743_enum_frame_size() complete successfully, width: 1920, height: 1080
[  510.839847] tc358743 6-000f: tc358743_enum_frame_interval()
[  510.839849] tc358743 6-000f: ----------------------------------------
[  510.839852] tc358743 6-000f: Trying to find frame interfval that matches fie->code, code: 8207 (UYVY: 1498831189, ARGB32: 875713089, MEDIA_BUS_FMT_UYVY8_1X16: 8207)
[  510.839854] tc358743 6-000f: Code ok
[  510.839856] tc358743 6-000f: Matched width 1920 and 1920, height 1080 and 1080
[  510.839858] tc358743 6-000f: w/h ok or end (i=1, num=2)
[  510.839861] tc358743 6-000f: i ok
[  510.839862] tc358743 6-000f: index ok
[  510.839865] tc358743 6-000f: !!!!!!!!!! tc358743_enum_frame_interval() completed successfully, interval: 1/30
[  510.839871] tc358743 6-000f: tc358743_enum_frame_interval()
[  510.839873] tc358743 6-000f: ----------------------------------------
[  510.839876] tc358743 6-000f: Trying to find frame interfval that matches fie->code, code: 8207 (UYVY: 1498831189, ARGB32: 875713089, MEDIA_BUS_FMT_UYVY8_1X16: 8207)
[  510.839878] tc358743 6-000f: Code ok
[  510.839881] tc358743 6-000f: Matched width 1920 and 1920, height 1080 and 1080
[  510.839883] tc358743 6-000f: w/h ok or end (i=1, num=2)
[  510.839885] tc358743 6-000f: i ok
[  510.839887] tc358743 6-000f: index ok
[  510.839889] tc358743 6-000f: !!!!!!!!!! tc358743_enum_frame_interval() completed successfully, interval: 1/50
[  510.839894] tc358743 6-000f: tc358743_enum_frame_interval()
[  510.839896] tc358743 6-000f: ----------------------------------------
[  510.839899] tc358743 6-000f: Trying to find frame interfval that matches fie->code, code: 8207 (UYVY: 1498831189, ARGB32: 875713089, MEDIA_BUS_FMT_UYVY8_1X16: 8207)
[  510.839901] tc358743 6-000f: Code ok
[  510.839904] tc358743 6-000f: Matched width 1920 and 1920, height 1080 and 1080
[  510.839906] tc358743 6-000f: w/h ok or end (i=1, num=2)
[  510.839908] tc358743 6-000f: i ok
[  510.839910] tc358743 6-000f: index ok
[  510.839912] tc358743 6-000f: !!!!!!!!!! tc358743_enum_frame_interval() completed successfully, interval: 1/60
[  510.839917] tc358743 6-000f: tc358743_enum_frame_interval()
[  510.839919] tc358743 6-000f: ----------------------------------------
[  510.839922] tc358743 6-000f: Trying to find frame interfval that matches fie->code, code: 8207 (UYVY: 1498831189, ARGB32: 875713089, MEDIA_BUS_FMT_UYVY8_1X16: 8207)
[  510.839924] tc358743 6-000f: Code ok
[  510.839926] tc358743 6-000f: Matched width 1920 and 1920, height 1080 and 1080
[  510.839928] tc358743 6-000f: w/h ok or end (i=1, num=2)
[  510.839930] tc358743 6-000f: i ok
[  510.839933] tc358743 6-000f: Error in tc358743_enum_frame_interval num framerates (3 outside 3)
[  510.848625] tc358743 6-000f: tc358743_enum_frame_size()
[  510.848628] tc358743 6-000f: fse->code 8207, index 2
[  510.848630] tc358743 6-000f: ----------------------------------------
[  510.848633] tc358743 6-000f: Trying to find frmfmt that matches fse->code, code: 8207 (UYVY: 1498831189, ARGB32: 875713089, MEDIA_BUS_FMT_UYVY8_1X16: 8207, MEDIA_BUS_FMT_RGB888_1X24: 4106)
[  510.848635] tc358743 6-000f: Code ok
[  510.848638] tc358743 6-000f: Error in tc358743_enum_frame_size, 2 outside of num_frmfmt (2)
[  510.857837] tc358743 6-000f: Calling tc358743_get_fmt
[  510.857841] tc358743 6-000f: Here 6b, colorspace: 1
[  510.857843] tc358743 6-000f: get fmt complete
[  510.857845] tc358743 6-000f: format width 1920
[  510.857847] tc358743 6-000f: format height 1080
[  510.857849] tc358743 6-000f: fmt_code: 8207
[  510.857851] tc358743 6-000f: RGB888 code: 4106
[  510.857852] tc358743 6-000f: UYVY8 code: 8207
[  510.857854] tc358743 6-000f: tc358743_set_fmt(), ret: 0
[  510.857856] tc358743 6-000f: Set format code: 8207
[  510.857858] tc358743 6-000f: Good code 8207
[  510.858216] tc358743 6-000f: Calling tc358743_get_fmt
[  510.858218] tc358743 6-000f: Here 6b, colorspace: 1
[  510.858220] tc358743 6-000f: get fmt complete
[  510.858221] tc358743 6-000f: format width 1920
[  510.858223] tc358743 6-000f: format height 1080
[  510.858225] tc358743 6-000f: fmt_code: 8207
[  510.858226] tc358743 6-000f: RGB888 code: 4106
[  510.858228] tc358743 6-000f: UYVY8 code: 8207
[  510.858230] tc358743 6-000f: tc358743_set_fmt(), ret: 0
[  510.858232] tc358743 6-000f: Set format code: 8207
[  510.858234] tc358743 6-000f: Good code 8207
[  510.858236] tc358743 6-000f: enable_stream: disable
[  510.858967] tc358743 6-000f: 730:enable_stream: end
[  510.859517] tc358743 6-000f: tc358743_set_pll:
[  510.859522] tc358743 6-000f: function tc358743_num_csi_lanes_needed bps 995328000 bps_pr_lane594000000 
[  510.859524] tc358743 6-000f: tc358743_set_csi:
[  510.859800] tc358743 6-000f: function tc358743_reset
[  510.866114] tc358743 6-000f: function tc358743_set_csi_color_space
[  510.866119] tc358743 6-000f: tc358743_set_csi_color_space: YCbCr 422 16-bit
[  510.867473] tc358743 6-000f: Called tc358743_set_fmt, completed successfully
[  510.867484] video4linux video0: tegra_channel_update_format: Resolution= 1920x1080 bytesperline=3840
[  510.891401] vi 54080000.vi: cil_settingtime was autocalculated
[  510.891408] vi 54080000.vi: csi clock settle time: 13, cil settle time: 10
[  510.891417] tc358743 6-000f: Calling tc358743_s_stream
[  510.891420] tc358743 6-000f: enable_stream: enable
[  510.892691] tc358743 6-000f: 730:enable_stream: end
[  510.916235] vi 54080000.vi: TEGRA_CSI_PIXEL_PARSER_STATUS 0x00000000
[  510.916240] vi 54080000.vi: TEGRA_CSI_CIL_STATUS 0x00000000
[  510.916243] vi 54080000.vi: TEGRA_CSI_CILX_STATUS 0x00000000
[  510.916247] vi 54080000.vi: tegra_channel_error_status:error 4000 frame 0
[  510.923030] video4linux video0: free_ring_buffers: capture init latency is 32 ms
[  510.949560] vi 54080000.vi: TEGRA_CSI_PIXEL_PARSER_STATUS 0x00000000
[  510.949564] vi 54080000.vi: TEGRA_CSI_CIL_STATUS 0x00000000
[  510.949568] vi 54080000.vi: TEGRA_CSI_CILX_STATUS 0x00000000
[  510.949572] vi 54080000.vi: tegra_channel_error_status:error 4000 frame 1
[  510.982890] vi 54080000.vi: TEGRA_CSI_PIXEL_PARSER_STATUS 0x00000000
[  510.982894] vi 54080000.vi: TEGRA_CSI_CIL_STATUS 0x00000000
[  510.982898] vi 54080000.vi: TEGRA_CSI_CILX_STATUS 0x00000000
[  510.982902] vi 54080000.vi: tegra_channel_error_status:error 4000 frame 2
[  511.016181] vi 54080000.vi: TEGRA_CSI_PIXEL_PARSER_STATUS 0x00000000
[  511.016185] vi 54080000.vi: TEGRA_CSI_CIL_STATUS 0x00000000
[  511.016189] vi 54080000.vi: TEGRA_CSI_CILX_STATUS 0x00000000
[  511.016192] vi 54080000.vi: tegra_channel_error_status:error 4000 frame 3
[  511.049558] vi 54080000.vi: TEGRA_CSI_PIXEL_PARSER_STATUS 0x00000000
[  511.049563] vi 54080000.vi: TEGRA_CSI_CIL_STATUS 0x00000000
[  511.049566] vi 54080000.vi: TEGRA_CSI_CILX_STATUS 0x00000000
[  511.049570] vi 54080000.vi: tegra_channel_error_status:error 4000 frame 4
[  511.082803] vi 54080000.vi: TEGRA_CSI_PIXEL_PARSER_STATUS 0x00000000
[  511.082807] vi 54080000.vi: TEGRA_CSI_CIL_STATUS 0x00000000
[  511.082811] vi 54080000.vi: TEGRA_CSI_CILX_STATUS 0x00000000
[  511.082814] vi 54080000.vi: tegra_channel_error_status:error 4000 frame 5
[  511.116223] vi 54080000.vi: TEGRA_CSI_PIXEL_PARSER_STATUS 0x00000000
[  511.116227] vi 54080000.vi: TEGRA_CSI_CIL_STATUS 0x00000000
[  511.116230] vi 54080000.vi: TEGRA_CSI_CILX_STATUS 0x00000000
[  511.116233] vi 54080000.vi: tegra_channel_error_status:error 4000 frame 6
[  511.149557] vi 54080000.vi: TEGRA_CSI_PIXEL_PARSER_STATUS 0x00000000
[  511.149561] vi 54080000.vi: TEGRA_CSI_CIL_STATUS 0x00000000
[  511.149565] vi 54080000.vi: TEGRA_CSI_CILX_STATUS 0x00000000
[  511.149568] vi 54080000.vi: tegra_channel_error_status:error 4000 frame 7
[  511.182888] vi 54080000.vi: TEGRA_CSI_PIXEL_PARSER_STATUS 0x00000000
[  511.182892] vi 54080000.vi: TEGRA_CSI_CIL_STATUS 0x00000000
[  511.182896] vi 54080000.vi: TEGRA_CSI_CILX_STATUS 0x00000000
[  511.182899] vi 54080000.vi: tegra_channel_error_status:error 4000 frame 8
[  511.216221] vi 54080000.vi: TEGRA_CSI_PIXEL_PARSER_STATUS 0x00000000
[  511.216225] vi 54080000.vi: TEGRA_CSI_CIL_STATUS 0x00000000
[  511.216229] vi 54080000.vi: TEGRA_CSI_CILX_STATUS 0x00000000
[  511.216232] vi 54080000.vi: tegra_channel_error_status:error 4000 frame 9
[  511.249560] vi 54080000.vi: TEGRA_CSI_PIXEL_PARSER_STATUS 0x00000000
[  511.249564] vi 54080000.vi: TEGRA_CSI_CIL_STATUS 0x00000000
[  511.249567] vi 54080000.vi: TEGRA_CSI_CILX_STATUS 0x00000000

Looks like the tegra_channel_error_status report 0x4000 that could be from the TEGRA_CSI_PIXEL_PARSER_STATUS REG but don’t know why your print are 0??

Below is the error means

14 X HPA_UNC_HDR_ERR: Uncorrectable Header Error. Set when header parser A parses a header with a
multi bit error. This error will be detected by the headers ECC, but can’t be corrected. The packet will be
discarded.

Thank you very much, I think it may be the problem of the signal source itself, I use the hdmi output from another jetson development board as the input source, and then use the command to switch to 30FPS (xrandr --output HDMI-0 --mode 1920x1080 --rate 30).

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.