aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorKristina Martsenko <[email protected]>2017-12-13 17:07:17 +0000
committerCatalin Marinas <[email protected]>2017-12-22 17:34:52 +0000
commit787fd1d019b269af7912249231dfe34a5fe3e7c8 (patch)
tree156a0b9832cc4bd7dfb6e8c30a4cd5c980a64a72 /tools/perf/scripts/python/event_analyzing_sample.py
parent982aa7c5f0861bf56b2412ca341a13f44c238ba4 (diff)
arm64: limit PA size to supported range
We currently copy the physical address size from ID_AA64MMFR0_EL1.PARange directly into TCR.(I)PS. This will not work for 4k and 16k granule kernels on systems that support 52-bit physical addresses, since 52-bit addresses are only permitted with the 64k granule. To fix this, fall back to 48 bits when configuring the PA size when the kernel does not support 52-bit PAs. When it does, fall back to 52, to avoid similar problems in the future if the PA size is ever increased above 52. Tested-by: Suzuki K Poulose <[email protected]> Reviewed-by: Suzuki K Poulose <[email protected]> Reviewed-by: Marc Zyngier <[email protected]> Tested-by: Bob Picco <[email protected]> Reviewed-by: Bob Picco <[email protected]> Signed-off-by: Kristina Martsenko <[email protected]> [[email protected]: tcr_set_pa_size macro renamed to tcr_compute_pa_size] [[email protected]: comments added to tcr_compute_pa_size] [[email protected]: definitions added for TCR_*PS_SHIFT] Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions