8M RAW sensor, v4l2 can capture frames but nvargus can not capture

Hi NV_Team,

We have implement a 8M RAW sensor, v4l2 can capture frames but nvargus can not open this sensor (no error logs).

JetPack5.1.2

nvidia@nvidia-desktop:~$ v4l2-ctl --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
	Type: Video Capture

	[0]: 'BG12' (12-bit Bayer BGBG/GRGR)
		Size: Discrete 3840x2160
			Interval: Discrete 0.033s (30.000 fps)

nvidia@nvidia-desktop:~$ v4l2-ctl --list-devices
NVIDIA Tegra Video Input Device (platform:tegra-camrtc-ca):
	/dev/media0

vi-output, ox08b40 2-003a (platform:tegra-capture-vi:2):
	/dev/video0
	/dev/video1
	/dev/video2
	/dev/video3

Please help to check v4l2, nvargus and nvargus-daemon logs.

V4L2 Commands:

nvidia@nvidia-desktop:~$ v4l2-ctl  -V --set-fmt-video width=3840,height=2160,pixelformat=BG12 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=100  -d /dev/video0
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'BG12' (12-bit Bayer BGBG/GRGR)
	Field             : None
	Bytes per Line    : 7680
	Size Image        : 16588800
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 29.79 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 31.78 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 32.44 fps
<

NVARGUS Commands

nvidia@nvidia-desktop:~$ gst-launch-1.0 nvarguscamerasrc sensor-id=0 ! 'video/x-raw(memory:NVMM), width=(int)3840, height=(int)2160, framerate=30/1'  ! nvvidconv flip-method=0 ! 'video/x-raw, format=(string)I420' ! xvimagesink -e
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
GST_ARGUS: Creating output stream
CONSUMER: Waiting until producer is connected...
GST_ARGUS: Available Sensor modes :
GST_ARGUS: 3840 x 2160 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 0.500000, max 30.000000; Exposure Range min 30000, max 660000000;

GST_ARGUS: Running with following settings:
   Camera index = 0 
   Camera mode  = 0 
   Output Stream W = 3840 H = 2160 
   seconds to Run    = 0 
   Frame Rate = 29.999999 
GST_ARGUS: Setup Complete, Starting captures for 0 seconds
GST_ARGUS: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
nvbuf_utils: dmabuf_fd -1 mapped entry NOT found
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadExecute:694 NvBufSurfaceFromFd Failed.
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadFunction:247 (propagating)
ERROR: from element /GstPipeline:pipeline0/GstNvArgusCameraSrc:nvarguscamerasrc0: CANCELLED
Additional debug info:
Argus Error Status
EOS on shutdown enabled -- waiting for EOS after Error
Waiting for EOS...
=== gst-launch-1.0[5359]: Connection established (FFFFAA1DE900)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 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(0xffffa464a090)
getInstance: s_instance(0xffffa464a090)
subscribe: SensorType(gyroscope)
subscribe: create SensorType(gyroscope) sensor(0xffffa44bb240)
subscribe: SensorType(accelerometer)
subscribe: create SensorType(accelerometer) sensor(0xffffa449a440)
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
NvPclModuleListInitialize: numBuiltinModules 4 11
OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module0
OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module1
OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module2
OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module3
NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
NvPclHwGetModuleList: No module data found
NvPclHwPrintModuleDefinition -- Name: ox08b40_front
NvPclHwPrintModuleDefinition -- Position: 1
NvPclHwPrintModuleDefinition -- CalibrationData Found: 1
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].Name: v4l2_sensor
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].DevName: ox08b40 2-003a
NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
NvPclHwGetModuleList: No module data found
NvPclHwPrintModuleDefinition -- Name: ox08b40_rear
NvPclHwPrintModuleDefinition -- Position: 0
NvPclHwPrintModuleDefinition -- CalibrationData Found: 1
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].Name: v4l2_sensor
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].DevName: ox08b40 2-003b
NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
NvPclHwGetModuleList: No module data found
NvPclHwPrintModuleDefinition -- Name: ox08b40_top
NvPclHwPrintModuleDefinition -- Position: 1
NvPclHwPrintModuleDefinition -- CalibrationData Found: 1
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].Name: v4l2_sensor
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].DevName: ox08b40 2-003c
NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
NvPclHwGetModuleList: No module data found
NvPclHwPrintModuleDefinition -- Name: ox08b40_bottom
NvPclHwPrintModuleDefinition -- Position: 0
NvPclHwPrintModuleDefinition -- CalibrationData Found: 1
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].Name: v4l2_sensor
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].DevName: ox08b40 2-003d
NvPclHwGetModuleList: OFParserListModules Succeeded
NvPclModuleListInitialize: numBuiltinModules 4 22
NvPclModuleListInitialize: NvPclModule list[0]: ox08b40_front position 1 numBuiltinModules 4
NvPclModuleListInitialize: NvPclModule list[1]: ox08b40_rear position 0 numBuiltinModules 4
NvPclModuleListInitialize: NvPclModule list[2]: ox08b40_top position 1 numBuiltinModules 4
NvPclModuleListInitialize: NvPclModule list[3]: ox08b40_bottom position 0 numBuiltinModules 4
NvPclHwScanExternalCameras -- adding video3 to discover list
NvPclHwScanExternalCameras -- adding video2 to discover list
NvPclHwScanExternalCameras -- adding video1 to discover list
NvPclHwScanExternalCameras -- adding video0 to discover list
NvPclModuleListInitialize: numPlugableModules 4 +++
NvPclHwScanExternalCameras -- adding video3 to discover list
NvPclHwScanExternalCameras -- adding video2 to discover list
NvPclHwScanExternalCameras -- adding video1 to discover list
NvPclHwScanExternalCameras -- adding video0 to discover list
NvPclHwAddModules isVirtual 1 ^^^^^^^^
NvPclHwScanExternalCameras -- adding video3 to discover list
NvPclHwScanExternalCameras -- adding video2 to discover list
NvPclHwScanExternalCameras -- adding video1 to discover list
NvPclHwScanExternalCameras -- adding video0 to discover list
NvPclHwAddModules isVirtual 1 ^^^^^^^^
NvPclHwAddModules isVirtual 0 ^^^^^^^^
NvPclHwAddModules isVirtual 0 ^^^^^^^^
NvPclModuleListInitialize: numPlugableModules 0 ---
getHotplugMonitor: Getting hotplug monitor instance
 initializeHotplug++
 hotPlugfunc ++ 
 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: reading from inotify FD, Thread waiting 
numSources: numSources 4 

numSources: numSources 4 

numSources: numSources 4 

getSource: index 0 and numSources 4

