public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Dasaratharaman Chandramouli  <dasaratharaman.chandramouli@intel.com>
To: Jacob Pan <jacob.jun.pan@linux.intel.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>,
	Paul Mackerras <paulus@samba.org>, Ingo Molnar <mingo@redhat.com>,
	Arnaldo Carvalho de Melo <acme@kernel.org>,
	Thomas Gleixner <tglx@linutronix.de>,
	"H. Peter Anvin" <hpa@zytor.com>,
	x86@kernel.org, linux-kernel@vger.kernel.org,
	Nikhil Rao <nikhil.rao@intel.com>,
	Stephane Eranian <eranian@google.com>
Subject: Re: [PATCH] perf/x86/intel/rapl: Add support for Knights Landing (KNL)
Date: Mon, 22 Jun 2015 10:17:47 -0700	[thread overview]
Message-ID: <1434993467.13217.6.camel@localhost> (raw)
In-Reply-To: <20150529100631.763eaef5@icelake>

Ping. 

On Fri, 2015-05-29 at 10:06 -0700, Jacob Pan wrote:
> On Tue, 26 May 2015 11:47:39 -0700
> Dasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com>
> wrote:
> 
> > Knights Landing DRAM RAPL supports PKG and DRAM RAPL domains.
> > DRAM RAPL has a different fixed energy unit (2^-16J) similar to
> > that of HSW.
> > 
> Acked-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
> > Signed-off-by: Dasaratharaman Chandramouli
> > <dasaratharaman.chandramouli@intel.com> ---
> >  arch/x86/kernel/cpu/perf_event_intel_rapl.c | 20 ++++++++++++++++++++
> >  1 file changed, 20 insertions(+)
> > 
> > diff --git a/arch/x86/kernel/cpu/perf_event_intel_rapl.c
> > b/arch/x86/kernel/cpu/perf_event_intel_rapl.c index 999289b9..96633fb
> > 100644 --- a/arch/x86/kernel/cpu/perf_event_intel_rapl.c
> > +++ b/arch/x86/kernel/cpu/perf_event_intel_rapl.c
> > @@ -86,6 +86,10 @@ static const char
> > *rapl_domain_names[NR_RAPL_DOMAINS] __initconst =
> > { 1<<RAPL_IDX_RAM_NRG_STAT|\ 1<<RAPL_IDX_PP1_NRG_STAT)
> >  
> > +/* Knights Landing has PKG, RAM */
> > +#define RAPL_IDX_KNL	(1<<RAPL_IDX_PKG_NRG_STAT|\
> > +			 1<<RAPL_IDX_RAM_NRG_STAT)
> > +
> >  /*
> >   * event code: LSB 8 bits, passed in attr->config
> >   * any other bit is reserved
> > @@ -487,6 +491,18 @@ static struct attribute *rapl_events_hsw_attr[]
> > = { NULL,
> >  };
> >  
> > +static struct attribute *rapl_events_knl_attr[] = {
> > +	EVENT_PTR(rapl_pkg),
> > +	EVENT_PTR(rapl_ram),
> > +
> > +	EVENT_PTR(rapl_pkg_unit),
> > +	EVENT_PTR(rapl_ram_unit),
> > +
> > +	EVENT_PTR(rapl_pkg_scale),
> > +	EVENT_PTR(rapl_ram_scale),
> > +	NULL,
> > +};
> > +
> >  static struct attribute_group rapl_pmu_events_group = {
> >  	.name = "events",
> >  	.attrs = NULL, /* patched at runtime */
> > @@ -730,6 +746,10 @@ static int __init rapl_pmu_init(void)
> >  		rapl_cntr_mask = RAPL_IDX_SRV;
> >  		rapl_pmu_events_group.attrs = rapl_events_srv_attr;
> >  		break;
> > +	case 87: /* Knights Landing */
> > +		rapl_add_quirk(rapl_hsw_server_quirk);
> > +		rapl_cntr_mask = RAPL_IDX_KNL;
> > +		rapl_pmu_events_group.attrs = rapl_events_knl_attr;
> >  
> >  	default:
> >  		/* unsupported */
> 
> [Jacob Pan]


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
Please read the FAQ at  http://www.tux.org/lkml/

  reply	other threads:[~2015-06-22 17:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-26 18:47 [PATCH] perf/x86/intel/rapl: Add support for Knights Landing (KNL) Dasaratharaman Chandramouli
2015-05-29 11:55 ` Peter Zijlstra
2015-06-22 18:52   ` Stephane Eranian
2015-06-22 20:56     ` Dasaratharaman Chandramouli
2015-06-29 16:37       ` Dasaratharaman Chandramouli
2015-07-17 17:03         ` Dasaratharaman Chandramouli
2015-07-17 18:06   ` Stephane Eranian
2015-05-29 17:06 ` Jacob Pan
2015-06-22 17:17   ` Dasaratharaman Chandramouli [this message]
2015-08-04  8:51 ` [tip:perf/core] " tip-bot for Dasaratharaman Chandramouli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1434993467.13217.6.camel@localhost \
    --to=dasaratharaman.chandramouli@intel.com \
    --cc=a.p.zijlstra@chello.nl \
    --cc=acme@kernel.org \
    --cc=eranian@google.com \
    --cc=hpa@zytor.com \
    --cc=jacob.jun.pan@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=nikhil.rao@intel.com \
    --cc=paulus@samba.org \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox