MIPI CSI 4 lanes cause CPU halt on Auvidea JN30B

I have successfully ported a Sony IMX415 device driver from kernel 4.4 to kernel 4.9 (32.2.1) on Jetson TX-2.
Now I am working to port the driver to the Jetson Nano with the Auvidea JN30B carrier.
I am able without any modification to the driver to have a successfull capture on CSI AB or CD with 4 lanes with v4l.
But when I try to use nvgstcapture I have:

  1. on CSI CD a timeout from VI
  2. on CSI AB the CPU freezes completely

Here are traces from camera_common in case of timeout from VI (in case of CPU halt I am not able to get any trace)

# tracer: nop
#
# entries-in-buffer/entries-written: 84/84   #P:4
#
#                              _-----=> irqs-off
#                             / _----=> need-resched
#                            | / _---=> hardirq/softirq
#                            || / _--=> preempt-depth
#                            ||| /     delay
#           TASK-PID   CPU#  ||||    TIMESTAMP  FUNCTION
#              | |       |   ||||       |         |
 gst-plugin-scan-6177  [001] ....   124.664793: tegra_channel_open: vi-output, imx415 0-001a
 gst-plugin-scan-6177  [000] ....   124.666996: camera_common_s_power: status : 0x1
 gst-plugin-scan-6177  [000] ....   124.842737: camera_common_s_power: status : 0x0
 gst-plugin-scan-6177  [000] ....   124.843168: tegra_channel_set_power: imx415 0-001a : 0x1
 gst-plugin-scan-6177  [000] ....   124.843395: camera_common_s_power: status : 0x1
 gst-plugin-scan-6177  [000] ....   124.875162: tegra_channel_set_power: nvcsi--1 : 0x1
 gst-plugin-scan-6177  [000] ....   124.875178: csi_s_power: enable : 0x1
 gst-plugin-scan-6177  [000] ....   124.875439: tegra_channel_close: vi-output, imx415 0-001a
 gst-plugin-scan-6177  [000] ....   124.875487: tegra_channel_set_power: imx415 0-001a : 0x0
 gst-plugin-scan-6177  [000] ....   124.875764: camera_common_s_power: status : 0x0
 gst-plugin-scan-6177  [000] ....   124.876244: tegra_channel_set_power: nvcsi--1 : 0x0
 gst-plugin-scan-6177  [000] ....   124.876252: csi_s_power: enable : 0x0
  nvargus-daemon-6191  [000] ....   125.432849: tegra_channel_open: vi-output, imx415 0-001a
  nvargus-daemon-6191  [000] ....   125.434047: camera_common_s_power: status : 0x1
  nvargus-daemon-6191  [000] ....   125.596519: camera_common_s_power: status : 0x0
  nvargus-daemon-6191  [000] ....   125.596703: tegra_channel_set_power: imx415 0-001a : 0x1
  nvargus-daemon-6191  [000] ....   125.596742: camera_common_s_power: status : 0x1
  nvargus-daemon-6191  [000] ....   125.628027: tegra_channel_set_power: nvcsi--1 : 0x1
  nvargus-daemon-6191  [000] ....   125.628030: csi_s_power: enable : 0x1
  nvargus-daemon-6191  [000] ....   125.628180: tegra_channel_close: vi-output, imx415 0-001a
  nvargus-daemon-6191  [000] ....   125.628188: tegra_channel_set_power: imx415 0-001a : 0x0
  nvargus-daemon-6191  [000] ....   125.628230: camera_common_s_power: status : 0x0
  nvargus-daemon-6191  [000] ....   125.628455: tegra_channel_set_power: nvcsi--1 : 0x0
  nvargus-daemon-6191  [000] ....   125.628457: csi_s_power: enable : 0x0
  nvargus-daemon-6191  [000] ....   125.630898: tegra_channel_open: vi-output, imx415 0-001a
  nvargus-daemon-6191  [000] ....   125.630924: tegra_channel_set_power: imx415 0-001a : 0x1
  nvargus-daemon-6191  [000] ....   125.630966: camera_common_s_power: status : 0x1
  nvargus-daemon-6191  [000] ....   125.662259: tegra_channel_set_power: nvcsi--1 : 0x1
  nvargus-daemon-6191  [000] ....   125.662261: csi_s_power: enable : 0x1
  nvargus-daemon-6191  [000] ....   125.662369: tegra_channel_close: vi-output, imx415 0-001a
  nvargus-daemon-6191  [000] ....   125.662376: tegra_channel_set_power: imx415 0-001a : 0x0
  nvargus-daemon-6191  [000] ....   125.662419: camera_common_s_power: status : 0x0
  nvargus-daemon-6191  [000] ....   125.662579: tegra_channel_set_power: nvcsi--1 : 0x0
  nvargus-daemon-6191  [000] ....   125.662580: csi_s_power: enable : 0x0
  nvargus-daemon-6191  [000] ....   125.676113: tegra_channel_open: vi-output, imx415 0-001a
  nvargus-daemon-6191  [000] ....   125.676144: tegra_channel_set_power: imx415 0-001a : 0x1
  nvargus-daemon-6191  [000] ....   125.676192: camera_common_s_power: status : 0x1
  nvargus-daemon-6191  [000] ....   125.707488: tegra_channel_set_power: nvcsi--1 : 0x1
  nvargus-daemon-6191  [000] ....   125.707491: csi_s_power: enable : 0x1
  nvargus-daemon-6191  [000] ....   125.707515: tegra_channel_close: vi-output, imx415 0-001a
  nvargus-daemon-6191  [000] ....   125.707521: tegra_channel_set_power: imx415 0-001a : 0x0
  nvargus-daemon-6191  [000] ....   125.707572: camera_common_s_power: status : 0x0
  nvargus-daemon-6191  [000] ....   125.707735: tegra_channel_set_power: nvcsi--1 : 0x0
  nvargus-daemon-6191  [000] ....   125.707736: csi_s_power: enable : 0x0
  nvargus-daemon-6191  [000] ....   125.707811: tegra_channel_open: vi-output, imx415 0-001a
  nvargus-daemon-6191  [000] ....   125.707831: tegra_channel_set_power: imx415 0-001a : 0x1
  nvargus-daemon-6191  [000] ....   125.707871: camera_common_s_power: status : 0x1
  nvargus-daemon-6191  [000] ....   125.739159: tegra_channel_set_power: nvcsi--1 : 0x1
  nvargus-daemon-6191  [000] ....   125.739161: csi_s_power: enable : 0x1
  nvargus-daemon-6191  [000] ....   125.739272: tegra_channel_close: vi-output, imx415 0-001a
  nvargus-daemon-6191  [000] ....   125.739278: tegra_channel_set_power: imx415 0-001a : 0x0
  nvargus-daemon-6191  [000] ....   125.739319: camera_common_s_power: status : 0x0
  nvargus-daemon-6191  [000] ....   125.739479: tegra_channel_set_power: nvcsi--1 : 0x0
  nvargus-daemon-6191  [000] ....   125.739480: csi_s_power: enable : 0x0
  nvargus-daemon-6191  [000] ....   125.739565: tegra_channel_open: vi-output, imx415 0-001a
  nvargus-daemon-6191  [000] ....   125.739585: tegra_channel_set_power: imx415 0-001a : 0x1
  nvargus-daemon-6191  [000] ....   125.739624: camera_common_s_power: status : 0x1
  nvargus-daemon-6191  [000] ....   125.770860: tegra_channel_set_power: nvcsi--1 : 0x1
  nvargus-daemon-6191  [000] ....   125.770862: csi_s_power: enable : 0x1
  nvargus-daemon-6191  [000] ....   125.772344: tegra_channel_close: vi-output, imx415 0-001a
  nvargus-daemon-6191  [000] ....   125.772352: tegra_channel_set_power: imx415 0-001a : 0x0
  nvargus-daemon-6191  [000] ....   125.772391: camera_common_s_power: status : 0x0
  nvargus-daemon-6191  [000] ....   125.772558: tegra_channel_set_power: nvcsi--1 : 0x0
  nvargus-daemon-6191  [000] ....   125.772559: csi_s_power: enable : 0x0
 CaptureSchedule-6212  [002] ....   126.043897: tegra_channel_open: vi-output, imx415 0-001a
 CaptureSchedule-6212  [002] ....   126.043936: tegra_channel_set_power: imx415 0-001a : 0x1
 CaptureSchedule-6212  [002] ....   126.046905: camera_common_s_power: status : 0x1
 CaptureSchedule-6212  [000] ....   126.078245: tegra_channel_set_power: nvcsi--1 : 0x1
 CaptureSchedule-6212  [000] ....   126.078249: csi_s_power: enable : 0x1
 CaptureSchedule-6212  [000] ....   126.085498: tegra_channel_set_stream: enable : 0x1
 CaptureSchedule-6212  [000] ....   126.085582: tegra_channel_set_stream: nvcsi--1 : 0x1
 CaptureSchedule-6212  [000] ....   126.085584: csi_s_stream: enable : 0x1
 CaptureSchedule-6212  [000] ....   126.085584: tegra_channel_set_stream: imx415 0-001a : 0x1
     kworker/0:1-673   [000] ....   136.331845: camera_common_s_power: status : 0x1
     kworker/0:1-673   [000] ....   136.491635: camera_common_s_power: status : 0x0
  nvargus-daemon-4567  [003] ....   162.477133: tegra_channel_close: vi-output, imx415 0-001a
  nvargus-daemon-4567  [003] ....   162.477151: tegra_channel_set_stream: enable : 0x0
  nvargus-daemon-4567  [003] ....   162.477152: tegra_channel_set_stream: imx415 0-001a : 0x0
  nvargus-daemon-4567  [003] ....   162.488408: tegra_channel_set_stream: nvcsi--1 : 0x0
  nvargus-daemon-4567  [003] ....   162.488412: csi_s_stream: enable : 0x0
  nvargus-daemon-4567  [003] ....   162.488561: tegra_channel_set_power: imx415 0-001a : 0x0
  nvargus-daemon-4567  [003] ....   162.488601: camera_common_s_power: status : 0x0
  nvargus-daemon-4567  [003] ....   162.488778: tegra_channel_set_power: nvcsi--1 : 0x0
  nvargus-daemon-4567  [003] ....   162.488780: csi_s_power: enable : 0x0

try to enable debugging with the following first, then try nvgstcapture and see where the error is, in the end you probably need to adjust these fields in device tree for your sensor driver:

devname = "imx415 6-001a"  // need to copy the string that gets output from the the 'v4l2-ctl --list-dev' command that looks something like 'imx415 6-001a'
proc-device-tree = "/proc/device-tree/host1x/i2c@546c0000/imx415_c@1a" // set up mapping appropriate to your device tree, note that 'host1x' doesn't seem to be included for i2c devices connected to the auvidea CD port.  I'm not sure if it's possible to use libargus on the CD port
sudo -s
echo file csi2_fops.c +p > /sys/kernel/debug/dynamic_debug/control
echo file vi2_fops.c +p > /sys/kernel/debug/dynamic_debug/control
echo "8" > /proc/sys/kernel/printk

echo 1 > /sys/kernel/debug/tracing/tracing_on
echo 30720 > /sys/kernel/debug/tracing/buffer_size_kb
echo 1 > /sys/kernel/debug/tracing/events/tegra_rtcpu/enable
echo 1 > /sys/kernel/debug/tracing/events/freertos/enable
echo 2 > /sys/kernel/debug/camrtc/log-level
echo 1 > /sys/kernel/debug/tracing/events/camera_common/enable
echo > /sys/kernel/debug/tracing/trace
cat /sys/kernel/debug/tracing/trace

systemctl stop nvargus-daemon
export enableCamPclLogs=5
export enableCamScfLogs=5
/usr/sbin/nvargus-daemon &

# run your nvgstcapture command here

Hi phahn, thanks a lot for your quick reply.

Here is the result of debug you asked me to do

From libargus:

=== NVIDIA Libargus Camera Service (0.97.3)=== Listening for connections...=== nvgstcapture[6588]: Connection established (7FA16F61D0)Thread 1 getting next capture
Thread 1 is waiting
Thread 2 getting next capture
Thread 2 is waiting
Thread 3 getting next capture
Thread 3 is waiting
Thread 4 getting next capture
Thread 4 is waiting
Thread 5 getting next capture
Thread 5 is waiting
Thread 6 getting next capture
Thread 6 is waiting
Thread 7 getting next capture
Thread 7 is waiting
Thread 8 getting next capture
Thread 8 is waiting
Thread 9 getting next capture
Thread 9 is waiting
Thread 10 getting next capture
Thread 10 is waiting
Thread 11 getting next capture
Thread 11 is waiting
Thread 12 getting next capture
Thread 12 is waiting
Starting services...
Worker thread IspHw statsComplete start
Worker thread IspHw frameComplete start
Worker thread IspHw statsComplete start
Worker thread IspHw frameComplete start
Worker thread CaptureScheduler checkFramePending start
Worker thread CaptureScheduler frameStart start
Worker thread V4L2CaptureScheduler checkCaptureComplete start
Worker thread V4L2CaptureScheduler issueCaptures start
Worker thread PS handleRequests start
getInstance: s_instance(0x7f9c7d9480)
getInstance: s_instance(0x7f9c7d9480)
subscribe: SensorType(gyroscope)
subscribe: create SensorType(gyroscope) sensor(0x7f9c772fe0)
subscribe: SensorType(accelerometer)
subscribe: create SensorType(accelerometer) sensor(0x7f9c7e0f30)
AC plugin not present: dlopen "acplugin.so", acplugin.so: cannot open shared object file: No such file or directory
Services are started
NvPclSetHotplugCallback: ++++++++++++++++++++++
---- Imager: Calibration blob file handling supported in this build ----
NvPclHwGetModuleList: OFParserListModules Succeeded
OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module1
NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
NvPclHwGetModuleList: No module data found
NvPclHwPrintModuleDefinition -- Name: imx415_rear_framos
NvPclHwPrintModuleDefinition -- Position: 0
NvPclHwPrintModuleDefinition -- CalibrationData Found: 1
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].Name: v4l2_sensor
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].DevName: imx415 0-001a
NvPclHwGetModuleList: OFParserListModules Succeeded
NvPclModuleListInitialize: NvPclModule list[0]: imx415_rear_framos position0
NvPclHwScanExternalCameras -- adding video0 to discover list
NvPclHwScanExternalCameras -- adding video0 to discover list
NvPclHwScanExternalCameras -- adding video0 to discover list
getHotplugMonitor: Getting hotplug monitor instance
 initializeHotplug++
 addWatch: Watch added wd='1'
CheckProcDTExists: INFO: accessing /proc/device-tree/tegra-virtual-camera-platform/modules; No such file or directory
OFParserGetVirtualDevice: NVIDIA Camera virtual enumerator not found in proc device-tree
setHotplugCallback: Registered new callback client
NvPclSetHotplugCallback: ----------------------
 hotPlugfunc ++ 
 hotPlugfunc: reading from inotify FD, Thread waiting 
NvPclOpen: ++++++++++++++++++++++
NvPclStateControllerOpen: Found GUID 0 match at index[0]
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f9c720910
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f9c775590
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f9c727c20
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f9c4cbd30
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f9c731a40
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f9c7319b0
LoadOverridesFile: looking for override file [/Calib/camera_override.isp] 1/16
CheckOverridesPermissions: stat(/Calib/camera_override.isp) call failed
LoadOverridesFile: looking for override file [/data/vendor/nvcam/settings/camera_overrides.isp] 2/16
CheckOverridesPermissions: stat(/data/vendor/nvcam/settings/camera_overrides.isp) call failed
LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/camera_overrides.isp] 3/16
CheckOverridesPermissions: stat(/opt/nvidia/nvcam/settings/camera_overrides.isp) call failed
LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/camera_overrides.isp] 4/16
CheckOverridesPermissions: stat(/var/nvidia/nvcam/settings/camera_overrides.isp) call failed
LoadOverridesFile: looking for override file [/data/vendor/nvcam/camera_overrides.isp] 5/16
CheckOverridesPermissions: stat(/data/vendor/nvcam/camera_overrides.isp) call failed
LoadOverridesFile: looking for override file [/data/vendor/nvcam/settings/imx415_rear_framos.isp] 6/16
CheckOverridesPermissions: stat(/data/vendor/nvcam/settings/imx415_rear_framos.isp) call failed
LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/imx415_rear_framos.isp] 7/16
CheckOverridesPermissions: stat(/opt/nvidia/nvcam/settings/imx415_rear_framos.isp) call failed
LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/imx415_rear_framos.isp] 8/16
CheckOverridesPermissions: stat(/var/nvidia/nvcam/settings/imx415_rear_framos.isp) call failed
---- imager: No override file found. ----
Imager: looking for override file [/mnt/factory/camera/factory.bin] 1/16
Imager: looking for override file [/Calib/factory.bin] 2/16
Imager: looking for override file [/Calib/calibration.bin] 3/16
Imager: looking for override file [(null)] 4/16
Imager: looking for override file [(null)] 5/16
Imager: looking for override file [(null)] 6/16
Imager: looking for override file [(null)] 7/16
Imager: looking for override file [(null)] 8/16
Imager: looking for override file [(null)] 9/16
Imager: looking for override file [(null)] 10/16
Imager: looking for override file [(null)] 11/16
Imager: looking for override file [(null)] 12/16
Imager: looking for override file [(null)] 13/16
Imager: looking for override file [(null)] 14/16
Imager: looking for override file [(null)] 15/16
Imager: looking for override file [(null)] 16/16
Imager: looking for override file [/data/vendor/nvcam/settings/factory.bin] 1/16
Imager: looking for override file [/data/vendor/nvcam/settings/imx415_rear_framos.bin] 2/16
Imager: looking for override file [/opt/nvidia/nvcam/settings/imx415_rear_framos.bin] 3/16
Imager: looking for override file [/var/nvidia/nvcam/settings/imx415_rear_framos.bin] 4/16
Imager: looking for override file [(null)] 5/16
Imager: looking for override file [(null)] 6/16
Imager: looking for override file [(null)] 7/16
Imager: looking for override file [(null)] 8/16
Imager: looking for override file [(null)] 9/16
Imager: looking for override file [(null)] 10/16
Imager: looking for override file [(null)] 11/16
Imager: looking for override file [(null)] 12/16
Imager: looking for override file [(null)] 13/16
Imager: looking for override file [(null)] 14/16
Imager: looking for override file [(null)] 15/16
Imager: looking for override file [(null)] 16/16
NvPclCreateDriver: Found NvPcl Driver Hal dev_name match (v4l2_sensor)
NvPclCreateDriver: Found a Driver name match (v4l2_sensor)
NvPclConnectDrivers: hImager was NULL, creating new imager
NvPclInitializeDrivers: v4l2_sensor ++++++++++++++++++
OFDPropertyGetString: could not read property [devnode-bus]
OFDPropertyGetString: could not read property [use_decibel_gain]
OFDPropertyGetString: could not read property [delayed_gain]
OFDPropertyCopyToLong: could not read property [has-eeprom]
findCustomCids: calculated MaxCoarseDiff -1722
OFDPropertyGetString: could not read property [type]
loadSubType: Sensor type missing in DT, 206
OFDPropertyCopyToLong: could not read property [set_mode_delay_ms]
OFDPropertyGetString: could not read property [mode0.phy_mode]
OFDPropertyCopyToLong: could not read property [mode0.vc_id]
OFDPropertyCopyToLongLong: could not read property [mode0.serdes_pix_clk_hz]
OFDPropertyCopyToLong: could not read property [mode0.gain_factor]
OFDPropertyCopyToLongLong: could not read property [mode0.exp_time_1h]
OFDPropertyCopyToFloat: could not read property [mode0.gain_step_pitch]
OFDPropertyCopyToLong: could not read property [mode0.embedded_metadata_width]
OFDPropertyGetString: could not read property [mode0.dpcm_enable]
OFDPropertyGetString: could not read property [mode0.x_start]
OFDPropertyGetString: could not read property [mode0.y_start]
OFDPropertyGetString: could not read property [mode0.x_end]
OFDPropertyGetString: could not read property [mode0.y_end]
OFDPropertyGetString: could not read property [mode0.h_scaling]
OFDPropertyGetString: could not read property [mode0.v_scaling]
OFDPropertyCopyToLong: could not read property [set_mode_delay_ms]
OFDPropertyGetString: could not read property [mode1.phy_mode]
OFDPropertyCopyToLong: could not read property [mode1.vc_id]
OFDPropertyCopyToLongLong: could not read property [mode1.serdes_pix_clk_hz]
OFDPropertyCopyToLong: could not read property [mode1.gain_factor]
OFDPropertyCopyToLongLong: could not read property [mode1.exp_time_1h]
OFDPropertyCopyToFloat: could not read property [mode1.gain_step_pitch]
OFDPropertyCopyToLong: could not read property [mode1.embedded_metadata_width]
OFDPropertyGetString: could not read property [mode1.dpcm_enable]
OFDPropertyGetString: could not read property [mode1.x_start]
OFDPropertyGetString: could not read property [mode1.y_start]
OFDPropertyGetString: could not read property [mode1.x_end]
OFDPropertyGetString: could not read property [mode1.y_end]
OFDPropertyGetString: could not read property [mode1.h_scaling]
OFDPropertyGetString: could not read property [mode1.v_scaling]
OFDPropertyCopyToLong: could not read property [set_mode_delay_ms]
OFDPropertyGetString: could not read property [mode2.phy_mode]
OFDPropertyCopyToLong: could not read property [mode2.vc_id]
OFDPropertyCopyToLongLong: could not read property [mode2.serdes_pix_clk_hz]
OFDPropertyCopyToLong: could not read property [mode2.gain_factor]
OFDPropertyCopyToLongLong: could not read property [mode2.exp_time_1h]
OFDPropertyCopyToFloat: could not read property [mode2.gain_step_pitch]
OFDPropertyCopyToLong: could not read property [mode2.embedded_metadata_width]
OFDPropertyGetString: could not read property [mode2.dpcm_enable]
OFDPropertyGetString: could not read property [mode2.x_start]
OFDPropertyGetString: could not read property [mode2.y_start]
OFDPropertyGetString: could not read property [mode2.x_end]
OFDPropertyGetString: could not read property [mode2.y_end]
OFDPropertyGetString: could not read property [mode2.h_scaling]
OFDPropertyGetString: could not read property [mode2.v_scaling]
OFDPropertyCopyToLong: could not read property [set_mode_delay_ms]
OFDPropertyGetString: could not read property [mode3.phy_mode]
OFDPropertyCopyToLong: could not read property [mode3.vc_id]
OFDPropertyCopyToLongLong: could not read property [mode3.serdes_pix_clk_hz]
OFDPropertyCopyToLong: could not read property [mode3.gain_factor]
OFDPropertyCopyToLongLong: could not read property [mode3.exp_time_1h]
OFDPropertyCopyToFloat: could not read property [mode3.gain_step_pitch]
OFDPropertyCopyToLong: could not read property [mode3.embedded_metadata_width]
OFDPropertyGetString: could not read property [mode3.dpcm_enable]
OFDPropertyGetString: could not read property [mode3.x_start]
OFDPropertyGetString: could not read property [mode3.y_start]
OFDPropertyGetString: could not read property [mode3.x_end]
OFDPropertyGetString: could not read property [mode3.y_end]
OFDPropertyGetString: could not read property [mode3.h_scaling]
OFDPropertyGetString: could not read property [mode3.v_scaling]
OFDPropertyCopyToLong: could not read property [set_mode_delay_ms]
OFDPropertyGetString: could not read property [mode4.phy_mode]
OFDPropertyCopyToLong: could not read property [mode4.vc_id]
OFDPropertyCopyToLongLong: could not read property [mode4.serdes_pix_clk_hz]
OFDPropertyCopyToLong: could not read property [mode4.gain_factor]
OFDPropertyCopyToLongLong: could not read property [mode4.exp_time_1h]
OFDPropertyCopyToFloat: could not read property [mode4.gain_step_pitch]
OFDPropertyCopyToLong: could not read property [mode4.embedded_metadata_width]
OFDPropertyGetString: could not read property [mode4.dpcm_enable]
OFDPropertyGetString: could not read property [mode4.x_start]
OFDPropertyGetString: could not read property [mode4.y_start]
OFDPropertyGetString: could not read property [mode4.x_end]
OFDPropertyGetString: could not read property [mode4.y_end]
OFDPropertyGetString: could not read property [mode4.h_scaling]
OFDPropertyGetString: could not read property [mode4.v_scaling]
OFDPropertyCopyToLong: could not read property [set_mode_delay_ms]
OFDPropertyGetString: could not read property [mode5.phy_mode]
OFDPropertyCopyToLong: could not read property [mode5.vc_id]
OFDPropertyCopyToLongLong: could not read property [mode5.serdes_pix_clk_hz]
OFDPropertyCopyToLong: could not read property [mode5.gain_factor]
OFDPropertyCopyToLongLong: could not read property [mode5.exp_time_1h]
OFDPropertyCopyToFloat: could not read property [mode5.gain_step_pitch]
OFDPropertyCopyToLong: could not read property [mode5.embedded_metadata_width]
OFDPropertyGetString: could not read property [mode5.dpcm_enable]
OFDPropertyGetString: could not read property [mode5.x_start]
OFDPropertyGetString: could not read property [mode5.y_start]
OFDPropertyGetString: could not read property [mode5.x_end]
OFDPropertyGetString: could not read property [mode5.y_end]
OFDPropertyGetString: could not read property [mode5.h_scaling]
OFDPropertyGetString: could not read property [mode5.v_scaling]
OFDPropertyCopyToLong: could not read property [set_mode_delay_ms]
OFDPropertyGetString: could not read property [mode6.phy_mode]
OFDPropertyCopyToLong: could not read property [mode6.vc_id]
OFDPropertyCopyToLongLong: could not read property [mode6.serdes_pix_clk_hz]
OFDPropertyCopyToLong: could not read property [mode6.gain_factor]
OFDPropertyCopyToLongLong: could not read property [mode6.exp_time_1h]
OFDPropertyCopyToFloat: could not read property [mode6.gain_step_pitch]
OFDPropertyCopyToLong: could not read property [mode6.embedded_metadata_width]
OFDPropertyGetString: could not read property [mode6.dpcm_enable]
OFDPropertyGetString: could not read property [mode6.x_start]
OFDPropertyGetString: could not read property [mode6.y_start]
OFDPropertyGetString: could not read property [mode6.x_end]
OFDPropertyGetString: could not read property [mode6.y_end]
OFDPropertyGetString: could not read property [mode6.h_scaling]
OFDPropertyGetString: could not read property [mode6.v_scaling]
OFDPropertyCopyToLong: could not read property [set_mode_delay_ms]
OFDPropertyGetString: could not read property [mode7.phy_mode]
OFDPropertyCopyToLong: could not read property [mode7.vc_id]
OFDPropertyCopyToLongLong: could not read property [mode7.serdes_pix_clk_hz]
OFDPropertyCopyToLong: could not read property [mode7.gain_factor]
OFDPropertyCopyToLongLong: could not read property [mode7.exp_time_1h]
OFDPropertyCopyToFloat: could not read property [mode7.gain_step_pitch]
OFDPropertyCopyToLong: could not read property [mode7.embedded_metadata_width]
OFDPropertyGetString: could not read property [mode7.dpcm_enable]
OFDPropertyGetString: could not read property [mode7.x_start]
OFDPropertyGetString: could not read property [mode7.y_start]
OFDPropertyGetString: could not read property [mode7.x_end]
OFDPropertyGetString: could not read property [mode7.y_end]
OFDPropertyGetString: could not read property [mode7.h_scaling]
OFDPropertyGetString: could not read property [mode7.v_scaling]
OFDPropertyCopyToLong: could not read property [set_mode_delay_ms]
OFDPropertyGetString: could not read property [mode8.phy_mode]
OFDPropertyCopyToLong: could not read property [mode8.vc_id]
OFDPropertyCopyToLongLong: could not read property [mode8.serdes_pix_clk_hz]
OFDPropertyCopyToLong: could not read property [mode8.gain_factor]
OFDPropertyCopyToLongLong: could not read property [mode8.exp_time_1h]
OFDPropertyCopyToFloat: could not read property [mode8.gain_step_pitch]
OFDPropertyCopyToLong: could not read property [mode8.embedded_metadata_width]
OFDPropertyGetString: could not read property [mode8.dpcm_enable]
OFDPropertyGetString: could not read property [mode8.x_start]
OFDPropertyGetString: could not read property [mode8.y_start]
OFDPropertyGetString: could not read property [mode8.x_end]
OFDPropertyGetString: could not read property [mode8.y_end]
OFDPropertyGetString: could not read property [mode8.h_scaling]
OFDPropertyGetString: could not read property [mode8.v_scaling]
OFDPropertyCopyToLong: could not read property [set_mode_delay_ms]
OFDPropertyGetString: could not read property [mode9.phy_mode]
OFDPropertyCopyToLong: could not read property [mode9.vc_id]
OFDPropertyCopyToLongLong: could not read property [mode9.serdes_pix_clk_hz]
OFDPropertyCopyToLong: could not read property [mode9.gain_factor]
OFDPropertyCopyToLongLong: could not read property [mode9.exp_time_1h]
OFDPropertyCopyToFloat: could not read property [mode9.gain_step_pitch]
OFDPropertyCopyToLong: could not read property [mode9.embedded_metadata_width]
OFDPropertyGetString: could not read property [mode9.dpcm_enable]
OFDPropertyGetString: could not read property [mode9.x_start]
OFDPropertyGetString: could not read property [mode9.y_start]
OFDPropertyGetString: could not read property [mode9.x_end]
OFDPropertyGetString: could not read property [mode9.y_end]
OFDPropertyGetString: could not read property [mode9.h_scaling]
OFDPropertyGetString: could not read property [mode9.v_scaling]
OFDPropertyCopyToLong: could not read property [set_mode_delay_ms]
OFDPropertyGetString: could not read property [mode10.phy_mode]
OFDPropertyCopyToLong: could not read property [mode10.vc_id]
OFDPropertyCopyToLongLong: could not read property [mode10.serdes_pix_clk_hz]
OFDPropertyCopyToLong: could not read property [mode10.gain_factor]
OFDPropertyCopyToLongLong: could not read property [mode10.exp_time_1h]
OFDPropertyCopyToFloat: could not read property [mode10.gain_step_pitch]
OFDPropertyCopyToLong: could not read property [mode10.embedded_metadata_width]
OFDPropertyGetString: could not read property [mode10.dpcm_enable]
OFDPropertyGetString: could not read property [mode10.x_start]
OFDPropertyGetString: could not read property [mode10.y_start]
OFDPropertyGetString: could not read property [mode10.x_end]
OFDPropertyGetString: could not read property [mode10.y_end]
OFDPropertyGetString: could not read property [mode10.h_scaling]
OFDPropertyGetString: could not read property [mode10.v_scaling]
OFDPropertyCopyToLong: could not read property [set_mode_delay_ms]
OFDPropertyGetString: could not read property [mode11.phy_mode]
OFDPropertyCopyToLong: could not read property [mode11.vc_id]
OFDPropertyCopyToLongLong: could not read property [mode11.serdes_pix_clk_hz]
OFDPropertyCopyToLong: could not read property [mode11.gain_factor]
OFDPropertyCopyToLongLong: could not read property [mode11.exp_time_1h]
OFDPropertyCopyToFloat: could not read property [mode11.gain_step_pitch]
OFDPropertyCopyToLong: could not read property [mode11.embedded_metadata_width]
OFDPropertyGetString: could not read property [mode11.dpcm_enable]
OFDPropertyGetString: could not read property [mode11.x_start]
OFDPropertyGetString: could not read property [mode11.y_start]
OFDPropertyGetString: could not read property [mode11.x_end]
OFDPropertyGetString: could not read property [mode11.y_end]
OFDPropertyGetString: could not read property [mode11.h_scaling]
OFDPropertyGetString: could not read property [mode11.v_scaling]
OFDPropertyCopyToLong: could not read property [set_mode_delay_ms]
OFDPropertyGetString: could not read property [mode12.phy_mode]
OFDPropertyCopyToLong: could not read property [mode12.vc_id]
OFDPropertyCopyToLongLong: could not read property [mode12.serdes_pix_clk_hz]
OFDPropertyCopyToLong: could not read property [mode12.gain_factor]
OFDPropertyCopyToLongLong: could not read property [mode12.exp_time_1h]
OFDPropertyCopyToFloat: could not read property [mode12.gain_step_pitch]
OFDPropertyCopyToLong: could not read property [mode12.embedded_metadata_width]
OFDPropertyGetString: could not read property [mode12.dpcm_enable]
OFDPropertyGetString: could not read property [mode12.x_start]
OFDPropertyGetString: could not read property [mode12.y_start]
OFDPropertyGetString: could not read property [mode12.x_end]
OFDPropertyGetString: could not read property [mode12.y_end]
OFDPropertyGetString: could not read property [mode12.h_scaling]
OFDPropertyGetString: could not read property [mode12.v_scaling]
OFDPropertyCopyToLong: could not read property [set_mode_delay_ms]
OFDPropertyGetString: could not read property [mode13.phy_mode]
OFDPropertyCopyToLong: could not read property [mode13.vc_id]
OFDPropertyCopyToLongLong: could not read property [mode13.serdes_pix_clk_hz]
OFDPropertyCopyToLong: could not read property [mode13.gain_factor]
OFDPropertyCopyToLongLong: could not read property [mode13.exp_time_1h]
OFDPropertyCopyToFloat: could not read property [mode13.gain_step_pitch]
OFDPropertyCopyToLong: could not read property [mode13.embedded_metadata_width]
OFDPropertyGetString: could not read property [mode13.dpcm_enable]
OFDPropertyGetString: could not read property [mode13.x_start]
OFDPropertyGetString: could not read property [mode13.y_start]
OFDPropertyGetString: could not read property [mode13.x_end]
OFDPropertyGetString: could not read property [mode13.y_end]
OFDPropertyGetString: could not read property [mode13.h_scaling]
OFDPropertyGetString: could not read property [mode13.v_scaling]
OFDPropertyCopyToLong: could not read property [set_mode_delay_ms]
OFDPropertyGetString: could not read property [mode14.phy_mode]
OFDPropertyCopyToLong: could not read property [mode14.vc_id]
OFDPropertyCopyToLongLong: could not read property [mode14.serdes_pix_clk_hz]
OFDPropertyCopyToLong: could not read property [mode14.gain_factor]
OFDPropertyCopyToLongLong: could not read property [mode14.exp_time_1h]
OFDPropertyCopyToFloat: could not read property [mode14.gain_step_pitch]
OFDPropertyCopyToLong: could not read property [mode14.embedded_metadata_width]
OFDPropertyGetString: could not read property [mode14.dpcm_enable]
OFDPropertyGetString: could not read property [mode14.x_start]
OFDPropertyGetString: could not read property [mode14.y_start]
OFDPropertyGetString: could not read property [mode14.x_end]
OFDPropertyGetString: could not read property [mode14.y_end]
OFDPropertyGetString: could not read property [mode14.h_scaling]
OFDPropertyGetString: could not read property [mode14.v_scaling]
initialize: Loaded Driver: 15 Modes Available--------------
NvPclInitializeDrivers: v4l2_sensor ------------------
NvPclOpen: ----------------------
LSC: LSC surface is not based on full res!
=== nvgstcapture[6588]: CameraProvider initialized (0x7f9c833000)sourceRegistry[0] assigned

ispRegistry[0] assigned

Using Source GUID 0
Worker thread ViCsiHw frameComplete start
Worker thread ViCsiHw frameStart start
NvPclPowerOn: +++++++++++
NvPclPowerOn: -----------
Using ISP A
NvPHSSendThroughputHints: sensorId=0, m_usecase=4, m_type=2, m_value=4294967295, m_timeout_ms=1000

LSC: LSC surface is not based on full res!
AC plugin not present: dlopen "acplugin.so", acplugin.so: cannot open shared object file: No such file or directory
No library found, disabling AC plugin.
Worker thread CaptureDispatcher start
Session::updatePerfHints()
updatePerfHints(): guid=0ll, CaptureIntent=1
updatePerfHints(): NvCameraCoreUseCase_Preview
NvPHSSendThroughputHints: sensorId=0, m_usecase=4, m_type=1, m_value=30, m_timeout_ms=1000

NvPHSSendThroughputHints: sensorId=0, m_usecase=4, m_type=15, m_value=0, m_timeout_ms=1000

Must retain AR: in=696x516 out=640x480 enclosing=(0.00,0.00, 1.00,1.00) firstClip=(0.00,0.00, 1.00,1.01)
No output buffers for 2
InstructionList:
  + GraphSettings
      | SensorMode: 696x516 BayerS16GBRG 60.0fps
      | output 0: 640x480 BL U8_V8_ER 420SP
      | inputClipRect 0: (0.00,0.00, 1.00,1.00)

  + Instruction List
      | id: 0
      +  0: CCDataSetupStage
          | EstimatedIspOutLatencyFrames: 5
          | NumConcurrentCaptures: 1
          | UnprocessedYuvBufferMask: 0
      +  1: ACSynchronizeStage
      +  2: AeAfApplyStage
      +  3: AcPluginStage
          | operation: opApply
      +  4: AcMergeStage
          | IspIn: [696, 516]
          | IspOut0: [696, 516]
          | IspOut1: [0, 0]
          | IspOut2: [0, 0]
      +  5: TempBufferAcquireStage
          | Buffer Index: 2
          | BufferRequirements: 696x516 BL U8_V8_ER 420SP
      +  6: TempBufferAcquireStage
          | Buffer Index: 3
          | BufferRequirements: 696x1 Pitch NonColor8
      +  7: TempBufferAcquireStage
          | Buffer Index: 4
          | BufferRequirements: 524288x1 Pitch NonColor8
      +  8: SensorISPCaptureStage
          | Source GUID: 0
          | Output A Buffer: 2
          | SensorMetadata Buffer: 3
          | Output IspStats Buffer: 4
      +  9: StatsBufferAcquireStage
          | Buffer Index: 1
          | BufferRequirements: 640x474 Pitch Y8_ER 420
      + 10: BlitStage
          | Input Buffer: 2
          | Output Buffer: 1
          | Filter: Nearest
          | Transform: None
          | Src Rect: Not used
          | Dst Rect: Not used
      + 11: StatsUpdateStage
          | Output Meta Buffer: 3
          | Output IspStats Buffer: 4
      + 12: BufferReturnStage
          | Output A Buffer: 3
      + 13: BufferReturnStage
          | Output A Buffer: 4
      + 14: AcPluginStage
          | operation: opAnalyze
      + 15: AfAnalysisStage
      + 16: BlitStage
          | Input Buffer: 2
          | Output Buffer: 0
          | Filter: Smart
          | Transform: None
          | Src Rect: [0, 0, 696, 516]
          | Dst Rect: Not used
      + 17: MonitorStage
      + 18: ExifStage
      + 19: MakerNoteStage
      + 20: BufferReturnStage
          | Output A Buffer: 2
      + 21: BufferReturnStage
          | Output A Buffer: 0
      + 22: MetadataReturnStage
      + 23: PerfStatsStage

Created fiber 0x7f44000b20 for CC 101 globalID 101 session 0
Session::updatePerfHints()
updatePerfHints(): guid=0ll, CaptureIntent=1
updatePerfHints(): NvCameraCoreUseCase_Preview
NvPHSSendThroughputHints: sensorId=0, m_usecase=4, m_type=1, m_value=30, m_timeout_ms=1000

NvPHSSendThroughputHints: sensorId=0, m_usecase=4, m_type=15, m_value=0, m_timeout_ms=1000

Thread 1 is working on CC 101 session 0 globalID 101 step 0
CC 101 session 0 completed step 0 in fiber 0x7f44000b20
cc 101(1) session 0 runCount=0 runIspOut=0, latest ccId=0
CC 101 session 0 completed step 1 in fiber 0x7f44000b20
NV AE and AfApply algorithms are active.
CC 101 session 0 completed step 2 in fiber 0x7f44000b20
CC 101 session 0 completed step 3 in fiber 0x7f44000b20
CC 101 session 0 completed step 4 in fiber 0x7f44000b20
CC 101 session 0 completed step 5 in fiber 0x7f44000b20
CC 101 session 0 completed step 6 in fiber 0x7f44000b20
CC 101 session 0 completed step 7 in fiber 0x7f44000b20
CC 101 session 0 processing step 8 in fiber 0x7f44000b20
FiberScheduler: cc 101, session 0, fiber 0x7f44000b20 in progress...