numSources: numSources 4 

numSources: numSources 4 


 addSourceByIndex: index 0 and guid 1ud 

NvPclOpen: ++++++++++++++++++++++
NvPclStateControllerOpen: Found GUID 1 match at index[0]
NvPclStateControllerOpen: Found GUID 1 match at index[2]
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffa4585a10
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffa4648bc0
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffa45f5a20
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffa45f5960
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffa46c75b0
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffa46c7640
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/ox08b40_top.isp] 6/16
CheckOverridesPermissions: stat(/data/vendor/nvcam/settings/ox08b40_top.isp) call failed
LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/ox08b40_top.isp] 7/16
CheckOverridesPermissions: stat(/opt/nvidia/nvcam/settings/ox08b40_top.isp) call failed
LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/ox08b40_top.isp] 8/16
CheckOverridesPermissions: stat(/var/nvidia/nvcam/settings/ox08b40_top.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/ox08b40_top.bin] 2/16
Imager: looking for override file [/opt/nvidia/nvcam/settings/ox08b40_top.bin] 3/16
Imager: looking for override file [/var/nvidia/nvcam/settings/ox08b40_top.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]
OFDPropertyGetString: could not read property [supports-alt-exp]
OFDPropertyGetString: could not read property [sync_sensor]
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.dynamic_pixel_bit_depth]
OFDPropertyCopyToFloat: could not read property [mode0.gain_step_pitch]
OFDPropertyCopyToLong: could not read property [mode0.clk_settletime]
OFDPropertyCopyToLong: could not read property [mode0.embedded_metadata_width]
OFDPropertyCopyToLong: could not read property [mode0.lane_polarity]
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]
initialize: Loaded Driver: 1 Modes Available--------------
NvPclInitializeDrivers: v4l2_sensor ------------------
NvPclOpen: ----------------------
LSC: LSC surface is not based on full res!
numSources: numSources 4 

numSources: numSources 4 

getSource: index 1 and numSources 4

numSources: numSources 4 

numSources: numSources 4 


 addSourceByIndex: index 1 and guid 0ud 

NvPclOpen: ++++++++++++++++++++++
NvPclStateControllerOpen: Found GUID 0 match at index[1]
NvPclStateControllerOpen: Found GUID 0 match at index[3]
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffa4b330c0
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffa4b1a1b0
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffa46c9970
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffa46c9f60
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffa46c9ff0
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffa46c8dd0
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/ox08b40_bottom.isp] 6/16
CheckOverridesPermissions: stat(/data/vendor/nvcam/settings/ox08b40_bottom.isp) call failed
LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/ox08b40_bottom.isp] 7/16
CheckOverridesPermissions: stat(/opt/nvidia/nvcam/settings/ox08b40_bottom.isp) call failed
LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/ox08b40_bottom.isp] 8/16
CheckOverridesPermissions: stat(/var/nvidia/nvcam/settings/ox08b40_bottom.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/ox08b40_bottom.bin] 2/16
Imager: looking for override file [/opt/nvidia/nvcam/settings/ox08b40_bottom.bin] 3/16
Imager: looking for override file [/var/nvidia/nvcam/settings/ox08b40_bottom.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]
OFDPropertyGetString: could not read property [supports-alt-exp]
OFDPropertyGetString: could not read property [sync_sensor]
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.dynamic_pixel_bit_depth]
OFDPropertyCopyToFloat: could not read property [mode0.gain_step_pitch]
OFDPropertyCopyToLong: could not read property [mode0.clk_settletime]
OFDPropertyCopyToLong: could not read property [mode0.embedded_metadata_width]
OFDPropertyCopyToLong: could not read property [mode0.lane_polarity]
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]
initialize: Loaded Driver: 1 Modes Available--------------
NvPclInitializeDrivers: v4l2_sensor ------------------
NvPclOpen: ----------------------
LSC: LSC surface is not based on full res!
numSources: numSources 4 

numSources: numSources 4 

getSource: index 2 and numSources 4

numSources: numSources 4 

numSources: numSources 4 


 addSourceByIndex: index 2 and guid 1ud 

NvPclOpen: ++++++++++++++++++++++
NvPclStateControllerOpen: Found GUID 1 match at index[0]
NvPclStateControllerOpen: Found GUID 1 match at index[2]
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffa4ae2840
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffa4af2250
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffa46c76d0
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffa46d6a50
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffa4ae79f0
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffa4ae7a80
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/ox08b40_top.isp] 6/16
CheckOverridesPermissions: stat(/data/vendor/nvcam/settings/ox08b40_top.isp) call failed
LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/ox08b40_top.isp] 7/16
CheckOverridesPermissions: stat(/opt/nvidia/nvcam/settings/ox08b40_top.isp) call failed
LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/ox08b40_top.isp] 8/16
CheckOverridesPermissions: stat(/var/nvidia/nvcam/settings/ox08b40_top.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/ox08b40_top.bin] 2/16
Imager: looking for override file [/opt/nvidia/nvcam/settings/ox08b40_top.bin] 3/16
Imager: looking for override file [/var/nvidia/nvcam/settings/ox08b40_top.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]
OFDPropertyGetString: could not read property [supports-alt-exp]
OFDPropertyGetString: could not read property [sync_sensor]
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.dynamic_pixel_bit_depth]
OFDPropertyCopyToFloat: could not read property [mode0.gain_step_pitch]
OFDPropertyCopyToLong: could not read property [mode0.clk_settletime]
OFDPropertyCopyToLong: could not read property [mode0.embedded_metadata_width]
OFDPropertyCopyToLong: could not read property [mode0.lane_polarity]
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]
initialize: Loaded Driver: 1 Modes Available--------------
NvPclInitializeDrivers: v4l2_sensor ------------------
NvPclOpen: ----------------------
LSC: LSC surface is not based on full res!
numSources: numSources 4 

numSources: numSources 4 

getSource: index 3 and numSources 4

numSources: numSources 4 

numSources: numSources 4 


 addSourceByIndex: index 3 and guid 0ud 

NvPclOpen: ++++++++++++++++++++++
NvPclStateControllerOpen: Found GUID 0 match at index[1]
NvPclStateControllerOpen: Found GUID 0 match at index[3]
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffa4b31200
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffa4b91030
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffa4ae2950
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffa4b31290
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffa4af22e0
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffa4af2370
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/ox08b40_bottom.isp] 6/16
CheckOverridesPermissions: stat(/data/vendor/nvcam/settings/ox08b40_bottom.isp) call failed
LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/ox08b40_bottom.isp] 7/16
CheckOverridesPermissions: stat(/opt/nvidia/nvcam/settings/ox08b40_bottom.isp) call failed
LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/ox08b40_bottom.isp] 8/16
CheckOverridesPermissions: stat(/var/nvidia/nvcam/settings/ox08b40_bottom.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/ox08b40_bottom.bin] 2/16
Imager: looking for override file [/opt/nvidia/nvcam/settings/ox08b40_bottom.bin] 3/16
Imager: looking for override file [/var/nvidia/nvcam/settings/ox08b40_bottom.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]
OFDPropertyGetString: could not read property [supports-alt-exp]
OFDPropertyGetString: could not read property [sync_sensor]
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.dynamic_pixel_bit_depth]
OFDPropertyCopyToFloat: could not read property [mode0.gain_step_pitch]
OFDPropertyCopyToLong: could not read property [mode0.clk_settletime]
OFDPropertyCopyToLong: could not read property [mode0.embedded_metadata_width]
OFDPropertyCopyToLong: could not read property [mode0.lane_polarity]
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]
initialize: Loaded Driver: 1 Modes Available--------------
NvPclInitializeDrivers: v4l2_sensor ------------------
NvPclOpen: ----------------------
LSC: LSC surface is not based on full res!
numSources: numSources 4 

=== gst-launch-1.0[5359]: CameraProvider initialized (0xffffa46d6760)sourceRegistry[0] assigned

ispRegistry[0] assigned

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

SCF: Error BadValue: NvPHSSendThroughputHints (in src/common/CameraPowerHint.cpp, function sendCameraPowerHint(), line 56)
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
setupCC: inputBuffer (nil) or inStream (nil) and mode 0

genInstructionBayerSource: useSensorCaptureStage 1 useMemoryToISPCaptureStage 1 and useSensorISPCapture 0 

No output buffers for 2
No output buffers for 1
genInstructionBayerSource: useMemoryToISPCaptureStage bayerOutMask, outBufMask and yuvOutBufMask 0, 1 1

findMatchingBufIndexes:2nd Pass: bufState size 2readAccess 0 and writeAccess 1 and effectiveGroup 0xffff600013d0

findMatchingBufIndexes:2nd Pass: bufState size 3readAccess 1 and writeAccess 0 and effectiveGroup 0xffff60000d40

routeForNextStage: ccIndex 3 adScalingBit

InstructionList:
  + GraphSettings
      | SensorMode: 3840x2160 BayerS16BGGR 30.0fps
      | output 0: 3840x2160 BL U8_V8_ER 420SP
      | inputClipRect 0: (0.00,0.00, 1.00,1.00)
      | sharedIsp

  + Instruction List
      | id: 0
      +  0: CCDataSetupStage
          | EstimatedIspOutLatencyFrames: 6
          | NumConcurrentCaptures: 1
          | UnprocessedYuvBufferMask: 0
      +  1: ACSynchronizeStage
      +  2: AeAfApplyStage
      +  3: AcPluginStage
          | operation: opApply
      +  4: AcMergeStage
          | IspIn: [3840, 2160]
          | IspOut0: [3840, 2160]
          | IspOut1: [0, 0]
          | IspOut2: [640, 360]
      +  5: TempBufferAcquireStage
          | Buffer Index: 3
          | BufferRequirements: 3840x2160 Pitch BayerS16BGGR
      +  6: TempBufferAcquireStage
          | Buffer Index: 4
          | BufferRequirements: 3840x1 Pitch NonColor8
      +  7: SensorCaptureStage
          | Master: 1
          | Source GUID: 1
          | Output Buffer: 3
          | SensorMetadata Buffer: 4
      +  8: StatsBufferAcquireStage
          | Buffer Index: 1
          | BufferRequirements: 640x360 Pitch U8_V8_ER 420SP
      +  9: TempBufferAcquireStage
          | Buffer Index: 2
          | BufferRequirements: 524288x1 Pitch NonColor8
      + 10: MemoryToISPCaptureStage
          | Master: 1
          | Input Buffer: 3
          | Output A Buffer: 0
          | Output Thumb Buffer: 1
          | Output IspStats Buffer: 2
          | Source GUID: 1
      + 11: BufferReturnStage
          | Output A Buffer: 3
      + 12: StatsUpdateStage
          | Output Meta Buffer: 4
          | Output IspStats Buffer: 2
      + 13: BufferReturnStage
          | Output A Buffer: 4
      + 14: BufferReturnStage
          | Output A Buffer: 2
      + 15: AcPluginStage
          | operation: opAnalyze
      + 16: AfAnalysisStage
      + 17: MonitorStage
      + 18: ExifStage
      + 19: MakerNoteStage
      + 20: BufferReturnStage
          | Output A Buffer: 0
      + 21: MetadataReturnStage
      + 22: PerfStatsStage

setupCC: ccId 101 done

Created fiber 0xffff64000b60 for CC 101 globalID 101 session 1
setupCC: inputBuffer (nil) or inStream (nil) and mode 0

setupCC: ccId 102 done

Created fiber 0xffff64000e10 for CC 102 globalID 102 session 1
Thread 2 is working on CC 101 session 1 globalID 101 step 0
CC: RawReprocessEnable 0 

assignAllBuffersFromStream is done ii 0 stream 0xffff6c001350 and buffer 0xffff6c009900%

CC 101 session 1 completed step 0 in fiber 0xffff64000b60
cc 101(1) session 1 runCount=0 runIspOut=0, latest ccId=0
CC 101 session 1 completed step 1 in fiber 0xffff64000b60
NV AE and AfApply algorithms are active.
CC 101 session 1 completed step 2 in fiber 0xffff64000b60
CC 101 session 1 completed step 3 in fiber 0xffff64000b60
CC 101 session 1 completed step 4 in fiber 0xffff64000b60
Thread 1 is working on CC 102 session 1 globalID 102 step 0
CC: RawReprocessEnable 0 

assignAllBuffersFromStream is done ii 0 stream 0xffff6c001350 and buffer 0xffff6c00b070%

CC 102 session 1 completed step 0 in fiber 0xffff64000e10
cc 102(2) session 1 runCount=1 runIspOut=0, latest ccId=0
CC 102 session 1 completed step 1 in fiber 0xffff64000e10
NV AE and AfApply algorithms are active.
setupCC: inputBuffer (nil) or inStream (nil) and mode 0

CC 102 session 1 completed step 2 in fiber 0xffff64000e10
CC 102 session 1 completed step 3 in fiber 0xffff64000e10
setupCC: ccId 103 done

CC 101 session 1 completed step 5 in fiber 0xffff64000b60
CC 101 session 1 completed step 6 in fiber 0xffff64000b60
CC 101 session 1 processing step 7 in fiber 0xffff64000b60
FiberScheduler: cc 101, session 1, fiber 0xffff64000b60 in progress...

Thread 2 getting next capture
Thread 2 is waiting
Thread 3 is waiting
CC 102 session 1 completed step 4 in fiber 0xffff64000e10
CC 102 session 1 completed step 5 in fiber 0xffff64000e10
CC 102 session 1 completed step 6 in fiber 0xffff64000e10
CC 102 session 1 processing step 7 in fiber 0xffff64000e10
FiberScheduler: cc 102, session 1, fiber 0xffff64000e10 in progress...

Thread 1 getting next capture
Thread 1 is waiting
Thread 4 is waiting
Sensorhw::setSensorMode 1 and TimeMs 197901 +++

NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
writeMode: Target mode Id(0): Resolution 3840x2160
writeFrameRate:	INPUT frameRate:30.000000
writeGain:	INPUT gainCtrl:5 analogGain:0.500000
updateOutputSettings:	OUTPUT frameRate:30.000000
updateOutputSettings:	OUTPUT analogGain:0.500000
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Sensorhw::setSensorMode 1 and TimeMs 197909 ---

NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
writeGain:	INPUT gainCtrl:a analogGain:1.000100
writeExposure:	INPUT expTime:0.033330
updateOutputSettings:	OUTPUT analogGain:1.000000
updateOutputSettings:	OUTPUT expTime:0.033330
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=3840, input height=2160, input Bpp=12
	req[0]: output width=3840, output height=2160, output Bpp=16
	req[0]: input fps=30
	req[0]: guID=1, stage type=MemIspCapture
	req[0]: clock=0 Hz, iso bw=0 KB/s, non-iso bw=987360 KB/s
	req[450]: timeout=8
PowerServiceHwIsp:setLaBw: m_bwVal_Iso=0 and m_bwVal_NonIso=987360 KBpS

PowerServiceCore:setCameraBw: totalNonIsoBw=987360
Sensorhw::setSensorMode 1 and TimeMs 198183 +++

NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Sensorhw::setSensorMode 1 and TimeMs 198183 ---

Sensorhw::enableSensor 1 and TimeMs 198184 +++

NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Sensorhw::enableSensor 1 and TimeMs 198184 ---

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:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
CaptureService cancelling request 1Created fiber 0xffff64000fb0 for CC 103 globalID 103 session 1
setupCC: inputBuffer (nil) or inStream (nil) and mode 0


captureComplete: master HwFrameCount 0 sof tsc time 0.000000 ms

FiberScheduler: cc 102, session 1, fiber 0xffff64000e10 aborted in async operation

Thread 5 is working on CC 103 session 1 globalID 103 step 0
CC: RawReprocessEnable 0 

assignAllBuffersFromStream is done ii 0 stream 0xffff6c001350 and buffer 0xffff6c00c640%

CC 103 session 1 completed step 0 in fiber 0xffff64000fb0
cc 103(3) session 1 runCount=2 runIspOut=0, latest ccId=0
CC 103 session 1 completed step 1 in fiber 0xffff64000fb0
NV AE and AfApply algorithms are active.
CC 103 session 1 completed step 2 in fiber 0xffff64000fb0
CC 103 session 1 completed step 3 in fiber 0xffff64000fb0
CC 103 session 1 completed step 4 in fiber 0xffff64000fb0
CC 103 session 1 completed step 5 in fiber 0xffff64000fb0
CC 103 session 1 completed step 6 in fiber 0xffff64000fb0
setupCC: ccId 104 done

returnBuffer: apiInput 0 and bufferIndex 0 and buffer 0xffff6c00b070 and stream 0xffff6c001350 and instream (nil)

fillCaptureResults: sessionId 1 HwFrameCount 0 and HwFrameCount2 0 vs appCaptureId 2 sof tsc time 0.000000 ms and sof tsc2 0.000000 ms

FiberScheduler: fiber 0xffff64000e10 exiting
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
captureComplete: master HwFrameCount 0 sof tsc time 0.000000 ms

disposing CC 102 Session 1
SCF: Error InvalidState: Sensor 1 already in same state 
 (in src/services/capture/CaptureServiceDeviceSensor.cpp, function setErrorState(), line 100)
SCF: Error InvalidState: Timeout!! Skipping requests on sensor GUID 1, capture sequence ID = 281470681743361 draining session frameStart events 281470681743362
 (in src/services/capture/FusaCaptureViCsiHw.cpp, function waitCsiFrameStart(), line 532)
SCF: Error InvalidState: Timeout!! Skipping requests on sensor GUID 1, capture sequence ID = 281470681743360 draining session frameEnd events 281470681743363
 (in src/services/capture/FusaCaptureViCsiHw.cpp, function waitCsiFrameEnd(), line 635)
returnBuffer: apiInput 0 and bufferIndex 3 and buffer 0xffff5c02b460 and stream (nil) and instream (nil)

returnBuffer: apiInput 0 and bufferIndex 4 and buffer 0xffff5c02c4b0 and stream (nil) and instream (nil)

Thread 6 is waiting
FiberScheduler: cc 101, session 1, fiber 0xffff64000b60 aborted in async operation

returnBuffer: apiInput 0 and bufferIndex 0 and buffer 0xffff6c009900 and stream 0xffff6c001350 and instream (nil)

fillCaptureResults: sessionId 1 HwFrameCount 0 and HwFrameCount2 0 vs appCaptureId 1 sof tsc time 0.000000 ms and sof tsc2 0.000000 ms

FiberScheduler: fiber 0xffff64000b60 exiting
disposing CC 101 Session 1
returnBuffer: apiInput 0 and bufferIndex 3 and buffer 0xffff5802b9b0 and stream (nil) and instream (nil)

returnBuffer: apiInput 0 and bufferIndex 4 and buffer 0xffff5802ca00 and stream (nil) and instream (nil)

Thread 7 is waiting
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
CC 103 session 1 processing step 7 in fiber 0xffff64000fb0
FiberScheduler: cc 103, session 1, fiber 0xffff64000fb0 in progress...

Thread 5 getting next capture
Thread 5 is waiting
Thread 8 is waiting
Created fiber 0xffff64001150 for CC 104 globalID 104 session 1
Thread 9 is working on CC 104 session 1 globalID 104 step 0
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
CC: RawReprocessEnable 0 

setupCC: inputBuffer (nil) or inStream (nil) and mode 0

assignAllBuffersFromStream is done ii 0 stream 0xffff6c001350 and buffer 0xffff6c00dc10%

CC 104 session 1 completed step 0 in fiber 0xffff64001150
cc 104(4) session 1 runCount=3 runIspOut=0, latest ccId=0
CC 104 session 1 completed step 1 in fiber 0xffff64001150
NV AE and AfApply algorithms are active.
setupCC: ccId 105 done

CC 104 session 1 completed step 2 in fiber 0xffff64001150
CC 104 session 1 completed step 3 in fiber 0xffff64001150
CC 104 session 1 completed step 4 in fiber 0xffff64001150
CC 104 session 1 completed step 5 in fiber 0xffff64001150
CC 104 session 1 completed step 6 in fiber 0xffff64001150
CC 104 session 1 processing step 7 in fiber 0xffff64001150
FiberScheduler: cc 104, session 1, fiber 0xffff64001150 in progress...

Thread 9 getting next capture
Thread 9 is waiting
Thread 10 is waiting
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
PowerServiceCore:handleRequests: timePassed = 3007
Sensorhw::setSensorMode 1 and TimeMs 201225 +++

NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Sensorhw::setSensorMode 1 and TimeMs 201226 ---

Sensorhw::enableSensor 1 and TimeMs 201226 +++

NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Sensorhw::enableSensor 1 and TimeMs 201226 ---

NvPclSettingsUpdate: Sending Updated Settings through PCL
Session 1 aborting capture 105 (API ID: 5)
Session 1 aborting capture 104 (API ID: 4)
SCF: Error BadParameter: CC has already been disposed (in src/components/CaptureContainerManager.cpp, function dispose(), line 161)
Thread 11 is working on CC 105 session 1 globalID 105 step 0
Fiber 0xffff640012f0 is aborting in CC 105 Session 1
FiberScheduler: cc 105 session 1, fiber 0xffff640012f0 aborted

SCF: Error Timeout: Sending critical error event for Session 1 
 (in src/api/Session.cpp, function sendErrorEvent(), line 1039)
Session 1 aborting capture 103 (API ID: 3)
fillCaptureResults: sessionId 1 HwFrameCount 0 and HwFrameCount2 0 vs appCaptureId 5 sof tsc time 0.000000 ms and sof tsc2 0.000000 ms

FiberScheduler: fiber 0xffff640012f0 exiting
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
PowerServiceCore:handleRequests: timePassed = 2260
Thread 11 getting next capture
Thread 11 is waiting
SCF: Error BadParameter: CC has already been disposed (in src/components/CaptureContainerManager.cpp, function dispose(), line 161)
Thread 2 is waiting
Thread 12 is waiting
SCF: Error InvalidState: Timeout!! Skipping requests on sensor GUID 1, capture sequence ID = 281470681743363 draining session frameStart events 281470681743361
 (in src/services/capture/FusaCaptureViCsiHw.cpp, function waitCsiFrameStart(), line 532)
Created fiber 0xffff640012f0 for CC 105 globalID 105 session 1
SCF: Error InvalidState: Sensor 1 already in same state 
 (in src/services/capture/CaptureServiceDeviceSensor.cpp, function setErrorState(), line 100)
SCF: Error InvalidState: Timeout!! Skipping requests on sensor GUID 1, capture sequence ID = 281470681743361 draining session frameEnd events 281470681743363
 (in src/services/capture/FusaCaptureViCsiHw.cpp, function waitCsiFrameEnd(), line 635)
SCF: Error InvalidState: Sensor 1 already in same state 
 (in src/services/capture/CaptureServiceDeviceSensor.cpp, function setErrorState(), line 100)
SCF: Error InvalidState: Timeout!! Skipping requests on sensor GUID 1, capture sequence ID = 281470681743362 draining session frameEnd events 281470681743362
 (in src/services/capture/FusaCaptureViCsiHw.cpp, function waitCsiFrameEnd(), line 635)
SCF: Error BadParameter: CC has already been disposed (in src/components/CaptureContainerManager.cpp, function dispose(), line 161)
SCF: Error InvalidState: Sensor 1 already in same state 
 (in src/services/capture/CaptureServiceDeviceSensor.cpp, function setErrorState(), line 100)
SCF: Error InvalidState: Timeout!! Skipping requests on sensor GUID 1, capture sequence ID = 281470681743363 draining session frameEnd events 281470681743361
 (in src/services/capture/FusaCaptureViCsiHw.cpp, function waitCsiFrameEnd(), line 635)
captureComplete: master HwFrameCount 4 sof tsc time 0.000000 ms

FiberScheduler: cc 103, session 1, fiber 0xffff64000fb0 failed in async operation

returnBuffer: apiInput 0 and bufferIndex 0 and buffer 0xffff6c00c640 and stream 0xffff6c001350 and instream (nil)

fillCaptureResults: sessionId 1 HwFrameCount 4 and HwFrameCount2 0 vs appCaptureId 3 sof tsc time 0.000000 ms and sof tsc2 0.000000 ms

FiberScheduler: fiber 0xffff64000fb0 exiting
captureComplete: master HwFrameCount 0 sof tsc time 0.000000 ms

FiberScheduler: cc 104, session 1, fiber 0xffff64001150 aborted in async operation

returnBuffer: apiInput 0 and bufferIndex 0 and buffer 0xffff6c00dc10 and stream 0xffff6c001350 and instream (nil)

fillCaptureResults: sessionId 1 HwFrameCount 0 and HwFrameCount2 0 vs appCaptureId 4 sof tsc time 0.000000 ms and sof tsc2 0.000000 ms

FiberScheduler: fiber 0xffff64001150 exiting
disposing CC 104 Session 1
returnBuffer: apiInput 0 and bufferIndex 3 and buffer 0xffff5c02b460 and stream (nil) and instream (nil)

returnBuffer: apiInput 0 and bufferIndex 4 and buffer 0xffff5c02c4b0 and stream (nil) and instream (nil)

disposing CC 103 Session 1
returnBuffer: apiInput 0 and bufferIndex 3 and buffer 0xffff4c02b460 and stream (nil) and instream (nil)

returnBuffer: apiInput 0 and bufferIndex 4 and buffer 0xffff4c02c4b0 and stream (nil) and instream (nil)

Thread 1 is waiting
Thread 3 is waiting
SCF: Error InvalidState: Sensor 1 already in same state 
 (in src/services/capture/CaptureServiceDeviceSensor.cpp, function setErrorState(), line 100)
SCF: Error InvalidState: Timeout!! Skipping requests on sensor GUID 1, capture sequence ID = 281470681743364 draining session frameEnd events 281470681743361
 (in src/services/capture/FusaCaptureViCsiHw.cpp, function waitCsiFrameEnd(), line 635)
