[PATCH 3/13] Abolish iopa(), mm_ptov(), io_block_mapping() from arch/powerpc

Benjamin Herrenschmidt benh at kernel.crashing.org
Sat Jun 16 10:55:58 EST 2007


On Wed, 2007-06-13 at 14:52 +1000, David Gibson wrote:
> These old-fashioned IO mapping functions no longer have any callers in
> code which remains relevant on arch/powerpc.  Therefore, this patch
> removes them from arch/powerpc.

I think we still want a way to setup some hand crafted BATs... maybe a
special flag to pass to ioremap_flags ?

It makes sense to map some heavily accessed on chip register space with
a BAT on embedded. The reason I didn't like io_block_mapping() was
because the virtual address was hard coded. But I don't think we should
throw the baby with the bath water. If we can have it allocate the virt
address using the ioremap_bot trick, that would be a good thing to keep
around.

Ben.




More information about the Linuxppc-dev mailing list