LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 08-11-2015, 08:59 PM   #1
mod_dev_123
LQ Newbie
 
Registered: Aug 2015
Posts: 16

Rep: Reputation: Disabled
64 bit DMA?


Hello,

I'm using a 64 bit system, and lots of RAM - 64 GB.
To determine whether 64 bit DMA is supported, I used the following code in the driver's init function:


if (!pci_set_dma_mask(dev, DMA_BIT_MASK(64)) &&
!pci_set_consistent_dma_mask(dev, DMA_BIT_MASK(64))) {
printk("Supports 64 bit DMA\n");
} else if (!pci_set_dma_mask(dev, DMA_BIT_MASK(32)) &&
!pci_set_consistent_dma_mask(dev, DMA_BIT_MASK(32))) {
printk("Supports 32 bit DMA\n");
} else {
printk("Failed to set DMA mask.\n");
}



I then use pci_alloc_consistent() to figure out the DMA address (of type dma_addr_t).

In /var/log/kern.log, I see "Supports 64 bit DMA".
Does this guarantee that my device can use a 64 bit bus address? i.e. something like mrd64?

Thanks.
 
Old 08-12-2015, 11:17 AM   #2
mod_dev_123
LQ Newbie
 
Registered: Aug 2015
Posts: 16

Original Poster
Rep: Reputation: Disabled
Sorry, please disregard this question. We had a bug in the code.
 
  


Reply



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
How DMA capable ga-p35-ds3?? SATA disks wont set dma on! stardotstar Linux - Hardware 7 03-24-2008 02:58 AM
Enabling DMA & 32 bit access on SATA HDD and DVD RW SEGStriker Linux - Hardware 3 10-02-2007 06:48 AM
Hard Drive Problems: timeout waiting for DMA; error waiting for DMA mintee Linux - Hardware 10 09-21-2007 05:06 AM
Help! Xine is killing DMA, I can't make DMA stick! husten SUSE / openSUSE 5 02-27-2007 01:20 AM
Suse 8.2 change my DMA setting on my DVD-R drive to off & IDE DMA MODE NOT SHOWING IT maximalred Linux - General 0 08-23-2003 04:58 AM

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

All times are GMT -5. The time now is 11:03 PM.

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