SCF: Error BadParameter: CC has already been disposed (in src/components/CaptureContainerManager.cpp, function dispose(), line 161)
SCF: Error InvalidState: Timeout!! Skipping requests on sensor GUID 1, capture sequence ID = 281470681743364 draining session frameStart events 281470681743361
 (in src/services/capture/FusaCaptureViCsiHw.cpp, function waitCsiFrameStart(), line 532)
SCF: Error BadParameter: CC has already been disposed (in src/components/CaptureContainerManager.cpp, function dispose(), line 161)
SCF: Error BadParameter: CC has already been disposed (in src/components/CaptureContainerManager.cpp, function dispose(), line 161)
SCF: Error BadParameter: CC has already been disposed (in src/components/CaptureContainerManager.cpp, function dispose(), line 161)
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
Worker thread CaptureDispatcher stop
disposing CC 105 Session 1
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Worker thread ViCsiHw frameComplete stop
Worker thread ViCsiHw frameStart stop
NvPclPowerOff: +++++++++++
NvPclPowerOff: -----------
PowerServiceHw:removeRequests: table size: before: 1, after:0
	request table for ISP 0:
PowerServiceHw:updateRequests: table size: before: 0, after:0
	request table for ISP 0:
PowerServiceHwIsp:setLaBw: m_bwVal_Iso=0 and m_bwVal_NonIso=0 KBpS

PowerServiceCore:setCameraBw: totalNonIsoBw=0
=== gst-launch-1.0[5359]: CameraProvider destroyed (0xffffa46d6760)Stopping services...
Worker thread CaptureScheduler frameStart stop
Worker thread CaptureScheduler checkFramePending stop
Worker thread IspHw frameComplete stop
Worker thread V4L2CaptureScheduler issueCaptures stop
Worker thread V4L2CaptureScheduler checkCaptureComplete stop
NvPclClose: ++++++++++++++++++++++
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0xffffa46d6a50
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0xffffa4ae79f0
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0xffffa4ae7a80
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0xffffa4ae2840
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0xffffa4af2250
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0xffffa46c76d0
NvPclStateControllerClose: Module ox08b40_top closed
NvPclClose: ----------------------
NvPclClose: ++++++++++++++++++++++
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0xffffa4b31290
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0xffffa4af22e0
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0xffffa4af2370
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0xffffa4b31200
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0xffffa4b91030
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0xffffa4ae2950
NvPclStateControllerClose: Module ox08b40_bottom closed
NvPclClose: ----------------------
NvPclClose: ++++++++++++++++++++++
NvPclClose: ----------------------
NvPclClose: ++++++++++++++++++++++
NvPclClose: ----------------------
NvPclShutdown: ++++++++++++++++++++++
NvPclModuleListShutdown: Client still conntected, skipping shutdown
NvPclShutdown: ----------------------
Worker thread PS handleRequests stop
unsubscribe: SensorType(gyroscope)
unsubscribe: gyroscope sensor(0xffffa44bb240)
unsubscribe: SensorType(accelerometer)
unsubscribe: accelerometer sensor(0xffffa449a440)
Services are stopped
closeInstance: ms_instance((nil))
NvPclRemoveHotplugCallback: ++++++++++++++++++++++
getHotplugMonitor: Getting hotplug monitor instance
 shutdownHotplug: Requesting thread exit
 hotPlugfunc: Read 16 bytes from inotify FD
 hotPlugfunc: A File was Modified 00008000 NAME :  CREATE : 00000100, DELETE : 00000200 IGNORED : 00008000 CLOSE_WRITE : 00000008
 hotPlugfunc: Exit thread
 hotPlugfunc: close failure error: 'Bad file descriptor' (9)
 hotPlugfunc -- 
 shutdownHotplug -- : shutdown of hotplug is complete 
Removed callback client
NvPclRemoveHotplugCallback: ----------------------
FiberScheduler: shutting down; 0 fibers still in map

FiberScheduler: thread 12 exiting
FiberScheduler: thread 5 exiting
FiberScheduler: thread 10 exiting
FiberScheduler: thread 11 exiting
FiberScheduler: thread 2 exiting
FiberScheduler: thread 1 exiting
FiberScheduler: thread 6 exiting
FiberScheduler: thread 11 has been joined
FiberScheduler: thread 10 has been joined
FiberScheduler: thread 7 exiting
FiberScheduler: thread 4 exiting
FiberScheduler: thread 9 exiting
FiberScheduler: thread 8 exiting
FiberScheduler: thread 3 exiting
FiberScheduler: thread 9 has been joined
FiberScheduler: thread 7 has been joined
FiberScheduler: thread 6 has been joined
FiberScheduler: thread 5 has been joined
FiberScheduler: thread 4 has been joined
FiberScheduler: thread 12 has been joined
FiberScheduler: thread 3 has been joined
FiberScheduler: thread 2 has been joined
FiberScheduler: thread 8 has been joined
FiberScheduler: thread 1 has been joined
=== gst-launch-1.0[5359]: Connection closed (FFFFAA1DE900)=== gst-launch-1.0[5359]: Connection cleaned up (FFFFAA1DE900)

Hi @Luna2020

Sometimes when v4l2-ctl capture works but not nvargus capture, it’s because the device-tree has some errors. Could you share your device-tree?

Regards,

Enrique Ramirez
Embedded SW Engineer at RidgeRun
Contact us: support@ridgerun.com
Developers wiki: https://developer.ridgerun.com
Website: www.ridgerun.com

Hi enrique,

Please help to check the whole dtsi for ox08b camera.

