* [PATCH 0/2] remoteproc: qcom_wcnss: Vote VDD_MX/VDD_PX again on pronto-v1/v2
@ 2026-12-02 13:49 Alexandre Rapaille via B4 Relay
2026-12-02 13:49 ` [PATCH 1/2] remoteproc: qcom_wcnss: Request the MX and PX regulators " Alexandre Rapaille via B4 Relay
2026-12-02 13:49 ` [PATCH 2/2] ARM: dts: qcom: msm8974: Use pronto-v1 for the WCNSS remoteproc Alexandre Rapaille via B4 Relay
0 siblings, 2 replies; 5+ messages in thread
From: Alexandre Rapaille via B4 Relay @ 2026-12-02 13:49 UTC (permalink / raw)
To: Bjorn Andersson, Mathieu Poirier, Val Packett, Konrad Dybcio,
Konrad Dybcio, Abel Vesa, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Luca Weiss
Cc: linux-arm-msm, linux-remoteproc, linux-kernel, devicetree,
Luca Weiss, Alexandre Rapaille, stable
Since commit 3dbc90b9c22e, qcom_wcnss no longer requests the MX and PX
regulators on pronto-v1/v2 when CX is a power domain (msm8974 today): it
asks for "vddcx" only and gets a dummy. Patch 1 restores the vote.
Patch 2 then makes msm8974 ask MX for its own range instead of the
msm8916 one, which pm8841_s1 rejects.
Tested on a Fairphone 2 with next-20261201 (plus Sasha's drm/msm build
fix [1], which it needs without IOMMU_API), same config each time, Wi-Fi
up at every boot:
WCNSS on pm8841_s1 s1 vote "unsupportable"
next-20261201 none (dummy vddcx only) 675 mV no
+ patch 1 vddmx (request rejected) 675 mV yes
+ patches 1-2 vddmx 950-1050 mV 950 mV no
With both patches, 10/10 reboots came up with the vote and Wi-Fi.
pronto-v3 (msm8917/8937/8953/8976) is not tested: no hardware here.
Its vregs list has no PD regulators, so it still takes the skip branch.
dtbs_check over the 14 msm8974/apq8074 DTBs gives the same output with
and without patch 2.
[1] https://lore.kernel.org/r/20261130141501.1793800-1-sashal@kernel.org
Signed-off-by: Alexandre Rapaille <arapaille@atlr-engineering.com>
---
Alexandre Rapaille (2):
remoteproc: qcom_wcnss: Request the MX and PX regulators on pronto-v1/v2
ARM: dts: qcom: msm8974: Use pronto-v1 for the WCNSS remoteproc
arch/arm/boot/dts/qcom/qcom-msm8974.dtsi | 2 +-
drivers/remoteproc/qcom_wcnss.c | 8 ++------
2 files changed, 3 insertions(+), 7 deletions(-)
---
base-commit: 20eef29b7c8465ac98d7dd6d6f2ac07a8d8056ca
change-id: 20261202-pronto-v1-send-2005bc307fa6
Best regards,
--
Alexandre Rapaille <arapaille@atlr-engineering.com>
^ permalink raw reply [flat|nested] 5+ messages in thread* [PATCH 1/2] remoteproc: qcom_wcnss: Request the MX and PX regulators on pronto-v1/v2
2026-12-02 13:49 [PATCH 0/2] remoteproc: qcom_wcnss: Vote VDD_MX/VDD_PX again on pronto-v1/v2 Alexandre Rapaille via B4 Relay
@ 2026-12-02 13:49 ` Alexandre Rapaille via B4 Relay
2026-12-02 13:49 ` [PATCH 2/2] ARM: dts: qcom: msm8974: Use pronto-v1 for the WCNSS remoteproc Alexandre Rapaille via B4 Relay
1 sibling, 0 replies; 5+ messages in thread
From: Alexandre Rapaille via B4 Relay @ 2026-12-02 13:49 UTC (permalink / raw)
To: Bjorn Andersson, Mathieu Poirier, Val Packett, Konrad Dybcio,
Konrad Dybcio, Abel Vesa, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Luca Weiss
Cc: linux-arm-msm, linux-remoteproc, linux-kernel, devicetree,
Luca Weiss, Alexandre Rapaille, stable
From: Alexandre Rapaille <arapaille@atlr-engineering.com>
The pronto-v3 check added by commit 3dbc90b9c22e ("remoteproc:
qcom_wcnss: Fix handling the lack of PD regulators in v3") compares the
number of power domain names with num_vregs, which counts only the
non-PD regulators. On pronto-v1/v2 that is 2 >= 1, so the PD regulators
are skipped there too: the driver requests only the first entry,
"vddcx" (a dummy when CX is a power domain), and never votes VDD_MX or
VDD_PX.
Only skip when the vregs list has no PD regulators. Reverting that commit
would bring back the pronto-v3 out-of-bounds read it fixed.
Fixes: 3dbc90b9c22e ("remoteproc: qcom_wcnss: Fix handling the lack of PD regulators in v3")
Cc: stable@vger.kernel.org
Signed-off-by: Alexandre Rapaille <arapaille@atlr-engineering.com>
---
drivers/remoteproc/qcom_wcnss.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/drivers/remoteproc/qcom_wcnss.c b/drivers/remoteproc/qcom_wcnss.c
index 02f38fe29f20..e73c4ed0b513 100644
--- a/drivers/remoteproc/qcom_wcnss.c
+++ b/drivers/remoteproc/qcom_wcnss.c
@@ -445,19 +445,15 @@ static int wcnss_init_regulators(struct qcom_wcnss *wcnss,
{
const struct wcnss_vreg_info *info = data->vregs;
struct regulator_bulk_data *bulk;
- size_t i, possible_pds = 0, num_vregs = data->num_vregs;
+ size_t i, num_vregs = data->num_vregs;
int ret;
- for (i = 0; i < WCNSS_MAX_PDS; i++)
- if (data->pd_names[i])
- possible_pds++;
-
/*
* If attaching the power domains suceeded we can skip requesting
* the regulators for the power domains. For old device trees we need to
* reserve extra space to manage them through the regulator interface.
*/
- if (possible_pds >= num_vregs) {
+ if (!data->num_pd_vregs) {
/* Do nothing if vregs do not include PD regulators (pronto-v3) */
} else if (wcnss->num_pds) {
info += wcnss->num_pds;
--
2.43.0
^ permalink raw reply [flat|nested] 5+ messages in thread* [PATCH 2/2] ARM: dts: qcom: msm8974: Use pronto-v1 for the WCNSS remoteproc
2026-12-02 13:49 [PATCH 0/2] remoteproc: qcom_wcnss: Vote VDD_MX/VDD_PX again on pronto-v1/v2 Alexandre Rapaille via B4 Relay
2026-12-02 13:49 ` [PATCH 1/2] remoteproc: qcom_wcnss: Request the MX and PX regulators " Alexandre Rapaille via B4 Relay
@ 2026-12-02 13:49 ` Alexandre Rapaille via B4 Relay
2026-12-02 13:53 ` Luca Weiss
1 sibling, 1 reply; 5+ messages in thread
From: Alexandre Rapaille via B4 Relay @ 2026-12-02 13:49 UTC (permalink / raw)
To: Bjorn Andersson, Mathieu Poirier, Val Packett, Konrad Dybcio,
Konrad Dybcio, Abel Vesa, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Luca Weiss
Cc: linux-arm-msm, linux-remoteproc, linux-kernel, devicetree,
Luca Weiss, Alexandre Rapaille
From: Alexandre Rapaille <arapaille@atlr-engineering.com>
The pronto-v2 data asks VDD_MX for a fixed 1.2875 V, the msm8916 value.
msm8974 boards cap pm8841_s1 at 1.05 V, so the vote fails with
"s1: unsupportable voltage range: 1287500-1050000uV".
The downstream msm8974 kernel asks 0.95-1.15 V, which is the pronto-v1
data. The two entries differ in nothing else. Changing the pronto-v2 data
instead would break older msm8916 DTs, which give it a real MX regulator.
Fixes: c7c0edecfba8 ("ARM: dts: msm8974: Introduce the wcnss remoteproc node")
Reported-by: Luca Weiss <luca@lucaweiss.eu>
Closes: https://github.com/msm8974-mainline/linux/issues/15
Signed-off-by: Alexandre Rapaille <arapaille@atlr-engineering.com>
---
arch/arm/boot/dts/qcom/qcom-msm8974.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/qcom/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom/qcom-msm8974.dtsi
index f300de74c47d..240e92a8618b 100644
--- a/arch/arm/boot/dts/qcom/qcom-msm8974.dtsi
+++ b/arch/arm/boot/dts/qcom/qcom-msm8974.dtsi
@@ -766,7 +766,7 @@ rng@f9bff000 {
};
pronto: remoteproc@fb204000 {
- compatible = "qcom,pronto-v2-pil", "qcom,pronto";
+ compatible = "qcom,pronto-v1-pil", "qcom,pronto";
reg = <0xfb204000 0x2000>, <0xfb202000 0x1000>, <0xfb21b000 0x3000>;
reg-names = "ccu", "dxe", "pmu";
--
2.43.0
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH 2/2] ARM: dts: qcom: msm8974: Use pronto-v1 for the WCNSS remoteproc
2026-12-02 13:49 ` [PATCH 2/2] ARM: dts: qcom: msm8974: Use pronto-v1 for the WCNSS remoteproc Alexandre Rapaille via B4 Relay
@ 2026-12-02 13:53 ` Luca Weiss
2026-12-02 14:01 ` Alexandre Rapaille
0 siblings, 1 reply; 5+ messages in thread
From: Luca Weiss @ 2026-12-02 13:53 UTC (permalink / raw)
To: arapaille, Bjorn Andersson, Mathieu Poirier, Val Packett,
Konrad Dybcio, Konrad Dybcio, Abel Vesa, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Luca Weiss, Alexandre Messier
Cc: linux-arm-msm, linux-remoteproc, linux-kernel, devicetree, Luca Weiss
Hi Alexandre,
On Wed Dec 2, 2026 at 2:49 PM CET, Alexandre Rapaille via B4 Relay wrote:
> From: Alexandre Rapaille <arapaille@atlr-engineering.com>
>
> The pronto-v2 data asks VDD_MX for a fixed 1.2875 V, the msm8916 value.
> msm8974 boards cap pm8841_s1 at 1.05 V, so the vote fails with
> "s1: unsupportable voltage range: 1287500-1050000uV".
>
> The downstream msm8974 kernel asks 0.95-1.15 V, which is the pronto-v1
> data. The two entries differ in nothing else. Changing the pronto-v2 data
> instead would break older msm8916 DTs, which give it a real MX regulator.
Thanks for looking into this and sending the patch!
> Fixes: c7c0edecfba8 ("ARM: dts: msm8974: Introduce the wcnss remoteproc node")
> Reported-by: Luca Weiss <luca@lucaweiss.eu>
Actually originally suggested by Alexandre Messier in
https://github.com/msm8974-mainline/linux/pull/12#discussion_r1527896241
:)
Regards
Luca
> Closes: https://github.com/msm8974-mainline/linux/issues/15
> Signed-off-by: Alexandre Rapaille <arapaille@atlr-engineering.com>
> ---
> arch/arm/boot/dts/qcom/qcom-msm8974.dtsi | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/boot/dts/qcom/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom/qcom-msm8974.dtsi
> index f300de74c47d..240e92a8618b 100644
> --- a/arch/arm/boot/dts/qcom/qcom-msm8974.dtsi
> +++ b/arch/arm/boot/dts/qcom/qcom-msm8974.dtsi
> @@ -766,7 +766,7 @@ rng@f9bff000 {
> };
>
> pronto: remoteproc@fb204000 {
> - compatible = "qcom,pronto-v2-pil", "qcom,pronto";
> + compatible = "qcom,pronto-v1-pil", "qcom,pronto";
> reg = <0xfb204000 0x2000>, <0xfb202000 0x1000>, <0xfb21b000 0x3000>;
> reg-names = "ccu", "dxe", "pmu";
>
^ permalink raw reply [flat|nested] 5+ messages in thread* RE: [PATCH 2/2] ARM: dts: qcom: msm8974: Use pronto-v1 for the WCNSS remoteproc
2026-12-02 13:53 ` Luca Weiss
@ 2026-12-02 14:01 ` Alexandre Rapaille
0 siblings, 0 replies; 5+ messages in thread
From: Alexandre Rapaille @ 2026-12-02 14:01 UTC (permalink / raw)
To: Luca Weiss, Bjorn Andersson, Mathieu Poirier, Val Packett,
Konrad Dybcio, Konrad Dybcio, Abel Vesa, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Luca Weiss, Alexandre Messier
Cc: linux-arm-msm, linux-remoteproc, linux-kernel, devicetree,
Alexandre Messier
> Actually originally suggested by Alexandre Messier in
> https://github.com/msm8974-mainline/linux/pull/12#discussion_r1527896241
Hello Luca,
Thanks, I missed that. Adding Alexandre in Cc.
Suggested-by: Alexandre Messier <alex@me.ssier.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-12-02 14:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-02 13:49 [PATCH 0/2] remoteproc: qcom_wcnss: Vote VDD_MX/VDD_PX again on pronto-v1/v2 Alexandre Rapaille via B4 Relay
2026-12-02 13:49 ` [PATCH 1/2] remoteproc: qcom_wcnss: Request the MX and PX regulators " Alexandre Rapaille via B4 Relay
2026-12-02 13:49 ` [PATCH 2/2] ARM: dts: qcom: msm8974: Use pronto-v1 for the WCNSS remoteproc Alexandre Rapaille via B4 Relay
2026-12-02 13:53 ` Luca Weiss
2026-12-02 14:01 ` Alexandre Rapaille
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®