From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
To: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Abel Vesa <abelvesa@kernel.org>,
Stephan Gerhold <stephan@gerhold.net>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@somainline.org>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>,
Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
Clark Williams <clrkwllms@kernel.org>,
Steven Rostedt <rostedt@goodmis.org>,
Ilia Lin <ilialin@codeaurora.org>
Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-rt-devel@lists.linux.dev
Subject: Re: [PATCH 2/3] soc: qcom: spm: don't clobber the SAW control registers
Date: Tue, 20 Oct 2026 08:03:23 +0200 [thread overview]
Message-ID: <bbfb11f6-0a8a-4952-b372-fa3782c96aef@oss.qualcomm.com> (raw)
In-Reply-To: <20261019-fix-qcom-saw-v1-2-9c7ba3fc2493@oss.qualcomm.com>
On 10/19/26 4:39 PM, Dmitry Baryshkov wrote:
> The SAWv4.1 and SAWv2.3 register tables have no sequence entry, so
> probe copies the all-zero sequence buffer to offset 0 instead, wiping
> the SPM_CTL, SPM_DLY and SAW_CFG values the boot firmware programmed.
> On MSM8998 the firmware then still powers the gold cluster down once
> its last CPU goes offline, but never brings it back: PSCI CPU_ON leaves
> the first CPU pending and the SoC hangs or resets.
>
> Only write the sequence when the SAW has a sequence entry, like the
> other registers.
>
> Fixes: 13e72c3e2261 ("soc: qcom: spm: Implement support for SAWv4.1, SDM630/660 L2 AVS")
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Konrad
> drivers/soc/qcom/spm.c | 8 +++++---
> 1 file changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/soc/qcom/spm.c b/drivers/soc/qcom/spm.c
> index d41c94d32b51..6f2f14eb9022 100644
> --- a/drivers/soc/qcom/spm.c
> +++ b/drivers/soc/qcom/spm.c
> @@ -528,9 +528,11 @@ static int spm_dev_probe(struct platform_device *pdev)
> platform_set_drvdata(pdev, drv);
>
> /* Write the SPM sequences first.. */
> - addr = drv->reg_base + drv->reg_data->reg_offset[SPM_REG_SEQ_ENTRY];
> - __iowrite32_copy(addr, drv->reg_data->seq,
> - ARRAY_SIZE(drv->reg_data->seq) / 4);
> + if (drv->reg_data->reg_offset[SPM_REG_SEQ_ENTRY]) {
> + addr = drv->reg_base + drv->reg_data->reg_offset[SPM_REG_SEQ_ENTRY];
> + __iowrite32_copy(addr, drv->reg_data->seq,
> + ARRAY_SIZE(drv->reg_data->seq) / 4);
> + }
>
> /*
> * ..and then the control registers.
>
next prev parent reply other threads:[~2026-10-20 6:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-19 14:39 [PATCH 0/3] soc: qcom: several fixes for SAW handling Dmitry Baryshkov
2026-10-19 14:39 ` [PATCH 1/3] soc: qcom: spm: fix the SDM660 silver L2 AVS control value Dmitry Baryshkov
2026-10-20 5:52 ` Konrad Dybcio
2026-10-19 14:39 ` [PATCH 2/3] soc: qcom: spm: don't clobber the SAW control registers Dmitry Baryshkov
2026-10-20 6:03 ` Konrad Dybcio [this message]
2026-10-19 14:39 ` [PATCH 3/3] regulator: qcom_spmi: don't take a sleeping lock in the SAW IPI Dmitry Baryshkov
2026-10-20 6:08 ` Konrad Dybcio
2026-10-19 16:24 ` [PATCH 0/3] soc: qcom: several fixes for SAW handling Mark Brown
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=bbfb11f6-0a8a-4952-b372-fa3782c96aef@oss.qualcomm.com \
--to=konrad.dybcio@oss.qualcomm.com \
--cc=abelvesa@kernel.org \
--cc=andersson@kernel.org \
--cc=angelogioacchino.delregno@somainline.org \
--cc=bigeasy@linutronix.de \
--cc=broonie@kernel.org \
--cc=clrkwllms@kernel.org \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=ilialin@codeaurora.org \
--cc=konradybcio@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rt-devel@lists.linux.dev \
--cc=rostedt@goodmis.org \
--cc=stephan@gerhold.net \
/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
all inboxes | Powered by JetHome®