Thread 1 getting next capture
Thread 1 is working on CC 102 session 0 globalID 102 step 0
CC 102 session 0 completed step 0 in fiber 0x7f44000dd0
cc 102(2) session 0 runCount=1 runIspOut=0, latest ccId=0
CC 102 session 0 completed step 1 in fiber 0x7f44000dd0
NV AE and AfApply algorithms are active.
Thread 2 is waiting
Thread 3 is waiting
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
Created fiber 0x7f44000dd0 for CC 102 globalID 102 session 0
Session::updatePerfHints()
updatePerfHints(): guid=0ll, CaptureIntent=1
updatePerfHints(): NvCameraCoreUseCase_Preview
NvPHSSendThroughputHints: sensorId=0, m_usecase=4, m_type=1, m_value=30, m_timeout_ms=1000

NvPHSSendThroughputHints: sensorId=0, m_usecase=4, m_type=15, m_value=0, m_timeout_ms=1000

apply:+++++++++++++++++++++++
writeMode: Target mode Id(11): Resolution 696x516
CC 102 session 0 completed step 2 in fiber 0x7f44000dd0
CC 102 session 0 completed step 3 in fiber 0x7f44000dd0
CC 102 session 0 completed step 4 in fiber 0x7f44000dd0
CC 102 session 0 completed step 5 in fiber 0x7f44000dd0
CC 102 session 0 completed step 6 in fiber 0x7f44000dd0
CC 102 session 0 completed step 7 in fiber 0x7f44000dd0
CC 102 session 0 processing step 8 in fiber 0x7f44000dd0
FiberScheduler: cc 102, session 0, fiber 0x7f44000dd0 in progress...

Thread 1 getting next capture
Thread 4 is waiting
Thread 1 is waiting
writeFrameRate:	INPUT frameLength:574, frameRate:60.000000
writeGain:	INPUT gainCtrl:100 analogGain:1.000000
writeExposure:	INPUT coarseTime:2296, expTime:0.066664
updateOutputSettings:	OUTPUT frameLength:574, frameRate:60.002506
updateOutputSettings:	OUTPUT analogGain:1.000000
updateOutputSettings:	OUTPUT coarseTime:2296, expTime:0.066664
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
writeFrameRate:	INPUT frameLength:1148, frameRate:30.000002
writeExposure:	INPUT coarseTime:1147, expTime:0.033330
updateOutputSettings:	OUTPUT frameLength:1148, frameRate:30.001253
updateOutputSettings:	OUTPUT coarseTime:1147, expTime:0.033303
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
PowerServiceHw:addRequest: table size: before: 0, after:1
	request table for ISP 0:
	req[0]: output1 width=0, output1 height=0, output1 Bpp=0
	req[0]: output2 width=0, output2 height=0, output2 Bpp=0
	req[0]: input width=696, input height=516, input Bpp=12
	req[0]: output width=48, output height=36, output Bpp=16
	req[0]: input fps=60
	req[0]: guID=0, stage type=SensorIspCapture
	req[0]: clock=0 Hz, iso bw=150736 KB/s, non-iso bw=0 KB/s
	req[450]: timeout=0
PowerServiceHwIsp:setLaBw: m_bwVal_Iso=150736 and m_bwVal_NonIso=0 KBpS

PowerServiceCore:setCameraBw: totalIsoBw=150736
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
writeFrameRate:	INPUT frameLength:574, frameRate:60.000000
updateOutputSettings:	OUTPUT frameLength:574, frameRate:60.002506
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
writeFrameRate:	INPUT frameLength:1148, frameRate:30.000002
updateOutputSettings:	OUTPUT frameLength:1148, frameRate:30.001253
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
PowerServiceHw:addRequest: table size: before: 1, after:2
	request table for ISP 0:
	req[0]: output1 width=0, output1 height=0, output1 Bpp=0
	req[0]: output2 width=0, output2 height=0, output2 Bpp=0
	req[0]: input width=696, input height=516, input Bpp=12
	req[0]: output width=48, output height=36, output Bpp=16
	req[0]: input fps=60
	req[0]: guID=0, stage type=SensorIspCapture
	req[0]: clock=0 Hz, iso bw=150736 KB/s, non-iso bw=0 KB/s
	req[242]: timeout=0
	req[1]: output1 width=0, output1 height=0, output1 Bpp=0
	req[1]: output2 width=0, output2 height=0, output2 Bpp=0
	req[1]: input width=696, input height=516, input Bpp=12
	req[1]: output width=696, output height=516, output Bpp=12
	req[1]: input fps=60
	req[1]: guID=0, stage type=SensorIspCapture
	req[1]: clock=0 Hz, iso bw=1770954 KB/s, non-iso bw=0 KB/s
	req[450]: timeout=0
PowerServiceHw:updateRequests: table size: before: 2, after:2
	request table for ISP 0:
	req[0]: output1 width=0, output1 height=0, output1 Bpp=0
	req[0]: output2 width=0, output2 height=0, output2 Bpp=0
	req[0]: input width=696, input height=516, input Bpp=12
	req[0]: output width=48, output height=36, output Bpp=16
	req[0]: input fps=60
	req[0]: guID=0, stage type=SensorIspCapture
	req[0]: clock=0 Hz, iso bw=150736 KB/s, non-iso bw=0 KB/s
	req[240]: timeout=0
	req[1]: output1 width=0, output1 height=0, output1 Bpp=0
	req[1]: output2 width=0, output2 height=0, output2 Bpp=0
	req[1]: input width=696, input height=516, input Bpp=12
	req[1]: output width=696, output height=516, output Bpp=12
	req[1]: input fps=60
	req[1]: guID=0, stage type=SensorIspCapture
	req[1]: clock=0 Hz, iso bw=1770954 KB/s, non-iso bw=0 KB/s
	req[448]: timeout=0
PowerServiceHwIsp:setLaBw: m_bwVal_Iso=1770954 and m_bwVal_NonIso=0 KBpS

PowerServiceCore:setCameraBw: totalIsoBw=1770954
SCF: Error Timeout: ISP port 0 timed out! (in src/services/capture/NvIspHw.cpp, function waitIspFrameEnd(), line 478)
SCF: Error Timeout:  (propagating from src/services/capture/NvIspHw.cpp, function waitIspFrameEnd(), line 519)
SCF: Error Timeout:  (propagating from src/common/Utils.cpp, function workerThread(), line 116)
SCF: Error Timeout: Worker thread IspHw frameComplete failed (in src/common/Utils.cpp, function workerThread(), line 133)
Error: waitCsiFrameStart timeout guid 0
************VI/CSI Debug Registers**********
VI_CFG_INTERRUPT_MASK_0 = 0x00000000
VI_CFG_INTERRUPT_STATUS_0 = 0x00000000
VI_CSI_0_ERROR_STATUS_0 = 0x00000000
VI_CSI_0_ERROR_INT_MASK_0 = 0x0000001f
VI_CSI_1_ERROR_STATUS_0 = 0x00000000
VI_CSI_1_ERROR_INT_MASK_0 = 0x00000000
CSI_CSI_PIXEL_PARSER_A_INTERRUPT_MASK_0 = 0x00000000
CSI_CSI_PIXEL_PARSER_A_STATUS_0 = 0x00000000
CSI_CSI_PIXEL_PARSER_B_INTERRUPT_MASK_0 = 0x00000000
CSI_CSI_PIXEL_PARSER_B_STATUS_0 = 0x00000000
CSI_CSI_CIL_A_INTERRUPT_MASK_0 = 0x00000000
CSI_CSI_CIL_A_STATUS_0 = 0x00000010
CSI_CSI_CILA_STATUS_0 = 0x00040040
CSI_CSI_CIL_B_INTERRUPT_MASK_0 = 0x00000000
CSI_CSI_CIL_B_STATUS_0 = 0x00000010
CSI_CSI_CILB_STATUS_0 = 0x00040041
CSI_CSI_READONLY_STATUS_0 = 0x00000000
CSI_DEBUG_CONTROL_0 = 0x46044d00
CSI_DEBUG_COUNTER_0_0 = 0x00000000
CSI_DEBUG_COUNTER_1_0 = 0x00000000
CSI_DEBUG_COUNTER_2_0 = 0x00000000
*****************************************
Error: waitCsiFrameStart Something went wrong with waiting on frame start
Error: waitCsiFrameStart Something went wrong with waiting on frame start
Created fiber 0x7f44000f70 for CC 103 globalID 103 session 0
Session::updatePerfHints()
updatePerfHints(): guid=0ll, CaptureIntent=1
updatePerfHints(): NvCameraCoreUseCase_Preview
NvPHSSendThroughputHints: sensorId=0, m_usecase=4, m_type=1, m_value=30, m_timeout_ms=1000

NvPHSSendThroughputHints: sensorId=0, m_usecase=4, m_type=15, m_value=0, m_timeout_ms=1000

Thread 5 is working on CC 103 session 0 globalID 103 step 0
CC 103 session 0 completed step 0 in fiber 0x7f44000f70
cc 103(3) session 0 runCount=2 runIspOut=0, latest ccId=0
CC 103 session 0 completed step 1 in fiber 0x7f44000f70
NV AE and AfApply algorithms are active.
CC 103 session 0 completed step 2 in fiber 0x7f44000f70
CC 103 session 0 completed step 3 in fiber 0x7f44000f70
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
PowerServiceCore:handleRequests: timePassed = 1449
CC 103 session 0 completed step 4 in fiber 0x7f44000f70
CC 103 session 0 completed step 5 in fiber 0x7f44000f70
CC 103 session 0 completed step 6 in fiber 0x7f44000f70
CC 103 session 0 completed step 7 in fiber 0x7f44000f70
CC 103 session 0 processing step 8 in fiber 0x7f44000f70
FiberScheduler: cc 103, session 0, fiber 0x7f44000f70 in progress...

