* [PATCH] soc: qcom: rpmh-rsc: Unconditionally clear _TRIGGER bit for TCS
@ 2025-08-25 6:23 Sneh Mankad
2025-09-01 19:49 ` Bjorn Andersson
0 siblings, 1 reply; 2+ messages in thread
From: Sneh Mankad @ 2025-08-25 6:23 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Douglas Anderson, Maulik Shah,
Stephen Boyd
Cc: linux-arm-msm, linux-kernel, Sneh Mankad
Unconditionally clear the TCS_AMC_MODE_TRIGGER bit when a
transaction completes. Previously this bit was only cleared when
a wake TCS was borrowed as an AMC TCS but not for dedicated
AMC TCS. Leaving this bit set for AMC TCS and entering deeper low
power modes can generate a false completion IRQ.
Prevent this scenario by always clearing the TCS_AMC_MODE_TRIGGER
bit upon receiving a completion IRQ.
Fixes: 15b3bf61b8d4 ("soc: qcom: rpmh-rsc: Clear active mode configuration for wake TCS")
Signed-off-by: Sneh Mankad <sneh.mankad@oss.qualcomm.com>
---
drivers/soc/qcom/rpmh-rsc.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/drivers/soc/qcom/rpmh-rsc.c b/drivers/soc/qcom/rpmh-rsc.c
index fdab2b1067dbb13efbbef5cc3ef795a65fc2d6a1..c6f7d5c9c493d9e06c048930b8a14a38660df4b1 100644
--- a/drivers/soc/qcom/rpmh-rsc.c
+++ b/drivers/soc/qcom/rpmh-rsc.c
@@ -453,13 +453,10 @@ static irqreturn_t tcs_tx_done(int irq, void *p)
trace_rpmh_tx_done(drv, i, req);
- /*
- * If wake tcs was re-purposed for sending active
- * votes, clear AMC trigger & enable modes and
+ /* Clear AMC trigger & enable modes and
* disable interrupt for this TCS
*/
- if (!drv->tcs[ACTIVE_TCS].num_tcs)
- __tcs_set_trigger(drv, i, false);
+ __tcs_set_trigger(drv, i, false);
skip:
/* Reclaim the TCS */
write_tcs_reg(drv, drv->regs[RSC_DRV_CMD_ENABLE], i, 0);
---
base-commit: c17b750b3ad9f45f2b6f7e6f7f4679844244f0b9
change-id: 20250818-rpmh_rsc_change-a43e43ac48aa
Best regards,
--
Sneh Mankad <sneh.mankad@oss.qualcomm.com>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] soc: qcom: rpmh-rsc: Unconditionally clear _TRIGGER bit for TCS
2025-08-25 6:23 [PATCH] soc: qcom: rpmh-rsc: Unconditionally clear _TRIGGER bit for TCS Sneh Mankad
@ 2025-09-01 19:49 ` Bjorn Andersson
0 siblings, 0 replies; 2+ messages in thread
From: Bjorn Andersson @ 2025-09-01 19:49 UTC (permalink / raw)
To: Konrad Dybcio, Douglas Anderson, Maulik Shah, Stephen Boyd,
Sneh Mankad
Cc: linux-arm-msm, linux-kernel
On Mon, 25 Aug 2025 11:53:50 +0530, Sneh Mankad wrote:
> Unconditionally clear the TCS_AMC_MODE_TRIGGER bit when a
> transaction completes. Previously this bit was only cleared when
> a wake TCS was borrowed as an AMC TCS but not for dedicated
> AMC TCS. Leaving this bit set for AMC TCS and entering deeper low
> power modes can generate a false completion IRQ.
>
> Prevent this scenario by always clearing the TCS_AMC_MODE_TRIGGER
> bit upon receiving a completion IRQ.
>
> [...]
Applied, thanks!
[1/1] soc: qcom: rpmh-rsc: Unconditionally clear _TRIGGER bit for TCS
commit: f87412d18edb5b8393eb8cb1c2d4a54f90185a21
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-09-01 19:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-25 6:23 [PATCH] soc: qcom: rpmh-rsc: Unconditionally clear _TRIGGER bit for TCS Sneh Mankad
2025-09-01 19:49 ` Bjorn Andersson
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).