linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Will Deacon <will.deacon@arm.com>
To: Zhi Li <lznuaa@gmail.com>
Cc: "mark.rutland@arm.com" <mark.rutland@arm.com>,
	Aisheng Dong <aisheng.dong@nxp.com>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"andrew.smirnov@gmail.com" <andrew.smirnov@gmail.com>,
	"festevam@gmail.com" <festevam@gmail.com>,
	"s.hauer@pengutronix.de" <s.hauer@pengutronix.de>,
	Frank Li <frank.li@nxp.com>,
	"robh+dt@kernel.org" <robh+dt@kernel.org>,
	dl-linux-imx <linux-imx@nxp.com>,
	"kernel@pengutronix.de" <kernel@pengutronix.de>,
	"shawnguo@kernel.org" <shawnguo@kernel.org>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH V12 2/4] drivers/perf: imx_ddr: Add ddr performance counter support
Date: Tue, 18 Jun 2019 18:58:23 +0100	[thread overview]
Message-ID: <20190618175823.GJ4270@fuggles.cambridge.arm.com> (raw)
In-Reply-To: <CAHrpEqR+3LETyDosyRq=SBDC=g3tkm72vg-f=550H+TTVLbmcQ@mail.gmail.com>

On Tue, Jun 18, 2019 at 12:24:19PM -0500, Zhi Li wrote:
> On Fri, Jun 14, 2019 at 5:23 AM Will Deacon <will.deacon@arm.com> wrote:
> >
> > On Thu, Jun 13, 2019 at 02:13:20PM -0500, Zhi Li wrote:
> > > On Thu, Jun 13, 2019 at 12:44 PM Will Deacon <will.deacon@arm.com> wrote:
> > > >
> > > > On Thu, Jun 13, 2019 at 12:04:37PM -0500, Zhi Li wrote:
> > > > > On Thu, Jun 13, 2019 at 6:23 AM Will Deacon <will.deacon@arm.com> wrote:
> > > > > >
> > > > > > On Wed, May 01, 2019 at 06:43:29PM +0000, Frank Li wrote:
> > > > > > > Add ddr performance monitor support for iMX8QXP
> > > > > > >
> > > > > > > There are 4 counters for ddr perfomance events.
> > > > > > > counter 0 is dedicated for cycles.
> > > > > > > you choose any up to 3 no cycles events.
> > > > > > >
> > > > > > > for example:
> > > > > > >
> > > > > > > perf stat -a -e imx8_ddr0/read-cycles/,imx8_ddr0/write-cycles/,imx8_ddr0/precharge/ ls
> > > > > > > perf stat -a -e imx8_ddr0/cycles/,imx8_ddr0/read-access/,imx8_ddr0/write-access/ ls
> > > > > >
> > > > > > I've pushed patches 1, 2 and 4 out with some minor tweaks to:
> > > > > >
> > > > > > https://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git/log/?h=for-next/perf
> > > > > >
> > > > > > I'll leave the actual .dts change to go via the soc tree, since last time
> > > > > > I took one of those it just resulted in conflicts.
> > > > > >
> > > > > > Frank, Andrey: Please could you try to run the perf fuzzer on this before
> > > > > > it lands in mainline? It has a good track record of finding nasty PMU driver
> > > > > > bugs, but it obviously requires access to hardware which implements the PMU:
> > > > > >
> > > > > > http://web.eece.maine.edu/~vweaver/projects/perf_events/fuzzer/
> > > > >
> > > > > Okay, how long should be run generally?
> > > > > I need make sure it can pass without my patches at our platform.
> > > >
> > > > As you long as you can really, but if it survives a few hours that's usually
> > > > a good sign. Overnight is even better.
> > >
> > > Base on commit f2c7c76c5d0a443053e94adb9f0918fa2fb85c3a
> > > Author: Linus Torvalds <torvalds@linux-foundation.org>
> > > Date:   Sun Jun 2 13:55:33 2019 -0700
> > >
> > >     Linux 5.2-rc3
> > >
> > > RCU report problem:
> > >
> > > [ 6048.741784] rcu: INFO: rcu_preempt self-detected stall on CPU
> > > [ 6048.747550] rcu:     1-....: (5249 ticks this GP)
> > > idle=c5a/1/0x4000000000000004 softirq=503121/503121 fqs=2425
> > > [ 6048.757384]  (t=5253 jiffies g=1416105 q=117)
> > > [ 6048.761745] Task dump for CPU 1:
> > > [ 6048.764977] perf_fuzzer     R  running task        0 32520    426 0x00000202
> > > [ 6048.772030] Call trace:
> > > [ 6048.774493]  dump_backtrace+0x0/0x130
> > > [ 6048.778159]  show_stack+0x14/0x20
> > > [ 6048.781477]  sched_show_task+0x108/0x138
> > > [ 6048.785401]  dump_cpu_task+0x40/0x4c
> > > [ 6048.788983]  rcu_dump_cpu_stacks+0x94/0xd0
> > > [ 6048.793082]  rcu_sched_clock_irq+0x5e0/0x918
> > > [ 6048.797357]  update_process_times+0x2c/0x70
> > > [ 6048.801545]  tick_sched_handle.isra.6+0x3c/0x50
> > > [ 6048.806076]  tick_sched_timer+0x48/0x98
> > > [ 6048.809918]  __hrtimer_run_queues+0x118/0x1a8
> > > [ 6048.814277]  hrtimer_interrupt+0xe4/0x238
> > > [ 6048.818296]  arch_timer_handler_phys+0x2c/0x38
> > > [ 6048.822743]  handle_percpu_devid_irq+0x80/0x140
> > > [ 6048.827277]  generic_handle_irq+0x24/0x38
> >
> > This is the timer interrupt which prompts the RCU splat. Do you have
> > information about where the CPU was when the interrupt occurred?
> >
> > In the meantime, it's still worth leaving the fuzzer running to see what
> > else it finds.
> 
> Overnight test done, only above rcu problem happen at both with and
> without ddr perf patches.

