Sensor driver working properly in v4l2 but not in argus_camera

Hi,

I would like to understand if there are limitations in the argus_camera API for custom sensor drivers.

I have made 3 different custom sensor drivers working in v4l2 with live streaming enabled in qv4l2 interface. However, I am not able to make all of these sensors work properly in argus_camera API.

The formats that I have used are either RAW12 or RGB888 image output of the different sensors.

Is there a specific sensor driver structure that would work properly with both v4l2 and argus_camera? Should the sensor be freely streaming upon TX2 start-up even before running argus_camera?

What output image formats can be used with argus_camera API?

Thanks!

The argus_camera only support Bayer sensor(RAW10/RAW12)

Hi Shane,

Thanks for that info.

Most of the sensors that we tried were RAW12 format but we were only able to use argus_camera using 1 sensor.

Is there a specific sensor driver structure that would work properly with both v4l2 and argus_camera? Should the sensor be freely streaming upon TX2 start-up even before running argus_camera?

Any RAW sensor should work for v4l2 and argus_camera.
But v4l2 path need software debayer to display the frame.

Hi Shane,

We have been able to capture and debayer RAW format sensors using qv4l2 interface.

However, argus_camera doesn’t detect these sensors.

Here is the error:
Terminal:

Executing Argus Sample Application (argus_camera)
Argus Version: UNKNOWN
Error generated. /home/nvidia/tegra_multimedia_api/argus/apps/camera/modules/Dispatcher.cpp, initialize:848 No cameras available
Error generated. /home/nvidia/tegra_multimedia_api/argus/apps/camera/modules/Dispatcher.cpp, Dispatcher:801 (propagating)
(NvCameraUtils) Error InvalidState: Mutex already initialized (in Mutex.cpp, function initialize(), line 41)
(Argus) Error InvalidState:  (propagating from src/rpc/socket/client/ClientSocketManager.cpp, function open(), line 54)
(Argus) Error InvalidState:  (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function openSocketConnection(), line 205)
(Argus) Error InvalidState: Cannot create camera provider (in src/rpc/socket/client/SocketClientDispatch.cpp, function createCameraProvider(), line 129)
(Argus) Error EndOfFile: Unexpected error in reading socket (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 212)
(Argus) Error EndOfFile: Receive worker failure, notifying 1 waiting threads (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 287)
(Argus) Error InvalidState: Argus client is exiting with 1 outstanding client threads (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 304)
(Argus) Error EndOfFile: Receiving thread terminated with error (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadWrapper(), line 315)
(Argus) Error EndOfFile: Client thread received an error from socket (in src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 147)
(Argus) Error EndOfFile:  (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 101)
Error generated. /home/nvidia/tegra_multimedia_api/argus/apps/camera/modules/Dispatcher.cpp, initialize:840 Failed to create CameraProvider
Error generated. /home/nvidia/tegra_multimedia_api/argus/apps/camera/modules/Dispatcher.cpp, getInstance:824 Initalization failed
(Argus) Error FileOperationFailed: Connecting to argus_daemon failed: Connection refused (in src/rpc/socket/client/SocketClientDispatch.cpp, function openSocketConnection(), line 190)
(Argus) Error FileOperationFailed: Cannot create camera provider (in src/rpc/socket/client/SocketClientDispatch.cpp, function createCameraProvider(), line 129)
Error generated. /home/nvidia/tegra_multimedia_api/argus/apps/camera/modules/Dispatcher.cpp, initialize:840 Failed to create CameraProvider
Error generated. /home/nvidia/tegra_multimedia_api/argus/apps/camera/modules/Dispatcher.cpp, getInstance:824 Initalization failed
(Argus) Error FileOperationFailed: Connecting to argus_daemon failed: Connection refused (in src/rpc/socket/client/SocketClientDispatch.cpp, function openSocketConnection(), line 190)
(Argus) Error FileOperationFailed: Cannot create camera provider (in src/rpc/socket/client/SocketClientDispatch.cpp, function createCameraProvider(), line 129)
Error generated. /home/nvidia/tegra_multimedia_api/argus/apps/camera/modules/Dispatcher.cpp, initialize:840 Failed to create CameraProvider
Error generated. /home/nvidia/tegra_multimedia_api/argus/apps/camera/modules/Dispatcher.cpp, getInstance:824 Initalization failed
(Argus) Error FileOperationFailed: Connecting to argus_daemon failed: Connection refused (in src/rpc/socket/client/SocketClientDispatch.cpp, function openSocketConnection(), line 190)
(Argus) Error FileOperationFailed: Cannot create camera provider (in src/rpc/socket/client/SocketClientDispatch.cpp, function createCameraProvider(), line 129)
Error generated. /home/nvidia/tegra_multimedia_api/argus/apps/camera/modules/Dispatcher.cpp, initialize:840 Failed to create CameraProvider
Error generated. /home/nvidia/tegra_multimedia_api/argus/apps/camera/modules/Dispatcher.cpp, getInstance:824 Initalization failed
(Argus) Error FileOperationFailed: Connecting to argus_daemon failed: Connection refused (in src/rpc/socket/client/SocketClientDispatch.cpp, function openSocketConnection(), line 190)
(Argus) Error FileOperationFailed: Cannot create camera provider (in src/rpc/socket/client/SocketClientDispatch.cpp, function createCameraProvider(), line 129)
Error generated. /home/nvidia/tegra_multimedia_api/argus/apps/camera/modules/Dispatcher.cpp, initialize:840 Failed to create CameraProvider
Error generated. /home/nvidia/tegra_multimedia_api/argus/apps/camera/modules/Dispatcher.cpp, getInstance:824 Initalization failed
(Argus) Error FileOperationFailed: Connecting to argus_daemon failed: Connection refused (in src/rpc/socket/client/SocketClientDispatch.cpp, function openSocketConnection(), line 190)
(Argus) Error FileOperationFailed: Cannot create camera provider (in src/rpc/socket/client/SocketClientDispatch.cpp, function createCameraProvider(), line 129)
Error generated. /home/nvidia/tegra_multimedia_api/argus/apps/camera/modules/Dispatcher.cpp, initialize:840 Failed to create CameraProvider
Error generated. /home/nvidia/tegra_multimedia_api/argus/apps/camera/modules/Dispatcher.cpp, getInstance:824 Initalization failed
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_M_construct null not valid
Aborted

Kernel:

Oct 25 06:00:27 tegra-ubuntu kernel: [  993.837957] argus_daemon[2543]: unhandled level 2 translation fault (11) at 0x00000008, esr 0x92000006
Oct 25 06:00:27 tegra-ubuntu kernel: [  993.847316] pgd = ffffffc0ccd61000
Oct 25 06:00:27 tegra-ubuntu kernel: [  993.851527] [00000008] *pgd=0000000152d97003, *pud=0000000152d97003, *pmd=0000000000000000
Oct 25 06:00:27 tegra-ubuntu kernel: [  993.860765] 
Oct 25 06:00:27 tegra-ubuntu kernel: [  993.862254] CPU: 1 PID: 2543 Comm: argus_daemon Tainted: G        W       4.4.38 #166
Oct 25 06:00:27 tegra-ubuntu kernel: [  993.870892] Hardware name: jetson_tx1 (DT)
Oct 25 06:00:27 tegra-ubuntu kernel: [  993.877119] task: ffffffc02bac8000 ti: ffffffc01dbec000 task.ti: ffffffc01dbec000
Oct 25 06:00:27 tegra-ubuntu kernel: [  993.884813] PC is at 0x7fb06c8d08
Oct 25 06:00:27 tegra-ubuntu kernel: [  993.888218] LR is at 0x7fb06c8d04
Oct 25 06:00:27 tegra-ubuntu kernel: [  993.891546] pc : [<0000007fb06c8d08>] lr : [<0000007fb06c8d04>] pstate: 60000000
Oct 25 06:00:27 tegra-ubuntu kernel: [  993.899011] sp : 0000007fae2e87b0
Oct 25 06:00:27 tegra-ubuntu kernel: [  993.902338] x29: 0000007fae2e89d0 x28: 0000007fae2e91e0 
Oct 25 06:00:27 tegra-ubuntu kernel: [  993.907760] x27: 0000007fb06dbff0 x26: 0000000000430280 
Oct 25 06:00:27 tegra-ubuntu kernel: [  993.913087] x25: 0000007fae2e8938 x24: 0000000000000069 
Oct 25 06:00:27 tegra-ubuntu kernel: [  993.918497] x23: 0000000000000000 x22: 0000000000000069 
Oct 25 06:00:27 tegra-ubuntu kernel: [  993.923916] x21: 0000007fa92186c8 x20: 0000007fa92186c0 
Oct 25 06:00:27 tegra-ubuntu kernel: [  993.929253] x19: 0000007fa92186c0 x18: 0000007faf9835b0 
Oct 25 06:00:27 tegra-ubuntu kernel: [  993.934651] x17: 0000007fb0520290 x16: 0000007fb0714fa8 
Oct 25 06:00:27 tegra-ubuntu kernel: [  993.940081] x15: 0000007fb077fcc0 x14: ffffffffffffffff 
Oct 25 06:00:27 tegra-ubuntu kernel: [  993.945404] x13: 0000000000000028 x12: 0101010101010101 
Oct 25 06:00:27 tegra-ubuntu kernel: [  993.950799] x11: 7f7f7f7f7f7f7f7f x10: 65736d68716f6575 
Oct 25 06:00:27 tegra-ubuntu kernel: [  993.956224] x9 : 7f7f7f7f7f7f7f7f x8 : 8080800000000000 
Oct 25 06:00:27 tegra-ubuntu kernel: [  993.961548] x7 : 0000000000808080 x6 : 0000000000428ebd 
Oct 25 06:00:27 tegra-ubuntu kernel: [  993.966987] x5 : 0000000000000000 x4 : 0000000000000000 
Oct 25 06:00:27 tegra-ubuntu kernel: [  993.972405] x3 : 0000007fae2e98d0 x2 : 0000007fae2e91e0 
Oct 25 06:00:27 tegra-ubuntu kernel: [  993.977736] x1 : 0000000000000000 x0 : 0000000000000000 
Oct 25 06:00:27 tegra-ubuntu kernel: [  993.983135] 
Oct 25 06:00:27 tegra-ubuntu kernel: [  993.984625] Library at 0x7fb06c8d08: 0x7fb061c000 /usr/lib/aarch64-linux-gnu/tegra/libargus_socketserver.so
Oct 25 06:00:27 tegra-ubuntu kernel: [  993.994393] Library at 0x7fb06c8d04: 0x7fb061c000 /usr/lib/aarch64-linux-gnu/tegra/libargus_socketserver.so
Oct 25 06:00:27 tegra-ubuntu kernel: [  994.004159] vdso base = 0x7fb077e000

It’s could be the device tree or sensor driver have problem.
Could you check the sensor programing guide in l4t document and pass the v4l2-compliance first.

Hi Shane,

I have been referencing the sensor programming guide in L4T document.

I am always failing VIDIOC_G/S_PARAM in v4l2-compliance. Do you know how to fix this? Although I’m still able get frames using qv4l2 and v4l2-ctl.

v4l2-compliance SHA   : not available

Driver Info:
	Driver name   : tegra-video
	Card type     : vi-output, imx390 30-0032
	Bus info      : platform:54080000.vi:0
	Driver version: 4.4.38
	Capabilities  : 0x84200001
		Video Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps   : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format

Compliance test for device /dev/video0 (not using libv4l2):

Required ioctls:
	test VIDIOC_QUERYCAP: OK

Allow for multiple opens:
	test second video open: OK
	test VIDIOC_QUERYCAP: OK
	test VIDIOC_G/S_PRIORITY: OK
	test for unlimited opens: OK

Debug ioctls:
	test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
	test VIDIOC_LOG_STATUS: OK

Input ioctls:
	test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported)
	test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
	test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported)
	test VIDIOC_ENUMAUDIO: OK (Not Supported)
	test VIDIOC_G/S/ENUMINPUT: OK
	test VIDIOC_G/S_AUDIO: OK (Not Supported)
	Inputs: 1 Audio Inputs: 0 Tuners: 0

Output ioctls:
	test VIDIOC_G/S_MODULATOR: OK (Not Supported)
	test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
	test VIDIOC_ENUMAUDOUT: OK (Not Supported)
	test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
	test VIDIOC_G/S_AUDOUT: OK (Not Supported)
	Outputs: 0 Audio Outputs: 0 Modulators: 0

Input/Output configuration ioctls:
	test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported)
	test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported)
	test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported)
	test VIDIOC_G/S_EDID: OK (Not Supported)

Test input 0:

	Control ioctls:
		test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
		test VIDIOC_QUERYCTRL: OK
		test VIDIOC_G/S_CTRL: OK
		test VIDIOC_G/S/TRY_EXT_CTRLS: OK
		test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK
		test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
		Standard Controls: 1 Private Controls: 12

	Format ioctls:
		test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK
		fail: v4l2-test-formats.cpp(1184): ret && node->has_frmintervals
		test VIDIOC_G/S_PARM: FAIL
		test VIDIOC_G_FBUF: OK (Not Supported)
		test VIDIOC_G_FMT: OK
		test VIDIOC_TRY_FMT: OK
		test VIDIOC_S_FMT: OK
		test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
		test Cropping: OK (Not Supported)
		test Composing: OK (Not Supported)
		test Scaling: OK (Not Supported)

	Codec ioctls:
		test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
		test VIDIOC_G_ENC_INDEX: OK (Not Supported)
		test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)

	Buffer ioctls:
		test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK
		test VIDIOC_EXPBUF: OK

Test input 0:


Total: 43, Succeeded: 42, Failed: 1, Warnings: 0

The failed in v4l2-compliance should not the problem. Did you implement this function in you sensor driver? NV reference driver not implement it. Could you remove it.

Could you dump the dt by below command to check.
sudo apt-get update sudo apt-get install device-tree-compiler
cd /boot/dtb/ sudo dtc -I fs -O dts -o tt.dts /proc/device-tree

Hi Shane,

I did not implement the g/s_parm function in my sensor driver.

Attached is the dt file. What do I need to check in the dt?
tt.txt (601 KB)

Could you try to remove the “pixel_t = “bayer_rggb”;” in sensor mode0 in DT.
If still have problem please get more log from below

To enable logs from user-space for more details
sudo su
kill the process of argus_daemon or nvcamera-daemon
export enableCamPclLogs=5
export enableCamScfLogs=5
/usr/sbin/argus_daemon option for argus
/usr/sbin/nvcamera-daemon option for gst-launch

launch camera from another console

Hi Shane,

The problem is still there even if I remove “pixel_t = “bayer_rggb”;”

Here is the output when I enabled the user-space logs:

=== Listening for connections... ===
=== Connection 7F977BB1E0 established ===
Thread 1 getting next capture
Thread 1 is waiting
Thread 2 getting next capture
Thread 2 is waiting
Thread 4 getting next capture
Thread 4 is waiting
Thread 3 getting next capture
Thread 3 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(0x7f91219980)
getInstance: s_instance(0x7f91219980)
subscribe: create SensorType(gyroscope) sensor(0x7f9121bb00)
subscribe: create SensorType(accelerometer) sensor(0x7f91220f60)
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
NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
NvPclHwGetModuleList: No module data found
NvPclHwPrintModuleDefinition -- Name: imx390_center_RDACM41
NvPclHwPrintModuleDefinition -- Position: 2
NvPclHwPrintModuleDefinition -- CalibrationData Found: 1
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].Name: v4l2_sensor
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].DevName: imx390 30-0032
NvPclHwGetModuleList: OFParserListModules Succeeded
NvPclModuleListInitialize: NvPclModule list[0]: imx390_center_RDACM41 position2
NvPclHwScanExternalCameras -- adding video0 to discover list
NvPclHwScanExternalCameras -- adding video0 to discover list
initialize: /dev/video0
queryControls: 10100739 control Group Hold
queryControls: 10100740 control HDR enable
queryControls: 10100747 control Gain
queryControls: 10100748 control Exposure (us)
queryControls: 10100749 control Frame Rate
queryControls: 10100754 control PWL enable
queryControls: 10100755 control LINE OUT
queryControls: 10100836 control Bypass Mode
queryControls: 10100837 control Override Enable
queryControls: 10100838 control Height Align
queryControls: 10100839 control Size Align
queryControls: 10100840 control Write ISP format
Ioctl failed: Invalid argument
NvPclHwScanExternalCameras -- adding video0 to discover list
initialize: /dev/video0
queryControls: 10100739 control Group Hold
queryControls: 10100740 control HDR enable
queryControls: 10100747 control Gain
queryControls: 10100748 control Exposure (us)
queryControls: 10100749 control Frame Rate
queryControls: 10100754 control PWL enable
queryControls: 10100755 control LINE OUT
queryControls: 10100836 control Bypass Mode
queryControls: 10100837 control Override Enable
queryControls: 10100838 control Height Align
queryControls: 10100839 control Size Align
queryControls: 10100840 control Write ISP format
Ioctl failed: Invalid argument
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
PCLHW_DTParser
setHotplugCallback: Registered new callback client
NvPclSetHotplugCallback: ----------------------
 hotPlugfunc: reading from inotify FD, Thread waiting 
