LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 08-13-2015, 12: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 http://lwn.net/2001/0712/a/dma-interface.php3. 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, 04:34 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
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.
 
  


Reply

Tags
dma, drivers, linux



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 11:39 AM
DMA transfer using streaming method manjunathap Linux - Newbie 0 01-31-2012 05:46 AM
Large transfer DMA bhb2048 Linux - Kernel 5 05-13-2011 03:01 PM
PCI_MAP_SINGLE & DMA system hang at 6Mbps sudeepd Linux - Wireless Networking 1 01-06-2007 11:31 AM
Unable to use DMA transfer modes Rounan Linux - Hardware 14 02-20-2004 10:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:18 AM.

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