LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   physical memory allocation over 4b (https://www.linuxquestions.org/questions/linux-kernel-70/physical-memory-allocation-over-4b-707973/)

protagora27 02-27-2009 07:21 AM

physical memory allocation over 4b
 
Hello folks,

I have a 64 bit dma that I have to program with 64 bit physical
address
beyond 4 gb because I have to test dma with memory allocation beyond
4 gb.
I 'm using linux x86_64 2.6.24 and I have 8 gb ram.
How can I allocate physical dma memory beyond 4gb ? In x86_64
can I use __pa to have physical address ?

I would like to find a function that returns a physical adddres beyond
4gb
and then i write phys address in dma register .

Thanks.

Drakeo 02-28-2009 01:03 AM

you know you should let people know if you are using a vanilla kernel or some distro that dose not use a vanila kernel. It is the gernel that runs the cpu so it will see and use over 4 gbas far as slackware just use the 2.6.27.7 huge smp. kernel.


All times are GMT -5. The time now is 01:35 AM.