Thread 5 getting next capture
Thread 5 is waiting
Thread 6 is waiting
Error: waitCsiFrameStart timeout guid 0
************VI/CSI Debug Registers**********
VI_CFG_INTERRUPT_MASK_0 = 0x00000000
VI_CFG_INTERRUPT_STATUS_0 = 0x00000000
VI_CSI_0_ERROR_STATUS_0 = 0x00000000
VI_CSI_0_ERROR_INT_MASK_0 = 0x0000001f
VI_CSI_1_ERROR_STATUS_0 = 0x00000000
VI_CSI_1_ERROR_INT_MASK_0 = 0x00000000
CSI_CSI_PIXEL_PARSER_A_INTERRUPT_MASK_0 = 0x00000000
CSI_CSI_PIXEL_PARSER_A_STATUS_0 = 0x00000000
CSI_CSI_PIXEL_PARSER_B_INTERRUPT_MASK_0 = 0x00000000
CSI_CSI_PIXEL_PARSER_B_STATUS_0 = 0x00000000
CSI_CSI_CIL_A_INTERRUPT_MASK_0 = 0x00000000
CSI_CSI_CIL_A_STATUS_0 = 0x00000010
CSI_CSI_CILA_STATUS_0 = 0x00040040
CSI_CSI_CIL_B_INTERRUPT_MASK_0 = 0x00000000
CSI_CSI_CIL_B_STATUS_0 = 0x00000010
CSI_CSI_CILB_STATUS_0 = 0x00040041
CSI_CSI_READONLY_STATUS_0 = 0x00000000
CSI_DEBUG_CONTROL_0 = 0x46044d00
CSI_DEBUG_COUNTER_0_0 = 0x00000000
CSI_DEBUG_COUNTER_1_0 = 0x00000000
CSI_DEBUG_COUNTER_2_0 = 0x00000000
*****************************************
SCF: Error Timeout: Sending critical error event (in src/api/Session.cpp, function sendErrorEvent(), line 990)
Created fiber 0x7f44001110 for CC 104 globalID 104 session 0
SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
(Argus) Error InvalidState:  (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
(Argus) Error InvalidState:  (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
(Argus) Error InvalidState:  (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
(Argus) Error InvalidState:  (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)

From trace:

# tracer: nop
#
# entries-in-buffer/entries-written: 84/84   #P:4
#
#                              _-----=> irqs-off
#                             / _----=> need-resched
#                            | / _---=> hardirq/softirq
#                            || / _--=> preempt-depth
#                            ||| /     delay
#           TASK-PID   CPU#  ||||    TIMESTAMP  FUNCTION
#              | |       |   ||||       |         |
 gst-plugin-scan-6589  [002] ....    71.059894: tegra_channel_open: vi-output, imx415 0-001a
 gst-plugin-scan-6589  [000] ....    71.079208: camera_common_s_power: status : 0x1
 gst-plugin-scan-6589  [000] ....    71.608513: camera_common_s_power: status : 0x0
 gst-plugin-scan-6589  [000] ....    71.634525: tegra_channel_set_power: imx415 0-001a : 0x1
 gst-plugin-scan-6589  [000] ....    71.634582: camera_common_s_power: status : 0x1
 gst-plugin-scan-6589  [000] ....    71.685564: tegra_channel_set_power: nvcsi--1 : 0x1
 gst-plugin-scan-6589  [000] ....    71.685568: csi_s_power: enable : 0x1
 gst-plugin-scan-6589  [000] ....    71.685625: tegra_channel_close: vi-output, imx415 0-001a
 gst-plugin-scan-6589  [000] ....    71.689673: tegra_channel_set_power: imx415 0-001a : 0x0
 gst-plugin-scan-6589  [000] ....    71.689727: camera_common_s_power: status : 0x0
 gst-plugin-scan-6589  [002] ....    71.704815: tegra_channel_set_power: nvcsi--1 : 0x0
 gst-plugin-scan-6589  [002] ....    71.704820: csi_s_power: enable : 0x0
  nvargus-daemon-6622  [002] ....    72.473116: tegra_channel_open: vi-output, imx415 0-001a
  nvargus-daemon-6622  [002] ....    72.491913: camera_common_s_power: status : 0x1
  nvargus-daemon-6622  [003] ....    73.027312: camera_common_s_power: status : 0x0
  nvargus-daemon-6622  [000] ....    73.055410: tegra_channel_set_power: imx415 0-001a : 0x1
  nvargus-daemon-6622  [000] ....    73.055462: camera_common_s_power: status : 0x1
  nvargus-daemon-6622  [000] ....    73.108633: tegra_channel_set_power: nvcsi--1 : 0x1
  nvargus-daemon-6622  [000] ....    73.108636: csi_s_power: enable : 0x1
  nvargus-daemon-6622  [000] ....    73.108806: tegra_channel_close: vi-output, imx415 0-001a
  nvargus-daemon-6622  [000] ....    73.113632: tegra_channel_set_power: imx415 0-001a : 0x0
  nvargus-daemon-6622  [000] ....    73.113684: camera_common_s_power: status : 0x0
  nvargus-daemon-6622  [000] ....    73.130722: tegra_channel_set_power: nvcsi--1 : 0x0
  nvargus-daemon-6622  [000] ....    73.130725: csi_s_power: enable : 0x0
  nvargus-daemon-6622  [000] ....    73.155252: tegra_channel_open: vi-output, imx415 0-001a
  nvargus-daemon-6622  [000] ....    73.187217: tegra_channel_set_power: imx415 0-001a : 0x1
  nvargus-daemon-6622  [000] ....    73.187269: camera_common_s_power: status : 0x1
  nvargus-daemon-6622  [000] ....    73.240475: tegra_channel_set_power: nvcsi--1 : 0x1
  nvargus-daemon-6622  [000] ....    73.240479: csi_s_power: enable : 0x1
  nvargus-daemon-6622  [000] ....    73.240618: tegra_channel_close: vi-output, imx415 0-001a
  nvargus-daemon-6622  [000] ....    73.245337: tegra_channel_set_power: imx415 0-001a : 0x0
  nvargus-daemon-6622  [000] ....    73.245389: camera_common_s_power: status : 0x0
  nvargus-daemon-6622  [000] ....    73.262389: tegra_channel_set_power: nvcsi--1 : 0x0
  nvargus-daemon-6622  [000] ....    73.262393: csi_s_power: enable : 0x0
  nvargus-daemon-6622  [000] ....    73.301629: tegra_channel_open: vi-output, imx415 0-001a
  nvargus-daemon-6622  [000] ....    73.333326: tegra_channel_set_power: imx415 0-001a : 0x1
  nvargus-daemon-6622  [000] ....    73.333376: camera_common_s_power: status : 0x1
  nvargus-daemon-6622  [000] ....    73.386485: tegra_channel_set_power: nvcsi--1 : 0x1
  nvargus-daemon-6622  [000] ....    73.386489: csi_s_power: enable : 0x1
  nvargus-daemon-6622  [000] ....    73.386516: tegra_channel_close: vi-output, imx415 0-001a
  nvargus-daemon-6622  [000] ....    73.391439: tegra_channel_set_power: imx415 0-001a : 0x0
  nvargus-daemon-6622  [000] ....    73.391490: camera_common_s_power: status : 0x0
  nvargus-daemon-6622  [000] ....    73.408994: tegra_channel_set_power: nvcsi--1 : 0x0
  nvargus-daemon-6622  [000] ....    73.408999: csi_s_power: enable : 0x0
  nvargus-daemon-6622  [000] ....    73.430484: tegra_channel_open: vi-output, imx415 0-001a
  nvargus-daemon-6622  [000] ....    73.462278: tegra_channel_set_power: imx415 0-001a : 0x1
  nvargus-daemon-6622  [000] ....    73.462330: camera_common_s_power: status : 0x1
  nvargus-daemon-6622  [000] ....    73.515651: tegra_channel_set_power: nvcsi--1 : 0x1
  nvargus-daemon-6622  [000] ....    73.515655: csi_s_power: enable : 0x1
  nvargus-daemon-6622  [000] ....    73.515859: tegra_channel_close: vi-output, imx415 0-001a
  nvargus-daemon-6622  [000] ....    73.519906: tegra_channel_set_power: imx415 0-001a : 0x0
  nvargus-daemon-6622  [000] ....    73.519968: camera_common_s_power: status : 0x0
  nvargus-daemon-6622  [000] ....    73.537987: tegra_channel_set_power: nvcsi--1 : 0x0
  nvargus-daemon-6622  [000] ....    73.537990: csi_s_power: enable : 0x0
  nvargus-daemon-6622  [000] ....    73.568839: tegra_channel_open: vi-output, imx415 0-001a
  nvargus-daemon-6622  [000] ....    73.601368: tegra_channel_set_power: imx415 0-001a : 0x1
  nvargus-daemon-6622  [000] ....    73.601419: camera_common_s_power: status : 0x1
  nvargus-daemon-6622  [000] ....    73.657656: tegra_channel_set_power: nvcsi--1 : 0x1
  nvargus-daemon-6622  [000] ....    73.657660: csi_s_power: enable : 0x1
  nvargus-daemon-6622  [000] ....    73.662676: tegra_channel_close: vi-output, imx415 0-001a
  nvargus-daemon-6622  [000] ....    73.667394: tegra_channel_set_power: imx415 0-001a : 0x0
  nvargus-daemon-6622  [000] ....    73.667444: camera_common_s_power: status : 0x0
  nvargus-daemon-6622  [000] ....    73.684413: tegra_channel_set_power: nvcsi--1 : 0x0
  nvargus-daemon-6622  [000] ....    73.684417: csi_s_power: enable : 0x0
 CaptureSchedule-6641  [001] ....    73.967826: tegra_channel_open: vi-output, imx415 0-001a
 CaptureSchedule-6641  [001] ....    74.002165: tegra_channel_set_power: imx415 0-001a : 0x1
 CaptureSchedule-6641  [001] ....    74.002218: camera_common_s_power: status : 0x1
 CaptureSchedule-6641  [001] ....    74.056482: tegra_channel_set_power: nvcsi--1 : 0x1
 CaptureSchedule-6641  [001] ....    74.056486: csi_s_power: enable : 0x1
 CaptureSchedule-6641  [001] ....    74.423761: tegra_channel_set_stream: enable : 0x1
 CaptureSchedule-6641  [001] ....    74.437024: tegra_channel_set_stream: nvcsi--1 : 0x1
 CaptureSchedule-6641  [001] ....    74.437028: csi_s_stream: enable : 0x1
 CaptureSchedule-6641  [001] ....    74.437028: tegra_channel_set_stream: imx415 0-001a : 0x1
 IspHw statsComp-6636  [001] ....    81.419283: tegra_channel_close: vi-output, imx415 0-001a
 IspHw statsComp-6636  [001] ....    81.424484: tegra_channel_set_stream: enable : 0x0
 IspHw statsComp-6636  [001] ....    81.424486: tegra_channel_set_stream: imx415 0-001a : 0x0
 IspHw statsComp-6636  [001] .n..    81.441437: tegra_channel_set_stream: nvcsi--1 : 0x0
 IspHw statsComp-6636  [001] ....    81.441474: csi_s_stream: enable : 0x0
 IspHw statsComp-6636  [001] ....    81.468751: tegra_channel_set_power: imx415 0-001a : 0x0
 IspHw statsComp-6636  [001] ....    81.468800: camera_common_s_power: status : 0x0
 IspHw statsComp-6636  [001] ....    81.483888: tegra_channel_set_power: nvcsi--1 : 0x0
 IspHw statsComp-6636  [001] ....    81.483892: csi_s_power: enable : 0x0
     kworker/1:2-1046  [001] ....    85.684479: camera_common_s_power: status : 0x1
     kworker/1:2-1046  [001] ....    86.241231: camera_common_s_power: status : 0x0

From dmesg:

[   71.079270] imx415 0-001a: imx415_power_on:++
[   71.118196] imx415 0-001a: imx415_write_reg: i2c write OK, 300c = 0
[   71.124601] imx415 0-001a: imx415_disable_second_slave_address: Sensors 2nd slave address disabled
[   71.135658] imx415 0-001a: imx415_start_stream: start stream
[   71.168026] imx415 0-001a: imx415_set_csi_lane_mode: sensor is in 4 CSI lane mode
[   71.175570] imx415 0-001a: imx415_write_current_format: chosen pixel format 12302
[   71.205518] imx415_s_ctrl
...
[   72.825814] imx415_set_storage_time_register
[   72.830459] imx415 0-001a: imx415_write_reg: i2c write OK, 3003 = 0
[   72.837395] imx415 0-001a: imx415_set_operation_mode: operation mode XMASTER reg set to 0
[   72.846427] imx415 0-001a: imx415_write_reg: i2c write OK, 30ce = 0
[   72.853382] imx415 0-001a: imx415_set_sync_mode: operation mode EXTMODE set to 0
[   72.861421] imx415 0-001a: imx415_configure_triggering_pins: Sensor is in Internal sync Master mode
[   72.871442] imx415 0-001a: imx415_write_reg: i2c write OK, 30c1 = 0
[   72.877783] imx415 0-001a: imx415_configure_triggering_pins: XVS_XHS driver register: 0
[   72.885805] imx415_set_data_rate:
[   72.889180] imx415_set_mclk:
[   72.906148] imx415 0-001a: imx415_set_data_rate: Data rate: 0
[   72.912241] imx415 0-001a: imx415_adjust_hmax_register:++
[   72.919782] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 1
[   72.926721] imx415 0-001a: imx415_write_reg: i2c write OK, 3028 = 26
[   72.933811] imx415 0-001a: imx415_write_reg: i2c write OK, 3029 = 2
[   72.941194] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 0
[   72.948077] imx415 0-001a: imx415_adjust_hmax_register:  HMAX: 550
[   72.954779] imx415 0-001a: imx415_is_pin_configuration_valid: XVS & XHS as output
[   73.004673] vi 54080000.vi: Calibrate csi port 2
[   73.010009] imx415 0-001a: imx415_stop_stream: stop stream
[   73.027320] imx415 0-001a: imx415_power_off:++
[   73.031995] imx415 0-001a: imx415_write_reg: i2c write OK, 30c1 = f
[   73.038887] imx415_count_active_sensors:
[   73.043422] vi 54080000.vi: tegra_vi2_power_on: enable clock
[   73.049654] vi 54080000.vi: vi2_power_on: sensor opened
[   73.055542] imx415 0-001a: imx415_power_on:++
[   73.091656] imx415 0-001a: imx415_write_reg: i2c write OK, 300c = 0
[   73.098135] imx415 0-001a: imx415_disable_second_slave_address: Sensors 2nd slave address disabled
[   73.108815] vi 54080000.vi: vi2_power_off
[   73.113689] imx415 0-001a: imx415_power_off:++
[   73.119087] imx415 0-001a: imx415_write_reg: i2c write OK, 30c1 = f
[   73.126393] imx415_count_active_sensors:
[   73.130733] vi 54080000.vi: tegra_vi2_power_off
[   73.136106] vi 54080000.vi: vi2_power_off: sensor closed
[   73.142183] vi 54080000.vi: vi2_power_off: nvhost client detached from video vi-output, imx415 0-001a
[   73.155265] vi 54080000.vi: vi2_power_on
[   73.159974] vi 54080000.vi: vi2_power_on: nvhost client bound to video vi-output, imx415 0-001a
[   73.169473] vi 54080000.vi: tegra_vi2_power_on
[   73.174638] vi 54080000.vi: tegra_vi2_power_on: enable clock
[   73.181205] vi 54080000.vi: vi2_power_on: sensor opened
[   73.187370] imx415 0-001a: imx415_power_on:++
[   73.223797] imx415 0-001a: imx415_write_reg: i2c write OK, 300c = 0
[   73.230109] imx415 0-001a: imx415_disable_second_slave_address: Sensors 2nd slave address disabled
[   73.240626] vi 54080000.vi: vi2_power_off
[   73.245394] imx415 0-001a: imx415_power_off:++
[   73.250827] imx415 0-001a: imx415_write_reg: i2c write OK, 30c1 = f
[   73.258018] imx415_count_active_sensors:
[   73.262399] vi 54080000.vi: tegra_vi2_power_off
[   73.267674] vi 54080000.vi: vi2_power_off: sensor closed
[   73.273723] vi 54080000.vi: vi2_power_off: nvhost client detached from video vi-output, imx415 0-001a
[   73.301642] vi 54080000.vi: vi2_power_on
[   73.305650] vi 54080000.vi: vi2_power_on: nvhost client bound to video vi-output, imx415 0-001a
[   73.315734] vi 54080000.vi: tegra_vi2_power_on
[   73.320987] vi 54080000.vi: tegra_vi2_power_on: enable clock
[   73.327382] vi 54080000.vi: vi2_power_on: sensor opened
[   73.333452] imx415 0-001a: imx415_power_on:++
[   73.369848] imx415 0-001a: imx415_write_reg: i2c write OK, 300c = 0
[   73.376225] imx415 0-001a: imx415_disable_second_slave_address: Sensors 2nd slave address disabled
[   73.386525] vi 54080000.vi: vi2_power_off
[   73.391496] imx415 0-001a: imx415_power_off:++
[   73.397256] imx415 0-001a: imx415_write_reg: i2c write OK, 30c1 = f
[   73.404503] imx415_count_active_sensors:
[   73.409006] vi 54080000.vi: tegra_vi2_power_off
[   73.414334] vi 54080000.vi: vi2_power_off: sensor closed
[   73.420389] vi 54080000.vi: vi2_power_off: nvhost client detached from video vi-output, imx415 0-001a
[   73.430496] vi 54080000.vi: vi2_power_on
[   73.435154] vi 54080000.vi: vi2_power_on: nvhost client bound to video vi-output, imx415 0-001a
[   73.444606] vi 54080000.vi: tegra_vi2_power_on
[   73.449837] vi 54080000.vi: tegra_vi2_power_on: enable clock
[   73.456272] vi 54080000.vi: vi2_power_on: sensor opened
[   73.462431] imx415 0-001a: imx415_power_on:++
[   73.498850] imx415 0-001a: imx415_write_reg: i2c write OK, 300c = 0
[   73.505364] imx415 0-001a: imx415_disable_second_slave_address: Sensors 2nd slave address disabled
[   73.515869] vi 54080000.vi: vi2_power_off
[   73.519972] imx415 0-001a: imx415_power_off:++
[   73.525888] imx415 0-001a: imx415_write_reg: i2c write OK, 30c1 = f
[   73.533157] imx415_count_active_sensors:
[   73.537998] vi 54080000.vi: tegra_vi2_power_off
[   73.543329] vi 54080000.vi: vi2_power_off: sensor closed
[   73.551457] vi 54080000.vi: vi2_power_off: nvhost client detached from video vi-output, imx415 0-001a
[   73.568852] vi 54080000.vi: vi2_power_on
[   73.573608] vi 54080000.vi: vi2_power_on: nvhost client bound to video vi-output, imx415 0-001a
[   73.583596] vi 54080000.vi: tegra_vi2_power_on
[   73.588901] vi 54080000.vi: tegra_vi2_power_on: enable clock
[   73.595345] vi 54080000.vi: vi2_power_on: sensor opened
[   73.603787] imx415 0-001a: imx415_power_on:++
[   73.640969] imx415 0-001a: imx415_write_reg: i2c write OK, 300c = 0
[   73.647297] imx415 0-001a: imx415_disable_second_slave_address: Sensors 2nd slave address disabled
[   73.659065] imx415_g_input_status
[   73.662688] vi 54080000.vi: vi2_power_off
[   73.667449] imx415 0-001a: imx415_power_off:++
[   73.673005] imx415 0-001a: imx415_write_reg: i2c write OK, 30c1 = f
[   73.680130] imx415_count_active_sensors:
[   73.684424] vi 54080000.vi: tegra_vi2_power_off
[   73.689722] vi 54080000.vi: vi2_power_off: sensor closed
[   73.695749] vi 54080000.vi: vi2_power_off: nvhost client detached from video vi-output, imx415 0-001a
[   73.967839] vi 54080000.vi: vi2_power_on
[   73.971794] vi 54080000.vi: vi2_power_on: nvhost client bound to video vi-output, imx415 0-001a
[   73.984582] vi 54080000.vi: tegra_vi2_power_on
[   73.989758] vi 54080000.vi: tegra_vi2_power_on: enable clock
[   73.996087] vi 54080000.vi: vi2_power_on: sensor opened
[   74.002294] imx415 0-001a: imx415_power_on:++
[   74.039537] imx415 0-001a: imx415_write_reg: i2c write OK, 300c = 0
[   74.045917] imx415 0-001a: imx415_disable_second_slave_address: Sensors 2nd slave address disabled
[   74.056586] video4linux video0: enable override control
[   74.062855] imx415_set_fmt
[   74.065921] imx415_check_unsupported_mode
[   74.070419] imx415_set_fmt
[   74.073611] imx415_check_unsupported_mode
[   74.078012] vi 54080000.vi: Alloc buffers 3
[   74.083433] imx415_s_ctrl
[   74.086202] imx415_s_ctrl
[   74.089296] imx415_set_frame_length
[   74.093393] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 1
[   74.100837] imx415 0-001a: imx415_write_reg: i2c write OK, 3024 = ca
[   74.108564] imx415 0-001a: imx415_write_reg: i2c write OK, 3025 = 8
[   74.116014] imx415 0-001a: imx415_write_reg: i2c write OK, 3026 = 0
[   74.123745] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 0
[   74.131032] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 1
[   74.138466] imx415 0-001a: imx415_write_reg: i2c write OK, 3050 = 8
[   74.145824] imx415 0-001a: imx415_write_reg: i2c write OK, 3051 = 0
[   74.153190] imx415 0-001a: imx415_write_reg: i2c write OK, 3052 = 0
[   74.160807] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 0
[   74.168106] imx415_s_ctrl
[   74.170726] imx415_set_integration_time
[   74.175476] imx415 0-001a: imx415_read_reg: i2c read OK, 3024 value 202
[   74.183648] imx415 0-001a: imx415_read_reg: i2c read OK, 3025 value 8
[   74.191452] imx415 0-001a: imx415_read_reg: i2c read OK, 3026 value 0
[   74.199245] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 1
[   74.205954] imx415 0-001a: imx415_write_reg: i2c write OK, 3050 = 8
[   74.214325] imx415 0-001a: imx415_write_reg: i2c write OK, 3051 = 0
[   74.221908] imx415 0-001a: imx415_write_reg: i2c write OK, 3052 = 0
[   74.229286] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 0
[   74.236697] imx415_s_ctrl
[   74.240521] imx415_s_ctrl
[   74.243660] imx415_s_ctrl
[   74.246279] imx415_set_frame_length
[   74.250494] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 1
[   74.258768] imx415 0-001a: imx415_write_reg: i2c write OK, 3024 = ca
[   74.266249] imx415 0-001a: imx415_write_reg: i2c write OK, 3025 = 8
[   74.273717] imx415 0-001a: imx415_write_reg: i2c write OK, 3026 = 0
[   74.281239] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 0
[   74.288901] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 1
[   74.296276] imx415 0-001a: imx415_write_reg: i2c write OK, 3050 = 8
[   74.303798] imx415 0-001a: imx415_write_reg: i2c write OK, 3051 = 0
[   74.311452] imx415 0-001a: imx415_write_reg: i2c write OK, 3052 = 0
[   74.318973] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 0
[   74.325373] imx415_s_ctrl
[   74.328988] imx415_set_integration_time
[   74.333444] imx415 0-001a: imx415_read_reg: i2c read OK, 3024 value 202
[   74.341488] imx415 0-001a: imx415_read_reg: i2c read OK, 3025 value 8
[   74.349241] imx415 0-001a: imx415_read_reg: i2c read OK, 3026 value 0
[   74.357159] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 1
[   74.364662] imx415 0-001a: imx415_write_reg: i2c write OK, 3050 = 4f
[   74.372286] imx415 0-001a: imx415_write_reg: i2c write OK, 3051 = 4
[   74.379804] imx415 0-001a: imx415_write_reg: i2c write OK, 3052 = 0
[   74.387437] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 0
[   74.394902] imx415_s_ctrl
[   74.397814] vi 54080000.vi: vi_channel_syncpt_init
[   74.403857] vi 54080000.vi: vi_channel_syncpt_init: vi port 0
[   74.410718] vi 54080000.vi: vi2_channel_start_streaming
[   74.416911] vi 54080000.vi: tegra_channel_ec_init: timeout 50
[   74.423799] misc tegra_camera_ctrl: tegra_camera_update_isobw: Warning, Requested ISO BW 1740234 has been capped to VI's max BW 1500000
[   74.437082] imx415 0-001a: imx415_start_stream: start stream
[   74.470066] imx415 0-001a: imx415_set_csi_lane_mode: sensor is in 4 CSI lane mode
[   74.477602] imx415 0-001a: imx415_write_current_format: chosen pixel format 12304
[   74.508912] imx415_s_ctrl
[   74.511580] imx415_set_gain
[   74.514561] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 1
[   74.522434] imx415 0-001a: imx415_write_reg: i2c write OK, 3090 = 3
[   74.529989] imx415 0-001a: imx415_write_reg: i2c write OK, 3091 = 0
[   74.537534] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 0
[   74.544859] imx415_s_ctrl
[   74.547959] imx415_set_integration_time
[   74.552601] imx415 0-001a: imx415_read_reg: i2c read OK, 3024 value 202
[   74.560519] imx415 0-001a: imx415_read_reg: i2c read OK, 3025 value 8
[   74.568318] imx415 0-001a: imx415_read_reg: i2c read OK, 3026 value 0
[   74.575836] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 1
[   74.583176] imx415 0-001a: imx415_write_reg: i2c write OK, 3050 = 4f
[   74.590812] imx415 0-001a: imx415_write_reg: i2c write OK, 3051 = 4
[   74.598384] imx415 0-001a: imx415_write_reg: i2c write OK, 3052 = 0
[   74.606015] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 0
[   74.613425] imx415_s_ctrl
[   74.616546] imx415_set_frame_length
[   74.620729] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 1
[   74.628077] imx415 0-001a: imx415_write_reg: i2c write OK, 3024 = ca
[   74.635667] imx415 0-001a: imx415_write_reg: i2c write OK, 3025 = 8
[   74.643056] imx415 0-001a: imx415_write_reg: i2c write OK, 3026 = 0
[   74.650350] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 0
[   74.397814] vi 54080000.vi: vi_channel_syncpt_init
[   74.403857] vi 54080000.vi: vi_channel_syncpt_init: vi port 0
[   74.410718] vi 54080000.vi: vi2_channel_start_streaming
[   74.416911] vi 54080000.vi: tegra_channel_ec_init: timeout 50
[   74.423799] misc tegra_camera_ctrl: tegra_camera_update_isobw: Warning, Requested ISO BW 1740234 has been capped to VI's max BW 1500000
[   74.437082] imx415 0-001a: imx415_start_stream: start stream
[   74.470066] imx415 0-001a: imx415_set_csi_lane_mode: sensor is in 4 CSI lane mode
[   74.477602] imx415 0-001a: imx415_write_current_format: chosen pixel format 12304
[   74.508912] imx415_s_ctrl
[   74.511580] imx415_set_gain
[   74.514561] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 1
[   74.522434] imx415 0-001a: imx415_write_reg: i2c write OK, 3090 = 3
[   74.529989] imx415 0-001a: imx415_write_reg: i2c write OK, 3091 = 0
[   74.537534] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 0
[   74.544859] imx415_s_ctrl
[   74.547959] imx415_set_integration_time
[   74.552601] imx415 0-001a: imx415_read_reg: i2c read OK, 3024 value 202
[   74.560519] imx415 0-001a: imx415_read_reg: i2c read OK, 3025 value 8
[   74.568318] imx415 0-001a: imx415_read_reg: i2c read OK, 3026 value 0
[   74.575836] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 1
[   74.583176] imx415 0-001a: imx415_write_reg: i2c write OK, 3050 = 4f
[   74.590812] imx415 0-001a: imx415_write_reg: i2c write OK, 3051 = 4
[   74.598384] imx415 0-001a: imx415_write_reg: i2c write OK, 3052 = 0
[   74.606015] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 0
[   74.613425] imx415_s_ctrl
[   74.616546] imx415_set_frame_length
[   74.620729] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 1
[   74.628077] imx415 0-001a: imx415_write_reg: i2c write OK, 3024 = ca
[   74.635667] imx415 0-001a: imx415_write_reg: i2c write OK, 3025 = 8
[   74.643056] imx415 0-001a: imx415_write_reg: i2c write OK, 3026 = 0
[   74.650350] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 0
[   74.658087] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 1
[   74.665438] imx415 0-001a: imx415_write_reg: i2c write OK, 3050 = 4f
[   74.672968] imx415 0-001a: imx415_write_reg: i2c write OK, 3051 = 4
[   74.680316] imx415 0-001a: imx415_write_reg: i2c write OK, 3052 = 0
[   74.690779] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 0
[   74.697919] imx415_s_ctrl
[   74.700801] imx415_s_ctrl
[   74.703607] imx415_s_ctrl
[   74.706460] imx415_check_data_rate
[   74.710025] imx415_s_ctrl
[   74.712757] imx415_test_pattern
[   74.727337] imx415_s_ctrl
[   74.729957] imx415_s_ctrl
[   74.733090] imx415_s_ctrl
[   74.736156] imx415_s_ctrl
[   74.739089] imx415_set_storage_time_register
[   74.744044] imx415 0-001a: imx415_write_reg: i2c write OK, 3003 = 0
[   74.751758] imx415 0-001a: imx415_set_operation_mode: operation mode XMASTER reg set to 0
[   74.761964] imx415 0-001a: imx415_write_reg: i2c write OK, 30ce = 0
[   74.771465] imx415 0-001a: imx415_set_sync_mode: operation mode EXTMODE set to 0
[   74.786313] imx415 0-001a: imx415_configure_triggering_pins: Sensor is in Internal sync Master mode
[   74.796492] imx415 0-001a: imx415_write_reg: i2c write OK, 30c1 = 0
[   74.804054] imx415 0-001a: imx415_configure_triggering_pins: XVS_XHS driver register: 0
[   74.813208] imx415_set_data_rate:
[   74.816936] imx415_set_mclk:
[   74.834307] imx415 0-001a: imx415_set_data_rate: Data rate: 0
[   74.840301] imx415 0-001a: imx415_adjust_hmax_register:++
[   74.847340] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 1
[   74.854738] imx415 0-001a: imx415_write_reg: i2c write OK, 3028 = 26
[   74.862371] imx415 0-001a: imx415_write_reg: i2c write OK, 3029 = 2
[   74.868965] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 0
[   74.876547] imx415 0-001a: imx415_adjust_hmax_register:  HMAX: 550
[   74.883574] imx415 0-001a: imx415_is_pin_configuration_valid: XVS & XHS as output
[   74.934014] misc tegra_camera_ctrl: tegra_camera_update_isobw: Warning, Requested ISO BW 1740234 has been capped to VI's max BW 1500000
[   74.947680] imx415_s_ctrl
[   74.951389] imx415_s_ctrl
[   74.954006] imx415_set_frame_length
[   74.958321] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 1
[   74.964866] imx415 0-001a: imx415_write_reg: i2c write OK, 3024 = ca
[   74.972974] imx415 0-001a: imx415_write_reg: i2c write OK, 3025 = 8
[   74.980331] imx415 0-001a: imx415_write_reg: i2c write OK, 3026 = 0
[   74.987733] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 0
[   74.995158] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 1
[   75.002562] imx415 0-001a: imx415_write_reg: i2c write OK, 3050 = 4f
[   75.011314] imx415 0-001a: imx415_write_reg: i2c write OK, 3051 = 4
[   75.018843] imx415 0-001a: imx415_write_reg: i2c write OK, 3052 = 0
[   75.026212] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 0
[   75.034106] imx415_s_ctrl
[   75.054685] imx415_s_ctrl
[   75.057309] imx415_s_ctrl
[   75.060418] imx415_set_frame_length
[   75.064386] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 1
[   75.071865] imx415 0-001a: imx415_write_reg: i2c write OK, 3024 = ca
[   75.079302] imx415 0-001a: imx415_write_reg: i2c write OK, 3025 = 8
[   75.086868] imx415 0-001a: imx415_write_reg: i2c write OK, 3026 = 0
[   75.094162] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 0
[   75.100762] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 1
[   75.108639] imx415 0-001a: imx415_write_reg: i2c write OK, 3050 = 4f
[   75.116519] imx415 0-001a: imx415_write_reg: i2c write OK, 3051 = 4
[   75.124112] imx415 0-001a: imx415_write_reg: i2c write OK, 3052 = 0
[   75.131450] imx415 0-001a: imx415_write_reg: i2c write OK, 3001 = 0
[   75.138942] imx415_s_ctrl
[   75.143749] misc tegra_camera_ctrl: ISO BW req 1770954 > 1500000 (max) capping to max
[   75.152012] misc tegra_camera_ctrl: tegra_camera_update_isobw: Warning, Requested ISO BW 1740234 has been capped to VI's max BW 1500000
[   76.456814] fence timeout on [ffffffc0ca79d480] after 1500ms
[   76.457136] fence timeout on [ffffffc0ca79d600] after 1500ms
[   76.457142] name=[nvhost_sync:19], current value=0 waiting value=1
[   76.457146] ---- mlocks ----

[   76.457157] ---- syncpts ----
[   76.457164] id 1 (disp0_a) min 150 max 150 refs 1 (previous client : )
[   76.457168] id 2 (disp0_b) min 2 max 2 refs 1 (previous client : )
[   76.457171] id 3 (disp0_c) min 2 max 2 refs 1 (previous client : )
[   76.457173] id 4 (disp0_d) min 2 max 2 refs 1 (previous client : )
[   76.457250] id 9 (gm20b_507) min 8406 max 8406 refs 1 (previous client : )
[   76.457254] id 11 (gm20b_506) min 14 max 14 refs 1 (previous client : )
[   76.457258] id 12 (gm20b_505) min 782 max 782 refs 1 (previous client : gm20b_505)
[   76.457265] id 19 (54600000.isp_0) min 0 max 3 refs 4 (previous client : )
[   76.457267] id 20 (54600000.isp_1) min 0 max 3 refs 4 (previous client : )
[   76.457270] id 21 (54600000.isp_2) min 7 max 15 refs 10 (previous client : )
[   76.457273] id 22 (54600000.isp_3) min 0 max 3 refs 4 (previous client : )

Hi, I don’t have a test system on hand for the next few days to give a reference. Anyway it looks like your device tree mappings are probably OK, maybe there is something in sensor mode configuration that is causing problems for CSI receiver

You might want to try toggling this setting in the device tree sensor modes (set to opposite of whatever it is):

discontinuous_clk = “no”;

Other people may be able to provide more help if you post your device tree with a command like

sudo apt install device-tree-compiler
dtc -I fs /sys/firmware/devicetree/base

Actually I discovered that the nvgstcapture is forcing the “bypass mode”.
The same happens on Jetson TX2 with exactely the same driver but there it works well.

Here is my device tree with media connections:

{
	host1x {
		vi_base: vi {
			num-channels = <2>;
			ports {
				#address-cells = <1>;
				#size-cells = <0>;
				vi_port0: port@0 { // J10 CSI-2 AB, I2C 6
                    status="disabled";
					reg = <0>;
					nvtc358743_vi_in0: endpoint {
                        status="disabled";
						port-index = <0>;
						bus-width = <4>;
						remote-endpoint = <&nvtc358743_csi_out0>;
					};
				};
                vi_port1: port@1 { // J5 CSI-2 CD, I2C 0
                    status="okay";
                    reg = <1>;
                    imx415_vi_in1: endpoint {
                        status="okay";
                        port-index = <2>;
                        bus-width = <4>;
                        remote-endpoint = <&imx415_csi_out1>;
                    };
                };
            };
		};

		csi_base: nvcsi {
			num-channels = <2>;
			#address-cells = <1>;
			#size-cells = <0>;
			csi_chan0: channel@0 {
				reg = <0>;
                status="disabled";
				ports {
					#address-cells = <1>;
					#size-cells = <0>;
                    status="disabled";
					csi_chan0_port0: port@0 {
                        status="disabled";
						reg = <0>;
						nvtc358743_csi_in0: endpoint@0 {
                            status="disabled";
							port-index = <0>;
							bus-width = <4>;
							remote-endpoint = <&nvtc358743_out0>;
						};
					};
					csi_chan0_port1: port@1 {
						reg = <1>;
                        status="disabled";
						nvtc358743_csi_out0: endpoint@1 {
                            status="disabled";
							remote-endpoint = <&nvtc358743_vi_in0>;
						};
					};
				};
			};
            csi_chan1: channel@1 {
                reg = <1>;
                status="okay";
                ports {
                    #address-cells = <1>;
                    #size-cells = <0>;
                    csi_chan1_port0: port@2 {
                        status="okay";
                        reg = <0>;
                        imx415_csi_in1: endpoint@2 {
                            status="okay";
                            port-index = <2>;
                            bus-width = <4>;
                            remote-endpoint = <&imx415_out1>;
                        };
                    };
                    csi_chan1_port1: port@3 {
                        status="okay";
                        reg = <1>;
                        imx415_csi_out1: endpoint@3 {
                            status="okay";
                            remote-endpoint = <&imx415_vi_in1>;
                        };
                    };
                };
            };
		};

        i2c@546c0000 {
            auvb102_cam0: nvtc358743@0f {
                status="disabled";
                compatible = "toshiba,nvtc358743";

                /* I2C device address */
                reg = <0x0f>;

                /* V4L2 device node location */
                devnode = "video0";

                /* Physical dimensions of sensor */
                physical_w = "3.680";
                physical_h = "2.760";

                sensor_model = "auvB102";

                ports {
                    #address-cells = <1>;
                    #size-cells = <0>;
                    status="disabled";

                    port@0 {
                        reg = <0>;
                        status="disabled";
                        nvtc358743_out0: endpoint {
                            status="disabled";
                            port-index = <0>;
                            bus-width = <4>;
                            remote-endpoint = <&nvtc358743_csi_in0>;
                        };
                    };
                };
            };
        };

        i2c@7000c000 {
            imx415_cam1: imx415@1a {
                status="okay";
                compatible = "framos,imx415";

                /* I2C device address */
                reg = <0x1a>;

                /* V4L2 device node location */
                devnode = "video1";

                /* Physical dimensions of sensor */
                physical_w = "15.00";
                physical_h = "12.50";

                sensor_model = "imx415";

                avdd-reg = "vana";
                dvdd-reg = "vdig";
                iovdd-reg = "vif";

                /* enable CID_SENSOR_MODE_ID for sensor modes selection */
                use_sensor_mode_id = "false";

                /**
                * A modeX node is required to support v4l2 driver
                * implementation with NVIDIA camera software stack
                *
                * mclk_khz = "";
                * Standard MIPI driving clock, typically 24MHz
                *
                * num_lanes = "";
                * Number of lane channels sensor is programmed to output
                *
                * tegra_sinterface = "";
                * The base tegra serial interface lanes are connected to
                *
                * discontinuous_clk = "";
                * The sensor is programmed to use a discontinuous clock on MIPI lanes
                *
                * dpcm_enable = "true";
                * The sensor is programmed to use a DPCM modes
                *
                * cil_settletime = "";
                * MIPI lane settle time value.
                * A "0" value attempts to autocalibrate based on mclk_multiplier
                *
                *
                *
                *
                * active_w = "";
                * Pixel active region width
                *
                * active_h = "";
                * Pixel active region height
                *
                * pixel_t = "";
                * The sensor readout pixel pattern
                *
                * readout_orientation = "0";
                * Based on camera module orientation.
                * Only change readout_orientation if you specifically
                * Program a different readout order for this mode
                *
                * line_length = "";
                * Pixel line length (width) for sensor mode.
                * This is used to calibrate features in our camera stack.
                *
                * mclk_multiplier = "";
                * Multiplier to MCLK to help time hardware capture sequence
                * TODO: Assign to PLL_Multiplier as well until fixed in core
                *
                * pix_clk_hz = "";
                * Sensor pixel clock used for calculations like exposure and framerate
                *
                *
                *
                *
                * inherent_gain = "";
                * Gain obtained inherently from mode (ie. pixel binning)
                *
                * min_gain_val = ""; (floor to 6 decimal places)
                * max_gain_val = ""; (floor to 6 decimal places)
                * Gain limits for mode
                *
                * min_exp_time = ""; (ceil to integer)
                * max_exp_time = ""; (ceil to integer)
                * Exposure Time limits for mode (us)
                *
                *
                * min_hdr_ratio = "";
                * max_hdr_ratio = "";
                * HDR Ratio limits for mode
                *
                * min_framerate = "";
                * max_framerate = "";
                * Framerate limits for mode (fps)
                *
                * embedded_metadata_height = "";
                * Sensor embedded metadata height in units of rows.
                * If sensor does not support embedded metadata value should be 0.
                */

                mode0 { //
                    mclk_khz = "37125";
                    num_lanes = "4";
                    tegra_sinterface = "serial_a";
                    discontinuous_clk = "no";
                    cil_settletime = "0";
                    active_w = "3864";
                    active_h = "2192";

                    dynamic_pixel_bit_depth = "10";
                    csi_pixel_bit_depth = "10";
                    mode_type = "bayer";
                    pixel_phase = "gbrg";

                    readout_orientation = "0";
                    line_length = "6600";
                    inherent_gain = "1";
                    mclk_multiplier = "24";
                    pix_clk_hz = "891000000";

                    min_gain_val = "1.0";
                    max_gain_val = "72.0";
                    min_hdr_ratio = "1";
                    max_hdr_ratio = "64";
                    min_framerate = "1.462526";
                    max_framerate = "60";
                    min_exp_time = "1";
                    max_exp_time = "65535";
                    embedded_metadata_height = "1";
                };
                mode1 { //
                    mclk_khz = "37125";
                    num_lanes = "4";
                    tegra_sinterface = "serial_a";
                    discontinuous_clk = "no";
                    cil_settletime = "0";
                    active_w = "2016";
                    active_h = "1512";

                    dynamic_pixel_bit_depth = "10";
                    csi_pixel_bit_depth = "10";
                    mode_type = "bayer";
                    pixel_phase = "gbrg";

                    readout_orientation = "0";
                    line_length = "9458";
                    inherent_gain = "1";
                    mclk_multiplier = "24";
                    pix_clk_hz = "891000000";

                    min_gain_val = "1.0";
                    max_gain_val = "72.0";
                    min_hdr_ratio = "1";
                    max_hdr_ratio = "64";
                    min_framerate = "1.462526";
                    max_framerate = "60";
                    min_exp_time = "1";
                    max_exp_time = "65535";
                    embedded_metadata_height = "1";
                };
                mode2 { //
                    mclk_khz = "37125";
                    num_lanes = "4";
                    tegra_sinterface = "serial_a";
                    discontinuous_clk = "no";
                    cil_settletime = "0";
                    active_w = "1296";
                    active_h = "972";

                    dynamic_pixel_bit_depth = "10";
                    csi_pixel_bit_depth = "10";
                    mode_type = "bayer";
                    pixel_phase = "gbrg";

                    readout_orientation = "0";
                    line_length = "14410";
                    inherent_gain = "1";
                    mclk_multiplier = "24";
                    pix_clk_hz = "891000000";

                    min_gain_val = "1.0";
                    max_gain_val = "72.0";
                    min_hdr_ratio = "1";
                    max_hdr_ratio = "64";
                    min_framerate = "1.462526";
                    max_framerate = "60";
                    min_exp_time = "1";
                    max_exp_time = "65535";
                    embedded_metadata_height = "1";
                };
                mode3 { //
                    mclk_khz = "37125";
                    num_lanes = "4";
                    tegra_sinterface = "serial_a";
                    discontinuous_clk = "no";
                    cil_settletime = "0";
                    active_w = "696";
                    active_h = "516";

                    dynamic_pixel_bit_depth = "10";
                    csi_pixel_bit_depth = "10";
                    mode_type = "bayer";
                    pixel_phase = "gbrg";

                    readout_orientation = "0";
                    line_length = "25870";
                    inherent_gain = "1";
                    mclk_multiplier = "24";
                    pix_clk_hz = "891000000";

                    min_gain_val = "1.0";
                    max_gain_val = "72.0";
                    min_hdr_ratio = "1";
                    max_hdr_ratio = "64";
                    min_framerate = "1.462526";
                    max_framerate = "60";
                    min_exp_time = "1";
                    max_exp_time = "65535";
                    embedded_metadata_height = "1";
                };
                mode4 { //
                    mclk_khz = "37125";
                    num_lanes = "4";
                    tegra_sinterface = "serial_a";
                    discontinuous_clk = "no";
                    cil_settletime = "0";
                    active_w = "2016";
                    active_h = "1140";

                    dynamic_pixel_bit_depth = "10";
                    csi_pixel_bit_depth = "10";
                    mode_type = "bayer";
                    pixel_phase = "gbrg";

                    readout_orientation = "0";
                    line_length = "12395";
                    inherent_gain = "1";
                    mclk_multiplier = "24";
                    pix_clk_hz = "891000000";

                    min_gain_val = "1.0";
                    max_gain_val = "72.0";
                    min_hdr_ratio = "1";
                    max_hdr_ratio = "64";
                    min_framerate = "1.462526";
                    max_framerate = "60";
                    min_exp_time = "1";
                    max_exp_time = "65535";
                    embedded_metadata_height = "1";
                };
                mode5 { //
                    mclk_khz = "37125";
                    num_lanes = "4";
                    tegra_sinterface = "serial_a";
                    discontinuous_clk = "no";
                    cil_settletime = "0";
                    active_w = "1344";
                    active_h = "756";

                    dynamic_pixel_bit_depth = "10";
                    csi_pixel_bit_depth = "10";
                    mode_type = "bayer";
                    pixel_phase = "gbrg";

                    readout_orientation = "0";
                    line_length = "18240";
                    inherent_gain = "1";
                    mclk_multiplier = "24";
                    pix_clk_hz = "891000000";

                    min_gain_val = "1.0";
                    max_gain_val = "72.0";
                    min_hdr_ratio = "1";
                    max_hdr_ratio = "64";
                    min_framerate = "1.462526";
                    max_framerate = "60";
                    min_exp_time = "1";
                    max_exp_time = "65535";
                    embedded_metadata_height = "1";
                };
                mode6 { //
                    mclk_khz = "37125";
                    num_lanes = "4";
                    tegra_sinterface = "serial_a";
                    discontinuous_clk = "no";
                    cil_settletime = "0";
                    active_w = "936";
                    active_h = "528";

                    dynamic_pixel_bit_depth = "10";
                    csi_pixel_bit_depth = "10";
                    mode_type = "bayer";
                    pixel_phase = "gbrg";

                    readout_orientation = "0";
                    line_length = "25340";
                    inherent_gain = "1";
                    mclk_multiplier = "24";
                    pix_clk_hz = "891000000";

                    min_gain_val = "1.0";
                    max_gain_val = "72.0";
                    min_hdr_ratio = "1";
                    max_hdr_ratio = "64";
                    min_framerate = "1.462526";
                    max_framerate = "60";
                    min_exp_time = "1";
                    max_exp_time = "65535";
                    embedded_metadata_height = "1";
                };
                mode7 { //
                    mclk_khz = "37125";
                    num_lanes = "4";
                    tegra_sinterface = "serial_a";
                    discontinuous_clk = "no";
                    cil_settletime = "0";
                    active_w = "1944";
                    active_h = "1096";

                    dynamic_pixel_bit_depth = "12";
                    csi_pixel_bit_depth = "12";
                    mode_type = "bayer";
                    pixel_phase = "gbrg";

                    readout_orientation = "0";
                    line_length = "6600";
                    inherent_gain = "1";
                    mclk_multiplier = "24";
                    pix_clk_hz = "891000000";

                    min_gain_val = "1.0";
                    max_gain_val = "72.0";
                    min_hdr_ratio = "1";
                    max_hdr_ratio = "64";
                    min_framerate = "1.462526";
                    max_framerate = "60";
                    min_exp_time = "1";
                    max_exp_time = "65535";
                    embedded_metadata_height = "1";
                };
                mode8 { //
                    mclk_khz = "37125";
                    num_lanes = "4";
                    tegra_sinterface = "serial_a";
                    discontinuous_clk = "no";
                    cil_settletime = "0";
                    active_w = "3864";
                    active_h = "2192";

                    dynamic_pixel_bit_depth = "12";
                    csi_pixel_bit_depth = "12";
                    mode_type = "bayer";
                    pixel_phase = "gbrg";

                    readout_orientation = "0";
                    line_length = "6600";
                    inherent_gain = "1";
                    mclk_multiplier = "24";
                    pix_clk_hz = "891000000";

                    min_gain_val = "1.0";
                    max_gain_val = "72.0";
                    min_hdr_ratio = "1";
                    max_hdr_ratio = "64";
                    min_framerate = "1.462526";
                    max_framerate = "60";
                    min_exp_time = "1";
                    max_exp_time = "65535";
                    embedded_metadata_height = "1";
                };
                mode9 { // 
                    mclk_khz = "37125";
                    num_lanes = "4";
                    tegra_sinterface = "serial_a";
                    discontinuous_clk = "no";
                    cil_settletime = "0";
                    active_w = "2016";
                    active_h = "1512";

                    dynamic_pixel_bit_depth = "12";
                    csi_pixel_bit_depth = "12";
                    mode_type = "bayer";
                    pixel_phase = "gbrg";

                    readout_orientation = "0";
                    line_length = "9458";
                    inherent_gain = "1";
                    mclk_multiplier = "24";
                    pix_clk_hz = "891000000";

                    min_gain_val = "1.0";
                    max_gain_val = "72.0";
                    min_hdr_ratio = "1";
                    max_hdr_ratio = "64";
                    min_framerate = "1.462526";
                    max_framerate = "60";
                    min_exp_time = "1";
                    max_exp_time = "65535";
                    embedded_metadata_height = "1";
                };
                mode10 { //
                    mclk_khz = "37125";
                    num_lanes = "4";
                    tegra_sinterface = "serial_a";
                    discontinuous_clk = "no";
                    cil_settletime = "0";
                    active_w = "1296";
                    active_h = "972";

                    dynamic_pixel_bit_depth = "12";
                    csi_pixel_bit_depth = "12";
                    mode_type = "bayer";
                    pixel_phase = "gbrg";

                    readout_orientation = "0";
                    line_length = "14410";
                    inherent_gain = "1";
                    mclk_multiplier = "24";
                    pix_clk_hz = "891000000";

                    min_gain_val = "1.0";
                    max_gain_val = "72.0";
                    min_hdr_ratio = "1";
                    max_hdr_ratio = "64";
                    min_framerate = "1.462526";
                    max_framerate = "60";
                    min_exp_time = "1";
                    max_exp_time = "65535";
                    embedded_metadata_height = "1";
                };
                mode11 { //
                    mclk_khz = "37125";
                    num_lanes = "4";
                    tegra_sinterface = "serial_a";
                    discontinuous_clk = "no";
                    cil_settletime = "0";
                    active_w = "696";
                    active_h = "516";

                    dynamic_pixel_bit_depth = "12";
                    csi_pixel_bit_depth = "12";
                    mode_type = "bayer";
                    pixel_phase = "gbrg";

                    readout_orientation = "0";
                    line_length = "25870";
                    inherent_gain = "1";
                    mclk_multiplier = "24";
                    pix_clk_hz = "891000000";

                    min_gain_val = "1.0";
                    max_gain_val = "72.0";
                    min_hdr_ratio = "1";
                    max_hdr_ratio = "64";
                    min_framerate = "1.462526";
                    max_framerate = "60";
                    min_exp_time = "1";
                    max_exp_time = "65535";
                    embedded_metadata_height = "1";
                };
                mode12 { //
                    mclk_khz = "37125";
                    num_lanes = "4";
                    tegra_sinterface = "serial_a";
                    discontinuous_clk = "no";
                    cil_settletime = "0";
                    active_w = "2016";
                    active_h = "1140";

                    dynamic_pixel_bit_depth = "12";
                    csi_pixel_bit_depth = "12";
                    mode_type = "bayer";
                    pixel_phase = "gbrg";

                    readout_orientation = "0";
                    line_length = "12390";
                    inherent_gain = "1";
                    mclk_multiplier = "24";
                    pix_clk_hz = "891000000";

                    min_gain_val = "1.0";
                    max_gain_val = "72.0";
                    min_hdr_ratio = "1";
                    max_hdr_ratio = "64";
                    min_framerate = "1.462526";
                    max_framerate = "60";
                    min_exp_time = "1";
                    max_exp_time = "65535";
                    embedded_metadata_height = "1";
                };
                mode13 { //
                    mclk_khz = "37125";
                    num_lanes = "4";
                    tegra_sinterface = "serial_a";
                    discontinuous_clk = "no";
                    cil_settletime = "0";
                    active_w = "1344";
                    active_h = "756";

                    dynamic_pixel_bit_depth = "12";
                    csi_pixel_bit_depth = "12";
                    mode_type = "bayer";
                    pixel_phase = "gbrg";

                    readout_orientation = "0";
                    line_length = "18240";
                    inherent_gain = "1";
                    mclk_multiplier = "24";
                    pix_clk_hz = "891000000";

                    min_gain_val = "1.0";
                    max_gain_val = "72.0";
                    min_hdr_ratio = "1";
                    max_hdr_ratio = "64";
                    min_framerate = "1.462526";
                    max_framerate = "60";
                    min_exp_time = "1";
                    max_exp_time = "65535";
                    embedded_metadata_height = "1";
                };
                mode14 { //
                    mclk_khz = "37125";
                    num_lanes = "4";
                    tegra_sinterface = "serial_a";
                    discontinuous_clk = "no";
                    cil_settletime = "0";
                    active_w = "936";
                    active_h = "528";

                    dynamic_pixel_bit_depth = "12";
                    csi_pixel_bit_depth = "12";
                    mode_type = "bayer";
                    pixel_phase = "gbrg";

                    readout_orientation = "0";
                    line_length = "25340";
                    inherent_gain = "1";
                    mclk_multiplier = "24";
                    pix_clk_hz = "891000000";

                    min_gain_val = "1.0";
                    max_gain_val = "72.0";
                    min_hdr_ratio = "1";
                    max_hdr_ratio = "64";
                    min_framerate = "1.462526";
                    max_framerate = "60";
                    min_exp_time = "1";
                    max_exp_time = "65535";
                    embedded_metadata_height = "1";
                };

                ports {
                    #address-cells = <1>;
                    #size-cells = <0>;
                    status="okay";
                    port@0 {
                        reg = <0>;
                        status="okay";
                        imx415_out1: endpoint {
                            status="okay";
                            port-index = <2>;
                            bus-width = <4>;
                            remote-endpoint = <&imx415_csi_in1>;
                        };
                    };
                };
            };
        };
    };
};

/ {
	tcp: tegra-camera-platform {
        status="okay";
		compatible = "nvidia, tegra-camera-platform";

		/**
		* Physical settings to calculate max ISO BW
		*
		* num_csi_lanes = <>;
		* Total number of CSI lanes when all cameras are active
		*
		* max_lane_speed = <>;
		* Max lane speed in Kbit/s
		*
		* min_bits_per_pixel = <>;
		* Min bits per pixel
		*
		* vi_peak_byte_per_pixel = <>;
		* Max byte per pixel for the VI ISO case
		*
		* vi_bw_margin_pct = <>;
		* Vi bandwidth margin in percentage
		*
		* max_pixel_rate = <>;
		* Max pixel rate in Kpixel/s for the ISP ISO case
		*
		* isp_peak_byte_per_pixel = <>;
		* Max byte per pixel for the ISP ISO case
		*
		* isp_bw_margin_pct = <>;
		* Isp bandwidth margin in percentage
		*/
		num_csi_lanes = <4>;
		max_lane_speed = <1500000>;
		min_bits_per_pixel = <10>;
		vi_peak_byte_per_pixel = <2>;
		vi_bw_margin_pct = <25>;
		max_pixel_rate = <240000>;
		isp_peak_byte_per_pixel = <5>;
		isp_bw_margin_pct = <25>;

		/**
		 * The general guideline for naming badge_info contains 3 parts, and is as follows,
		 * The first part is the camera_board_id for the module; if the module is in a FFD
		 * platform, then use the platform name for this part.
		 * The second part contains the position of the module, ex. "rear" or "front".
		 * The third part contains the last 6 characters of a part number which is found
		 * in the module's specsheet from the vendor.
		 */
		modules {
			cam_module0: module0 {
                status="disabled";
				badge = "b102_front_auvidea";
				position = "front";
				orientation = "1";
				cam_module0_drivernode0: drivernode0 {
                    status="disabled";
					pcl_id = "v4l2_sensor";
					devname = "auvB102 6-000f";
					proc-device-tree = "/proc/device-tree/host1x/i2c@546c0000/nvtc358743@0f";
				};
			};
            cam_module1: module1 {
                status="okay";
                badge = "imx415_rear_framos";
                position = "rear";
                orientation = "1";
                cam_module1_drivernode0: drivernode0 {
                    status="okay";
                    pcl_id = "v4l2_sensor";
                    devname = "imx415 0-001a";
                    proc-device-tree = "/proc/device-tree/host1x/i2c@7000c000/imx415@1a";      //changed(fd)
                };
            };
		};
	};
};

Does the pix_clk_hz is correct? Have increasing it to try.

Hi tessadriandrea,

Have you found the cause and resolved the problem?
Any result can be shared?

Hi kayccc and Shaneccc,
actually I am following the thread:

https://devtalk.nvidia.com/default/topic/1062465/jetson-nano/device-tree-for-4-lane-mipi-csi-2-camera-on-auvidea-jn30/post/5416141/#5416141

that has a similar issue but it is not causing the block of the hardware, since I am using CSI CD
For sure it is an issue related to the clock on ISPA or ISPB, but I don’t have any control on it.
NVidia drivers are in charge to program ISPA and ISPB clock.

The the nvcsi/vi/isp clock depend on pix_clk_hz, You can try to increase it to check if any help.

I have been able to capture successfully at 4 lanes from CD and with overlay on HDMI.
My big mistake was the FPS mismatch between device tree (sensor modes) and device driver mode tables.
Actually I set the CSI for 594 Mbps x 4 lanes with expected FPS 25, so in the device tree sensor modes I wrote a maximum frame rate of 25 fps for the mode0 full-frame.
Unfortunately in the device driver mode tables I leaved the nominal frame rate of 60p, instead of adding 25p to the list of suitable frameintervals for such mode.