OSDN Git Service

powerpc: Record vma->phys_addr in ioremap()
authorMichael Ellerman <michael@ellerman.id.au>
Sun, 28 Nov 2010 18:26:36 +0000 (18:26 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 9 Dec 2010 04:35:32 +0000 (15:35 +1100)
commit7a9d12568e34e37a72d9e00ce01b62dec527e663
tree117f1d41ae3fe773bca81d9a4c6286c2f9ff2134
parentbb2c458b8b8c8a53f65b78051d22a0f13d53abcb
powerpc: Record vma->phys_addr in ioremap()

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?

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/pgtable_32.c
arch/powerpc/mm/pgtable_64.c