V4L2 PCIe driver on Jetson TX2

Hi

I am working on v4l2 PCIe driver based on the vb2 buffer management, idea is to transfer the frame data from the Xilinx FPGA via V4L2 framework and make it available to the Hardware accelerated Gstreamer plugins ( nvvidconv, nvidia encoder, decoder etc…)

There is performance requirements for 4K @ 60 fps, so i need to effectively do the buffer management here in getting the data in nvbuffers.

It would be great if i can get the design considerations, issues to be taken care here, any kernel changes.

Hi,
We have a reference sample of using NvBuffer in v4l2 framr capturing. Please install through sdkmanger and check tegra_multimedia_api sample in

/usr/src/tegra_multimedia_api/samples/12_camera_v4l2_cuda/