linux/drivers/perf
Will Deacon 14ae42a6f0 drivers/perf: arm_spe: Don't error on high-order pages for aux buf
Since commit 5768402fd9 ("perf/ring_buffer: Use high order allocations
for AUX buffers optimistically"), the perf core tends to back aux buffer
allocations with high-order pages with the order encoded in the
PagePrivate data. The Arm SPE driver explicitly rejects such pages,
causing the perf tool to fail with:

  | failed to mmap with 12 (Cannot allocate memory)

In actual fact, we can simply treat these pages just like any other
since the perf core takes care to populate the page array appropriately.
In theory we could try to map with PMDs where possible, but for now,
let's just get things working again.

Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Fixes: 5768402fd9 ("perf/ring_buffer: Use high order allocations for AUX buffers optimistically")
Reported-by: Hanjun Guo <guohanjun@huawei.com>
Tested-by: Hanjun Guo <guohanjun@huawei.com>
Tested-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
2019-05-13 18:01:56 +01:00
..
hisilicon For drivers that do not support context exclusion let's advertise the 2019-01-21 11:01:24 +01:00
arm_dsu_pmu.c For drivers that do not support context exclusion let's advertise the 2019-01-21 11:01:24 +01:00
arm_pmu_acpi.c arm_pmu: acpi: request IRQs up-front 2018-02-20 11:34:54 +00:00
arm_pmu_platform.c perf: Convert to using %pOFn instead of device_node.name 2018-10-01 11:33:17 +01:00
arm_pmu.c perf/core, arch/arm: Use PERF_PMU_CAP_NO_EXCLUDE conditionally 2019-01-21 11:01:22 +01:00
arm_smmuv3_pmu.c perf/smmuv3: Enable HiSilicon Erratum 162001800 quirk 2019-04-04 16:49:22 +01:00
arm_spe_pmu.c drivers/perf: arm_spe: Don't error on high-order pages for aux buf 2019-05-13 18:01:56 +01:00
arm-cci.c perf/arm-cci: Remove broken race mitigation 2019-04-23 12:29:23 +01:00
arm-ccn.c perf/arm-ccn: Clean up CPU hotplug handling 2019-04-23 12:29:37 +01:00
Kconfig perf/smmuv3: Add arm64 smmuv3 pmu driver 2019-04-04 16:49:21 +01:00
Makefile perf/smmuv3: Add arm64 smmuv3 pmu driver 2019-04-04 16:49:21 +01:00
qcom_l2_pmu.c perf/drivers: Strengthen exclusion checks with PERF_PMU_CAP_NO_EXCLUDE 2019-01-21 11:01:25 +01:00
qcom_l3_pmu.c perf/drivers: Strengthen exclusion checks with PERF_PMU_CAP_NO_EXCLUDE 2019-01-21 11:01:25 +01:00
thunderx2_pmu.c For drivers that do not support context exclusion let's advertise the 2019-01-21 11:01:24 +01:00
xgene_pmu.c arm64 updates for 5.1: 2019-03-10 10:17:23 -07:00