NvPclOpen: ++++++++++++++++++++++
NvPclStateControllerOpen: Found GUID 2 match at index[0]
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f912533a0
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f91253430
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f912534c0
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f91253550
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f912535e0
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f91253670
LoadOverridesFile: looking for override file [/Calib/camera_override.isp] 1/16CheckOverridesPermissions: cannot stat file [/Calib/camera_override.isp]
LoadOverridesFile: looking for override file [/data/nvcam/settings/camera_overrides.isp] 2/16CheckOverridesPermissions: cannot stat file [/data/nvcam/settings/camera_overrides.isp]
LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/camera_overrides.isp] 3/16CheckOverridesPermissions: cannot stat file [/opt/nvidia/nvcam/settings/camera_overrides.isp]
LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/camera_overrides.isp] 4/16CheckOverridesPermissions: cannot stat file [/var/nvidia/nvcam/settings/camera_overrides.isp]
LoadOverridesFile: looking for override file [/data/nvcam/camera_overrides.isp] 5/16CheckOverridesPermissions: cannot stat file [/data/nvcam/camera_overrides.isp]
LoadOverridesFile: looking for override file [/data/nvcam/settings/imx390_center_RDACM41.isp] 6/16CheckOverridesPermissions: cannot stat file [/data/nvcam/settings/imx390_center_RDACM41.isp]
LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/imx390_center_RDACM41.isp] 7/16CheckOverridesPermissions: cannot stat file [/opt/nvidia/nvcam/settings/imx390_center_RDACM41.isp]
LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/imx390_center_RDACM41.isp] 8/16CheckOverridesPermissions: cannot stat file [/var/nvidia/nvcam/settings/imx390_center_RDACM41.isp]
---- 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/nvcam/settings/factory.bin] 1/16
Imager: looking for override file [/data/nvcam/settings/imx390_center_RDACM41.bin] 2/16
Imager: looking for override file [/opt/nvidia/nvcam/settings/imx390_center_RDACM41.bin] 3/16
Imager: looking for override file [/var/nvidia/nvcam/settings/imx390_center_RDACM41.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]
initialize: imx390 30-0032
queryControls: 10100739 control Group Hold
queryControls: 10100740 control HDR enable
queryControls: 10100747 control Gain
queryControls: 10100748 control Exposure (us)
queryControls: 10100749 control Frame Rate
queryControls: 10100754 control PWL enable
queryControls: 10100755 control LINE OUT
queryControls: 10100836 control Bypass Mode
queryControls: 10100837 control Override Enable
queryControls: 10100838 control Height Align
queryControls: 10100839 control Size Align
queryControls: 10100840 control Write ISP format
Ioctl failed: Invalid argument
OFDPropertyGetString: could not read property [use_decibel_gain]
OFDPropertyCopyToLong: could not read property [has-eeprom]
Control Fuse ID not found
Control OTP Data not found
Control Sensor Mode not found
Control Exposure not found
Control Frame Length not found
Control Coarse Time not found
Control Coarse Time Short not found
checkDriverVersion: Mixed or missing V4L2 controls!
checkDriverVersion: Make sure your kernel driver implements either
checkDriverVersion: V4L2_m_cidFrameLength + V4L2_m_cidCoarseTime(_SHORT)
checkDriverVersion:      or  
checkDriverVersion: V4L2_m_cidFrameRate + V4L2_m_cidExposure
(NvOdmDevice) Error BadParameter:  (in dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L2SensorViCsi.cpp, function checkDriverVersion(), line 379)
(NvOdmDevice) Error BadParameter:  (propagating from dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L2SensorViCsi.cpp, function findCustomCids(), line 309)
(NvOdmDevice) Error BadParameter:  (propagating from dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L2SensorViCsi.cpp, function initializeV4L2Items(), line 232)
(NvOdmDevice) Error BadParameter:  (propagating from dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L2SensorViCsi.cpp, function initialize(), line 107)
NvPclDriverInitializeData: Unable to initialize driver v4l2_sensor
NvPclInitializeDrivers: error: Failed to init camera sub module v4l2_sensor
NvPclStartPlatformDrivers: Failed to start module drivers
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0x7f91253550
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0x7f912535e0
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0x7f91253670
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0x7f912533a0
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0x7f91253430
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0x7f912534c0
NvPclStateControllerOpen: Failed ImagerGUID 2. (error 0x4)
NvPclStateControllerClose: Module imx390_center_RDACM41 closed
NvPclOpen: PCL Open Failed. Error: 0xf
NvPclClose: ++++++++++++++++++++++
NvPclClose: ----------------------
NvPclOpen: ----------------------
SCF: Error BadParameter: Sensor could not be opened. (in src/services/capture/CaptureServiceDeviceSensor.cpp, function getSourceFromGuid(), line 596)
SCF: Error BadParameter:  (propagating from src/services/capture/CaptureService.cpp, function addSourceByGuid(), line 781)
SCF: Error BadParameter:  (propagating from src/api/CameraDriver.cpp, function addSourceByIndex(), line 276)
SCF: Error BadParameter:  (propagating from src/api/CameraDriver.cpp, function getSource(), line 439)
(Argus) Error BadParameter:  (propagating from src/api/CameraProviderImpl.cpp, function initialize(), line 92)
(Argus) Error BadParameter:  (propagating from src/api/GlobalProcessState.cpp, function createCameraProvider(), line 214)
Stopping services...
Worker thread CaptureScheduler frameStart stop
Worker thread CaptureScheduler checkFramePending stop
Worker thread IspHw statsComplete stop
Worker thread IspHw frameComplete stop
Worker thread IspHw statsComplete stop
Worker thread IspHw frameComplete stop
Worker thread V4L2CaptureScheduler issueCaptures stop
Worker thread V4L2CaptureScheduler checkCaptureComplete stop
NvPclShutdown: ++++++++++++++++++++++
NvPclModuleListShutdown: Client still conntected, skipping shutdown
NvPclShutdown: ----------------------
Worker thread PS handleRequests stop
unsubscribe: gyroscope sensor(0x7f9121bb00)
unsubscribe: accelerometer sensor(0x7f91220f60)
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 1 exiting
FiberScheduler: thread 2 exiting
FiberScheduler: thread 4 exiting
FiberScheduler: thread 3 exiting
FiberScheduler: thread 5 exiting
FiberScheduler: thread 6 exiting
FiberScheduler: thread 7 exiting
FiberScheduler: thread 8 exiting
FiberScheduler: thread 9 exiting
FiberScheduler: thread 10 exiting
FiberScheduler: thread 11 exiting
FiberScheduler: thread 12 exiting
FiberScheduler: thread 11 has been joined
FiberScheduler: thread 10 has been joined
FiberScheduler: thread 8 has been joined
FiberScheduler: thread 12 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 9 has been joined
FiberScheduler: thread 3 has been joined
FiberScheduler: thread 2 has been joined
FiberScheduler: thread 1 has been joined
CameraProvider result: provider=(nil), shim=0x7f912186b0, status=1, rpc status=2, size=9
=== Connection 7F96FBB1E0 established ===
(Argus) Error EndOfFile:  (propagating from libs/rpc_socket_server/ServerSocketManager.cpp, function recvThreadCore(), line 138)
(Argus) Error EndOfFile:  (propagating from libs/rpc_socket_server/ServerSocketManager.cpp, function run(), line 56)
=== Connection 7F96FBB1E0 closed ===
/== CLEANUP 0x7f912186b0 ==\
=== Connection 7F96FBB1E0 cleaned up ===
  Destroying real provider (nil)
Segmentation fault

Is there anything here that indicates the problem? Thanks!

The V4L2_CID_FRAME_LENGTH and V4L2_COARSE_TIME controls take 32-bit input parameters and V4L2_CID_FRAME_RATE and V4L2_EXPOSURE take 64-bit input parameters. Use either set of controls but do not mix or use both sets at once.

Mixed or missing V4L2 controls!

Hi Shane,

I have fixed the V4L2 controls issue but I’m still having problems with the video stream.

The v4l2 stream looks good (qv4l2.png). But the gst-launch and argus_camera streams don’t have good images (argus_camera.png).

Also, the argus_camera only outputs a single frame and then it hangs. Attached are the logs from gst-launch and argus_camera.



gst_launch_log_error.txt (126 KB)
argus_camera_log_error.txt (34.2 KB)

Please have a try to disable HDR

queryControls: 10100740 control HDR enable

Hi Shane,

I have disabled HDR control and there is still no video streaming in argus_camera. While in gst-launch, there is just a green screen displayed.

Here is the log:

=== Connection 7F7E8601E0 established ===
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(0x7f792199a0)
getInstance: s_instance(0x7f792199a0)
subscribe: create SensorType(gyroscope) sensor(0x7f7921bb20)
subscribe: create SensorType(accelerometer) sensor(0x7f79220f80)
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
NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
NvPclHwGetModuleList: No module data found
NvPclHwPrintModuleDefinition -- Name: imx390_center_RDACM41
NvPclHwPrintModuleDefinition -- Position: 2
NvPclHwPrintModuleDefinition -- CalibrationData Found: 1
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].Name: v4l2_sensor
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].DevName: imx390 30-0032
NvPclHwGetModuleList: OFParserListModules Succeeded
NvPclModuleListInitialize: NvPclModule list[0]: imx390_center_RDACM41 position2
NvPclHwScanExternalCameras -- adding video0 to discover list
NvPclHwScanExternalCameras -- adding video0 to discover list
initialize: /dev/video0
queryControls: 10100739 control Group Hold
queryControls: 10100747 control Gain
queryControls: 10100748 control Exposure
queryControls: 10100749 control Frame Rate
queryControls: 10100754 control PWL enable
queryControls: 10100755 control LINE OUT
queryControls: 10100836 control Bypass Mode
queryControls: 10100837 control Override Enable
queryControls: 10100838 control Height Align
queryControls: 10100839 control Size Align
queryControls: 10100840 control Write ISP format
Ioctl failed: Invalid argument
NvPclHwScanExternalCameras -- adding video0 to discover list
initialize: /dev/video0
queryControls: 10100739 control Group Hold
queryControls: 10100747 control Gain
queryControls: 10100748 control Exposure
queryControls: 10100749 control Frame Rate
queryControls: 10100754 control PWL enable
queryControls: 10100755 control LINE OUT
queryControls: 10100836 control Bypass Mode
queryControls: 10100837 control Override Enable
queryControls: 10100838 control Height Align
queryControls: 10100839 control Size Align
queryControls: 10100840 control Write ISP format
Ioctl failed: Invalid argument
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
PCLHW_DTParser
setHotplugCallback: Registered new callback client
NvPclSetHotplugCallback: ----------------------
 hotPlugfunc: reading from inotify FD, Thread waiting 
NvPclOpen: ++++++++++++++++++++++
NvPclStateControllerOpen: Found GUID 2 match at index[0]
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f792533c0
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f79253450
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f792534e0
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f79253570
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f79253600
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f79253690
LoadOverridesFile: looking for override file [/Calib/camera_override.isp] 1/16CheckOverridesPermissions: cannot stat file [/Calib/camera_override.isp]
LoadOverridesFile: looking for override file [/data/nvcam/settings/camera_overrides.isp] 2/16CheckOverridesPermissions: cannot stat file [/data/nvcam/settings/camera_overrides.isp]
LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/camera_overrides.isp] 3/16CheckOverridesPermissions: cannot stat file [/opt/nvidia/nvcam/settings/camera_overrides.isp]
LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/camera_overrides.isp] 4/16CheckOverridesPermissions: cannot stat file [/var/nvidia/nvcam/settings/camera_overrides.isp]
LoadOverridesFile: looking for override file [/data/nvcam/camera_overrides.isp] 5/16CheckOverridesPermissions: cannot stat file [/data/nvcam/camera_overrides.isp]
LoadOverridesFile: looking for override file [/data/nvcam/settings/imx390_center_RDACM41.isp] 6/16CheckOverridesPermissions: cannot stat file [/data/nvcam/settings/imx390_center_RDACM41.isp]
LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/imx390_center_RDACM41.isp] 7/16CheckOverridesPermissions: cannot stat file [/opt/nvidia/nvcam/settings/imx390_center_RDACM41.isp]
LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/imx390_center_RDACM41.isp] 8/16CheckOverridesPermissions: cannot stat file [/var/nvidia/nvcam/settings/imx390_center_RDACM41.isp]
---- 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/nvcam/settings/factory.bin] 1/16
Imager: looking for override file [/data/nvcam/settings/imx390_center_RDACM41.bin] 2/16
Imager: looking for override file [/opt/nvidia/nvcam/settings/imx390_center_RDACM41.bin] 3/16
Imager: looking for override file [/var/nvidia/nvcam/settings/imx390_center_RDACM41.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]
initialize: imx390 30-0032
queryControls: 10100739 control Group Hold
queryControls: 10100747 control Gain
queryControls: 10100748 control Exposure
queryControls: 10100749 control Frame Rate
queryControls: 10100754 control PWL enable
queryControls: 10100755 control LINE OUT
queryControls: 10100836 control Bypass Mode
queryControls: 10100837 control Override Enable
queryControls: 10100838 control Height Align
queryControls: 10100839 control Size Align
queryControls: 10100840 control Write ISP format
Ioctl failed: Invalid argument
OFDPropertyGetString: could not read property [use_decibel_gain]
OFDPropertyCopyToLong: could not read property [has-eeprom]
Control Fuse ID not found
Control OTP Data not found
Control HDR enable not found
Control Sensor Mode not found
Control Frame Length not found
Control Coarse Time not found
Control Coarse Time Short not found
queryPixelFormats: type: 1, pixelformat 0x42474752 "RGGB"
queryPixelFormats: type: 1, pixelformat 0x30314752 "RG10"
queryPixelFormats: type: 1, pixelformat 0x30314742 "BG10"
queryPixelFormats: type: 1, pixelformat 0x50474258 "XBGP"
queryPixelFormats: type: 1, pixelformat 0x50475258 "XRGP"
queryPixelFormats: type: 1, pixelformat 0x32314752 "RG12"
queryPixelFormats: type: 1, pixelformat 0x34325241 "AR24"
Ioctl failed: Invalid argument
Ioctl failed: Invalid argument
Ioctl failed: Invalid argument
Ioctl failed: Invalid argument
Ioctl failed: Invalid argument
Ioctl failed: Invalid argument
Ioctl failed: Invalid argument
Ioctl failed: Invalid argument
Ioctl failed: Invalid argument
Ioctl failed: Invalid argument
queryFormatSizes: Discrete frameSize 1920x1080
Ioctl failed: Invalid argument
queryFormatSizes: Discrete frameSize 1920x1080
Ioctl failed: Invalid argument
Ioctl failed: Invalid argument
queryFormatSizes: Discrete frameSize 1920x1080
Ioctl failed: Invalid argument
queryFormatSizes: Discrete frameSize 1920x1080
Ioctl failed: Invalid argument
Ioctl failed: Invalid argument
OFDPropertyGetString: could not read property [type]
loadSubType: Sensor type missing in DT, 180
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]
OFDPropertyGetString: could not read property [sensor_model]
initialize: Loaded Driver: 1 Modes Available--------------
NvPclInitializeDrivers: v4l2_sensor ------------------
NvPclOpen: ----------------------
LSC: LSC surface is not based on full res!
CameraProvider result: provider=0x7f7924df60, shim=0x7f7924bb50, status=0, rpc status=1, size=9
sourceRegistry[0] assigned

ispRegistry[0] assigned

Using Source GUID 2
Worker thread ViCsiHw frameComplete start
Worker thread ViCsiHw frameStart start
NvPclPowerOn: +++++++++++
NvPclPowerOn: -----------
Using ISP A
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
No output buffers for 2

InstructionList:
  + GraphSettings
      | SensorMode: 1920x1080 BayerS16RGGB 60.0fps
      | output 0: 1920x1080 BL U8_V8 420SP

  + Instruction List
      | id: 0
      +  0: CCDataSetupStage
          | EstimatedIspOutLatencyFrames: 5
          | NumConcurrentCaptures: 1
          | UnprocessedYuvBufferMask: 0
      +  1: ACSynchronizeStage
      +  2: AeAfApplyStage
      +  3: AcPluginStage
          | operation: opApply
      +  4: AcMergeStage
          | IspIn: [1920, 1080]
          | IspOut0: [1920, 1080]
      +  5: TempBufferAcquireStage
          | Buffer Index: 2
          | BufferRequirements: 1920x1 Pitch NonColor8
      +  6: SensorISPCaptureStage
          | Source GUID: 2
          | Output A Buffer: 0
          | SensorMetadata Buffer: 2
      +  7: StatsBufferAcquireStage
          | Buffer Index: 1
          | BufferRequirements: 640x360 Pitch Y8 420
      +  8: BlitStage
          | Input Buffer: 0
          | Output Buffer: 1
          | Filter: Nearest
          | Transform: None
          | Src Rect: Not used
          | Dst Rect: Not used
      +  9: StatsUpdateStage
          | Outut Meta Buffer: 2

      + 10: BufferReturnStage
          | Output A Buffer: 2
      + 11: AcPluginStage
          | operation: opAnalyze
      + 12: AfAnalysisStage
      + 13: MonitorStage
      + 14: ExifStage
      + 15: MakerNoteStage
      + 16: BufferReturnStage
          | Output A Buffer: 0
      + 17: MetadataReturnStage
      + 18: PerfStatsStage

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

Thread 1 getting next capture
Thread 1 is waiting
Thread 3 is waiting
CC 102 session 2 completed step 4 in fiber 0x7f34000b70
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
writeMode: Target mode Id(0): Resolution 1920x1080
CC 102 session 2 completed step 5 in fiber 0x7f34000b70
CC 102 session 2 processing step 6 in fiber 0x7f34000b70
FiberScheduler: cc 102, session 2, fiber 0x7f34000b70 in progress...

Thread 2 getting next capture
Thread 2 is waiting
Thread 4 is waiting
Skipping control CID 0
Skipping control CID 0
setActiveBufferMemory: 2
INPUT: Width 1920 Height 1080 pixelformat RG12
Ioctl failed: Invalid argument
(NvOdmDevice) Error IoctlFailed: error setting format (in dvs/git/dirty/git-master_linux/camera-partner/imager/src/V4L2Device.cpp, function setActiveMode(), line 1189)
(NvOdmDevice) Error IoctlFailed:  (propagating from dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L2SensorViCsi.cpp, function enableStreamingConfiguration(), line 1797)
(NvOdmDevice) Error BadParameter: enableStreamingConfiguration FAILED (in dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L2SensorBase.cpp, function writeMode(), line 293)
(NvOdmDevice) Error BadParameter:  (propagating from dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L2SensorViCsi.cpp, function apply(), line 160)
NvPclSettingsApply: Reading PCL settings
PowerServiceUtils:calculateReqClock: entered
PowerServiceHw:addRequest: table size: before: 0, after:1
	request table for VI 0:
	req[0]: guID=2, stageID=SensorCapture
	req[0]: inW=1920, inH=1080, inBpp = 12, fps=60
	req[0]: outW=1920, outH=1080, outBpp=12
	req[0]: out1W=0, out1H=0, out1Bpp=0
	req[0]: out2W=0, out2H=0, out2Bpp=0
	req[0]: clock=163350000, pixelRate=148500000, timeout=900
	req[0]: isoBw=245025, timeout=900
	req[0]: non_isoBw=0, timeout=900
PowerServiceHw:addRequest: table size: before: 0, after:1
	request table for CSI 0:
	req[0]: guID=2, stageID=SensorCapture
	req[0]: inW=1920, inH=1080, inBpp = 12, fps=60
	req[0]: outW=1920, outH=1080, outBpp=12
	req[0]: out1W=0, out1H=0, out1Bpp=0
	req[0]: out2W=0, out2H=0, out2Bpp=0
	req[0]: clock=0, pixelRate=148500000, timeout=900
	req[0]: isoBw=0, timeout=900
	req[0]: non_isoBw=0, timeout=900
PowerServiceHwVi:setIso: m_bwVal_Iso=245025
PowerServiceHw:setClock: PowerServiceHw[1]: requested_clock_Hz=163350000
PowerServiceCore:setCameraBw: totalIsoBw=245025
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
(NvOdmDevice) Error BadParameter: Sensor mode has not been configured! (in dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L2SensorViCsi.cpp, function apply(), line 194)
NvPclSettingsApply: Reading PCL settings
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
writeFrameRate:	INPUT frameRate:60.000000
writeGain:	INPUT gainCtrl:400000 analogGain:1.000000
writeExposure:	INPUT expTime:0.016667
Ioctl failed: Bad address
(NvOdmDevice) Error IoctlFailed:  (in dvs/git/dirty/git-master_linux/camera-partner/imager/src/V4L2Device.cpp, function setControlValMultiple(), line 767)
(NvOdmDevice) Error IoctlFailed:  (propagating from dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L2SensorViCsi.cpp, function setDeviceControls(), line 1558)
updateOutputSettings: Set Control failed. Use cached values
updateOutputSettings:	OUTPUT frameRate:0.000014
updateOutputSettings:	OUTPUT analogGain:0.000007
updateOutputSettings:	OUTPUT expTime:0.000091
(NvOdmDevice) Error InvalidState: Invalid active Mode Size (in dvs/git/dirty/git-master_linux/camera-partner/imager/src/V4L2Device.cpp, function streamControl(), line 1300)
(NvOdmDevice) Error InvalidState:  (propagating from dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L2SensorViCsi.cpp, function apply(), line 196)
NvPclSettingsApply: Reading PCL settings
PowerServiceUtils:calculateReqClock: entered
PowerServiceHw:addRequest: table size: before: 1, after:2
	request table for VI 0:
	req[0]: guID=2, stageID=SensorCapture
	req[0]: inW=1920, inH=1080, inBpp = 12, fps=60
	req[0]: outW=1920, outH=1080, outBpp=12
	req[0]: out1W=0, out1H=0, out1Bpp=0
	req[0]: out2W=0, out2H=0, out2Bpp=0
	req[0]: clock=163350000, pixelRate=148500000, timeout=900
	req[0]: isoBw=245025, timeout=900
	req[0]: non_isoBw=0, timeout=900
	req[1]: guID=2, stageID=SensorIspCapture
	req[1]: inW=1920, inH=1080, inBpp = 12, fps=60
	req[1]: outW=1920, outH=1080, outBpp=16
	req[1]: out1W=0, out1H=0, out1Bpp=0
	req[1]: out2W=0, out2H=0, out2Bpp=0
	req[1]: clock=163350000, pixelRate=148500000, timeout=450
	req[1]: isoBw=0, timeout=450
	req[1]: non_isoBw=0, timeout=450
PowerServiceHw:addRequest: table size: before: 1, after:2
	request table for CSI 0:
	req[0]: guID=2, stageID=SensorCapture
	req[0]: inW=1920, inH=1080, inBpp = 12, fps=60
	req[0]: outW=1920, outH=1080, outBpp=12
	req[0]: out1W=0, out1H=0, out1Bpp=0
	req[0]: out2W=0, out2H=0, out2Bpp=0
	req[0]: clock=0, pixelRate=148500000, timeout=900
	req[0]: isoBw=0, timeout=900
	req[0]: non_isoBw=0, timeout=900
	req[1]: guID=2, stageID=SensorIspCapture
	req[1]: inW=1920, inH=1080, inBpp = 12, fps=60
	req[1]: outW=1920, outH=1080, outBpp=16
	req[1]: out1W=0, out1H=0, out1Bpp=0
	req[1]: out2W=0, out2H=0, out2Bpp=0
	req[1]: clock=0, pixelRate=148500000, timeout=450
	req[1]: isoBw=0, timeout=450
	req[1]: non_isoBw=0, timeout=450
PowerServiceUtils:calculateReqClock: entered
PowerServiceHw:addRequest: table size: before: 0, after:1
	request table for ISP 0:
	req[0]: guID=2, stageID=SensorIspCapture
	req[0]: inW=1920, inH=1080, inBpp = 12, fps=60
	req[0]: outW=130, outH=74, outBpp=16
	req[0]: out1W=0, out1H=0, out1Bpp=0
	req[0]: out2W=0, out2H=0, out2Bpp=0
	req[0]: clock=163350000, pixelRate=148500000, timeout=450
	req[0]: isoBw=326700, timeout=450
	req[0]: non_isoBw=0, timeout=450
PowerServiceHw:updateRequests: table size: before: 1, after:1
	request table for ISP 0:
	req[0]: guID=2, stageID=SensorIspCapture
	req[0]: inW=1920, inH=1080, inBpp = 12, fps=60
	req[0]: outW=130, outH=74, outBpp=16
	req[0]: out1W=0, out1H=0, out1Bpp=0
	req[0]: out2W=0, out2H=0, out2Bpp=0
	req[0]: clock=163350000, pixelRate=148500000, timeout=417
	req[0]: isoBw=326700, timeout=417
	req[0]: non_isoBw=0, timeout=417
PowerServiceHw:updateRequests: table size: before: 2, after:2
	request table for VI 0:
	req[0]: guID=2, stageID=SensorCapture
	req[0]: inW=1920, inH=1080, inBpp = 12, fps=60
	req[0]: outW=1920, outH=1080, outBpp=12
	req[0]: out1W=0, out1H=0, out1Bpp=0
	req[0]: out2W=0, out2H=0, out2Bpp=0
	req[0]: clock=163350000, pixelRate=148500000, timeout=867
	req[0]: isoBw=245025, timeout=867
	req[0]: non_isoBw=0, timeout=867
	req[1]: guID=2, stageID=SensorIspCapture
	req[1]: inW=1920, inH=1080, inBpp = 12, fps=60
	req[1]: outW=1920, outH=1080, outBpp=16
	req[1]: out1W=0, out1H=0, out1Bpp=0
	req[1]: out2W=0, out2H=0, out2Bpp=0
	req[1]: clock=163350000, pixelRate=148500000, timeout=417
	req[1]: isoBw=0, timeout=417
	req[1]: non_isoBw=0, timeout=417
PowerServiceHw:updateRequests: table size: before: 2, after:2
	request table for CSI 0:
	req[0]: guID=2, stageID=SensorCapture
	req[0]: inW=1920, inH=1080, inBpp = 12, fps=60
	req[0]: outW=1920, outH=1080, outBpp=12
	req[0]: out1W=0, out1H=0, out1Bpp=0
	req[0]: out2W=0, out2H=0, out2Bpp=0
	req[0]: clock=0, pixelRate=148500000, timeout=867
	req[0]: isoBw=0, timeout=867
	req[0]: non_isoBw=0, timeout=867
	req[1]: guID=2, stageID=SensorIspCapture
	req[1]: inW=1920, inH=1080, inBpp = 12, fps=60
	req[1]: outW=1920, outH=1080, outBpp=16
	req[1]: out1W=0, out1H=0, out1Bpp=0
	req[1]: out2W=0, out2H=0, out2Bpp=0
	req[1]: clock=0, pixelRate=148500000, timeout=417
	req[1]: isoBw=0, timeout=417
	req[1]: non_isoBw=0, timeout=417
PowerServiceHwIsp:setLaBw: m_bwVal_Iso=326700 and m_bwVal_NonIso=0 KBpS

PowerServiceHw:setClock: PowerServiceHw[2]: requested_clock_Hz=163350000
PowerServiceCore:setCameraBw: totalIsoBw=326700
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
writeGain:	INPUT gainCtrl:7ffffd analogGain:1.999999
updateOutputSettings:	OUTPUT analogGain:1.999999
(NvOdmDevice) Error InvalidState: Invalid active Mode Size (in dvs/git/dirty/git-master_linux/camera-partner/imager/src/V4L2Device.cpp, function streamControl(), line 1300)
(NvOdmDevice) Error InvalidState:  (propagating from dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L2SensorViCsi.cpp, function apply(), line 196)
NvPclSettingsApply: Reading PCL settings
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
(NvOdmDevice) Error InvalidState: Invalid active Mode Size (in dvs/git/dirty/git-master_linux/camera-partner/imager/src/V4L2Device.cpp, function streamControl(), line 1300)
(NvOdmDevice) Error InvalidState:  (propagating from dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L2SensorViCsi.cpp, function apply(), line 196)
NvPclSettingsApply: Reading PCL settings
PowerServiceUtils:calculateReqClock: entered
PowerServiceHw:addRequest: table size: before: 1, after:2
	request table for ISP 0:
	req[0]: guID=2, stageID=SensorIspCapture
	req[0]: inW=1920, inH=1080, inBpp = 12, fps=60
	req[0]: outW=130, outH=74, outBpp=16
	req[0]: out1W=0, out1H=0, out1Bpp=0
	req[0]: out2W=0, out2H=0, out2Bpp=0
	req[0]: clock=163350000, pixelRate=148500000, timeout=448
	req[0]: isoBw=326700, timeout=448
	req[0]: non_isoBw=0, timeout=448
	req[1]: guID=2, stageID=SensorIspCapture
	req[1]: inW=1920, inH=1080, inBpp = 12, fps=60
	req[1]: outW=1920, outH=1080, outBpp=12
	req[1]: out1W=0, out1H=0, out1Bpp=0
	req[1]: out2W=0, out2H=0, out2Bpp=0
	req[1]: clock=163350000, pixelRate=148500000, timeout=450
	req[1]: isoBw=245025, timeout=450
	req[1]: non_isoBw=0, timeout=450
SCF: Error Timeout:  (propagating from src/services/capture/CaptureServiceEvent.cpp, function wait(), line 59)
Error: Camera HwEvents wait, this may indicate a hardware timeout occured,abort current/incoming cc
Created fiber 0x7f34000d10 for CC 103 globalID 103 session 2
launchCC abort cc 104 session 2
Created fiber 0x7f3000d820 for CC 104 globalID 104 session 2
SCF: Error Timeout:  (propagating from src/api/Session.cpp, function capture(), line 830)
Thread 6 is working on CC 103 session 2 globalID 103 step 0
(Argus) Error Timeout: Failed to submit first capture request (propagating from src/api/CaptureSessionImpl.cpp, function submitCaptureRequests(), line 311)
(Argus) Error Timeout:  (propagating from src/api/CaptureSessionImpl.cpp, function threadFunction(), line 777)
Fiber 0x7f34000d10 is aborting in CC 103 Session 2
FiberScheduler: cc 103 session 2, fiber 0x7f34000d10 aborted

FiberScheduler: fiber 0x7f34000d10 exiting
Thread 6 getting next capture
disposing CC 103 Session 2
Thread 6 is working on CC 104 session 2 globalID 104 step 0
Fiber 0x7f3000d820 is aborting in CC 104 Session 2
FiberScheduler: cc 104 session 2, fiber 0x7f3000d820 aborted

FiberScheduler: fiber 0x7f3000d820 exiting
Thread 6 getting next capture
Thread 6 is waiting
Thread 8 is waiting
Thread 10 is waiting
Thread 9 is waiting
Thread 7 is waiting
Thread 5 is waiting
Error: waitCsiFrameStart timeout guid 2
Error: waitCsiFrameStart Something went wrong with waiting on frame start
Error: waitCsiFrameStart Something went wrong with waiting on frame start
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
(NvOdmDevice) Error InvalidState: Invalid active Mode Size (in dvs/git/dirty/git-master_linux/camera-partner/imager/src/V4L2Device.cpp, function streamControl(), line 1300)
(NvOdmDevice) Error InvalidState:  (propagating from dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L2SensorViCsi.cpp, function apply(), line 196)
NvPclSettingsApply: Reading PCL settings
PowerServiceCore:handleRequests: timePassed = 1499
SCF: Error Timeout: ISP Stats timed out! (in src/services/capture/CaptureServiceDeviceIsp.cpp, function waitIspStatsFinished(), line 785)
SCF: Error Timeout: ISP port 0 timed out! (in src/services/capture/CaptureServiceDeviceIsp.cpp, function waitIspFrameEnd(), line 702)
SCF: Error Timeout:  (propagating from src/services/capture/CaptureServiceDeviceIsp.cpp, function waitIspFrameEnd(), line 743)
SCF: Error Timeout:  (propagating from src/common/Utils.cpp, function workerThread(), line 114)
SCF: Error Timeout: Worker thread IspHw frameComplete failed (in src/common/Utils.cpp, function workerThread(), line 131)
Error: waitCsiFrameStart timeout guid 2
SCF: Error Timeout: ISP Stats timed out! (in src/services/capture/CaptureServiceDeviceIsp.cpp, function waitIspStatsFinished(), line 785)
SCF: Error Timeout: ISP Stats timed out! (in src/services/capture/CaptureServiceDeviceIsp.cpp, function waitIspStatsFinished(), line 785)
SCF: Error Timeout: ISP Stats timed out! (in src/services/capture/CaptureServiceDeviceIsp.cpp, function waitIspStatsFinished(), line 785)

Could you check the xxxx_stream() been called to initialize the setting?

(NvOdmDevice) Error IoctlFailed: error setting format (in dvs/git/dirty/git-master_linux/camera-partner/imager/src/V4L2Device.cpp, function setActiveMode(), line 1189)
(NvOdmDevice) Error IoctlFailed:  (propagating from dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L2SensorViCsi.cpp, function enableStreamingConfiguration(), line 1797)
(NvOdmDevice) Error BadParameter: enableStreamingConfiguration FAILED (in dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L2SensorBase.cpp, function writeMode(), line 293)
(NvOdmDevice) Error BadParameter:  (propagating from dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L2SensorViCsi.cpp, function apply(), line 160)
NvPclSettingsApply: Reading PCL settings

Hi Shane,

s_stream() function is not being called. Do you know why?

Could you compare with the ov5693.c for your driver implement to check.
It’s better to get the log and compare to check any different to know your driver losted what.

Hi Shane,

I’ve compared with the ov5693.c driver the missing controls are V4L2_CID_FUSE_ID, V4L2_CID_EEPROM_DATA and V4L2_CID_OTP_DATA. Are any of these required?

I’ve also revised s_stream function while still disabling the hdr_en function call. The stream function is now called but the video stream still hangs in the same manner.

Here is the argus_daemon log:

=== Listening for connections... ===
=== Connection 7F924D81E0 established ===
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 12 getting next captureThread 10 getting next capture
Thread 10 is waiting
Thread 11 getting next capture
Thread 11 is waiting

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(0x7f8d219980)
getInstance: s_instance(0x7f8d219980)
subscribe: create SensorType(gyroscope) sensor(0x7f8d21bb00)
subscribe: create SensorType(accelerometer) sensor(0x7f8d220f60)
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
NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
NvPclHwGetModuleList: No module data found
NvPclHwPrintModuleDefinition -- Name: imx390_center_RDACM41
NvPclHwPrintModuleDefinition -- Position: 2
NvPclHwPrintModuleDefinition -- CalibrationData Found: 1
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].Name: v4l2_sensor
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].DevName: imx390 30-0032
NvPclHwGetModuleList: OFParserListModules Succeeded
NvPclModuleListInitialize: NvPclModule list[0]: imx390_center_RDACM41 position2
NvPclHwScanExternalCameras -- adding video0 to discover list
NvPclHwScanExternalCameras -- adding video0 to discover list
initialize: /dev/video0
queryControls: 10100739 control Group Hold
queryControls: 10100740 control HDR enable
queryControls: 10100747 control Gain
queryControls: 10100748 control Exposure
queryControls: 10100749 control Frame Rate
queryControls: 10100754 control PWL enable
queryControls: 10100755 control LINE OUT
queryControls: 10100836 control Bypass Mode
queryControls: 10100837 control Override Enable
queryControls: 10100838 control Height Align
queryControls: 10100839 control Size Align
queryControls: 10100840 control Write ISP format
Ioctl failed: Invalid argument
NvPclHwScanExternalCameras -- adding video0 to discover list
initialize: /dev/video0
queryControls: 10100739 control Group Hold
queryControls: 10100740 control HDR enable
queryControls: 10100747 control Gain
queryControls: 10100748 control Exposure
queryControls: 10100749 control Frame Rate
queryControls: 10100754 control PWL enable
queryControls: 10100755 control LINE OUT
queryControls: 10100836 control Bypass Mode
queryControls: 10100837 control Override Enable
queryControls: 10100838 control Height Align
queryControls: 10100839 control Size Align
queryControls: 10100840 control Write ISP format
Ioctl failed: Invalid argument
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
PCLHW_DTParser
setHotplugCallback: Registered new callback client
NvPclSetHotplugCallback: ----------------------
 hotPlugfunc: reading from inotify FD, Thread waiting 
NvPclOpen: ++++++++++++++++++++++
NvPclStateControllerOpen: Found GUID 2 match at index[0]
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f8d2533a0
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f8d253430
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f8d2534c0
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f8d253550
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f8d2535e0
NvPclHwInitializeModule: allocate overrides pathname @ 0x7f8d253670
LoadOverridesFile: looking for override file [/Calib/camera_override.isp] 1/16CheckOverridesPermissions: cannot stat file [/Calib/camera_override.isp]
LoadOverridesFile: looking for override file [/data/nvcam/settings/camera_overrides.isp] 2/16CheckOverridesPermissions: cannot stat file [/data/nvcam/settings/camera_overrides.isp]
LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/camera_overrides.isp] 3/16CheckOverridesPermissions: cannot stat file [/opt/nvidia/nvcam/settings/camera_overrides.isp]
LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/camera_overrides.isp] 4/16CheckOverridesPermissions: cannot stat file [/var/nvidia/nvcam/settings/camera_overrides.isp]
LoadOverridesFile: looking for override file [/data/nvcam/camera_overrides.isp] 5/16CheckOverridesPermissions: cannot stat file [/data/nvcam/camera_overrides.isp]
LoadOverridesFile: looking for override file [/data/nvcam/settings/imx390_center_RDACM41.isp] 6/16CheckOverridesPermissions: cannot stat file [/data/nvcam/settings/imx390_center_RDACM41.isp]
LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/imx390_center_RDACM41.isp] 7/16CheckOverridesPermissions: cannot stat file [/opt/nvidia/nvcam/settings/imx390_center_RDACM41.isp]
LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/imx390_center_RDACM41.isp] 8/16CheckOverridesPermissions: cannot stat file [/var/nvidia/nvcam/settings/imx390_center_RDACM41.isp]
---- 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/nvcam/settings/factory.bin] 1/16
Imager: looking for override file [/data/nvcam/settings/imx390_center_RDACM41.bin] 2/16
Imager: looking for override file [/opt/nvidia/nvcam/settings/imx390_center_RDACM41.bin] 3/16
Imager: looking for override file [/var/nvidia/nvcam/settings/imx390_center_RDACM41.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]
initialize: imx390 30-0032
queryControls: 10100739 control Group Hold
queryControls: 10100740 control HDR enable
queryControls: 10100747 control Gain
queryControls: 10100748 control Exposure
queryControls: 10100749 control Frame Rate
queryControls: 10100754 control PWL enable
queryControls: 10100755 control LINE OUT
queryControls: 10100836 control Bypass Mode
queryControls: 10100837 control Override Enable
queryControls: 10100838 control Height Align
queryControls: 10100839 control Size Align
queryControls: 10100840 control Write ISP format
Ioctl failed: Invalid argument
OFDPropertyGetString: could not read property [use_decibel_gain]
OFDPropertyCopyToLong: could not read property [has-eeprom]
Control Fuse ID not found
Control OTP Data not found
Control Sensor Mode not found
Control Frame Length not found
Control Coarse Time not found
Control Coarse Time Short not found
queryPixelFormats: type: 1, pixelformat 0x42474752 "RGGB"
queryPixelFormats: type: 1, pixelformat 0x30314752 "RG10"
queryPixelFormats: type: 1, pixelformat 0x30314742 "BG10"
queryPixelFormats: type: 1, pixelformat 0x50474258 "XBGP"
queryPixelFormats: type: 1, pixelformat 0x50475258 "XRGP"
queryPixelFormats: type: 1, pixelformat 0x32314752 "RG12"
queryPixelFormats: type: 1, pixelformat 0x34325241 "AR24"
Ioctl failed: Invalid argument
Ioctl failed: Invalid argument
Ioctl failed: Invalid argument
Ioctl failed: Invalid argument
Ioctl failed: Invalid argument
Ioctl failed: Invalid argument
Ioctl failed: Invalid argument
Ioctl failed: Invalid argument
Ioctl failed: Invalid argument
Ioctl failed: Invalid argument
queryFormatSizes: Discrete frameSize 1920x1080
Ioctl failed: Invalid argument
queryFormatSizes: Discrete frameSize 1920x1080
Ioctl failed: Invalid argument
Ioctl failed: Invalid argument
queryFormatSizes: Discrete frameSize 1920x1080
Ioctl failed: Invalid argument
queryFormatSizes: Discrete frameSize 1920x1080
Ioctl failed: Invalid argument
Ioctl failed: Invalid argument
OFDPropertyGetString: could not read property [type]
loadSubType: Sensor type missing in DT, 180
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]
OFDPropertyGetString: could not read property [sensor_model]
initialize: Loaded Driver: 1 Modes Available--------------
NvPclInitializeDrivers: v4l2_sensor ------------------
NvPclOpen: ----------------------
LSC: LSC surface is not based on full res!
CameraProvider result: provider=0x7f8d24df40, shim=0x7f8d24bb30, status=0, rpc status=1, size=9
sourceRegistry[0] assigned

ispRegistry[0] assigned

Using Source GUID 2
Worker thread ViCsiHw frameComplete start
Worker thread ViCsiHw frameStart start
NvPclPowerOn: +++++++++++
NvPclPowerOn: -----------
Using ISP A
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
No output buffers for 2

InstructionList:
  + GraphSettings
      | SensorMode: 1920x1080 BayerS16RGGB 60.0fps
      | output 0: 1920x1080 BL U8_V8 420SP

  + Instruction List
      | id: 0
      +  0: CCDataSetupStage
          | EstimatedIspOutLatencyFrames: 5
          | NumConcurrentCaptures: 1
          | UnprocessedYuvBufferMask: 0
      +  1: ACSynchronizeStage
      +  2: AeAfApplyStage
      +  3: AcPluginStage
          | operation: opApply
      +  4: AcMergeStage
          | IspIn: [1920, 1080]
          | IspOut0: [1920, 1080]
      +  5: TempBufferAcquireStage
          | Buffer Index: 2
          | BufferRequirements: 1920x1 Pitch NonColor8
      +  6: SensorISPCaptureStage
          | Source GUID: 2
          | Output A Buffer: 0
          | SensorMetadata Buffer: 2
      +  7: StatsBufferAcquireStage
          | Buffer Index: 1
          | BufferRequirements: 640x360 Pitch Y8 420
      +  8: BlitStage
          | Input Buffer: 0
          | Output Buffer: 1
          | Filter: Nearest
          | Transform: None
          | Src Rect: Not used
          | Dst Rect: Not used
      +  9: StatsUpdateStage
          | Outut Meta Buffer: 2

      + 10: BufferReturnStage
          | Output A Buffer: 2
      + 11: AcPluginStage
          | operation: opAnalyze
      + 12: AfAnalysisStage
      + 13: MonitorStage
      + 14: ExifStage
      + 15: MakerNoteStage
      + 16: BufferReturnStage
          | Output A Buffer: 0
      + 17: MetadataReturnStage
      + 18: PerfStatsStage

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

Thread 1 getting next capture
Thread 1 is waiting
Thread 2 is waiting
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
writeMode: Target mode Id(0): Resolution 1920x1080
Created fiber 0x7f48000b70 for CC 102 globalID 102 session 2
Thread 3 is working on CC 102 session 2 globalID 102 step 0
CC 102 session 2 completed step 0 in fiber 0x7f48000b70
cc 102(2) session 2 runCount=1 runIspOut=0, latest ccId=0
CC 102 session 2 completed step 1 in fiber 0x7f48000b70
NV AE and AfApply algorithms are active.
CC 102 session 2 completed step 2 in fiber 0x7f48000b70
CC 102 session 2 completed step 3 in fiber 0x7f48000b70
CC 102 session 2 completed step 4 in fiber 0x7f48000b70
CC 102 session 2 completed step 5 in fiber 0x7f48000b70
CC 102 session 2 processing step 6 in fiber 0x7f48000b70
FiberScheduler: cc 102, session 2, fiber 0x7f48000b70 in progress...

Thread 3 getting next capture
Thread 3 is waiting
Thread 4 is waiting
Skipping control CID 0
setActiveBufferMemory: 2
INPUT: Width 1920 Height 1080 pixelformat RG12
writeFrameRate:	INPUT frameRate:60.000000
writeGain:	INPUT gainCtrl:400000 analogGain:1.000000
writeExposure:	INPUT expTime:0.016667
updateOutputSettings:	OUTPUT frameRate:60.000000
updateOutputSettings:	OUTPUT analogGain:1.000000
updateOutputSettings:	OUTPUT expTime:0.016667
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
PowerServiceUtils:calculateReqClock: entered
PowerServiceHw:addRequest: table size: before: 0, after:1
	request table for VI 0:
	req[0]: guID=2, stageID=SensorCapture
	req[0]: inW=1920, inH=1080, inBpp = 12, fps=60
	req[0]: outW=1920, outH=1080, outBpp=12
	req[0]: out1W=0, out1H=0, out1Bpp=0
	req[0]: out2W=0, out2H=0, out2Bpp=0
	req[0]: clock=163350000, pixelRate=148500000, timeout=900
	req[0]: isoBw=245025, timeout=900
	req[0]: non_isoBw=0, timeout=900
PowerServiceHw:addRequest: table size: before: 0, after:1
	request table for CSI 0:
	req[0]: guID=2, stageID=SensorCapture
	req[0]: inW=1920, inH=1080, inBpp = 12, fps=60
	req[0]: outW=1920, outH=1080, outBpp=12
	req[0]: out1W=0, out1H=0, out1Bpp=0
	req[0]: out2W=0, out2H=0, out2Bpp=0
	req[0]: clock=0, pixelRate=148500000, timeout=900
	req[0]: isoBw=0, timeout=900
	req[0]: non_isoBw=0, timeout=900
PowerServiceHwVi:setIso: m_bwVal_Iso=245025
PowerServiceHw:setClock: PowerServiceHw[1]: requested_clock_Hz=163350000
PowerServiceCore:setCameraBw: totalIsoBw=245025
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
SCF: Error Timeout:  (propagating from src/services/capture/CaptureServiceEvent.cpp, function wait(), line 59)
Error: Camera HwEvents wait, this may indicate a hardware timeout occured,abort current/incoming cc
Created fiber 0x7f48000d10 for CC 103 globalID 103 session 2
launchCC abort cc 104 session 2
Created fiber 0x7f4400d820 for CC 104 globalID 104 session 2
SCF: Error Timeout:  (propagating from src/api/Session.cpp, function capture(), line 830)
(Argus) Error Timeout: Failed to submit first capture request (propagating from src/api/CaptureSessionImpl.cpp, function submitCaptureRequests(), line 311)
(Argus) Error Timeout:  (propagating from src/api/CaptureSessionImpl.cpp, function threadFunction(), line 777)
Thread 6 is working on CC 103 session 2 globalID 103 step 0
Fiber 0x7f48000d10 is aborting in CC 103 Session 2
FiberScheduler: cc 103 session 2, fiber 0x7f48000d10 aborted

Thread 5 is working on CC 104 session 2 globalID 104 step 0
Fiber 0x7f4400d820 is aborting in CC 104 Session 2
FiberScheduler: cc 104 session 2, fiber 0x7f4400d820 aborted

FiberScheduler: fiber 0x7f48000d10 exiting
Thread 6 getting next capture
disposing CC 103 Session 2
Thread 7 is waiting
Thread 6 is waiting
FiberScheduler: fiber 0x7f4400d820 exiting
Thread 5 getting next capture
Thread 5 is waiting
Thread 10 is waiting
Thread 9 is waiting
Thread 8 is waiting
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
PowerServiceUtils:calculateReqClock: entered
PowerServiceHw:addRequest: table size: before: 1, after:2
	request table for VI 0:
	req[0]: guID=2, stageID=SensorCapture
	req[0]: inW=1920, inH=1080, inBpp = 12, fps=60
	req[0]: outW=1920, outH=1080, outBpp=12
	req[0]: out1W=0, out1H=0, out1Bpp=0
	req[0]: out2W=0, out2H=0, out2Bpp=0
	req[0]: clock=163350000, pixelRate=148500000, timeout=900
	req[0]: isoBw=245025, timeout=900
	req[0]: non_isoBw=0, timeout=900
	req[1]: guID=2, stageID=SensorIspCapture
	req[1]: inW=1920, inH=1080, inBpp = 12, fps=60
	req[1]: outW=1920, outH=1080, outBpp=16
	req[1]: out1W=0, out1H=0, out1Bpp=0
	req[1]: out2W=0, out2H=0, out2Bpp=0
	req[1]: clock=163350000, pixelRate=148500000, timeout=450
	req[1]: isoBw=0, timeout=450
	req[1]: non_isoBw=0, timeout=450
PowerServiceHw:addRequest: table size: before: 1, after:2
	request table for CSI 0:
	req[0]: guID=2, stageID=SensorCapture
	req[0]: inW=1920, inH=1080, inBpp = 12, fps=60
	req[0]: outW=1920, outH=1080, outBpp=12
	req[0]: out1W=0, out1H=0, out1Bpp=0
	req[0]: out2W=0, out2H=0, out2Bpp=0
	req[0]: clock=0, pixelRate=148500000, timeout=900
	req[0]: isoBw=0, timeout=900
	req[0]: non_isoBw=0, timeout=900
	req[1]: guID=2, stageID=SensorIspCapture
	req[1]: inW=1920, inH=1080, inBpp = 12, fps=60
	req[1]: outW=1920, outH=1080, outBpp=16
	req[1]: out1W=0, out1H=0, out1Bpp=0
	req[1]: out2W=0, out2H=0, out2Bpp=0
	req[1]: clock=0, pixelRate=148500000, timeout=450
	req[1]: isoBw=0, timeout=450
	req[1]: non_isoBw=0, timeout=450
PowerServiceUtils:calculateReqClock: entered
PowerServiceHw:addRequest: table size: before: 0, after:1
	request table for ISP 0:
	req[0]: guID=2, stageID=SensorIspCapture
	req[0]: inW=1920, inH=1080, inBpp = 12, fps=60
	req[0]: outW=130, outH=74, outBpp=16
	req[0]: out1W=0, out1H=0, out1Bpp=0
	req[0]: out2W=0, out2H=0, out2Bpp=0
	req[0]: clock=163350000, pixelRate=148500000, timeout=450
	req[0]: isoBw=326700, timeout=450
	req[0]: non_isoBw=0, timeout=450
PowerServiceCore:handleRequests: timePassed = 3011
PowerServiceHwIsp:setLaBw: m_bwVal_Iso=326700 and m_bwVal_NonIso=0 KBpS

