We are porting our dToF sensor to TI AM62ax SoC platform. We had porting this dToF sensor to rockchip rk3568 last year, It works well. Recently we are porting it to Am62ax. The Linux kernel version is 6.1.46.
We already modified dts and added ads6311.c as a camera sensor driver, we almost are done, except some errors as below:
1. There is some errors in the log, it looks some DMA error are happening, but we don't know why so?
[ 138.058123] j721e-csi2rx 30102000.ticsi2rx: DMA transfer timed out for drain buffer
[ 138.065813] j721e-csi2rx 30102000.ticsi2rx: Failed to drain DMA. Next frame might be bogus
[ 138.178139] j721e-csi2rx 30102000.ticsi2rx: DMA transfer timed out for drain buffer
[ 138.185813] j721e-csi2rx 30102000.ticsi2rx: Failed to drain DMA. Next frame might be bogus
[ 138.298207] j721e-csi2rx 30102000.ticsi2rx: DMA transfer timed out for drain buffer
[ 138.305888] j721e-csi2rx 30102000.ticsi2rx: Failed to drain DMA. Next frame might be bogus
[ 138.394094] j721e-csi2rx 30102000.ticsi2rx: DMA transfer timed out for drain buffer
[ 138.401778] j721e-csi2rx 30102000.ticsi2rx: ti_csi2rx_cleanup_buffers: Failed: -110 to drain DMA. Next frame might be bogus
[ 138.466288] j721e-csi2rx 30102000.ticsi2rx: DMA transfer timed out for drain buffer
[ 138.473983] j721e-csi2rx 30102000.ticsi2rx: ti_csi2rx_cleanup_buffers: Failed: -110 to drain DMA. Next frame might be bogus
2. Some captured raw data files are incorrect according the MD5sum value. BTW, I enabled TEST PATTERN output for our dToF sensor, the output raw data is fixed, with a fixed MD5 value, as I tested before on Rk3568. As below, the highlighted files has incorrect MD5 value, while other files are correct.
root@am62axx-evm:~# md5sum /tmp/video*
6471076892740e3a2aab7206a01869c4 /tmp/video0_frame000_2688x192_1032192.depth_raw
6471076892740e3a2aab7206a01869c4 /tmp/video0_frame001_2688x192_1032192.depth_raw
6471076892740e3a2aab7206a01869c4 /tmp/video0_frame002_2688x192_1032192.depth_raw
6471076892740e3a2aab7206a01869c4 /tmp/video0_frame003_2688x192_1032192.depth_raw
6471076892740e3a2aab7206a01869c4 /tmp/video0_frame004_2688x192_1032192.depth_raw
6471076892740e3a2aab7206a01869c4 /tmp/video0_frame005_2688x192_1032192.depth_raw
6471076892740e3a2aab7206a01869c4 /tmp/video0_frame006_2688x192_1032192.depth_raw
6471076892740e3a2aab7206a01869c4 /tmp/video0_frame007_2688x192_1032192.depth_raw
6471076892740e3a2aab7206a01869c4 /tmp/video0_frame008_2688x192_1032192.depth_raw
6471076892740e3a2aab7206a01869c4 /tmp/video0_frame009_2688x192_1032192.depth_raw
6471076892740e3a2aab7206a01869c4 /tmp/video1_frame000_2688x192_1032192.depth_raw
47532ad8274f164da0c6e804f1e65223 /tmp/video1_frame001_2688x192_1032192.depth_raw
6471076892740e3a2aab7206a01869c4 /tmp/video1_frame002_2688x192_1032192.depth_raw
47532ad8274f164da0c6e804f1e65223 /tmp/video1_frame003_2688x192_1032192.depth_raw
6471076892740e3a2aab7206a01869c4 /tmp/video1_frame004_2688x192_1032192.depth_raw
47532ad8274f164da0c6e804f1e65223 /tmp/video1_frame005_2688x192_1032192.depth_raw
6471076892740e3a2aab7206a01869c4 /tmp/video1_frame006_2688x192_1032192.depth_raw
47532ad8274f164da0c6e804f1e65223 /tmp/video1_frame007_2688x192_1032192.depth_raw
6471076892740e3a2aab7206a01869c4 /tmp/video1_frame008_2688x192_1032192.depth_raw
47532ad8274f164da0c6e804f1e65223 /tmp/video1_frame009_2688x192_1032192.depth_raw
I will post the complete log too. Would you please help to check the error log and find the root reason? Thanks