public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] perf/x86/intel/uncore: Fix CHA registers configuration procedure for Knights Landing platform
@ 2016-05-06  8:59 hchrzani
  2016-05-06  9:54 ` Thomas Gleixner
  0 siblings, 1 reply; 7+ messages in thread
From: hchrzani @ 2016-05-06  8:59 UTC (permalink / raw)
  To: hubert.chrzaniuk, lukasz.anaczkowski, tglx, mingo, hpa, x86,
	peterz, kan.liang, vthakkar1994, bp, harish.chegondi, izumi.taku,
	linux-kernel
  Cc: Lawrence F Meadows

CHA events in Knights Landing platform require programming filter registers properly.
Before change, code lacked mandatory bitset operations for reserved bits.
As a result some events were not counted.

Fixes: 77af003 ('perf/x86/intel/uncore: Add Knights Landing uncore PMU support')
Signed-off-by: Hubert Chrzaniuk <hubert.chrzaniuk@intel.com>
Signed-off-by: Lawrence F Meadows <lawrence.f.meadows@intel.com>
---
 arch/x86/events/intel/uncore_snbep.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/x86/events/intel/uncore_snbep.c b/arch/x86/events/intel/uncore_snbep.c
index ab2bcaa..47d7216 100644
--- a/arch/x86/events/intel/uncore_snbep.c
+++ b/arch/x86/events/intel/uncore_snbep.c
@@ -1902,6 +1902,7 @@ static int knl_cha_hw_config(struct intel_uncore_box *box,
 		reg1->reg = HSWEP_C0_MSR_PMON_BOX_FILTER0 +
 			    KNL_CHA_MSR_OFFSET * box->pmu->pmu_idx;
 		reg1->config = event->attr.config1 & knl_cha_filter_mask(idx);
+		reg1->config |= 0x23ull << 32;
 		reg1->idx = idx;
 	}
 	return 0;
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-05-12 10:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-06  8:59 [PATCH] perf/x86/intel/uncore: Fix CHA registers configuration procedure for Knights Landing platform hchrzani
2016-05-06  9:54 ` Thomas Gleixner
2016-05-06 13:20   ` hchrzani
2016-05-07  5:47     ` Ingo Molnar
2016-05-09  7:36       ` [PATCH v3] perf/x86/intel/uncore: Fix CHA registers configuration Hubert Chrzaniuk
2016-05-09  7:36         ` [PATCH] perf/x86/intel/uncore: Fix CHA registers configuration procedure for Knights Landing platform Hubert Chrzaniuk
2016-05-12 10:33           ` [tip:perf/core] " tip-bot for hchrzani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox