Skip to contentSkip to conversation

Right Semantics for ioremap, remap_page_range

DISCUSSION Pete Zaitcev 1 participant 1 message Jul 18, 2001 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 2 lines

base for 64Mb Ram Onboard. After ioremap() I actually like to do remap_page_range through fileops/mmap call.

Bad idea. The remap_page_range can remap actual memory only, located on the CPU side of the I/O bridge.
What ioremap returns is useful in readb/writeb only, and not to be fed into other functions.

Instead, use io_remap_page_range, lift the example from drivers/video/fbmem.c.

-- Pete