Other Parts Discussed in Thread: AM62A7
1.dmabuf到内存,用户态大概在36~40ms之间;
[1970-01-01 00:01:54 505.320][v4l2halapi_cap][callback_process][189]:/dev/video1 copy size 3932160 from dmabuf to buf cost: 37 ms 732 us.
[1970-01-01 00:01:54 699.738][v4l2halapi_cap][callback_process][189]:/dev/video0 copy size 3932160 from dmabuf to buf cost: 37 ms 847 us.
[1970-01-01 00:01:54 740.942][v4l2halapi_cap][callback_process][189]:/dev/video1 copy size 3932160 from dmabuf to buf cost: 37 ms 954 us.
[1970-01-01 00:01:54 932.309][v4l2halapi_cap][callback_process][189]:/dev/video0 copy size 3932160 from dmabuf to buf cost: 36 ms 713 us.
2.dmabuf到内存,内核态36~40ms之间;
[ 108.097452] j721e-csi2rx 30102000.ticsi2rx: memcpy len 3932160 from addr 0x11e01000 cost time 39699 us, sequence: 12, idx: 1.
[ 108.147086] j721e-csi2rx 30102000.ticsi2rx: memcpy len 3932160 from addr 0xb601000 cost time 37459 us, sequence: 12, idx: 0.
[ 108.333503] j721e-csi2rx 30102000.ticsi2rx: memcpy len 3932160 from addr 0x121c2000 cost time 38833 us, sequence: 13, idx: 1.
[ 108.382931] j721e-csi2rx 30102000.ticsi2rx: memcpy len 3932160 from addr 0xb9c2000 cost time 37214 us, sequence: 13, idx: 0.
[ 108.570038] j721e-csi2rx 30102000.ticsi2rx: memcpy len 3932160 from addr 0x12583000 cost time 38376 us, sequence: 14, idx: 1.
[ 108.619260] j721e-csi2rx 30102000.ticsi2rx: memcpy len 3932160 from addr 0xef01000 cost time 37029 us, sequence: 14, idx: 0.
[ 108.808304] j721e-csi2rx 30102000.ticsi2rx: memcpy len 3932160 from addr 0x12944000 cost time 38521 us, sequence: 15, idx: 1.
[ 108.857273] j721e-csi2rx 30102000.ticsi2rx: memcpy len 3932160 from addr 0xf2c2000 cost time 36848 us, sequence: 15, idx: 0.
3.内存到内存,内核态大概在13~15ms;
[ 103.366459] <DRV_ADS6311> [1970-01-01 00:01:50 000.705.930] <I> 4152 copy addr1 00000000bab3f124 to addr2 00000000ae7456e2 cost time 5669 us, len: 3932160.
[ 103.402573] <DRV_ADS6311> [1970-01-01 00:01:50 036.823.105] <I> 4152 copy addr1 00000000ae7456e2 to addr2 00000000bab3f124 cost time 4392 us, len: 3932160.
[ 103.434550] <DRV_ADS6311> [1970-01-01 00:01:50 068.801.460] <I> 4152 copy addr1 00000000bab3f124 to addr2 00000000ae7456e2 cost time 3050 us, len: 3932160.
[ 103.465226] <DRV_ADS6311> [1970-01-01 00:01:50 099.477.670] <I> 4152 copy addr1 00000000ae7456e2 to addr2 00000000bab3f124 cost time 2699 us, len: 3932160.
4.内存到内存,用户态大概在2ms出头:
[1970-01-01 00:01:55 393.750][v4l2halapi_cap][callback_process][200]:/dev/video0 copy size 3932160 from buf to buf cost: 2 ms 301 us.
[1970-01-01 00:01:55 434.785][v4l2halapi_cap][callback_process][200]:/dev/video1 copy size 3932160 from buf to buf cost: 2 ms 467 us.
[1970-01-01 00:01:55 622.394][v4l2halapi_cap][callback_process][200]:/dev/video0 copy size 3932160 from buf to buf cost: 2 ms 495 us.
[1970-01-01 00:01:55 663.103][v4l2halapi_cap][callback_process][200]:/dev/video1 copy size 3932160 from buf to buf cost: 2 ms 134 us.