> What makes you think dma_sync_single_range can't be used on memory mapped > by pci_map_sg/dma_map_sg? The fact that it's dma_sync_*SINGLE*_range, and that there's a separate dma_sync_sg() function defined in DMA-API.txt. - R.