From: Gilad Avidov <gavidov@codeaurora.org>
To: Stephen Boyd <sboyd@codeaurora.org>
Cc: Ankit Gupta <ankgupta@codeaurora.org>,
sdharia@codeaurora.org, ivan.ivanov@linaro.org,
svarbanov@mm-sol.com, rostedt@goodmis.org,
linux-arm-msm@vger.kernel.org, gregkh@linuxfoundation.org,
collinsd@codeaurora.org, osvaldob@codeaurora.org,
linux-kernel@vger.kernel.org, mlocke@codeaurora.org,
galak@codeaurora.org, agross@codeaurora.org
Subject: Re: [PATCH] spmi-pmic-arb: add irq tracepoints to the pmic-arb driver
Date: Fri, 29 May 2015 13:56:04 -0600 [thread overview]
Message-ID: <20150529135604.541eee30@gavidov-lnx.qualcomm.com> (raw)
In-Reply-To: <5567BDCF.6030709@codeaurora.org>
On Thu, 28 May 2015 18:15:59 -0700
Stephen Boyd <sboyd@codeaurora.org> wrote:
> On 05/28/2015 04:02 PM, Gilad Avidov wrote:
> > On Wed, 27 May 2015 13:06:29 -0700
> > Stephen Boyd <sboyd@codeaurora.org> wrote:
> >
> >> On 05/27, Ankit Gupta wrote:
> >>>> How is this any better than irq tracepoints that we already have
> >>>> for generic irqs?
> >>>>
> >>> It is better than generic irq tracepoints because it provides bus
> >>> specific information (sid and address(pid) of slave write), driver
> >>> specific information (apid (pmic-peripheral) and func_num) and
> >>> statistics (apid range).
> >>> Recall that *slave* read/write cannot be traced by the spmi
> >>> framework ftrace.
> >>>
> >> Don't we already get all this information based on how we map
> >> interrupts to devices in DT? It feels to me that the same
> >> argument here could be applied to all the random gpio expanders
> >> and chained interrupt controllers that we support in the kernel.
> >>
> > We don't.
> > We could get the same information if we had the irq-domain and
> > hw-irq 32bit value. While these values are available
> > from /proc/interrupt, they are not available from the irq event
> > tracing.
>
> Hm.. maybe we should add those trace events then into the irq domain
> layer? Or even extend the irq tracepoints to include the hw-irq and
> irq-domain name?
>
I agree, adding hw-irq and irq-domain name to irq-tracing is a better
idea.
> >
> > This patch traces spmi slave-originated events. If we had one such
> > slave we could cross information from both sources to filter the
> > trace events. However, we have hundreds of transaction-capable spmi
> > slaves.
> >
>
> Sorry I'm not following this point. If it was about tracing
> slave-originated events wouldn't it be more than irqs then?
>
Slave originated events are converted to irqs by the spmi controller.
Thanks,
Gilad
next prev parent reply other threads:[~2015-05-29 19:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-26 23:39 [PATCH] spmi-pmic-arb: add irq tracepoints to the pmic-arb driver Ankit Gupta
2015-05-26 23:44 ` Stephen Boyd
2015-05-27 15:06 ` Ankit Gupta
2015-05-27 20:06 ` Stephen Boyd
2015-05-28 23:02 ` Gilad Avidov
2015-05-29 1:15 ` Stephen Boyd
2015-05-29 19:56 ` Gilad Avidov [this message]
2015-05-26 23:58 ` Steven Rostedt
2015-05-27 15:09 ` Ankit Gupta
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=20150529135604.541eee30@gavidov-lnx.qualcomm.com \
--to=gavidov@codeaurora.org \
--cc=agross@codeaurora.org \
--cc=ankgupta@codeaurora.org \
--cc=collinsd@codeaurora.org \
--cc=galak@codeaurora.org \
--cc=gregkh@linuxfoundation.org \
--cc=ivan.ivanov@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mlocke@codeaurora.org \
--cc=osvaldob@codeaurora.org \
--cc=rostedt@goodmis.org \
--cc=sboyd@codeaurora.org \
--cc=sdharia@codeaurora.org \
--cc=svarbanov@mm-sol.com \
/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