From: Bjorn Andersson <bjorn.andersson@sonymobile.com>
To: Stephen Boyd <sboyd@codeaurora.org>
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>,
Kumar Gala <galak@codeaurora.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"broonie@kernel.org" <broonie@kernel.org>,
"lee.jones@linaro.org" <lee.jones@linaro.org>,
Rob Herring <robh+dt@kernel.org>, Pawel Moll <pawel.moll@arm.com>,
Mark Rutland <mark.rutland@arm.com>,
Ian Campbell <ijc+devicetree@hellion.org.uk>,
Russell King <linux@arm.linux.org.uk>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"arm@kernel.org" <arm@kernel.org>,
"linux-arm-msm@vger.kernel.org" <linux-arm-msm@vger.kernel.org>
Subject: Re: [PATCH 1/4] ARM: DT: apq8064: add rpm support
Date: Tue, 30 Sep 2014 12:00:24 -0700 [thread overview]
Message-ID: <20140930190023.GS28481@sonymobile.com> (raw)
In-Reply-To: <542AF5FE.1000006@codeaurora.org>
On Tue 30 Sep 11:27 PDT 2014, Stephen Boyd wrote:
> On 09/29/14 22:02, Bjorn Andersson wrote:
> > On Mon 29 Sep 15:17 PDT 2014, Stephen Boyd wrote:
> >
> >> On 09/29/14 02:14, Srinivas Kandagatla wrote:
> >>> @@ -246,6 +247,24 @@
> >>> #reset-cells = <1>;
> >>> };
> >>>
> >>> + apcs: syscon@2011000 {
> >>> + compatible = "syscon";
> >>> + reg = <0x2011000 0x1000>;
> >>> + };
> >> This is actually a clock controller block that hw designers decided was
> >> good place to shove the ipc bits (because there's room!). Can we call it
> >>
> >> l2cc: clock-controller@2011000 {
> >> compatible = "syscon";
> >> reg = <0x2011000 0x1000>;
> >> };
> >>
> >> Eventually I'll add the specific krait compatible when we merge krait
> >> clock support:
> >>
> >> l2cc: clock-controller@2011000 {
> >> compatible = "qcom,kpss-gcc", "syscon";
> >> reg = <0x2011000 0x1000>;
> >> clock-output-names = "acpu_l2_aux";
> >> };
> >>
> > As long as we can get hold of the regmap that would be fine. I pressume the
> > idea is to have the kpss-gcc using syscon, just like the rpm. But hopefully the
> > syscon patches that are floating around (merged?) will allow any driver to
> > expose a "syscon regmap".
>
> Agreed. I'm not sure if kpss-gcc will use syscon. With the floating
> patches I don't see a reason why we need to use it.
>
All we need is a regmap for the kpss-gcc, but the restriction that it has to be
a syscon is more of a implementation detail. But you probably don't want to
implement the phandle->regmap lookup code in kpss-gcc (and all the other
places) and if I understand the syscon improvements being suggested they are
supposed to help with exactly that (help any device expose regmaps).
Need to look into that again though.
> >
> >>> +
> >>> + rpm@108000 {
> >>> + compatible = "qcom,rpm-apq8064";
> >>> + reg = <0x108000 0x1000>;
> >>> + qcom,ipc = <&apcs 0x8 2>;
> >> There are actually 3 ipc bits. I guess if we ever have to use the other
> >> two we'll extend this binding to have the other bits specified some
> >> other way?
> > I haven't seen any indications of us using more than this bit. If we want to do
> > that, we could simply make it <&apcs 8 2 &apcs 8 3 &apcs 8 4> (or whatever
> > those indices are). That way this should be easy it keep compatible.
> >
>
> Good to hear we're not forced to use a new property. The indices have
> always been 2, 1, and 0 as far as I know.
>
> We use bit 1 to ack the RPM if it ever crashes. We know that it crashes
> because we receive the error interrupt. Instead of calling panic like we
> do downstream we can gracefully fail any new rpm requests. There really
> isn't any way to recover from this scenario though besides rebooting.
> Looking at the code I see this is all wrong and we use bit 2 to ack the
> error.
>
Hmm, seems I got that wrong, sorry about that.
But do you mean "all wrong" as in that I use the wrong bit or to some greater
extent? Currently all following requests should timeout, but maybe we should
have a faster fail-path when we've hit this point?
>From a practical pov I guess that once the rpm starts returning errors on
updates to regulators, root clocks and bus scaling then most of the system is
becoming useless.
Regards,
Bjorn
next prev parent reply other threads:[~2014-09-30 19:00 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-29 9:14 [PATCH 0/4] ARM: DT: apq8064 DT patches Srinivas Kandagatla
2014-09-29 9:14 ` [PATCH 1/4] ARM: DT: apq8064: add rpm support Srinivas Kandagatla
2014-09-29 22:17 ` Stephen Boyd
2014-09-30 5:02 ` Bjorn Andersson
2014-09-30 18:27 ` Stephen Boyd
2014-09-30 19:00 ` Bjorn Andersson [this message]
2014-09-30 19:13 ` Stephen Boyd
2014-09-30 19:56 ` Bjorn Andersson
2014-09-30 7:44 ` Srinivas Kandagatla
[not found] ` <1411982092-7922-1-git-send-email-srinivas.kandagatla-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2014-09-30 5:11 ` Bjorn Andersson
[not found] ` <20140930051138.GH28481-/MT0OVThwyLZJqsBc5GL+g@public.gmane.org>
2014-09-30 7:49 ` Srinivas Kandagatla
2014-09-29 9:15 ` [PATCH 2/4] ARM: DT: apq8064: Add usb host support Srinivas Kandagatla
[not found] ` <1411982100-7964-1-git-send-email-srinivas.kandagatla-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2014-09-30 5:17 ` Bjorn Andersson
2014-09-30 8:16 ` Srinivas Kandagatla
2014-09-29 9:15 ` [PATCH 3/4] ARM: DT: apq8064: Add USB OTG support Srinivas Kandagatla
2014-09-29 10:26 ` Kiran Padwal
2014-09-29 10:53 ` Mark Rutland
2014-09-29 11:27 ` Srinivas Kandagatla
2014-09-29 9:15 ` [PATCH 4/4] ARM: DT: apq8064: Add SATA controller support Srinivas Kandagatla
2014-09-29 22:20 ` Stephen Boyd
[not found] ` <5429DB3D.5080701-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2014-09-30 8:18 ` Srinivas Kandagatla
2014-09-30 14:09 ` [PATCH v2 0/4] ARM: dts: apq8064 DT patches Srinivas Kandagatla
2014-09-30 14:09 ` [PATCH v2 1/4] ARM: dts: apq8064: add RPM regulators support Srinivas Kandagatla
2014-09-30 15:14 ` Bjorn Andersson
2014-09-30 15:48 ` Srinivas Kandagatla
2014-09-30 14:09 ` [PATCH v2 2/4] ARM: dts: apq8064: Add usb host support Srinivas Kandagatla
2014-09-30 14:10 ` [PATCH v2 3/4] ARM: dts: apq8064: Add USB OTG support Srinivas Kandagatla
2014-09-30 14:10 ` [PATCH v2 4/4] ARM: dts: apq8064: Add SATA controller support Srinivas Kandagatla
2014-09-30 18:45 ` [PATCH v2 0/4] ARM: dts: apq8064 DT patches Kevin Hilman
2014-10-01 9:05 ` [PATCH v3 " Srinivas Kandagatla
[not found] ` <1412154355-2639-1-git-send-email-srinivas.kandagatla-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2014-10-01 9:06 ` [PATCH v3 1/4] ARM: dts: apq8064: add RPM regulators support Srinivas Kandagatla
2014-10-01 9:06 ` [PATCH v3 4/4] ARM: dts: apq8064: Add SATA controller support Srinivas Kandagatla
2014-10-01 9:06 ` [PATCH v3 2/4] ARM: dts: apq8064: Add usb host support Srinivas Kandagatla
2014-10-01 9:06 ` [PATCH v3 3/4] ARM: dts: apq8064: Add USB OTG support Srinivas Kandagatla
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=20140930190023.GS28481@sonymobile.com \
--to=bjorn.andersson@sonymobile.com \
--cc=arm@kernel.org \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=ijc+devicetree@hellion.org.uk \
--cc=lee.jones@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=mark.rutland@arm.com \
--cc=pawel.moll@arm.com \
--cc=robh+dt@kernel.org \
--cc=sboyd@codeaurora.org \
--cc=srinivas.kandagatla@linaro.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).