Skip to content

Commit bd334dd

Browse files
committed
Merge branch 'for-next/perf' into for-next/core
* for-next/perf: drivers/perf: Improve build test coverage drivers/perf: thunderx2_pmu: Change data in size tx2_uncore_event_update() drivers/perf: hisi: Fix PA PMU counter offset
2 parents 7066248 + e656972 commit bd334dd

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

drivers/perf/Kconfig

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ config ARM_CCI5xx_PMU
3636

3737
config ARM_CCN
3838
tristate "ARM CCN driver support"
39-
depends on ARM || ARM64
39+
depends on ARM || ARM64 || COMPILE_TEST
4040
help
4141
PMU (perf) driver supporting the ARM CCN (Cache Coherent Network)
4242
interconnect.
@@ -62,7 +62,8 @@ config ARM_PMU_ACPI
6262

6363
config ARM_SMMU_V3_PMU
6464
tristate "ARM SMMUv3 Performance Monitors Extension"
65-
depends on ARM64 && ACPI
65+
depends on (ARM64 && ACPI) || (COMPILE_TEST && 64BIT)
66+
depends on GENERIC_MSI_IRQ_DOMAIN
6667
help
6768
Provides support for the ARM SMMUv3 Performance Monitor Counter
6869
Groups (PMCG), which provide monitoring of transactions passing
@@ -80,7 +81,7 @@ config ARM_DSU_PMU
8081

8182
config FSL_IMX8_DDR_PMU
8283
tristate "Freescale i.MX8 DDR perf monitor"
83-
depends on ARCH_MXC
84+
depends on ARCH_MXC || COMPILE_TEST
8485
help
8586
Provides support for the DDR performance monitor in i.MX8, which
8687
can give information about memory throughput and other related
@@ -108,15 +109,16 @@ config QCOM_L3_PMU
108109

109110
config THUNDERX2_PMU
110111
tristate "Cavium ThunderX2 SoC PMU UNCORE"
111-
depends on ARCH_THUNDER2 && ARM64 && ACPI && NUMA
112+
depends on ARCH_THUNDER2 || COMPILE_TEST
113+
depends on NUMA && ACPI
112114
default m
113115
help
114116
Provides support for ThunderX2 UNCORE events.
115117
The SoC has PMU support in its L3 cache controller (L3C) and
116118
in the DDR4 Memory Controller (DMC).
117119

118120
config XGENE_PMU
119-
depends on ARCH_XGENE
121+
depends on ARCH_XGENE || (COMPILE_TEST && 64BIT)
120122
bool "APM X-Gene SoC PMU"
121123
default n
122124
help

drivers/perf/hisilicon/hisi_uncore_pa_pmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#define PA_INT_CLEAR 0x1c7c
2828
#define PA_EVENT_TYPE0 0x1c80
2929
#define PA_PMU_VERSION 0x1cf0
30-
#define PA_EVENT_CNT0_L 0x1f00
30+
#define PA_EVENT_CNT0_L 0x1d00
3131

3232
#define PA_EVTYPE_MASK 0xff
3333
#define PA_NR_COUNTERS 0x8

drivers/perf/thunderx2_pmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ static void tx2_uncore_event_update(struct perf_event *event)
487487
new = reg_readl(hwc->event_base);
488488
prev = local64_xchg(&hwc->prev_count, new);
489489
/* handles rollover of 32 bit counter */
490-
delta = (u32)(((1UL << 32) - prev) + new);
490+
delta = (u32)(((1ULL << 32) - prev) + new);
491491
}
492492

493493
/* DMC event data_transfers granularity is 16 Bytes, convert it to 64 */

0 commit comments

Comments
 (0)