Getting raw image through libargus failed

Hi,
I have succeeded in getting raw image through v4l2-ctl, so I tried to get raw image through libargus, but it returned -3(device unavailable) when acquire frame and kennel log showed below:

[ +46.775107] [RCE] WARNING: t194/isp5.c:901 [config_channel] "All error notifications not enabled: correctable=0x00 uncorrectable=0x00"
[  +0.335999] [RCE] vi5_hwinit: firmware CL2018101701 protocol version 2.2
[  +1.664031] fence timeout on [ffffffc388d69600] after 1500ms
[  +0.000009] tegra194-vi5 15c10000.vi: no reply from camera processor
[  +0.000016] tegra194-vi5 15c10000.vi: vi capture get status failed:(-110)
[  +0.000234] name=[nvhost_sync:39], current value=0 waiting value=1
[  +0.000043] ---- mlocks ----

[  +0.000046] ---- syncpts ----
[  +0.000035] id 20 (gv11b_511) min 234 max 234 refs 1 (previous client : )
[  +0.000005] id 21 (gv11b_510) min 9 max 9 refs 1 (previous client : )
[  +0.000006] id 22 (gv11b_509) min 17 max 17 refs 1 (previous client : gv11b_509)
[  +0.000028] id 42 (gv11b_503) min 3 max 3 refs 1 (previous client : )
[  +0.000004] id 43 (gv11b_502) min 4 max 4 refs 1 (previous client : )
[  +0.000005] id 44 (gv11b_501) min 3 max 3 refs 1 (previous client : )
[  +0.000005] id 45 (gv11b_500) min 3 max 3 refs 1 (previous client : )
[  +0.000005] id 46 (gv11b_499) min 3 max 3 refs 1 (previous client : )
[  +0.000009] id 50 (gv11b_498) min 3 max 3 refs 1 (previous client : )
[  +0.000005] id 51 (gv11b_497) min 3 max 3 refs 1 (previous client : )
[  +0.000005] id 52 (gv11b_496) min 3 max 3 refs 1 (previous client : )
[  +0.000006] id 53 (gv11b_495) min 3 max 3 refs 1 (previous client : )
[  +0.000006] id 54 (gv11b_494) min 3 max 3 refs 1 (previous client : )

[  +0.000814] ---- channels ----
[  +0.000050] 
              channel 2 - 15820000.se

[  +0.000003] NvHost basic channel registers:
[  +0.000005] CMDFIFO_STAT_0:  00002040
[  +0.000006] CMDFIFO_RDATA_0: 0c008e52
[  +0.000007] CMDP_OFFSET_0:   00000000
[  +0.000005] CMDP_CLASS_0:    00000000
[  +0.000004] CHANNELSTAT_0:   00000000
[  +0.000003] The CDMA sync queue is empty.

[  +0.000008] 
              channel 3 - 15830000.se

[  +0.000002] NvHost basic channel registers:
[  +0.000005] CMDFIFO_STAT_0:  00002040
[  +0.000004] CMDFIFO_RDATA_0: c6b1869c
[  +0.000006] CMDP_OFFSET_0:   00000000
[  +0.000004] CMDP_CLASS_0:    00000000
[  +0.000004] CHANNELSTAT_0:   00000000
[  +0.000003] The CDMA sync queue is empty.

[  +0.000007] 
              channel 4 - 15840000.se

[  +0.000003] NvHost basic channel registers:
[  +0.000004] CMDFIFO_STAT_0:  00002040
[  +0.000004] CMDFIFO_RDATA_0: 20a00d88
[  +0.000005] CMDP_OFFSET_0:   00000000
[  +0.000004] CMDP_CLASS_0:    00000000
[  +0.000003] CHANNELSTAT_0:   00000000
[  +0.000003] The CDMA sync queue is empty.

[  +0.000011] 
              ---- host general irq ----

[  +0.000004] sync_intc0mask = 0x00000001
[  +0.000004] sync_intmask = 0x50000003
[  +0.000003] 
              ---- host syncpt irq mask ----

[  +0.000027] 
              ---- host syncpt irq status ----

