TX2 CSI camera - timeout error

Hello,

We are porting camera driver to TX2 with our carrier. I’d like to mention that our
carriers work with CSI cameras in TX1. When I run nvgstcapture I get a green screen.
I’m attaching dmesg and nvcamera daemon logs. I’ve looked at the I2C transaction on the scope and
compared with TX1 and found that in TX2 I see a few I2C transaction going out then
it stops but the camera responds to I2C requests by i2cget. It looks to me something CSI related, any
help is appreciated.

Thanks,
Hakim

dmesg errors

[ 156.492253] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 21 (15600000.isp_nvcamera-daemon_0) clientid 1, HW thresh 0, done 2
[ 156.504315] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 24 (15600000.isp_nvcamera-daemon_3) clientid 1, HW thresh 0, done 1
[ 156.516401] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 28 (15600000.isp_nvcamera-daemon_5) clientid 1, HW thresh 0, done 1
[ 156.528503] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 25 (15600000.isp_nvcamera-daemon_4) clientid 1, HW thresh 13, done 13

[ 156.763501] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 39 (15700000.vi_2) clientid 11, HW thresh 8, done 9
[ 156.774101] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 38 (15700000.vi_1) clientid 11, HW thresh 0, done 1
[ 156.784706] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 37 (15700000.vi_0) clientid 11, HW thresh 1, done 1

nvcamera daemon

SCF: Error InvalidState: Force-unlocking a buffer w/o fences
(in src/components/CaptureContainerImpl.cpp, function returnBuffer(), line 344)
Waiting 100ms for late buffer unlock during abort.

SCF: Error InvalidState: Force-unlocking a buffer w/o fences
(in src/components/CaptureContainerImpl.cpp, function returnBuffer(), line 344)
SCF: Error Timeout: (propagating from src/common/Utils.cpp, function workerThread(), line 113)
SCF: Error Timeout: Worker thread CaptureScheduler frameStart failed (in src/common/Utils.cpp, function workerThread(), line 130)
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 0x7f3c0008c0 for CC 103

Hi
Could you try the v4l2-ctl and check the message if any similar message like below link.

https://devtalk.nvidia.com/default/topic/1007058/jetson-tx2/porting-tx1-camera-driver-to-kernel-4-4-15-pxl_sof-syncpt-timeout