[PATCH] powerpc: Record vma->phys_addr in ioremap()

Michael Ellerman michael at ellerman.id.au
Mon Nov 29 16:04:16 EST 2010


On Mon, 2010-11-29 at 15:56 +1100, Benjamin Herrenschmidt wrote:
> On Mon, 2010-11-29 at 15:26 +1100, Michael Ellerman wrote:
> > The vmalloc code can track the physical address of a vma, when the
> > vma is used for ioremap, if set it is displayed in /proc/vmallocinfo.
> > 
> > Because get_vm_area_caller() doesn't know it's being called for
> > ioremap() it's up to the arch code to set the phys_addr. A bunch
> > of other arch's do this, I'm not sure why powerpc doesn't?
> 
> Because I never noticed ? :-)

Yeah I figured. It seems to go back past 2.6.12 so who knows when it
went in, anyway it's useful.

cheers

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20101129/5e4457f6/attachment.pgp>


More information about the Linuxppc-dev mailing list