[  +0.000006] syncpt_thresh_cpu0_int_status(0) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(1) = 0x00000000
[  +0.000005] syncpt_thresh_cpu0_int_status(2) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(3) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(4) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(5) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(6) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(7) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(8) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(9) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(10) = 0x00000000
[  +0.000005] syncpt_thresh_cpu0_int_status(11) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(12) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(13) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(14) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(15) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(16) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(17) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(18) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(19) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(20) = 0x00000000
[  +0.000005] syncpt_thresh_cpu0_int_status(21) = 0x00000000
[  +0.094440] tegra194-vi5 15c10000.vi: no reply from camera processor
[  +0.000157] tegra194-vi5 15c10000.vi: vi capture get status failed:(-110)
[  +0.000849] fence timeout on [ffffffc374577240] after 1500ms
[  +0.000009] name=[nvhost_sync:47], current value=0 waiting value=1
[  +0.000008] ---- mlocks ----

[  +0.000045] ---- syncpts ----
[  +0.000047] id 20 (gv11b_511) min 234 max 234 refs 1 (previous client : )
[  +0.000005] id 21 (gv11b_510) min 9 max 9 refs 1 (previous client : )
[  +0.000006] id 22 (gv11b_509) min 17 max 17 refs 1 (previous client : gv11b_509)
[  +0.000028] id 42 (gv11b_503) min 3 max 3 refs 1 (previous client : )
[  +0.000005] id 43 (gv11b_502) min 4 max 4 refs 1 (previous client : )
[  +0.000008] id 44 (gv11b_501) min 3 max 3 refs 1 (previous client : )
[  +0.000005] id 45 (gv11b_500) min 3 max 3 refs 1 (previous client : )
[  +0.000005] id 46 (gv11b_499) min 3 max 3 refs 1 (previous client : )
[  +0.000009] id 50 (gv11b_498) min 3 max 3 refs 1 (previous client : )
[  +0.000005] id 51 (gv11b_497) min 3 max 3 refs 1 (previous client : )
[  +0.000005] id 52 (gv11b_496) min 3 max 3 refs 1 (previous client : )
[  +0.000006] id 53 (gv11b_495) min 3 max 3 refs 1 (previous client : )
[  +0.000005] id 54 (gv11b_494) min 3 max 3 refs 1 (previous client : )

[  +0.000818] ---- channels ----
[  +0.000153] 
              channel 2 - 15820000.se

[  +0.000004] NvHost basic channel registers:
[  +0.000008] CMDFIFO_STAT_0:  00002040
[  +0.000005] CMDFIFO_RDATA_0: 0c008e52
[  +0.000009] CMDP_OFFSET_0:   00000000
[  +0.000004] CMDP_CLASS_0:    00000000
[  +0.000005] CHANNELSTAT_0:   00000000
[  +0.000003] The CDMA sync queue is empty.

[  +0.000008] 
              channel 3 - 15830000.se

[  +0.000002] NvHost basic channel registers:
[  +0.000005] CMDFIFO_STAT_0:  00002040
[  +0.000005] CMDFIFO_RDATA_0: c6b1869c
[  +0.000007] CMDP_OFFSET_0:   00000000
[  +0.000004] CMDP_CLASS_0:    00000000
[  +0.000004] CHANNELSTAT_0:   00000000
[  +0.000003] The CDMA sync queue is empty.

[  +0.000040] 
              channel 4 - 15840000.se

[  +0.000003] NvHost basic channel registers:
[  +0.000004] CMDFIFO_STAT_0:  00002040
[  +0.000005] CMDFIFO_RDATA_0: 20a00d88
[  +0.000006] CMDP_OFFSET_0:   00000000
[  +0.000004] CMDP_CLASS_0:    00000000
[  +0.000004] CHANNELSTAT_0:   00000000
[  +0.000003] The CDMA sync queue is empty.

[  +0.000010] 
              ---- host general irq ----

[  +0.000004] sync_intc0mask = 0x00000001
[  +0.000004] sync_intmask = 0x50000003
[  +0.000003] 
              ---- host syncpt irq mask ----

[  +0.000002] 
              ---- host syncpt irq status ----

[  +0.000006] syncpt_thresh_cpu0_int_status(0) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(1) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(2) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(3) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(4) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(5) = 0x00000000
[  +0.000005] syncpt_thresh_cpu0_int_status(6) = 0x00000000
[  +0.000003] syncpt_thresh_cpu0_int_status(7) = 0x00000000
[  +0.000005] syncpt_thresh_cpu0_int_status(8) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(9) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(10) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(11) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(12) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(13) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(14) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(15) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(16) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(17) = 0x00000000
[  +0.000005] syncpt_thresh_cpu0_int_status(18) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(19) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(20) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(21) = 0x00000000
[  +1.437528] tegra194-vi5 15c10000.vi: no reply from camera processor
[  +0.000008] fence timeout on [ffffffc374577b40] after 1500ms
[  +0.000013] name=[nvhost_sync:39], current value=0 waiting value=10
[  +0.000006] ---- mlocks ----
[  +0.000013] fence timeout on [ffffffc37457a0c0] after 1500ms
[  +0.000009] name=[nvhost_sync:39], current value=0 waiting value=15
[  +0.000007] ---- mlocks ----

[  +0.000042] ---- syncpts ----

[  +0.000013] ---- syncpts ----
[  +0.000026] id 20 (gv11b_511) min 234 max 234 refs 1 (previous client : )
[  +0.000004] id 21 (gv11b_510) min 9 max 9 refs 1 (previous client : )
[  +0.000006] id 22 (gv11b_509) min 17 max 17 refs 1 (previous client : gv11b_509)
[  +0.000011] tegra194-vi5 15c10000.vi: vi capture get status failed:(-110)
[  +0.000024] id 42 (gv11b_503) min 3 max 3 refs 1 (previous client : )
[  +0.000005] id 43 (gv11b_502) min 4 max 4 refs 1 (previous client : )
[  +0.000004] id 44 (gv11b_501) min 3 max 3 refs 1 (previous client : )
[  +0.000003] id 45 (gv11b_500) min 3 max 3 refs 1 (previous client : )
[  +0.000005] id 46 (gv11b_499) min 3 max 3 refs 1 (previous client : )
[  +0.000009] id 50 (gv11b_498) min 3 max 3 refs 1 (previous client : )
[  +0.000004] id 51 (gv11b_497) min 3 max 3 refs 1 (previous client : )
[  +0.000006] id 52 (gv11b_496) min 3 max 3 refs 1 (previous client : )
[  +0.000004] id 53 (gv11b_495) min 3 max 3 refs 1 (previous client : )
[  +0.000005] id 54 (gv11b_494) min 3 max 3 refs 1 (previous client : )

[  +0.000830] ---- channels ----
[  +0.000036] 
              channel 2 - 15820000.se

[  +0.000003] id 20 (gv11b_511) min 234 max 234 refs 1 (previous client : )
[  +0.000007] NvHost basic channel registers:
[  +0.000003] id 21 (gv11b_510) min 9 max 9 refs 1 (previous client : )
[  +0.000003] CMDFIFO_STAT_0:  00002040
[  +0.000007] CMDFIFO_RDATA_0: 0c008e52
[  +0.000002] id 22 (gv11b_509) min 17 max 17 refs 1 (previous client : gv11b_509)
[  +0.000010] CMDP_OFFSET_0:   00000000
[  +0.000006] CMDP_CLASS_0:    00000000
[  +0.000005] CHANNELSTAT_0:   00000000
[  +0.000004] The CDMA sync queue is empty.

[  +0.000006] id 42 (gv11b_503) min 3 max 3 refs 1 (previous client : )
[  +0.000003] 
              channel 3 - 15830000.se

[  +0.000004] NvHost basic channel registers:
[  +0.000002] id 43 (gv11b_502) min 4 max 4 refs 1 (previous client : )
[  +0.000005] id 44 (gv11b_501) min 3 max 3 refs 1 (previous client : )
[  +0.000001] CMDFIFO_STAT_0:  00002040
[  +0.000004] CMDFIFO_RDATA_0: c6b1869c
[  +0.000006] id 45 (gv11b_500) min 3 max 3 refs 1 (previous client : )
[  +0.000006] id 46 (gv11b_499) min 3 max 3 refs 1 (previous client : )
[  +0.000002] CMDP_OFFSET_0:   00000000
[  +0.000004] CMDP_CLASS_0:    00000000
[  +0.000004] CHANNELSTAT_0:   00000000
[  +0.000003] id 50 (gv11b_498) min 3 max 3 refs 1 (previous client : )
[  +0.000005] The CDMA sync queue is empty.
[  +0.000004] id 51 (gv11b_497) min 3 max 3 refs 1 (previous client : )

[  +0.000007] 
              channel 4 - 15840000.se

[  +0.000003] id 52 (gv11b_496) min 3 max 3 refs 1 (previous client : )
[  +0.000004] id 53 (gv11b_495) min 3 max 3 refs 1 (previous client : )
[  +0.000003] NvHost basic channel registers:
[  +0.000004] CMDFIFO_STAT_0:  00002040
[  +0.000004] id 54 (gv11b_494) min 3 max 3 refs 1 (previous client : )
[  +0.000002] CMDFIFO_RDATA_0: 20a00d88
[  +0.000007] CMDP_OFFSET_0:   00000000
[  +0.000004] CMDP_CLASS_0:    00000000
[  +0.000004] CHANNELSTAT_0:   00000000
[  +0.000004] The CDMA sync queue is empty.

[  +0.000009] 
              ---- host general irq ----

[  +0.000005] sync_intc0mask = 0x00000001
[  +0.000004] sync_intmask = 0x50000003
[  +0.000003] 
              ---- host syncpt irq mask ----

[  +0.000002] 
              ---- host syncpt irq status ----

[  +0.000005] syncpt_thresh_cpu0_int_status(0) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(1) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(2) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(3) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(4) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(5) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(6) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(7) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(8) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(9) = 0x00000000
[  +0.000017] syncpt_thresh_cpu0_int_status(10) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(11) = 0x00000000
[  +0.000005] syncpt_thresh_cpu0_int_status(12) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(13) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(14) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(15) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(16) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(17) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(18) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(19) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(20) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(21) = 0x00000000

[  +0.000720] ---- channels ----
[  +0.000026] 
              channel 2 - 15820000.se

[  +0.000003] NvHost basic channel registers:
[  +0.000006] CMDFIFO_STAT_0:  00002040
[  +0.000005] CMDFIFO_RDATA_0: 0c008e52
[  +0.000008] CMDP_OFFSET_0:   00000000
[  +0.000005] CMDP_CLASS_0:    00000000
[  +0.000004] CHANNELSTAT_0:   00000000
[  +0.000004] The CDMA sync queue is empty.

[  +0.000009] 
              channel 3 - 15830000.se

[  +0.000003] NvHost basic channel registers:
[  +0.000004] CMDFIFO_STAT_0:  00002040
[  +0.000005] CMDFIFO_RDATA_0: c6b1869c
[  +0.000007] CMDP_OFFSET_0:   00000000
[  +0.000004] CMDP_CLASS_0:    00000000
[  +0.000004] CHANNELSTAT_0:   00000000
[  +0.000002] The CDMA sync queue is empty.

[  +0.000007] 
              channel 4 - 15840000.se

[  +0.000003] NvHost basic channel registers:
[  +0.000004] CMDFIFO_STAT_0:  00002040
[  +0.000004] CMDFIFO_RDATA_0: 20a00d88
[  +0.000006] CMDP_OFFSET_0:   00000000
[  +0.000004] CMDP_CLASS_0:    00000000
[  +0.000004] CHANNELSTAT_0:   00000000
[  +0.000002] The CDMA sync queue is empty.

[  +0.000009] 
              ---- host general irq ----

[  +0.000004] sync_intc0mask = 0x00000001
[  +0.000004] sync_intmask = 0x50000003
[  +0.000003] 
              ---- host syncpt irq mask ----

[  +0.000003] 
              ---- host syncpt irq status ----

[  +0.000006] syncpt_thresh_cpu0_int_status(0) = 0x00000000
[  +0.000006] syncpt_thresh_cpu0_int_status(1) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(2) = 0x00000000
[  +0.000005] syncpt_thresh_cpu0_int_status(3) = 0x00000000
[  +0.000005] syncpt_thresh_cpu0_int_status(4) = 0x00000000
[  +0.000005] syncpt_thresh_cpu0_int_status(5) = 0x00000000
[  +0.000005] syncpt_thresh_cpu0_int_status(6) = 0x00000000
[  +0.000005] syncpt_thresh_cpu0_int_status(7) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(8) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(9) = 0x00000000
[  +0.000005] syncpt_thresh_cpu0_int_status(10) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(11) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(12) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(13) = 0x00000000
[  +0.000005] syncpt_thresh_cpu0_int_status(14) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(15) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(16) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(17) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(18) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(19) = 0x00000000
[  +0.000005] syncpt_thresh_cpu0_int_status(20) = 0x00000000
[  +0.000004] syncpt_thresh_cpu0_int_status(21) = 0x00000000

Why did this happen? How can I locate the problem?

@buaa_hebiao

  1. Have a try modify the discontinuous_clk to opposite value to try.
  2. Check below link to debug it.
    https://elinux.org/Jetson_TX2/28.1_Camera_BringUp

Hi ShaneCCC,
Thanks very much, I have get raw image from libargus, it’s discontinuous_clk that matters.