Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-13-2015, 01:25 AM   #1
Abdul Basit
LQ Newbie
Registered: Apr 2015
Posts: 10

Rep: Reputation: Disabled
Using pci_map_single for multiple dma transfer

I am going through the kernel source documentation at this link It mentions that pci_map_single can be used for only single transfer. I am writing a PCI driver and device writes to buffer 4KB data at every 500 us . After that it will give an interrupt. I tried to work with pci_alloc_consistent but it is constantly producing error stating "coherent DMA mask is smaller than system GFP_DMA mask arm". My question is how can I use pci_map_single for multiple dma transfers
Old 08-13-2015, 05:34 PM   #2
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,079

Rep: Reputation: 1246Reputation: 1246Reputation: 1246Reputation: 1246Reputation: 1246Reputation: 1246Reputation: 1246Reputation: 1246Reputation: 1246
I think you misread. The single in pci_map_single is referring to a single, contiguous region, not a single transfer. You can use it as many times as you want until you call pci_unmap_single.


dma, drivers, linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Slow single file transfer, fast multiple transfer Manzano Linux - Networking 6 08-06-2013 12:39 PM
DMA transfer using streaming method manjunathap Linux - Newbie 0 01-31-2012 06:46 AM
Large transfer DMA bhb2048 Linux - Kernel 5 05-13-2011 04:01 PM
PCI_MAP_SINGLE & DMA system hang at 6Mbps sudeepd Linux - Wireless Networking 1 01-06-2007 12:31 PM
Unable to use DMA transfer modes Rounan Linux - Hardware 14 02-20-2004 11:25 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:38 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration