AGX开发板 + jetpack4.6+ov5693

Debug OV5693 on jetpack4.6, AGX development board, and find that the mips signal of the sensor is not shown, the kernel will crash

100% reproduction process, comment to err in the ov5693_start_streaming function in the ov5693.c driver = ov5693_write_table(priv, mode_table[OV5693_MODE_START_STREAM]);

The serial port debug is as follows:
[61.775332] tegra194-vi5 15c10000.vi: no reply from camera processor
[61.775490] tegra194-vi5 15c10000.vi: uncorr_err: request timed out after 2500 ms
[61.776266] tegra194-vi5 15c10000.vi: err_rec: attempting to reset the capture channel
[61.780217] Unable to handle kernel NULL pointer dereference at virtual address 00000010
[61.780374] Mem abort info:
[61.780432] ESR = 0x96000005
[61.780490] Exception class = DABT (current EL), IL = 32 bits
[61.783459] SET = 0, FnV = 0
[61.786329] EA = 0, S1PTW = 0
[61.789754] Data abort info:
[61.792463] ISV = 0, ISS = 0x00000005
[61.796381] CM = 0, WnR = 0
[61.799534] user pgtable: 4k pages, 39-bit VAs, pgd = ffffffc3d0198000
[61.806106] [0000000000000010] *pgd=0000000000000000, *pud=0000000000000000
[61.813247] Internal error: Oops: 96000005 [#1] PREEMPT SMP
[61.818762] Modules linked in: ov5693 bnep fuse xt_conntrack ipt_MASQUERADE nf_nat_masquerade_ipv4 nf_conntrack_netlink nfnetlink xt_addrtype iptable_filter iptable_nat nf_conntrack_ipv4 nf_conntrack_ipv4 nf_conntrack_ipv4 nf_conntrack_p
[61.848616] CPU: 1 PID: 8914 Comm: vi-output, ov56 Not tainted 4.9.253-tegra #917
[61.856031] Hardware name: Jetson-AGX (DT)
[61.860233] task: ffffffc3e9aa3800 task.stack: ffffffc379038000
[61.866013] PC is at _raw_write_lock+0x30/0x58
[61.870213] LR is at destroy_buffer_table+0x40/0xd8
[61.875457] pc: [] lr: [] pstate: 20c00045
[61.882459] sp: ffffffc37903bc70
[61.885956] x29: ffffffc37903bc70 x28: 0000000000000000
[61.891203] x27: 0000000000000000 x26: 0000000000000000
[61.896467] x25: 0000000000000010 x24: 0000000000000098
[61.902493] x23: 0000000000000018 x22: ffffff8009087618
[61.907654] x21: 0000000000000000 x20: ffffffc38574cc00
[61.912730] x19: 0000000000000010 x18: 0000000000000000
[61.918504] x17: 0000000000000002 x16: 0000000000000003
[61.924191] x15: 0000000000172016 x14: 0000000000000000
[61.929879] x13: 000000000012ef86 x12: 0000000000000000
[61.935567] x11: 00000000000a71e7 x10: 0000000000000001
[61.941002] x9: ffffffc37903ba80 x8: 0000000000000000
[61.947029] x7: ffffffc3c040f0c0 x6: ffffffc3801073c1
[61.952543] x5: ffffff800852d904 x4: ffffffbf0e0041d0
[61.957879] x3: 0000000000000000 x2: ffffffc3801073c0
[61.963219] x1: 0000000000000000 x0: 0000000080000000
[61.968301]
[61.969964] Process vi-output, ov56 (pid: 8914, stack limit = 0xffffffc379038000)
[61.976955] Call trace:
[61.979497] [] _raw_write_lock+0x30/0x58
[61.984571] [] destroy_buffer_table+0x40/0xd8
[61.990172] [] vi_capture_shutdown+0xd4/0x130
[61.995771] [] vi_channel_close_ex+0x34/0x88
[62.001113] [] vi5_channel_error_recover+0x48/0x1c8
[62.007321] [] tegra_channel_error_recover+0x80/0xb8
[62.013445] [] tegra_channel_kthread_capture_dequeue+0xf8/0x1c0
[62.020360] [] kthread+0xec/0xf0
[62.024996] [] ret_from_fork+0x10/0x30
[62.030250] —[ end trace a408d2331cebe6a3 ]—
[62.037619] note: vi-output, ov56[8914] exited with preempt_count 1
[62.064440] tegra194-vi5 15c10000.vi: vi_capture_release: setup channel first
[62.069765] video4linux video0: vi capture release failed

Please tell me why

Apply the patch from below link to fix it.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.