projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e22ce8e
)
perf/x86/intel/pt: Fix mask of num_address_ranges
author
Xiaoyao Li
<xiaoyao.li@intel.com>
Tue, 24 Aug 2021 04:06:22 +0000
(12:06 +0800)
committer
Peter Zijlstra
<peterz@infradead.org>
Wed, 25 Aug 2021 13:42:31 +0000
(15:42 +0200)
Per SDM, bit 2:0 of CPUID(0x14,1).EAX[2:0] reports the number of
configurable address ranges for filtering, not bit 1:0.
Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Link:
https://lkml.kernel.org/r/20210824040622.4081502-1-xiaoyao.li@intel.com
arch/x86/events/intel/pt.c
patch
|
blob
|
history
diff --git
a/arch/x86/events/intel/pt.c
b/arch/x86/events/intel/pt.c
index
9158476
..
b044577
100644
(file)
--- a/
arch/x86/events/intel/pt.c
+++ b/
arch/x86/events/intel/pt.c
@@
-62,7
+62,7
@@
static struct pt_cap_desc {
PT_CAP(single_range_output, 0, CPUID_ECX, BIT(2)),
PT_CAP(output_subsys, 0, CPUID_ECX, BIT(3)),
PT_CAP(payloads_lip, 0, CPUID_ECX, BIT(31)),
- PT_CAP(num_address_ranges, 1, CPUID_EAX, 0x
3
),
+ PT_CAP(num_address_ranges, 1, CPUID_EAX, 0x
7
),
PT_CAP(mtc_periods, 1, CPUID_EAX, 0xffff0000),
PT_CAP(cycle_thresholds, 1, CPUID_EBX, 0xffff),
PT_CAP(psb_periods, 1, CPUID_EBX, 0xffff0000),