From: Sven Eckelmann <seckelmann@datto.com>
To: ath11k@lists.infradead.org, Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Rob Herring <robh@kernel.org>,
Sricharan R <sricharan@codeaurora.org>,
Kalle Valo <kvalo@codeaurora.org>
Subject: Re: [PATCH] ath11k: add driver [q6_rproc DTS property)
Date: Mon, 08 Apr 2019 19:42:24 +0200 [thread overview]
Message-ID: <1698032.ruk2XY5Ikj@bentobox> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 3595 bytes --]
On Tuesday, 5 February 2019 17:22:34 CEST Kalle Valo wrote:
> Initial commit for ath11k, Qualcomm 802.11ax driver.
>
> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
> ---
[...]
> +int ath11k_core_init(struct ath11k_base *sc)
> +{
> + struct device *dev = sc->dev;
> + struct rproc *prproc;
> + phandle rproc_phandle;
> + int ret;
> +
> +#ifndef CONFIG_IPQ_SUBSYSTEM_RESTART
> + if (of_property_read_u32(dev->of_node, "q6_rproc", &rproc_phandle)) {
> + ath11k_err(sc, "failed to get q6_rproc handle\n");
> + return -ENOENT;
> + }
> +
> + prproc = rproc_get_by_phandle(rproc_phandle);
> + if (!prproc) {
> + ath11k_err(sc, "failed to get rproc\n");
> + return -EINVAL;
> + }
> + sc->tgt_rproc = prproc;
> +#endif
> +
What is this q6_rproc DTS property (and why doesn't have it a qcom, prefix and
not just called qcom,rproc)? I cannot find a public use of this and there also
doesn't seem to be documentation for it. Still it is required to bring up the
device without IPQ_SUBSYSTEM_RESTART (which is not available in the upstream
kernel) but with remoteproc.
The first reference I could find this in your internal linux-msm [1] was also
in this driver. There were also some function named similar in the q6v6 adsp/
q6v5 wcss driver [2] but no actual use in a dts or documentation. A wcss pil
driver for remoteproc seems to be upstream now [3] but it isn't used
anywhere.
Back to your QCA kernel to try out the remoteproc based image loading code
(which I wanted to use to check if there is a difference regarding the BDF
loading problem mentioned in the other mail):
I have now tried to set it to q6v5_wcss (compatible qca,q6v5-wcss-rproc)
for your internal 4.4 tree
--- linux-4.4.60.orig/arch/arm64/boot/dts/qcom/qcom-ipq807x-soc.dtsi
+++ linux-4.4.60/arch/arm64/boot/dts/qcom/qcom-ipq807x-soc.dtsi
@@ -1741,7 +1741,8 @@
};
wifi0: wifi@c0000000 {
- compatible = "qcom,cnss-qca8074";
+ compatible = "qcom,ipq8074-wifi";
+ q6_rproc = <&q6v5_wcss>;
reg = <0xc000000 0x2000000>;
qcom,hw-mode-id = <1>;
qcom,tgt-mem-mode = <0>;
But this one is not accepted as rproc. Problem is that start_q6 isn't
called (which would register it as rproc). Without this, it will not come
find the rproc and thus stop the startup of the ath11k driver. Unsure who is
responsible here to call the subsys_desc.powerup because subsystem_restart.c
is the only thing implementing this code (but it is depending on
CONFIG_IPQ_SUBSYSTEM_RESTART - the thing which was disabled here to have the
rproc code path for image loading).
Btw. there is also q6v5_m3 - unsure whether this is also related. But its
start_m3 is also not called.
As as start, it would be good to know first what q6_rproc should refer to.
Kind regards,
Sven
[1] https://source.codeaurora.org/quic/cc-qrdk/oss/kernel/linux-msm/
[2] https://source.codeaurora.org/quic/cc-qrdk/oss/kernel/linux-msm/commit/?id=e421b7cd70b302e1f19cba6c9f2b88a38e20e9a0
https://source.codeaurora.org/quic/cc-qrdk/oss/kernel/linux-msm/commit/?id=184547bc8366dcf30e4b162d7f54d709e827331a
https://source.codeaurora.org/quic/cc-qrdk/oss/kernel/linux-msm/commit/?id=251c755e69dfebd6144ab25965c8f869d6f2472f
https://source.codeaurora.org/quic/cc-qrdk/oss/kernel/linux-msm/commit/?id=ae52a5c5c01c687370cabc2e462dd86d243619cb
https://source.codeaurora.org/quic/cc-qrdk/oss/kernel/linux-msm/commit/?id=d7dce7a374bad6dd5c7db5bc772b14745f8aaf53
[3] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3a3d4163e0bfde184ffbc54c887f5b1ec9969c90
[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
[-- Attachment #2: Type: text/plain, Size: 146 bytes --]
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
next reply other threads:[~2019-04-08 17:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-08 17:42 Sven Eckelmann [this message]
2019-04-10 7:33 ` [PATCH] ath11k: add driver [q6_rproc DTS property) Sven Eckelmann
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=1698032.ruk2XY5Ikj@bentobox \
--to=seckelmann@datto.com \
--cc=ath11k@lists.infradead.org \
--cc=bjorn.andersson@linaro.org \
--cc=kvalo@codeaurora.org \
--cc=robh@kernel.org \
--cc=sricharan@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.