Skip to contentSkip to conversation

ioremap64 and remap_page_range in 440GP

DISCUSSION Vishwanath 2 participants 2 messages Jan 1, 2003 – Jan 6, 2003

lore
Share & tools
lore

Vishwanath

author
#0 lore raw

Hi All,

In PPC Linux, to bring a particular IO page onto Linux addressing space, we use ioremap64(). Is my understanding correct? If I want to map this remapped address on user space, I have to use remap_page_range() of kernel in my driver. remap_page_range() takes a 32-bit physical address as argument. But in 440GP, all addresses are 36-bit with respect to processor. Is there any 64-bit equivalent of remap_page_range(). If it exists, how to use it?

Please help me out since I am stuck while mapping an external peripheral registers onto user space.

Thanks in advance.

Regards,
vishwa

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 5 lines · Vishwanath

Hi All,

In PPC Linux, to bring a particular IO page onto Linux addressing space, we use ioremap64(). Is my understanding correct? If I want to map this remapped

Yes.

Quoted 4 lines

address on user space, I have to use remap_page_range() of kernel in my driver. remap_page_range() takes a 32-bit physical address as argument. But in 440GP, all addresses are 36-bit with respect to processor. Is there any 64-bit equivalent of remap_page_range(). If it exists, how to use it?

There's a patch to make remap_page_range() use a phys_addr_t and to use the same bigphys fixups that ioremap() on 440gp uses. Part of it is a bit of hack which is why it's not being commited. See the changeset description in linuxppc_2_4_devel or linuxppc-2.5 for a pointer to pick up the patch.

Regards,
--
Matt Porter
[email protected]
This is Linux Country. On a quiet night, you can hear Windows reboot.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/