PowerServiceHw:setClock: PowerServiceHw[2]: requested_clock_Hz=163350000
PowerServiceCore:setCameraBw: totalIsoBw=326700
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
writeGain:	INPUT gainCtrl:7ffffd analogGain:1.999999
updateOutputSettings:	OUTPUT analogGain:1.999999
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
PowerServiceUtils:calculateReqClock: entered
PowerServiceHw:addRequest: table size: before: 1, after:2
	request table for ISP 0:
	req[0]: guID=2, stageID=SensorIspCapture
	req[0]: inW=1920, inH=1080, inBpp = 12, fps=60
	req[0]: outW=130, outH=74, outBpp=16
	req[0]: out1W=0, out1H=0, out1Bpp=0
	req[0]: out2W=0, out2H=0, out2Bpp=0
	req[0]: clock=163350000, pixelRate=148500000, timeout=449
	req[0]: isoBw=326700, timeout=449
	req[0]: non_isoBw=0, timeout=449
	req[1]: guID=2, stageID=SensorIspCapture
	req[1]: inW=1920, inH=1080, inBpp = 12, fps=60
	req[1]: outW=1920, outH=1080, outBpp=12
	req[1]: out1W=0, out1H=0, out1Bpp=0
	req[1]: out2W=0, out2H=0, out2Bpp=0
	req[1]: clock=163350000, pixelRate=148500000, timeout=450
	req[1]: isoBw=245025, timeout=450
	req[1]: non_isoBw=0, timeout=450
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
FiberScheduler: cc 101, session 2, fiber 0x7f480008c0 succeeded async operation

Thread 11 is working on CC 101 session 2 globalID 101 step 7
CC 101 session 2 completed step 7 in fiber 0x7f480008c0
PowerServiceHw:addRequest: table size: before: 0, after:1
	request table for VIC 0:
	req[0]: guID=0, stageID=Blit
	req[0]: inW=1920, inH=1080, inBpp = 12, fps=60
	req[0]: outW=640, outH=360, outBpp=13
	req[0]: out1W=0, out1H=0, out1Bpp=0
	req[0]: out2W=0, out2H=0, out2Bpp=0
	req[0]: clock=5184000, pixelRate=0, timeout=450
	req[0]: isoBw=0, timeout=450
	req[0]: non_isoBw=209088, timeout=450
PowerServiceHw:updateRequests: table size: before: 1, after:1
	request table for VIC 0:
	req[0]: guID=0, stageID=Blit
	req[0]: inW=1920, inH=1080, inBpp = 12, fps=60
	req[0]: outW=640, outH=360, outBpp=13
	req[0]: out1W=0, out1H=0, out1Bpp=0
	req[0]: out2W=0, out2H=0, out2Bpp=0
	req[0]: clock=5184000, pixelRate=0, timeout=429
	req[0]: isoBw=0, timeout=429
	req[0]: non_isoBw=209088, timeout=429
PowerServiceHwVic:setClock: PowerServiceHw[3]: requested_clock_Hz=5184000
PowerServiceCore:setCameraBw: totalNonIsoBw=209088
CC 101 session 2 completed step 8 in fiber 0x7f480008c0
exposureTime=0.016667 analogGain=1.999999 digitalGain=1.000000 commonGain=0.033333 expComp=1.000000

lux in Statsupdate: isAohdrEnable=0 currentSceneLux 1262.347
CC 101 session 2 completed step 9 in fiber 0x7f480008c0
CC 101 session 2 completed step 10 in fiber 0x7f480008c0
CC 101 session 2 completed step 11 in fiber 0x7f480008c0
NV AF analysis algorithm is active.
AfAnalysis cc 101 push FK_ISP_RUN_NUMBER=1.
CC 101 session 2 completed step 12 in fiber 0x7f480008c0
CC 101 session 2 completed step 13 in fiber 0x7f480008c0
CC 101 session 2 completed step 14 in fiber 0x7f480008c0
CC 101 session 2 completed step 15 in fiber 0x7f480008c0
CC 101 session 2 completed step 16 in fiber 0x7f480008c0
CC 101 session 2 completed step 17 in fiber 0x7f480008c0
CC 101 session 2 completed step 18 in fiber 0x7f480008c0
FiberScheduler: cc 101, session 2, fiber 0x7f480008c0 complete

FiberScheduler: fiber 0x7f480008c0 exiting
Thread 12 is waiting
disposing CC 101 Session 2
Thread 1 is waiting
Thread 11 getting next capture
Thread 11 is waiting
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
FiberScheduler: cc 102, session 2, fiber 0x7f48000b70 succeeded async operation

Thread 2 is working on CC 102 session 2 globalID 102 step 7
CC 102 session 2 completed step 7 in fiber 0x7f48000b70
CC 102 session 2 completed step 8 in fiber 0x7f48000b70
exposureTime=0.016667 analogGain=1.999999 digitalGain=1.000000 commonGain=0.033333 expComp=1.000000

lux in Statsupdate: isAohdrEnable=0 currentSceneLux 1239.789
CC 102 session 2 completed step 9 in fiber 0x7f48000b70
CC 102 session 2 completed step 10 in fiber 0x7f48000b70
CC 102 session 2 completed step 11 in fiber 0x7f48000b70
NV AF analysis algorithm is active.
AfAnalysis cc 102 push FK_ISP_RUN_NUMBER=2.
CC 102 session 2 completed step 12 in fiber 0x7f48000b70
CC 102 session 2 completed step 13 in fiber 0x7f48000b70
CC 102 session 2 completed step 14 in fiber 0x7f48000b70
CC 102 session 2 completed step 15 in fiber 0x7f48000b70
CC 102 session 2 completed step 16 in fiber 0x7f48000b70
CC 102 session 2 completed step 17 in fiber 0x7f48000b70
CC 102 session 2 completed step 18 in fiber 0x7f48000b70
FiberScheduler: cc 102, session 2, fiber 0x7f48000b70 complete

FiberScheduler: fiber 0x7f48000b70 exiting
Thread 2 getting next capture
disposing CC 102 Session 2
Thread 4 is waiting
Thread 2 is waiting
Thread 3 is waiting
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
PowerServiceHw:updateRequests: table size: before: 2, after:2
	request table for ISP 0:
	req[0]: guID=2, stageID=SensorIspCapture
	req[0]: inW=1920, inH=1080, inBpp = 12, fps=60
	req[0]: outW=130, outH=74, outBpp=16
	req[0]: out1W=0, out1H=0, out1Bpp=0
	req[0]: out2W=0, out2H=0, out2Bpp=0
	req[0]: clock=163350000, pixelRate=148500000, timeout=416
	req[0]: isoBw=326700, timeout=416
	req[0]: non_isoBw=0, timeout=416
	req[1]: guID=2, stageID=SensorIspCapture
	req[1]: inW=1920, inH=1080, inBpp = 12, fps=60
	req[1]: outW=1920, outH=1080, outBpp=12
	req[1]: out1W=0, out1H=0, out1Bpp=0
	req[1]: out2W=0, out2H=0, out2Bpp=0
	req[1]: clock=163350000, pixelRate=148500000, timeout=0
	req[1]: isoBw=245025, timeout=0
	req[1]: non_isoBw=0, timeout=0
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
PowerServiceHw:updateRequests: table size: before: 1, after:1
	request table for VIC 0:
	req[0]: guID=0, stageID=Blit
	req[0]: inW=1920, inH=1080, inBpp = 12, fps=60
	req[0]: outW=640, outH=360, outBpp=13
	req[0]: out1W=0, out1H=0, out1Bpp=0
	req[0]: out2W=0, out2H=0, out2Bpp=0
	req[0]: clock=5184000, pixelRate=0, timeout=0
	req[0]: isoBw=0, timeout=0
	req[0]: non_isoBw=209088, timeout=0
PowerServiceHwVic:setClock: PowerServiceHw[3]: requested_clock_Hz=0
PowerServiceCore:setCameraBw: totalNonIsoBw=0
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
PowerServiceHw:updateRequests: table size: before: 2, after:2
	request table for VI 0:
	req[0]: guID=2, stageID=SensorCapture
	req[0]: inW=1920, inH=1080, inBpp = 12, fps=60
	req[0]: outW=1920, outH=1080, outBpp=12
	req[0]: out1W=0, out1H=0, out1Bpp=0
	req[0]: out2W=0, out2H=0, out2Bpp=0
	req[0]: clock=163350000, pixelRate=148500000, timeout=0
	req[0]: isoBw=245025, timeout=0
	req[0]: non_isoBw=0, timeout=0
	req[1]: guID=2, stageID=SensorIspCapture
	req[1]: inW=1920, inH=1080, inBpp = 12, fps=60
	req[1]: outW=1920, outH=1080, outBpp=16
	req[1]: out1W=0, out1H=0, out1Bpp=0
	req[1]: out2W=0, out2H=0, out2Bpp=0
	req[1]: clock=163350000, pixelRate=148500000, timeout=418
	req[1]: isoBw=0, timeout=418
	req[1]: non_isoBw=0, timeout=418
PowerServiceHw:updateRequests: table size: before: 2, after:2
	request table for CSI 0:
	req[0]: guID=2, stageID=SensorCapture
	req[0]: inW=1920, inH=1080, inBpp = 12, fps=60
	req[0]: outW=1920, outH=1080, outBpp=12
	req[0]: out1W=0, out1H=0, out1Bpp=0
	req[0]: out2W=0, out2H=0, out2Bpp=0
	req[0]: clock=0, pixelRate=148500000, timeout=0
	req[0]: isoBw=0, timeout=0
	req[0]: non_isoBw=0, timeout=0
	req[1]: guID=2, stageID=SensorIspCapture
	req[1]: inW=1920, inH=1080, inBpp = 12, fps=60
	req[1]: outW=1920, outH=1080, outBpp=16
	req[1]: out1W=0, out1H=0, out1Bpp=0
	req[1]: out2W=0, out2H=0, out2Bpp=0
	req[1]: clock=0, pixelRate=148500000, timeout=418
	req[1]: isoBw=0, timeout=418
	req[1]: non_isoBw=0, timeout=418
PowerServiceHwVi:setIso: m_bwVal_Iso=0
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings
Issue bubble captures 
NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
apply:-----------------------
NvPclSettingsApply: Reading PCL settings

Try below command before launch the camera.

sudo su
cd /sys/kernel/debug/bpmp/debug/clk
echo 1 > vi/mrq_rate_locked
cat vi/max_rate > vi/rate
echo 1 > isp/mrq_rate_locked
cat isp/max_rate > isp/rate
echo 1 > emc/mrq_rate_locked
cat emc/max_rate > emc/rate