Dual Custom Sensor preview error in TX2

Hello,

I’m develop Dual custom sensor driver in TX2.

When running image preview of the second sensor using gstreamer to view the images of the two sensors, the following error occurred.

Each single sensor driver loading is good working.
But, Sensor-id=1 is working fail at Dual sensor drivers loading

this is serial log message.

[  203.275438] s5k5e8 2-0018: s5k5e8_start_streaming: start streaming
[  209.493746] host1x 13e10000.host1x: CaptureSchedule: syncpoint id 31 (15600000.isp_nvargus-daemon_4) stuck waiting 2338, timeout=-1
[  213.333810] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 36 (15700000.vi_2) clientid 2357, HW thresh 1160, done 1161
[  213.345312] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 35 (15700000.vi_1) clientid 2357, HW thresh 8144, done 8145
[  213.345337] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 34 (15700000.vi_0) clientid 2357, HW thresh 1161, done 1161
[  213.358122] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 25 (15600000.isp_nvargus-daemon_0) clientid 2348, HW thresh 3, done 5
[  213.358126] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 28 (15600000.isp_nvargus-daemon_1) clientid 2348, HW thresh 3438, done 3439
[  213.358130] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 29 (15600000.isp_nvargus-daemon_2) clientid 2348, HW thresh 0, done 1
[  213.358134] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 30 (15600000.isp_nvargus-daemon_3) clientid 2348, HW thresh 0, done 1
[  213.358139] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 32 (15600000.isp_nvargus-daemon_5) clientid 2348, HW thresh 1160, done 1161
[  213.358143] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 31 (15600000.isp_nvargus-daemon_4) clientid 2348, HW thresh 2335, done 2335
[  220.348151] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 36 (15700000.vi_2) clientid 2357, HW thresh 1162, done 1163
[  220.359496] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 35 (15700000.vi_1) clientid 2357, HW thresh 8147, done 8147
[  220.370821] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 34 (15700000.vi_0) clientid 2357, HW thresh 1163, done 1163
[  223.573869] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 25 (15600000.isp_nvargus-daemon_0) clientid 2348, HW thresh 7, done 9
[  223.586068] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 28 (15600000.isp_nvargus-daemon_1) clientid 2348, HW thresh 3440, done 3441
[  223.598807] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 29 (15600000.isp_nvargus-daemon_2) clientid 2348, HW thresh 2, done 3
[  223.611030] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 30 (15600000.isp_nvargus-daemon_3) clientid 2348, HW thresh 2, done 3
[  223.623256] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 32 (15600000.isp_nvargus-daemon_5) clientid 2348, HW thresh 1162, done 1163
[  223.635961] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 31 (15600000.isp_nvargus-daemon_4) clientid 2348, HW thresh 2351, done 2351

this is tracing log message.

 kworker/4:2-3123  [004] ....   244.652985: rtcpu_vinotify_event: tstamp:7926257255 tag:CHANSEL_PXL_EOF channel:0x00 frame:1695 vi_tstamp:7926256586 data:0x07a70002
     kworker/4:2-3123  [004] ....   244.652985: rtcpu_vinotify_event: tstamp:7926257377 tag:ATOMP_FE channel:0x00 frame:1695 vi_tstamp:7926256612 data:0x00000000
     kworker/4:2-3123  [004] ....   244.652986: rtcpu_vinotify_event: tstamp:7926269720 tag:CHANSEL_PXL_SOF channel:0x00 frame:1696 vi_tstamp:7926269226 data:0x00000001
     kworker/4:2-3123  [004] ....   244.652986: rtcpu_vinotify_event: tstamp:7926270094 tag:ATOMP_FS channel:0x00 frame:1696 vi_tstamp:7926269232 data:0x00000000
     kworker/4:2-3123  [004] ....   244.652987: rtcpu_vinotify_event: tstamp:7926270209 tag:CHANSEL_LOAD_FRAMED channel:0x08 frame:1696 vi_tstamp:7926269853 data:0x08000000
     kworker/4:2-3123  [004] ....   244.708973: rtcpu_vinotify_event: tstamp:7926909669 tag:CHANSEL_PXL_SOF channel:0x01 frame:767 vi_tstamp:7926908815 data:0x00000001
     kworker/4:2-3123  [004] ....   244.708977: rtcpu_vinotify_event: tstamp:7926909847 tag:ATOMP_FS channel:0x01 frame:767 vi_tstamp:7926908822 data:0x00000000
     kworker/4:2-3123  [004] ....   244.708977: rtcpu_vinotify_event: tstamp:7926909964 tag:CSIMUX_FRAME channel:0xac frame:767 vi_tstamp:7926909277 data:0x00000402
     kworker/4:2-3123  [004] ....   244.708978: rtcpu_vinotify_event: tstamp:7926910376 tag:CHANSEL_FAULT channel:0x01 frame:767 vi_tstamp:7926909277 data:0x00000200
     kworker/4:2-3123  [004] ....   244.708979: rtcpu_vinotify_event: tstamp:7926910903 tag:CHANSEL_LOAD_FRAMED channel:0x04 frame:767 vi_tstamp:7926910116 data:0x18000000
     kworker/4:2-3123  [004] ....   244.708979: rtcpu_vinotify_event: tstamp:7926911013 tag:CHANSEL_FAULT_FE channel:0x04 frame:767 vi_tstamp:7926910389 data:0x00000002
     kworker/4:2-3123  [004] ....   244.708980: rtcpu_vinotify_event: tstamp:7926911157 tag:ATOMP_FE channel:0x01 frame:767 vi_tstamp:7926910392 data:0x00000000
     kworker/4:2-3123  [004] ....   244.708983: rtos_queue_send_from_isr_failed: tstamp:7926918701 queue:0x0b4a7258
     kworker/4:2-3123  [004] ....   244.708984: rtos_queue_send_from_isr_failed: tstamp:7926918811 queue:0x0b4aad68
     kworker/4:2-3123  [004] ....   244.708985: rtos_queue_send_from_isr_failed: tstamp:7926918919 queue:0x0b4ac998
     kworker/4:2-3123  [004] ....   244.708986: rtos_queue_send_from_isr_failed: tstamp:7926919026 queue:0x0b4ae518
     kworker/4:2-3123  [004] ....   244.708986: rtos_queue_send_from_isr_failed: tstamp:7926919130 queue:0x0b4af2d8
     kworker/4:2-3123  [004] ....   244.708987: rtos_queue_send_from_isr_failed: tstamp:7926919235 queue:0x0b4b0098
     kworker/4:2-3123  [004] ....   244.708988: rtos_queue_send_from_isr_failed: tstamp:7926919341 queue:0x0b4b0e58
     kworker/4:2-3123  [004] ....   244.708989: rtos_queue_send_from_isr_failed: tstamp:7926919446 queue:0x0b4b1c18
     kworker/4:2-3123  [004] ....   244.708990: rtos_queue_send_failed: tstamp:7926920004 queue:0x0b4a7258
     kworker/4:2-3123  [004] ....   244.708991: rtcpu_vinotify_event: tstamp:7927298880 tag:CHANSEL_PXL_EOF channel:0x00 frame:1696 vi_tstamp:7927298188 data:0x07a70002
     kworker/4:2-3123  [004] ....   244.708992: rtcpu_vinotify_event: tstamp:7927299003 tag:ATOMP_FE channel:0x00 frame:1696 vi_tstamp:7927298213 data:0x00000000
     kworker/4:2-3123  [004] ....   244.708992: rtcpu_vinotify_event: tstamp:7927311335 tag:CHANSEL_PXL_SOF channel:0x00 frame:1697 vi_tstamp:7927310827 data:0x00000001
     kworker/4:2-3123  [004] ....   244.708993: rtcpu_vinotify_event: tstamp:7927311708 tag:ATOMP_FS channel:0x00 frame:1697 vi_tstamp:7927310834 data:0x00000000
     kworker/4:2-3123  [004] ....   244.708994: rtcpu_vinotify_event: tstamp:7927311830 tag:CHANSEL_LOAD_FRAMED channel:0x08 frame:1697 vi_tstamp:7927311467 data:0x08000000
     kworker/4:2-3123  [004] ....   244.764989: rtcpu_vinotify_event: tstamp:7928340461 tag:CHANSEL_PXL_EOF channel:0x00 frame:1697 vi_tstamp:7928339788 data:0x07a70002
     kworker/4:2-3123  [004] ....   244.764994: rtcpu_vinotify_event: tstamp:7928340583 tag:ATOMP_FE channel:0x00 frame:1697 vi_tstamp:7928339815 data:0x00000000
     kworker/4:2-3123  [004] ....   244.764995: rtcpu_vinotify_event: tstamp:7928352920 tag:CHANSEL_PXL_SOF channel:0x00 frame:1698 vi_tstamp:7928352428 data:0x00000001
     kworker/4:2-3123  [004] ....   244.764996: rtcpu_vinotify_event: tstamp:7928353082 tag:ATOMP_FS channel:0x00 frame:1698 vi_tstamp:7928352436 data:0x00000000
     kworker/4:2-3123  [004] ....   244.764997: rtcpu_vinotify_event: tstamp:7929382054 tag:CHANSEL_PXL_EOF channel:0x00 frame:1698 vi_tstamp:7929381390 data:0x07a70002
     kworker/4:2-3123  [004] ....   244.764998: rtcpu_vinotify_event: tstamp:7929382177 tag:ATOMP_FE channel:0x00 frame:1698 vi_tstamp:7929381416 data:0x00000000
     kworker/4:2-3123  [004] ....   244.821020: rtos_queue_peek_from_isr_failed: tstamp:7931222065 queue:0x0b4b4500
     kworker/4:2-3123  [004] ....   244.988965: rtos_queue_peek_from_isr_failed: tstamp:7936222073 queue:0x0b4b4500
     kworker/4:2-3123  [004] ....   245.156963: rtos_queue_peek_from_isr_failed: tstamp:7941222077 queue:0x0b4b4500
     kworker/4:2-3123  [004] ....   245.324983: rtos_queue_peek_from_isr_failed: tstamp:7946222082 queue:0x0b4b4500
     kworker/4:2-3123  [004] ....   245.496979: rtos_queue_peek_from_isr_failed: tstamp:7951222092 queue:0x0b4b4500
     kworker/4:2-3123  [004] ....   245.608971: rtos_queue_peek_from_isr_failed: tstamp:7956222098 queue:0x0b4b4500
     kworker/4:2-3123  [004] ....   245.776979: rtos_queue_peek_from_isr_failed: tstamp:7961222105 queue:0x0b4b4500

Please, give me a solution.

There is PIXEL_SHORT_LINE of CHANSEL_FAULT it could be the output size less than expected.
You can try to decrease the width reported by the sensor driver to try.

 kworker/4:2-3123  [004] ....   244.708978: rtcpu_vinotify_event: tstamp:7926910376 tag:CHANSEL_FAULT channel:0x01 frame:767 vi_tstamp:7926909277 data:0x00000200