VC-MIPI-modules / vc_mipi_nvidia

Vision Components MIPI CSI-2 driver for NVIDIA Jetson Nano, Xavier NX, AGX Xavier, TX2 and Orin Nano, Orin NX
84 stars 34 forks source link

add support vor L4T 35.5.0 #82

Open flixr opened 8 months ago

flixr commented 8 months ago

start fixing #81

flixr commented 8 months ago

@pmliquify We use two IMX296 connected to a Orin Nano and since new Orin Nano/NX modules will come with other DRAM we really need L4T 35.5.0 support ASAP.

So far we had no problems with L4T 35.4.1 with streaming and trigger mode (just prints errors if you don't trigger fast enough and run into the timeout). But with L4T 35.5.0 in trigger mode we get kernel errors after some triggers:

[14665.247122] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 5000 ms
[14665.251071] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 5000 ms
[14665.256312] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[14665.265490] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[14665.265512] (NULL device *): vi_capture_control_message: NULL VI channel received
[14665.265525] (NULL device *): vi_capture_control_message: NULL VI channel received
[14665.273367] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2
[14665.281011] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=0, csi_port=0
[14665.281017] (NULL device *): vi_capture_control_message: NULL VI channel received
[14665.291736] (NULL device *): vi_capture_control_message: NULL VI channel received
[14665.302733] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[14665.310603] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[14670.366929] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 5000 ms
[14670.366935] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 5000 ms
[14670.366951] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[14670.376108] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[14670.376129] (NULL device *): vi_capture_control_message: NULL VI channel received
[14670.376138] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2
[14670.385338] (NULL device *): vi_capture_control_message: NULL VI channel received
[14670.393071] (NULL device *): vi_capture_control_message: NULL VI channel received
[14670.403947] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=0, csi_port=0
[14670.411514] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 2 vc- 0
[14670.412618] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[14670.419307] (NULL device *): vi_capture_control_message: NULL VI channel received
[14670.419310] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 0 vc- 0
[14670.419591] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[14675.486767] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 5000 ms
[14675.490759] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 5000 ms
[14675.495959] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[14675.505095] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[14675.505115] (NULL device *): vi_capture_control_message: NULL VI channel received
[14675.505132] (NULL device *): vi_capture_control_message: NULL VI channel received
[14675.512877] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=0, csi_port=0
[14675.520610] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2
[14675.520614] (NULL device *): vi_capture_control_message: NULL VI channel received
[14675.531314] (NULL device *): vi_capture_control_message: NULL VI channel received
[14675.532600] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[14675.542010] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 2 vc- 0
[14675.568285] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[14680.606614] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 5000 ms
[14680.610592] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 5000 ms
[14680.615838] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[14680.624956] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[14680.624968] (NULL device *): vi_capture_control_message: NULL VI channel received
[14680.626688] (NULL device *): vi_capture_control_message: NULL VI channel received
[14680.633056] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2
[14680.640612] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=0, csi_port=0
[14680.651327] (NULL device *): vi_capture_control_message: NULL VI channel received
[14680.662029] (NULL device *): vi_capture_control_message: NULL VI channel received
[14680.674608] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[14680.677496] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 0 vc- 0
[14680.688371] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[14685.726439] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 5000 ms
[14685.730431] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 5000 ms
[14685.735631] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[14685.744927] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[14685.744954] (NULL device *): vi_capture_control_message: NULL VI channel received
[14685.744972] (NULL device *): vi_capture_control_message: NULL VI channel received
[14685.752831] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2
[14685.760417] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=0, csi_port=0
[14685.760420] (NULL device *): vi_capture_control_message: NULL VI channel received
[14685.789527] (NULL device *): vi_capture_control_message: NULL VI channel received
[14685.790593] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[14685.797834] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 2 vc- 0
[14685.808669] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[14690.846276] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 5000 ms
[14690.846278] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 5000 ms
[14690.846292] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[14690.855482] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[14690.864644] (NULL device *): vi_capture_control_message: NULL VI channel received
[14690.864648] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2
[14690.864656] (NULL device *): vi_capture_control_message: NULL VI channel received
[14690.865166] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[14690.872386] (NULL device *): vi_capture_control_message: NULL VI channel received
[14690.872389] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=0, csi_port=0
[14690.872391] (NULL device *): vi_capture_control_message: NULL VI channel received
[14690.873069] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[14690.914258] [RCE] ERROR: camera-ip/vi5/vi5.c:3913 [vi5_update_channel_match_data] "match configuration is already in use by by channel 35 cannot set channel match configuration"
[14690.916976] [RCE] ERROR: services/capture/capture-scheduler.c:3024 [capture_scheduler_thread] "Error processing event 0x100003"
[14690.916978] [RCE] ERROR: camera-ip/vi5/vi5.c:3913 [vi5_update_channel_match_data] "match configuration is already in use by by channel 35 cannot set channel match configuration"
[14690.916980] [RCE] ERROR: services/capture/capture-scheduler.c:3024 [capture_scheduler_thread] "Error processing event 0x100003"
[14695.966114] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 5000 ms
[14695.970103] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 5000 ms
[14695.975296] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[14695.984417] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[14695.984439] (NULL device *): vi_capture_control_message: NULL VI channel received
[14695.984603] (NULL device *): vi_capture_control_message: NULL VI channel received
[14695.992294] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=0, csi_port=0
[14695.999936] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2
[14695.999940] (NULL device *): vi_capture_control_message: NULL VI channel received
[14695.999943] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 2 vc- 0
[14696.000240] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[14696.010726] (NULL device *): vi_capture_control_message: NULL VI channel received
[14696.047421] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 0 vc- 0
[14696.058366] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[14701.085967] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 5000 ms
[14701.089935] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 5000 ms
[14701.095157] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[14701.104408] (NULL device *): vi_capture_control_message: NULL VI channel received
[14701.104485] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[14701.112237] (NULL device *): vi_capture_control_message: NULL VI channel received
[14701.112265] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2
[14701.120007] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=0, csi_port=0
[14701.130819] (NULL device *): vi_capture_control_message: NULL VI channel received
[14701.141410] (NULL device *): vi_capture_control_message: NULL VI channel received
[14701.156943] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 2 vc- 0
[14701.168592] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[14702.173916] tegra194-vi5 13e40000.host1x:vi0@15c00000: capture control message timed out
[14702.182308] Unable to handle kernel paging request at virtual address ffff840667b04460
[14702.190510] Mem abort info:
[14702.193383]   ESR = 0x96000044
[14702.196557]   EC = 0x25: DABT (current EL), IL = 32 bits
[14702.202059]   SET = 0, FnV = 0
[14702.205201]   EA = 0, S1PTW = 0
[14702.208457] Data abort info:
[14702.211440]   ISV = 0, ISS = 0x00000044
[14702.215399]   CM = 0, WnR = 1
[14702.218474] swapper pgtable: 4k pages, 48-bit VAs, pgdp=00000000ab242000
[14702.225418] [ffff840667b04460] pgd=0000000000000000, p4d=0000000000000000

I don't know if that has to do with the dropped patch to disable VB2_BUF_STATE_REQUEUEING which needs to be reworked if that is still needed or something else.