Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Will Deacon <will.deacon@arm.com>
To: Julien Thierry <julien.thierry@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>,
	Peter Zijlstra <peterz@infradead.org>,
	Catalin Marinas <catalin.marinas@arm.com>,
	Jiri Olsa <jolsa@redhat.com>,
	Arnaldo Carvalho de Melo <acme@kernel.org>,
	Alexander Shishkin <alexander.shishkin@linux.intel.com>,
	Ingo Molnar <mingo@redhat.com>,
	huawei.libin@huawei.com, guohanjun@huawei.com,
	Namhyung Kim <namhyung@kernel.org>,
	liwei391@huawei.com, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] arm64: perf: Do not write event type for cycle counter
Date: Wed, 3 Apr 2019 14:54:05 +0100	[thread overview]
Message-ID: <20190403135405.GB16611@fuggles.cambridge.arm.com> (raw)
In-Reply-To: <2e42ec1f-cc16-d33b-5419-4407c1075d6a@arm.com>

On Wed, Apr 03, 2019 at 08:26:20AM +0100, Julien Thierry wrote:
> On 03/04/2019 04:10, Mark Rutland wrote:
> > On Tue, Apr 02, 2019 at 04:42:58PM +0100, Julien Thierry wrote:
> >> On 01/04/2019 09:02, Mark Rutland wrote:
> >>> On Thu, Mar 28, 2019 at 09:49:05AM +0000, Julien Thierry wrote:
> >> Now, I'm thinking what we need is to use a different mask than
> >> EVTYPE_MASK (one that excludes the event bits) when setting
> >> PMCCFILTR_EL0, but still do that when enabling an event using the cycle
> >> counter.
> >>
> >> Does that approach sound correct? Or am I missing something that would
> >> allow us to only set that upon reset?
> > 
> > That sounds right to me!
> > 
> > It would perhaps be nicer if we could configure event->hwc.config_base to be
> > the raw register value in all cases, but it looks like that's going to be more
> > painful than special-casing the cycle counter here.
> > 
> 
> Right, I'm gonna need to special case the cycle counter to adapt the
> event type writing to this patch[1]. But since this is not as
> critical/beneficial as I initially thought, I'll just incorporate the
> special-casing to the PMU interrupt as NMI series.

I'm confused as to what we're actually fixing here. PMCCFILTR_EL0 and
PMEVTYPER<n>_EL0 have the same layout, modulo some RES0 bits, so the
existing code should work fine afaict.

What's the problem?

Will

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2019-04-03 13:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-28  9:49 [PATCH] arm64: perf: Do not write event type for cycle counter Julien Thierry
2019-04-01  8:02 ` Mark Rutland
2019-04-02 15:42   ` Julien Thierry
2019-04-03  3:10     ` Mark Rutland
2019-04-03  7:26       ` Julien Thierry
2019-04-03 13:54         ` Will Deacon [this message]
2019-04-03 14:09           ` Julien Thierry

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=20190403135405.GB16611@fuggles.cambridge.arm.com \
    --to=will.deacon@arm.com \
    --cc=acme@kernel.org \
    --cc=alexander.shishkin@linux.intel.com \
    --cc=catalin.marinas@arm.com \
    --cc=guohanjun@huawei.com \
    --cc=huawei.libin@huawei.com \
    --cc=jolsa@redhat.com \
    --cc=julien.thierry@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=liwei391@huawei.com \
    --cc=mark.rutland@arm.com \
    --cc=mingo@redhat.com \
    --cc=namhyung@kernel.org \
    --cc=peterz@infradead.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