From: Bjorn Andersson <bjorn@kryo.se>
To: Georgi Djakov <georgi.djakov@linaro.org>
Cc: sboyd@codeaurora.org, agross@codeaurora.org,
mturquette@baylibre.com, linux-clk@vger.kernel.org,
bjorn.andersson@sonymobile.com, linux-kernel@vger.kernel.org,
linux-arm-msm@vger.kernel.org
Subject: Re: [PATCH v5 1/6] clk: qcom: Add support for SMD-RPM Clocks
Date: Sun, 27 Dec 2015 18:08:09 -0800 [thread overview]
Message-ID: <20151228020809.GB16437@tuxbot> (raw)
In-Reply-To: <1449151376-25930-2-git-send-email-georgi.djakov@linaro.org>
On Thu 03 Dec 06:02 PST 2015, Georgi Djakov wrote:
> This adds initial support for clocks controlled by the Resource
> Power Manager (RPM) processor on some Qualcomm SoCs, which use
> the qcom_smd_rpm driver to communicate with RPM.
> Such platforms are msm8916, apq8084 and msm8974.
>
> The RPM is a dedicated hardware engine for managing the shared
> SoC resources in order to keep the lowest power profile. It
> communicates with other hardware subsystems via shared memory
> and accepts clock requests, aggregates the requests and turns
> the clocks on/off or scales them on demand.
>
> This driver is based on the codeaurora.org driver:
> https://www.codeaurora.org/cgit/quic/la/kernel/msm-3.10/tree/drivers/clk/qcom/clock-rpm.c
>
> Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
Hi Georgi,
I added the 8974 clocks to this to make the WNCSS core happy (need
CXO_A2 for XO calibration), but I have a few issues:
*) msm_serial acquires a handle to GCC_BLSP1_UART2_APPS_CLK which is
parented by "xo"; the clock framework returns a clock, as the gcc driver
is probed, but as the rpmcc driver isn't probed clk_get_rate() returns
0.
Do you have any patches in your tree to fix the ordering or making the
clk_get() implement probe deferral in this case?
*) If I let the code call clk_smd_rpm_enable_scaling() my eMMC becomes
very unstable, with a rather high occurrence of timeouts during boot
(like 80% of boots fail to mount my rootfs).
Part of these (unrelated to your code) issues I think this looks good,
and hacking around these two issues allows me to get CXO_A2 ticking :)
Regards,
Bjorn
next prev parent reply other threads:[~2015-12-28 2:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-03 14:02 [PATCH v5 0/6] Add initial support for RPM clocks Georgi Djakov
2015-12-03 14:02 ` [PATCH v5 1/6] clk: qcom: Add support for SMD-RPM Clocks Georgi Djakov
2015-12-07 10:42 ` Georgi Djakov
2015-12-28 2:08 ` Bjorn Andersson [this message]
2015-12-03 14:02 ` [PATCH v5 2/6] arm64: dts: qcom: msm8916: Add fixed rate on-board oscillators Georgi Djakov
2015-12-03 14:02 ` [PATCH v5 3/6] arm64: dts: qcom: msm8916: Add RPMCC DT node Georgi Djakov
2015-12-03 14:02 ` [PATCH v5 4/6] clk: qcom: Add support for RPM Clocks Georgi Djakov
2015-12-03 14:02 ` [PATCH v5 5/6] arm: dts: qcom: apq8064: Add fixed rate on-board oscillators Georgi Djakov
2015-12-03 14:02 ` [PATCH v5 6/6] arm: dts: qcom: apq8064: Add RPMCC DT node Georgi Djakov
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=20151228020809.GB16437@tuxbot \
--to=bjorn@kryo.se \
--cc=agross@codeaurora.org \
--cc=bjorn.andersson@sonymobile.com \
--cc=georgi.djakov@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=sboyd@codeaurora.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).