/*
 * Copyright (c) 2021-2023, NVIDIA CORPORATION.  All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

/ {
	tegra-capture-vi  {
		num-channels = <4>;
		ports {
			#address-cells = <1>;
			#size-cells = <0>;
			port@0 {
				reg = <0>;
				ox08b40_vi_in0: endpoint {
					vc-id = <0>;
					port-index = <2>;
					bus-width = <4>;
					remote-endpoint = <&ox08b40_csi_out0>;
				};
			};
			port@1 {
				reg = <1>;
				ox08b40_vi_in1: endpoint {
					vc-id = <1>;
					port-index = <2>;
					bus-width = <4>;
					remote-endpoint = <&ox08b40_csi_out1>;
				};
			};
			port@2 {
				reg = <2>;
				ox08b40_vi_in2: endpoint {
					vc-id = <2>;
					port-index = <2>;
					bus-width = <4>;
					remote-endpoint = <&ox08b40_csi_out2>;
				};
			};
			port@3 {
				reg = <3>;
				ox08b40_vi_in3: endpoint {
					vc-id = <3>;
					port-index = <2>;
					bus-width = <4>;
					remote-endpoint = <&ox08b40_csi_out3>;
				};
			};
		};
	};

	host1x@13e00000 {
		nvcsi@15a00000 {
			num-channels = <4>;
			#address-cells = <1>;
			#size-cells = <0>;
			channel@0 {
				reg = <0>;
				ports {
					#address-cells = <1>;
					#size-cells = <0>;
					port@0 {
						reg = <0>;
						ox08b40_csi_in0: endpoint@0 {
							port-index = <2>;
							bus-width = <4>;
							remote-endpoint = <&ox08b40_ox08b40_out0>;
						};
					};
					port@1 {
						reg = <1>;
						ox08b40_csi_out0: endpoint@1 {
							remote-endpoint = <&ox08b40_vi_in0>;
						};
					};
				};
			};
			channel@1 {
				reg = <1>;
				ports {
					#address-cells = <1>;
					#size-cells = <0>;
					port@0 {
						reg = <0>;
						ox08b40_csi_in1: endpoint@2 {
							port-index = <2>;
							bus-width = <4>;
							remote-endpoint = <&ox08b40_ox08b40_out1>;
						};
					};
					port@1 {
						reg = <1>;
						ox08b40_csi_out1: endpoint@3 {
							remote-endpoint = <&ox08b40_vi_in1>;
						};
					};
				};
			};
			channel@2 {
				reg = <2>;
				ports {
					#address-cells = <1>;
					#size-cells = <0>;
					port@0 {
						reg = <0>;
						ox08b40_csi_in2: endpoint@4 {
							port-index = <2>;
							bus-width = <4>;
							remote-endpoint = <&ox08b40_ox08b40_out2>;
						};
					};
					port@1 {
						reg = <1>;
						ox08b40_csi_out2: endpoint@5 {
							remote-endpoint = <&ox08b40_vi_in2>;
						};
					};
				};
			};
			channel@3 {
				reg = <3>;
				ports {
					#address-cells = <1>;
					#size-cells = <0>;
					port@0 {
						reg = <0>;
						ox08b40_csi_in3: endpoint@6 {
							port-index = <2>;
							bus-width = <4>;
							remote-endpoint = <&ox08b40_ox08b40_out3>;
						};
					};
					port@1 {
						reg = <1>;
						ox08b40_csi_out3: endpoint@7 {
							remote-endpoint = <&ox08b40_vi_in3>;
						};
					};
				};
			};
		};
	};

	i2c@3180000 {
		ox08b40_3a@3a {
			compatible = "nvidia,ox08b40";

			reg = <0x3a>;

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

			/* Physical dimensions of sensor */
			physical_w = "15.0";
			physical_h = "12.5";

			sensor_model ="ox08b40";

			/* enable CID_SENSOR_MODE_ID for sensor modes selection */
			use_sensor_mode_id = "true";
			mode0 {
				mclk_khz = "24000";
				num_lanes = "4";
				tegra_sinterface = "serial_c";
				vc_id = "0";
				phy_mode = "DPHY";
				discontinuous_clk = "yes";
				dpcm_enable = "false";
				cil_settletime = "0";

				csi_pixel_bit_depth = "12";
				mode_type = "bayer";
				pixel_phase = "bggr";

				active_w = "3840";
				active_h = "2160";
				readout_orientation = "0";
				line_length = "3856";
				inherent_gain = "1";
				mclk_multiplier = "80";
				pix_clk_hz = "249868800";
				serdes_pix_clk_hz = "375000000";

				gain_factor = "10";
				min_gain_val = "1"; /* 0.55dB */
				max_gain_val = "300"; /* 30dB */
				step_gain_val = "3"; /* 0.3 */
				default_gain = "1";

				min_hdr_ratio = "1";
				max_hdr_ratio = "1";

				framerate_factor = "1000000";
				min_framerate = "30000000"; /* 1.5 */
				max_framerate = "30000000"; /* 30 */
				step_framerate = "1";
				default_framerate= "30000000";

				exposure_factor = "1000000";
				min_exp_time = "30"; /* us */
				max_exp_time = "660000"; /* us */
				step_exp_time = "1";
				default_exp_time = "33334";/* us */

				embedded_metadata_height = "0";
			};
			ports {
				#address-cells = <1>;
				#size-cells = <0>;
				port@0 {
					reg = <0>;
					ox08b40_ox08b40_out0: endpoint {
						vc-id = <0>;
						port-index = <2>;
						bus-width = <4>;
						remote-endpoint = <&ox08b40_csi_in0>;
						};
					};
				};
		};

		ox08b40_3b@3b{
			compatible = "nvidia,ox08b40";

			reg = <0x3b>;

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

			/* Physical dimensions of sensor */
			physical_w = "15.0";
			physical_h = "12.5";

			sensor_model ="ox08b40";

			/* enable CID_SENSOR_MODE_ID for sensor modes selection */
			use_sensor_mode_id = "true";
			mode0 {
				mclk_khz = "24000";
				num_lanes = "4";
				tegra_sinterface = "serial_c";
				vc_id = "1";
				
				phy_mode = "DPHY";
				discontinuous_clk = "yes";
				dpcm_enable = "false";
				cil_settletime = "0";
				
				csi_pixel_bit_depth = "12";
				mode_type = "bayer";
				pixel_phase = "bggr";

				active_w = "3840";
				active_h = "2160";
				readout_orientation = "0";
				line_length = "3856";
				inherent_gain = "1";
				mclk_multiplier = "80";
				pix_clk_hz = "249868800";
				serdes_pix_clk_hz = "375000000";

				gain_factor = "10";
				min_gain_val = "1"; /* 0.55dB */
				max_gain_val = "300"; /* 30dB */
				step_gain_val = "3"; /* 0.3 */
				default_gain = "1";

				min_hdr_ratio = "1";
				max_hdr_ratio = "1";

				framerate_factor = "1000000";
				min_framerate = "30000000"; /* 1.5 */
				max_framerate = "30000000"; /* 30 */
				step_framerate = "1";
				default_framerate= "30000000";

				exposure_factor = "1000000";
				min_exp_time = "30"; /* us */
				max_exp_time = "660000"; /* us */
				step_exp_time = "1";
				default_exp_time = "33334";/* us */

				embedded_metadata_height = "0";
			};
			ports {
				#address-cells = <1>;
				#size-cells = <0>;
				port@0 {
					reg = <0>;
					ox08b40_ox08b40_out1: endpoint {
						vc-id = <1>;
						port-index = <2>;
						bus-width = <4>;
						remote-endpoint = <&ox08b40_csi_in1>;
						};
					};
			};
		};
		
		ox08b40_3c@3c {
			compatible = "nvidia,ox08b40";

			reg = <0x3c>;

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

			/* Physical dimensions of sensor */
			physical_w = "15.0";
			physical_h = "12.5";

			sensor_model ="ox08b40";

			/* enable CID_SENSOR_MODE_ID for sensor modes selection */
			use_sensor_mode_id = "true";
			mode0 {
				mclk_khz = "24000";
				num_lanes = "4";
				tegra_sinterface = "serial_c";
				vc_id = "2";
				
				phy_mode = "DPHY";
				discontinuous_clk = "yes";
				dpcm_enable = "false";
				cil_settletime = "0";
				
				csi_pixel_bit_depth = "12";
				mode_type = "bayer";
				pixel_phase = "bggr";

				active_w = "3840";
				active_h = "2160";
				readout_orientation = "0";
				line_length = "3856";
				inherent_gain = "1";
				mclk_multiplier = "80";
				pix_clk_hz = "249868800";
				serdes_pix_clk_hz = "375000000";

				gain_factor = "10";
				min_gain_val = "1"; /* 0.55dB */
				max_gain_val = "300"; /* 30dB */
				step_gain_val = "3"; /* 0.3 */
				default_gain = "1";

				min_hdr_ratio = "1";
				max_hdr_ratio = "1";

				framerate_factor = "1000000";
				min_framerate = "30000000"; /* 1.5 */
				max_framerate = "30000000"; /* 30 */
				step_framerate = "1";
				default_framerate= "30000000";

				exposure_factor = "1000000";
				min_exp_time = "30"; /* us */
				max_exp_time = "660000"; /* us */
				step_exp_time = "1";
				default_exp_time = "33334";/* us */

				embedded_metadata_height = "0";
			};
			ports {
				#address-cells = <1>;
				#size-cells = <0>;
				port@0 {
					reg = <0>;
					ox08b40_ox08b40_out2: endpoint {
						vc-id = <2>;
						port-index = <2>;
						bus-width = <4>;
						remote-endpoint = <&ox08b40_csi_in2>;
						};
					};
			};
		};
		ox08b40_3d@3d {
			compatible = "nvidia,ox08b40";

			reg = <0x3d>;

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

			/* Physical dimensions of sensor */
			physical_w = "15.0";
			physical_h = "12.5";

			sensor_model ="ox08b40";

			/* enable CID_SENSOR_MODE_ID for sensor modes selection */
			use_sensor_mode_id = "true";
			mode0 {
				mclk_khz = "24000";
				num_lanes = "4";
				tegra_sinterface = "serial_c";
				vc_id = "3";
				
				discontinuous_clk = "yes";
				dpcm_enable = "false";
				cil_settletime = "0";
				
				csi_pixel_bit_depth = "12";
				mode_type = "bayer";
				pixel_phase = "bggr";

				active_w = "3840";
				active_h = "2160";
				readout_orientation = "0";
				line_length = "3856";
				inherent_gain = "1";
				mclk_multiplier = "80";
				pix_clk_hz = "249868800";
				serdes_pix_clk_hz = "375000000";

				gain_factor = "10";
				min_gain_val = "1"; /* 0.55dB */
				max_gain_val = "300"; /* 30dB */
				step_gain_val = "3"; /* 0.3 */
				default_gain = "1";

				min_hdr_ratio = "1";
				max_hdr_ratio = "1";

				framerate_factor = "1000000";
				min_framerate = "30000000"; /* 1.5 */
				max_framerate = "30000000"; /* 30 */
				step_framerate = "1";
				default_framerate= "30000000";

				exposure_factor = "1000000";
				min_exp_time = "30"; /* us */
				max_exp_time = "660000"; /* us */
				step_exp_time = "1";
				default_exp_time = "33334";/* us */

				embedded_metadata_height = "0";
			};
			ports {
				#address-cells = <1>;
				#size-cells = <0>;
				port@0 {
					reg = <0>;
					ox08b40_ox08b40_out3: endpoint {
						vc-id = <3>;
						port-index = <2>;
						bus-width = <4>;
						remote-endpoint = <&ox08b40_csi_in3>;
						};
					};
			};
		};
	};
};

/ {

	tegra-camera-platform {
		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 = <8>;
		max_lane_speed = <1500000>;
		min_bits_per_pixel = <10>;
		vi_peak_byte_per_pixel = <2>;
		vi_bw_margin_pct = <25>;
		max_pixel_rate = <7500000>;
		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 {
			module0 {
				badge = "ox08b40_front";
				position = "front";
				orientation = "0";
				drivernode0 {
					/* Declare PCL support driver (classically known as guid)  */
					pcl_id = "v4l2_sensor";
					/* Driver v4l2 device name */
					devname = "ox08b40 2-003a";
					/* Declare the device-tree hierarchy to driver instance */
					proc-device-tree = "/proc/device-tree/i2c@3180000/ox08b40_3a@3a";
				};
			};
			module1 {
				badge = "ox08b40_rear";
				position = "rear";
				orientation = "0";
				drivernode0 {
					/* Declare PCL support driver (classically known as guid)  */
					pcl_id = "v4l2_sensor";
					/* Driver v4l2 device name */
					devname = "ox08b40 2-003b";
					/* Declare the device-tree hierarchy to driver instance */
					proc-device-tree = "/proc/device-tree/i2c@3180000/ox08b40_3b@3b";
				};
			};
			module2 {
				badge = "ox08b40_top";
				position = "top";
				orientation = "0";
				drivernode0 {
					/* Declare PCL support driver (classically known as guid)  */
					pcl_id = "v4l2_sensor";
					/* Driver v4l2 device name */
					devname = "ox08b40 2-003c";
					/* Declare the device-tree hierarchy to driver instance */
					proc-device-tree = "/proc/device-tree/i2c@3180000/ox08b40_3c@3c";
				};
			};
			module3 {
				badge = "ox08b40_bottom";
				position = "bottom";
				orientation = "0";
				drivernode0 {
					/* Declare PCL support driver (classically known as guid)  */
					pcl_id = "v4l2_sensor";
					/* Driver v4l2 device name */
					devname = "ox08b40 2-003d";
					/* Declare the device-tree hierarchy to driver instance */
					proc-device-tree = "/proc/device-tree/i2c@3180000/ox08b40_3d@3d";
				};
			};
		};
	};
};

Hi NV_Team,

Any update ? Thanks.

Hi @Luna2020

Your device-tree looks correct, but may be a problem on the “position” fields for your tegra-camera-platform node, your configuration is for 4 cameras, but you are using the positions for 2 and 3 camera configuration according to the documentation.

Could you try using the following types?
bottomleft, bottomright, centerleft, centerright

3 Likes

Hi,

Thanks so much, it works.

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