diff options
| author | Nicholas Piggin <[email protected]> | 2019-07-24 18:46:34 +1000 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2019-08-20 21:22:18 +1000 |
| commit | 8f51e3929470942e6a8744061254fdeef646cd36 (patch) | |
| tree | 31154e9f6fe67558dd2d1d5548bfd27516a44c93 /tools/perf/scripts/python/stackcollapse.py | |
| parent | e354d7dc81d0e81bea33165f381aff1eda45f5d9 (diff) | |
powerpc/64s/radix: Fix memory hotplug section page table creation
create_physical_mapping expects physical addresses, but creating and
splitting these mappings after boot is supplying virtual (effective)
addresses. This can be irritated by booting with mem= to limit memory
then probing an unused physical memory range:
echo <addr> > /sys/devices/system/memory/probe
This mostly works by accident, firstly because __va(__va(x)) == __va(x)
so the virtual address does not get corrupted. Secondly because pfn_pte
masks out the upper bits of the pfn beyond the physical address limit,
so a pfn constructed with a 0xc000000000000000 virtual linear address
will be masked back to the correct physical address in the pte.
Fixes: 6cc27341b21a8 ("powerpc/mm: add radix__create_section_mapping()")
Signed-off-by: Nicholas Piggin <[email protected]>
Reviewed-by: Aneesh Kumar K.V <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions