From: protagora27 protagora27 <protagora27@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: memory allocation over 4gb under x86_64
Date: Tue, 3 Mar 2009 12:22:18 +0100 [thread overview]
Message-ID: <5b9cce670903030322m9a5553fx2aa19f1591833f44@mail.gmail.com> (raw)
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 have used kmalloc giving virtual address : ffff810225d10340
and using __pa i have: 225d10340 that is over 8 gb .
Does it mean that kmalloc return address is not linear mapped with phys ram ?
I would like to find a function that returns a physical adddres beyond
4gb
and then i write phys address in dma register .
Thanks.
next reply other threads:[~2009-03-03 11:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-03 11:22 protagora27 protagora27 [this message]
2009-03-04 1:44 ` KAMEZAWA Hiroyuki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5b9cce670903030322m9a5553fx2aa19f1591833f44@mail.gmail.com \
--to=protagora27@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®