Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1426474

RE: [PATCH 1/1] perf/x86/intel: Add extended event constraints for Knights Landing

From "Odzioba, Lukasz" <lukasz.odzioba@intel.com>
Newsgroups linux.kernel
Subject RE: [PATCH 1/1] perf/x86/intel: Add extended event constraints for Knights Landing
Date 2016-06-20 12:40 +0200
Message-ID <rM4Mx-73V-1@gated-at.bofh.it> (permalink)
References <rHCYx-3wB-1@gated-at.bofh.it> <rHFto-4Z9-45@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 08.06.2016 Peter Zijlstra wrote:
> How does this work in the light of intel_alt_er() ?

Hi Peter,

If the constrained bit is valid on only one of the OCR MSRs (like in case of KNL), 
then OCR valid mask will forbid altering it by the other MSR in intel_alt_er.

If constrained bit is valid on both OCR MSR, so it can be safely altered by 
intel_alt_er, but in this case it should be defined twice - for each MSR i.e:

INTEL_EEVENT_CONSTRAINT(0x01b7, 0, 0x1); // bit0 can be used only on PMC0
INTEL_EEVENT_CONSTRAINT(0x02b7, 0, 0x1); // bit0 can be used only on PMC0

I hope that answers your question. 

Thanks,
Lukas

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

RE: [PATCH 1/1] perf/x86/intel: Add extended event constraints for  Knights Landing "Odzioba, Lukasz" <lukasz.odzioba@intel.com> - 2016-06-20 12:40 +0200
  Re: [PATCH 1/1] perf/x86/intel: Add extended event constraints for  Knights Landing Peter Zijlstra <peterz@infradead.org> - 2016-06-21 12:40 +0200

csiph-web