Hi
I developed a pcie driver for fpga which is used to capture video. I used kmalloc to allocated two buffer as dma buffer.
For handling the cache coherency correctly, before dma start,pci_map_single(pdev,addr,length,PCI_DMA_FROMDEVICE) will be called,
after dma stop,pci_unmap_single() will be called. So the driver can capture video smoothly.
However when I didn't use the pci_map_single and pci_unmap_single(),It also can get a smooth video.
So I am very confusing whether the pci_map_single and pci_unmap_single() have use.
My kernel is linux-psp-04.04.00.01.