perf/x86/uncore: fix SNB-EP/IVT Cbox filter mappings
Subsystems (2)
PATCH 1/1 perf/x86/uncore: fix SNB-EP/IVT Cbox filter mappings
This patch fixes the SNB-EP and IVT Cbox filter mapping table. The table controls which filters are supported by which events. There were several mistakes in those tables causing some filters to be ignored, such as NID on TOR_INSERTS.
--- arch/x86/kernel/cpu/perf_event_intel_uncore.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
arch/x86/kernel/cpu/perf_event_intel_uncore.c +6 -5
@@ -550,16 +550,16 @@ static struct extra_reg snbep_uncore_cbox_extra_regs[] = {SNBEP_CBO_EVENT_EXTRA_REG (0x4134 ,0xffff ,0x6 ),SNBEP_CBO_EVENT_EXTRA_REG (0x0135 ,0xffff ,0x8 ),SNBEP_CBO_EVENT_EXTRA_REG (0x0335 ,0xffff ,0x8 ), -SNBEP_CBO_EVENT_EXTRA_REG (0x4135 ,0xffff ,0xc ), -SNBEP_CBO_EVENT_EXTRA_REG (0x4335 ,0xffff ,0xc ), +SNBEP_CBO_EVENT_EXTRA_REG (0x4135 ,0xffff ,0xa ), +SNBEP_CBO_EVENT_EXTRA_REG (0x4335 ,0xffff ,0xa ),SNBEP_CBO_EVENT_EXTRA_REG (0x4435 ,0xffff ,0x2 ),SNBEP_CBO_EVENT_EXTRA_REG (0x4835 ,0xffff ,0x2 ),SNBEP_CBO_EVENT_EXTRA_REG (0x4a35 ,0xffff ,0x2 ),SNBEP_CBO_EVENT_EXTRA_REG (0x5035 ,0xffff ,0x2 ),SNBEP_CBO_EVENT_EXTRA_REG (0x0136 ,0xffff ,0x8 ),SNBEP_CBO_EVENT_EXTRA_REG (0x0336 ,0xffff ,0x8 ), -SNBEP_CBO_EVENT_EXTRA_REG (0x4136 ,0xffff ,0xc ), -SNBEP_CBO_EVENT_EXTRA_REG (0x4336 ,0xffff ,0xc ), +SNBEP_CBO_EVENT_EXTRA_REG (0x4136 ,0xffff ,0xa ), +SNBEP_CBO_EVENT_EXTRA_REG (0x4336 ,0xffff ,0xa ),SNBEP_CBO_EVENT_EXTRA_REG (0x4436 ,0xffff ,0x2 ),SNBEP_CBO_EVENT_EXTRA_REG (0x4836 ,0xffff ,0x2 ), SNBEP_CBO_EVENT_EXTRA_REG(0x4a36, 0xffff, 0x2),
@@ -1222,6 +1222,7 @@ static struct extra_reg ivt_uncore_cbox_extra_regs[] = {SNBEP_CBO_EVENT_EXTRA_REG (SNBEP_CBO_PMON_CTL_TID_EN ,SNBEP_CBO_PMON_CTL_TID_EN ,0x1 ),SNBEP_CBO_EVENT_EXTRA_REG (0x1031 ,0x10ff ,0x2 ), +SNBEP_CBO_EVENT_EXTRA_REG (0x1134 ,0xffff ,0x4 ),SNBEP_CBO_EVENT_EXTRA_REG (0x4134 ,0xffff ,0xc ), SNBEP_CBO_EVENT_EXTRA_REG(0x5134, 0xffff, 0xc),
@@ -1245,7 +1246,7 @@ static struct extra_reg ivt_uncore_cbox_extra_regs[] = {SNBEP_CBO_EVENT_EXTRA_REG (0x8335 ,0xffff ,0x10 ),SNBEP_CBO_EVENT_EXTRA_REG (0x0136 ,0xffff ,0x10 ),SNBEP_CBO_EVENT_EXTRA_REG (0x0336 ,0xffff ,0x10 ), -SNBEP_CBO_EVENT_EXTRA_REG (0x2336 ,0xffff ,0x10 ), +SNBEP_CBO_EVENT_EXTRA_REG (0x2136 ,0xffff ,0x10 ),SNBEP_CBO_EVENT_EXTRA_REG (0x2336 ,0xffff ,0x10 ),SNBEP_CBO_EVENT_EXTRA_REG (0x4136 ,0xffff ,0x18 ), SNBEP_CBO_EVENT_EXTRA_REG(0x4336, 0xffff, 0x18),
Signature · 1 line
1.8.3.2
Quoted 8 lines · Stephane Eranian
This patch fixes the SNB-EP and IVT Cbox filter mapping table. The table controls which filters are supported by which events. There were several mistakes in those tables causing some filters to be ignored, such as NID on
TOR_INSERTS.Signed-off-by Stephane Eranian <[email protected]>
Any comment on this patch?
Quoted 49 lines
--- arch/x86/kernel/cpu/perf_event_intel_uncore.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)arch/x86/kernel/cpu/perf_event_intel_uncore.c +6
-6@@ -550,16 +550,16 @@ static struct extra_reg snbep_uncore_cbox_extra_regs[] = {SNBEP_CBO_EVENT_EXTRA_REG (0x4134 ,0xffff ,0x6 ),SNBEP_CBO_EVENT_EXTRA_REG (0x0135 ,0xffff ,0x8 ),SNBEP_CBO_EVENT_EXTRA_REG (0x0335 ,0xffff ,0x8 ), -SNBEP_CBO_EVENT_EXTRA_REG (0x4135 ,0xffff ,0xc ), -SNBEP_CBO_EVENT_EXTRA_REG (0x4335 ,0xffff ,0xc ), +SNBEP_CBO_EVENT_EXTRA_REG (0x4135 ,0xffff ,0xa ), +SNBEP_CBO_EVENT_EXTRA_REG (0x4335 ,0xffff ,0xa ),SNBEP_CBO_EVENT_EXTRA_REG (0x4435 ,0xffff ,0x2 ),SNBEP_CBO_EVENT_EXTRA_REG (0x4835 ,0xffff ,0x2 ),SNBEP_CBO_EVENT_EXTRA_REG (0x4a35 ,0xffff ,0x2 ),SNBEP_CBO_EVENT_EXTRA_REG (0x5035 ,0xffff ,0x2 ),SNBEP_CBO_EVENT_EXTRA_REG (0x0136 ,0xffff ,0x8 ),SNBEP_CBO_EVENT_EXTRA_REG (0x0336 ,0xffff ,0x8 ), -SNBEP_CBO_EVENT_EXTRA_REG (0x4136 ,0xffff ,0xc ), -SNBEP_CBO_EVENT_EXTRA_REG (0x4336 ,0xffff ,0xc ), +SNBEP_CBO_EVENT_EXTRA_REG (0x4136 ,0xffff ,0xa ), +SNBEP_CBO_EVENT_EXTRA_REG (0x4336 ,0xffff ,0xa ),SNBEP_CBO_EVENT_EXTRA_REG (0x4436 ,0xffff ,0x2 ),SNBEP_CBO_EVENT_EXTRA_REG (0x4836 ,0xffff ,0x2 ), SNBEP_CBO_EVENT_EXTRA_REG(0x4a36, 0xffff, 0x2),@@ -1222,6 +1222,7 @@ static struct extra_reg ivt_uncore_cbox_extra_regs[] = {SNBEP_CBO_EVENT_EXTRA_REG (SNBEP_CBO_PMON_CTL_TID_EN ,SNBEP_CBO_PMON_CTL_TID_EN ,0x1 ),SNBEP_CBO_EVENT_EXTRA_REG (0x1031 ,0x10ff ,0x2 ), +SNBEP_CBO_EVENT_EXTRA_REG (0x1134 ,0xffff ,0x4 ),SNBEP_CBO_EVENT_EXTRA_REG (0x4134 ,0xffff ,0xc ), SNBEP_CBO_EVENT_EXTRA_REG(0x5134, 0xffff, 0xc),@@ -1245,7 +1246,7 @@ static struct extra_reg ivt_uncore_cbox_extra_regs[] = {SNBEP_CBO_EVENT_EXTRA_REG (0x8335 ,0xffff ,0x10 ),SNBEP_CBO_EVENT_EXTRA_REG (0x0136 ,0xffff ,0x10 ),SNBEP_CBO_EVENT_EXTRA_REG (0x0336 ,0xffff ,0x10 ), -SNBEP_CBO_EVENT_EXTRA_REG (0x2336 ,0xffff ,0x10 ), +SNBEP_CBO_EVENT_EXTRA_REG (0x2136 ,0xffff ,0x10 ),SNBEP_CBO_EVENT_EXTRA_REG (0x2336 ,0xffff ,0x10 ),SNBEP_CBO_EVENT_EXTRA_REG (0x4136 ,0xffff ,0x18 ), SNBEP_CBO_EVENT_EXTRA_REG(0x4336, 0xffff, 0x18), --1.8.3.2
Yan, Zheng
Reviewed-byQuoted 11 lines · Stephane Eranian
Quoted 8 lines · Stephane Eranian
This patch fixes the SNB-EP and IVT Cbox filter mapping table. The table controls which filters are supported by which events. There were several mistakes in those tables causing some filters to be ignored, such as NID on
TOR_INSERTS.Signed-off-by Stephane Eranian <[email protected]>Any comment on this patch?
sorry for the delay
Quoted 50 lines
Quoted 50 lines
--- arch/x86/kernel/cpu/perf_event_intel_uncore.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)arch/x86/kernel/cpu/perf_event_intel_uncore.c +6
-6@@ -550,16 +550,16 @@ static struct extra_reg snbep_uncore_cbox_extra_regs[] = {SNBEP_CBO_EVENT_EXTRA_REG (0x4134 ,0xffff ,0x6 ),SNBEP_CBO_EVENT_EXTRA_REG (0x0135 ,0xffff ,0x8 ),SNBEP_CBO_EVENT_EXTRA_REG (0x0335 ,0xffff ,0x8 ), -SNBEP_CBO_EVENT_EXTRA_REG (0x4135 ,0xffff ,0xc ), -SNBEP_CBO_EVENT_EXTRA_REG (0x4335 ,0xffff ,0xc ), +SNBEP_CBO_EVENT_EXTRA_REG (0x4135 ,0xffff ,0xa ), +SNBEP_CBO_EVENT_EXTRA_REG (0x4335 ,0xffff ,0xa ),SNBEP_CBO_EVENT_EXTRA_REG (0x4435 ,0xffff ,0x2 ),SNBEP_CBO_EVENT_EXTRA_REG (0x4835 ,0xffff ,0x2 ),SNBEP_CBO_EVENT_EXTRA_REG (0x4a35 ,0xffff ,0x2 ),SNBEP_CBO_EVENT_EXTRA_REG (0x5035 ,0xffff ,0x2 ),SNBEP_CBO_EVENT_EXTRA_REG (0x0136 ,0xffff ,0x8 ),SNBEP_CBO_EVENT_EXTRA_REG (0x0336 ,0xffff ,0x8 ), -SNBEP_CBO_EVENT_EXTRA_REG (0x4136 ,0xffff ,0xc ), -SNBEP_CBO_EVENT_EXTRA_REG (0x4336 ,0xffff ,0xc ), +SNBEP_CBO_EVENT_EXTRA_REG (0x4136 ,0xffff ,0xa ), +SNBEP_CBO_EVENT_EXTRA_REG (0x4336 ,0xffff ,0xa ),SNBEP_CBO_EVENT_EXTRA_REG (0x4436 ,0xffff ,0x2 ),SNBEP_CBO_EVENT_EXTRA_REG (0x4836 ,0xffff ,0x2 ), SNBEP_CBO_EVENT_EXTRA_REG(0x4a36, 0xffff, 0x2),@@ -1222,6 +1222,7 @@ static struct extra_reg ivt_uncore_cbox_extra_regs[] = {SNBEP_CBO_EVENT_EXTRA_REG (SNBEP_CBO_PMON_CTL_TID_EN ,SNBEP_CBO_PMON_CTL_TID_EN ,0x1 ),SNBEP_CBO_EVENT_EXTRA_REG (0x1031 ,0x10ff ,0x2 ), +SNBEP_CBO_EVENT_EXTRA_REG (0x1134 ,0xffff ,0x4 ),SNBEP_CBO_EVENT_EXTRA_REG (0x4134 ,0xffff ,0xc ), SNBEP_CBO_EVENT_EXTRA_REG(0x5134, 0xffff, 0xc),@@ -1245,7 +1246,7 @@ static struct extra_reg ivt_uncore_cbox_extra_regs[] = {SNBEP_CBO_EVENT_EXTRA_REG (0x8335 ,0xffff ,0x10 ),SNBEP_CBO_EVENT_EXTRA_REG (0x0136 ,0xffff ,0x10 ),SNBEP_CBO_EVENT_EXTRA_REG (0x0336 ,0xffff ,0x10 ), -SNBEP_CBO_EVENT_EXTRA_REG (0x2336 ,0xffff ,0x10 ), +SNBEP_CBO_EVENT_EXTRA_REG (0x2136 ,0xffff ,0x10 ),SNBEP_CBO_EVENT_EXTRA_REG (0x2336 ,0xffff ,0x10 ),SNBEP_CBO_EVENT_EXTRA_REG (0x4136 ,0xffff ,0x18 ), SNBEP_CBO_EVENT_EXTRA_REG(0x4336, 0xffff, 0x18), --1.8.3.2
Peter Zijlstra
maintainerQuoted 11 lines · Stephane Eranian
Quoted 8 lines · Stephane Eranian
This patch fixes the SNB-EP and IVT Cbox filter mapping table. The table controls which filters are supported by which events. There were several mistakes in those tables causing some filters to be ignored, such as NID on
TOR_INSERTS.Signed-off-by Stephane Eranian <[email protected]>Any comment on this patch?
I queued, it. I'll try and get it into tip over the weekend or so.
tip-bot for Stephane Eranian
merge bot[tip:perf/urgent] perf/x86/intel/uncore: Fix SNB-EP/ IVT Cbox filter mappings
In reply to Stephane Eranianperf/x86/intel/uncore: Fix SNB-EP/IVT Cbox filter mappings
Commit-ID: 7711fe4fc2606712125cff1a55ce00df2ae0f1fb Gitweb: http://git.kernel.org/tip/7711fe4fc2606712125cff1a55ce00df2ae0f1fb Author: Stephane Eranian <[email protected]> AuthorDate: Mon, 30 Jun 2014 16:46:24 +0200 Committer: Ingo Molnar <[email protected]> CommitDate: Wed, 16 Jul 2014 13:18:41 +0200
perf/x86/intel/uncore: Fix SNB-EP/IVT Cbox filter mappings
This patch fixes the SNB-EP and IVT Cbox filter mapping table. The table controls which filters are supported by which events. There were several mistakes in those tables causing some filters to be ignored, such as NID on TOR_INSERTS.
--- arch/x86/kernel/cpu/perf_event_intel_uncore.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
arch/x86/kernel/cpu/perf_event_intel_uncore.c +6 -5
@@ -550,16 +550,16 @@ static struct extra_reg snbep_uncore_cbox_extra_regs[] = {SNBEP_CBO_EVENT_EXTRA_REG (0x4134 ,0xffff ,0x6 ),SNBEP_CBO_EVENT_EXTRA_REG (0x0135 ,0xffff ,0x8 ),SNBEP_CBO_EVENT_EXTRA_REG (0x0335 ,0xffff ,0x8 ), -SNBEP_CBO_EVENT_EXTRA_REG (0x4135 ,0xffff ,0xc ), -SNBEP_CBO_EVENT_EXTRA_REG (0x4335 ,0xffff ,0xc ), +SNBEP_CBO_EVENT_EXTRA_REG (0x4135 ,0xffff ,0xa ), +SNBEP_CBO_EVENT_EXTRA_REG (0x4335 ,0xffff ,0xa ),SNBEP_CBO_EVENT_EXTRA_REG (0x4435 ,0xffff ,0x2 ),SNBEP_CBO_EVENT_EXTRA_REG (0x4835 ,0xffff ,0x2 ),SNBEP_CBO_EVENT_EXTRA_REG (0x4a35 ,0xffff ,0x2 ),SNBEP_CBO_EVENT_EXTRA_REG (0x5035 ,0xffff ,0x2 ),SNBEP_CBO_EVENT_EXTRA_REG (0x0136 ,0xffff ,0x8 ),SNBEP_CBO_EVENT_EXTRA_REG (0x0336 ,0xffff ,0x8 ), -SNBEP_CBO_EVENT_EXTRA_REG (0x4136 ,0xffff ,0xc ), -SNBEP_CBO_EVENT_EXTRA_REG (0x4336 ,0xffff ,0xc ), +SNBEP_CBO_EVENT_EXTRA_REG (0x4136 ,0xffff ,0xa ), +SNBEP_CBO_EVENT_EXTRA_REG (0x4336 ,0xffff ,0xa ),SNBEP_CBO_EVENT_EXTRA_REG (0x4436 ,0xffff ,0x2 ),SNBEP_CBO_EVENT_EXTRA_REG (0x4836 ,0xffff ,0x2 ), SNBEP_CBO_EVENT_EXTRA_REG(0x4a36, 0xffff, 0x2),
@@ -1222,6 +1222,7 @@ static struct extra_reg ivt_uncore_cbox_extra_regs[] = {SNBEP_CBO_EVENT_EXTRA_REG (SNBEP_CBO_PMON_CTL_TID_EN ,SNBEP_CBO_PMON_CTL_TID_EN ,0x1 ),SNBEP_CBO_EVENT_EXTRA_REG (0x1031 ,0x10ff ,0x2 ), +SNBEP_CBO_EVENT_EXTRA_REG (0x1134 ,0xffff ,0x4 ),SNBEP_CBO_EVENT_EXTRA_REG (0x4134 ,0xffff ,0xc ), SNBEP_CBO_EVENT_EXTRA_REG(0x5134, 0xffff, 0xc),
@@ -1245,7 +1246,7 @@ static struct extra_reg ivt_uncore_cbox_extra_regs[] = {SNBEP_CBO_EVENT_EXTRA_REG (0x8335 ,0xffff ,0x10 ),SNBEP_CBO_EVENT_EXTRA_REG (0x0136 ,0xffff ,0x10 ),SNBEP_CBO_EVENT_EXTRA_REG (0x0336 ,0xffff ,0x10 ), -SNBEP_CBO_EVENT_EXTRA_REG (0x2336 ,0xffff ,0x10 ), +SNBEP_CBO_EVENT_EXTRA_REG (0x2136 ,0xffff ,0x10 ),SNBEP_CBO_EVENT_EXTRA_REG (0x2336 ,0xffff ,0x10 ),SNBEP_CBO_EVENT_EXTRA_REG (0x4136 ,0xffff ,0x18 ), SNBEP_CBO_EVENT_EXTRA_REG(0x4336, 0xffff, 0x18),