V4l2 streaming, Frame duplication issue in Jetson Tx2


On Jetson TX2, we have connected MIPI CSI2 to sensor module that streams RAW data, We are facing issue with frame duplication while doing v4l2 streaming.

This is our observation wrt 28.2 kernel, if we enable debug print in driver/media/platform/tegra/camera/vi/vi4_fops.c ie, debug print in function tegra_channel_release_frame we don’t see any frame duplication,

Please let us know how can we resolve this issue, without enabling this #define DEBUG workaround

Thanks and Regards
Fahad K

Have you apply the patch from below link?