How to enable MIPI CRC and ECC?

Hello,

I’m trying to enable MIPI CRC and then verify CRC-fault injection.

But, It doesn’t work with both xavier and orin.

Also, i checked NVCSI_STREAM_0_PH_CHK_CTRL_0 register.
Orin is really strange.

Please help me.

[XAVIER]

root@zerofly-desktop:/home/espresso# devmem2 0x15a10194 b 0x7
/dev/mem opened.
Memory mapped at address 0x7fb1fd4000.
Value at address 0x15A10194 (0x7fb1fd4194): 0x0
Written 0x7; readback 0x7


root@zerofly-desktop:/home/espresso# devmem2 0x15a10194 b
/dev/mem opened.
Memory mapped at address 0x7f8940b000.
Value at address 0x15A10194 (0x7f8940b194): 0x7
root@zerofly-desktop:/home/espresso# devmem2 0x15a10194 b 0x0
/dev/mem opened.
Memory mapped at address 0x7f95866000.
Value at address 0x15A10194 (0x7f95866194): 0x7
Written 0x0; readback 0x0
root@zerofly-desktop:/home/espresso# devmem2 0x15a10194 b
/dev/mem opened.
Memory mapped at address 0x7f9d4b6000.
Value at address 0x15A10194 (0x7f9d4b6194): 0x0

[ORIN]


root@ubuntu:/home/espresso# devmem2 0x15a10194 b
/dev/mem opened.
Memory mapped at address 0xffffb906c000.
Value at address 0x15A10194 (0xffffb906c194): 0xFF
root@ubuntu:/home/espresso#
root@ubuntu:/home/espresso# devmem2 0x15a10194 b
/dev/mem opened.
Memory mapped at address 0xffff98e19000.
Value at address 0x15A10194 (0xffff98e19194): 0xFF
root@ubuntu:/home/espresso# devmem2 0x15a10194 b 0x7
/dev/mem opened.
Memory mapped at address 0xffffb9c96000.
Value at address 0x15A10194 (0xffffb9c96194): 0xFF
Written 0x7; readback 0xFF
root@ubuntu:/home/espresso# devmem2 0x15a10194 b
/dev/mem opened.
Memory mapped at address 0xffff81d12000.
Value at address 0x15A10194 (0xffff81d12194): 0xFF

[TRACE LOG]
root@zerofly-desktop:/home/espresso# grep -rn ‘CSIMUX_FRAME’ /sys/kernel/debug/tracing/trace
118668: kworker/0:2-1643 [000] … 369.185645: rtcpu_vinotify_error: tstamp:11866597514 tag:CSIMUX_FRAME channel:0x00 frame:0 vi_tstamp:11866594426 data:0x00000220
118672: kworker/0:2-1643 [000] … 369.185646: rtcpu_vinotify_event: tstamp:11866598310 tag:CSIMUX_FRAME channel:0x00 frame:0 vi_tstamp:11866594426 data:0x00000220
164335: kworker/0:2-1643 [000] … 444.114598: rtcpu_vinotify_error: tstamp:14207678600 tag:CSIMUX_FRAME channel:0x00 frame:0 vi_tstamp:14207675520 data:0x00000220
164345: kworker/0:2-1643 [000] … 444.114611: rtcpu_vinotify_event: tstamp:14208074490 tag:CSIMUX_FRAME channel:0x00 frame:0 vi_tstamp:14207675520 data:0x00000220
184259: kworker/0:2-1643 [000] … 476.799730: rtcpu_vinotify_error: tstamp:15229052462 tag:CSIMUX_FRAME channel:0x00 frame:0 vi_tstamp:15229049475 data:0x00000220
184268: kworker/0:2-1643 [000] … 476.799738: rtcpu_vinotify_event: tstamp:15229081172 tag:CSIMUX_FRAME channel:0x00 frame:0 vi_tstamp:15229049475 data:0x00000220
233424: kworker/0:2-1643 [000] … 557.466345: rtcpu_vinotify_error: tstamp:17749339946 tag:CSIMUX_FRAME channel:0x00 frame:3072 vi_tstamp:17749336856 data:0x00000220
233433: kworker/0:2-1643 [000] … 557.466369: rtcpu_vinotify_event: tstamp:17749735696 tag:CSIMUX_FRAME channel:0x00 frame:3072 vi_tstamp:17749336856 data:0x00000220
235522: kworker/0:2-1643 [000] … 560.878164: rtcpu_vinotify_error: tstamp:17857070950 tag:CSIMUX_FRAME channel:0x00 frame:0 vi_tstamp:17857067979 data:0x00000220
235531: kworker/0:2-1643 [000] … 560.878168: rtcpu_vinotify_event: tstamp:17857113538 tag:CSIMUX_FRAME channel:0x00 frame:0 vi_tstamp:17857067979 data:0x00000220
342316: kworker/0:2-1643 [000] … 736.079016: rtcpu_vinotify_error: tstamp:23331674740 tag:CSIMUX_FRAME channel:0x00 frame:0 vi_tstamp:23331671748 data:0x00000220

hello make7seven,

you should enable camera stream before access to registers.
could you please also check these registers to obtain more CSI details.
for example, NVCSI_STREAM_0_PH_WC_0 , or NVCSI_STREAM_0_PF_CRC_0

furthermore,
there’s firewall configuration of accessing to these registers on Orin platforms. it’s disabled by default.
you may refer to Topic 234321 for CBB FIREWALL settings, please update tegra234-mb2-bct-scr-p3701-0000-override.dts then re-flash your target to apply the config.

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