Great, thanks for giving it a go.

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-06-18 17:58 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-01 18:43 [PATCH V12 1/4] dt-bindings: perf: imx8-ddr: add imx8qxp ddr performance monitor Frank Li
2019-05-01 18:43 ` [PATCH V12 2/4] drivers/perf: imx_ddr: Add ddr performance counter support Frank Li
2019-05-07 19:30   ` Andrey Smirnov
2019-05-14 13:53     ` Zhi Li
2019-05-14 14:55       ` Will Deacon
2019-06-13 11:23   ` Will Deacon
2019-06-13 17:04     ` Zhi Li
2019-06-13 17:44       ` Will Deacon
2019-06-13 19:13         ` Zhi Li
2019-06-14 10:23           ` Will Deacon
2019-06-18 17:24             ` Zhi Li
2019-06-18 17:58               ` Will Deacon [this message]
2019-05-01 18:43 ` [PATCH V12 3/4] arm64: dts: imx8qxp: added ddr performance monitor nodes Frank Li
2019-06-18  6:37   ` Shawn Guo
2019-05-01 18:43 ` [PATCH V12 4/4] MAINTAINERS: Added imx DDR performonitor driver maintainer information Frank Li

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=20190618175823.GJ4270@fuggles.cambridge.arm.com \
    --to=will.deacon@arm.com \
    --cc=aisheng.dong@nxp.com \
    --cc=andrew.smirnov@gmail.com \
    --cc=devicetree@vger.kernel.org \
    --cc=festevam@gmail.com \
    --cc=frank.li@nxp.com \
    --cc=kernel@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-imx@nxp.com \
    --cc=lznuaa@gmail.com \
    --cc=mark.rutland@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=s.hauer@pengutronix.de \
    --cc=shawnguo@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;
as well as URLs for NNTP newsgroup(s).