when acquiring frames from a sensor attached to a mipi csi-2 port of my TX2 running kernel-4.9,
the timestamps of the buffers are always 0. That’s not the expected value.
It seems to me that the culprit is in nvidia/drivers/media/platform/tegra/camera/vi/channel.c,
in the function ‘tegra_channel_ring_buffer’, at the lines :
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 9, 0)
/* update time stamp of the buffer */
vb->timestamp.tv_sec = ts->tv_sec;
vb->timestamp.tv_usec = ts->tv_nsec / NSEC_PER_USEC;
#else
/* TODO: granular time code information */
vb->timecode.seconds = ts->tv_sec;
#endif
I am on the branch l4t/l4l4t/l4t-r32.2.3, with HEAD at 5ce7e219fa2764b829a480389dec90c57a0c1eda “tegra: mce: skip querying ctate stat of floorswept cores” and that patch is definitely not there.
could you make the ‘work-in-progress’ branch, with the already accepted commits, available at git://nv-tegra.nvidia.com/linux-nvidia.git ? That would be the easiest way to avoid duplicate efforts to fix the same bugs over and over again.
Those sources will be public in some weeks. Making them public when they change would help your customers, and yourself :) That’s one benefit of the GPL. You could limit that to the fixes, not the new drivers, e.g.