The same camera works on R27.1, but doesn’t work on R28.2.1
With kernel Image from R27.1 and kernel dtb from R28.2.1, the camera works fine.
The errors:
[ 55.222164] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 56.226164] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 57.230141] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 58.234090] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 59.238154] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 60.242175] tegra-vi4 15700000.vi: ATOMP_FE syncpt timeout!
cil_settletime and csi_settletime are the same on the two versions.
Can you help me ? @ShaneCCC
@ShaneCCC
I have checked the link. And the problem is still there.
Any other guideline?
@ShaneCCC
Should I compare the CSI register values with the R27.1 version directly?
Enable the trace to get more vi_notify information.
@ShaneCCC
No useful message.
root@tegra-ubuntu:/home/nvidia/cameraF# cat /sys/kernel/debug/tracing/trace
# tracer: nop
#
# entries-in-buffer/entries-written: 45/45 #P:4
#
# _-----=> irqs-off
# / _----=> need-resched
# | / _---=> hardirq/softirq
# || / _--=> preempt-depth
# ||| / delay
# TASK-PID CPU# |||| TIMESTAMP FUNCTION
# | | | |||| | |
kworker/5:2-2980 [005] ...1 4162.509492: rtos_queue_peek_from_isr_failed: tstamp:130384213094 queue:0x0b4a3c58
kworker/5:2-2980 [005] ...1 4162.509496: rtcpu_start: tstamp:130384214513
kworker/5:2-2980 [005] ...1 4162.665213: rtos_queue_peek_from_isr_failed: tstamp:130389214019 queue:0x0b4a3c58
kworker/5:2-2980 [005] ...1 4162.821197: rtos_queue_peek_from_isr_failed: tstamp:130394214523 queue:0x0b4a3c58
kworker/5:2-2980 [005] ...1 4162.977226: rtos_queue_peek_from_isr_failed: tstamp:130399215027 queue:0x0b4a3c58
kworker/5:2-2980 [005] ...1 4163.133208: rtos_queue_peek_from_isr_failed: tstamp:130404215532 queue:0x0b4a3c58
kworker/5:2-2980 [005] ...1 4163.289207: rtos_queue_peek_from_isr_failed: tstamp:130409216052 queue:0x0b4a3c58
kworker/5:2-2980 [005] ...1 4163.445214: rtos_queue_peek_from_isr_failed: tstamp:130414216548 queue:0x0b4a3c58
kworker/5:2-2980 [005] ...1 4163.601218: rtos_queue_peek_from_isr_failed: tstamp:130419217056 queue:0x0b4a3c58
kworker/5:2-2980 [005] ...1 4163.757169: rtos_queue_peek_from_isr_failed: tstamp:130424217548 queue:0x0b4a3c58
kworker/5:2-2980 [005] ...1 4163.913235: rtos_queue_peek_from_isr_failed: tstamp:130429218108 queue:0x0b4a3c58
kworker/5:2-2980 [005] ...1 4164.069227: rtos_queue_peek_from_isr_failed: tstamp:130434218588 queue:0x0b4a3c58
kworker/5:2-2980 [005] ...1 4164.225233: rtos_queue_peek_from_isr_failed: tstamp:130439219082 queue:0x0b4a3c58
kworker/5:2-2980 [005] ...1 4164.433230: rtos_queue_peek_from_isr_failed: tstamp:130444219591 queue:0x0b4a3c58
kworker/5:2-2980 [005] ...1 4164.589207: rtos_queue_peek_from_isr_failed: tstamp:130449220105 queue:0x0b4a3c58
kworker/5:2-2980 [005] ...1 4164.745237: rtos_queue_peek_from_isr_failed: tstamp:130454220607 queue:0x0b4a3c58
kworker/5:2-2980 [005] ...1 4164.901226: rtos_queue_peek_from_isr_failed: tstamp:130459221117 queue:0x0b4a3c58
kworker/5:2-2980 [005] ...1 4165.057232: rtos_queue_peek_from_isr_failed: tstamp:130464221618 queue:0x0b4a3c58
kworker/5:2-2980 [005] ...1 4165.213244: rtos_queue_peek_from_isr_failed: tstamp:130469222134 queue:0x0b4a3c58
kworker/5:2-2980 [005] ...1 4165.369261: rtos_queue_peek_from_isr_failed: tstamp:130474222666 queue:0x0b4a3c58
kworker/5:2-2980 [005] ...1 4165.525261: rtos_queue_peek_from_isr_failed: tstamp:130479223151 queue:0x0b4a3c58
kworker/5:2-2980 [005] ...1 4165.681253: rtos_queue_peek_from_isr_failed: tstamp:130484223652 queue:0x0b4a3c58
kworker/5:2-2980 [005] ...1 4165.837312: rtos_queue_peek_from_isr_failed: tstamp:130489224156 queue:0x0b4a3c58
kworker/5:2-2980 [005] ...1 4165.993240: rtos_queue_peek_from_isr_failed: tstamp:130494224659 queue:0x0b4a3c58
kworker/5:2-2980 [005] ...1 4166.149247: rtos_queue_peek_from_isr_failed: tstamp:130499225165 queue:0x0b4a3c58
kworker/5:2-2980 [005] ...1 4166.305241: rtos_queue_peek_from_isr_failed: tstamp:130504225666 queue:0x0b4a3c58
kworker/5:2-2980 [005] ...1 4166.513272: rtos_queue_peek_from_isr_failed: tstamp:130509226187 queue:0x0b4a3c58
kworker/5:2-2980 [005] ...1 4166.669261: rtos_queue_peek_from_isr_failed: tstamp:130514226717 queue:0x0b4a3c58
The trace shows didn’t receive any package from the MIPI bus. You have to probe the signal to make sure the sensor have output data to the MIPI bus.
@ShaneCCC
The camera with same setting works fine on R27.1.
Could anything else cause this ?
Check the reference driver to know any driver modify to sync your sensor/DT to 28.2.1
zhaozoz
10
root@tegra-ubuntu:/home/nvidia# cat /sys/kernel/debug/tracing/trace
# tracer: nop
#
# entries-in-buffer/entries-written: 49/49 #P:4
#
# _-----=> irqs-off
# / _----=> need-resched
# | / _---=> hardirq/softirq
# || / _--=> preempt-depth
# ||| / delay
# TASK-PID CPU# |||| TIMESTAMP FUNCTION
# | | | |||| | |
kworker/5:1-153 [005] ...1 302.743849: rtos_queue_peek_from_isr_failed: tstamp:9763866527 queue:0x0b4a3c58
kworker/5:1-153 [005] ...1 302.743853: rtcpu_start: tstamp:9763867586
kworker/5:1-153 [005] ...1 302.799658: rtcpu_vinotify_handle_msg: tstamp:9766005652 tag:CSIMUX_STREAM channel:0xff frame:0 vi_tstamp:1176070638 data:0x00010000
kworker/5:1-153 [005] ...1 302.899758: rtos_queue_peek_from_isr_failed: tstamp:9768867374 queue:0x0b4a3c58
kworker/5:1-153 [005] ...1 303.055879: rtos_queue_peek_from_isr_failed: tstamp:9773867895 queue:0x0b4a3c58
kworker/5:1-153 [005] ...1 303.212018: rtos_queue_peek_from_isr_failed: tstamp:9778868465 queue:0x0b4a3c58
With test pattern of UB954, I can see these debug messages. @ShaneCCC
Does this sensor output embedded data? Please confirm it and add it to the DT.
zhaozoz
12
@ShaneCCC
There is no embedded data.
Could anything else cause this ?
Does your sensor connect to the CSI-E?
The trace have few information to tell what it could be.