public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* How to create a kernel virtual mapping for physical addresses.
@ 2011-04-08 22:03 brace
  2011-04-19 19:51 ` Arnd Bergmann
  0 siblings, 1 reply; 3+ messages in thread
From: brace @ 2011-04-08 22:03 UTC (permalink / raw)
  To: linux-kernel; +Cc: brace, scameron

Given a physical address and a length (which may span contiguous pages), how
does one go about creating a virtual mapping for that address? That address may
be in high memory (above 4GB) in a 32bit system.

ioremap() wants a 32bit physical address on 32bit systems. kmap() and
kmap_atomic() wants a struct page which I am not sure how to get from a physical
address.

If there already is a kernel mapping, then using the existing kernel mapping
would be fine if I could figure out how to get it, but if there is not one,
then I need to make one.

I think setting the DMA mask to 32bit would mean that I do not have to deal
with highmem addresses in my particular case, but I still do not know how to
get a virtual address from a physical.

Any suggestions?

Don

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-04-21 19:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-08 22:03 How to create a kernel virtual mapping for physical addresses brace
2011-04-19 19:51 ` Arnd Bergmann
     [not found]   ` <20110421184600.GA29746@beardog.cce.hp.com>
2011-04-21 19:36     ` Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox