From: Vladyslav Tymoshchuk <tvlad744@gmail.com>
To: yzddMr6 <yzddmr6@gmail.com>
Cc: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Abel Vesa <abelvesa@kernel.org>,
Melody Olvera <melody.olvera@oss.qualcomm.com>,
Ajay Kumar Nandam <ajay.nandam@oss.qualcomm.com>,
linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] soc: qcom: llcc-qcom: Reserve ISLAND1 ways on SM8750
Date: Sun, 29 Nov 2026 21:08:17 +0200 [thread overview]
Message-ID: <20261129190817.594-1-tvlad744@gmail.com> (raw)
In-Reply-To: <CAB63uaGQzATJHQgA2ohAothVDYsAhAhPDrcPmgLzwO9EvnB-Vw@mail.gmail.com>
On Tue, Nov 17, 2026 at 12:47:50AM +0800, yzddMr6 wrote:
> With the five macros suspended, only the LPI pin controller could still
> hold them, so I would expect a count of at most 1; 6 looks like all six
> were active when you read it.
You are right, the 6 was an artifact of how I read it. clk_summary takes
a runtime PM reference on every clock provider before it walks the tree,
and the TX macro is one (it provides "mclk"), so reading clk_summary
resumes it and its pm_clk prepares both votes. Right after a clk_summary
read the TX macro is active; without it all five macros are runtime
suspended.
> Since you offered to run variants: could you read the three prepare
> counts right before suspend on the kernel that resets?
On v7.3-rc5 without the MC0 sleep-set vote, read from
clk/<name>/clk_prepare_count right before rtcwake, MACRO, DCODEC and LPR
were 0, 0 and 0 in all ten runs where I read them, and in the eight of
those where I also read runtime_status all five macros were suspended.
Every one of those runs ended in a reset.
So the resets here happen with the LPASS votes released.
Five runs or more per case, one s2idle cycle each, 10 s RTC alarm,
gadget soft-disconnected and input current limit 0 (cable present in
some runs; the resets came both with and without it):
MC0 voted in the sleep set 5 of 5 resumed
no MC0 vote 5 of 5 reset
no MC0 vote, Konrad's table fix [1] applied 5 of 5 reset
In the seven new runs where I have the time, the reset came 60 to 72 s
after s2idle entry; earlier runs spread from 11 to 111 s, once before
the alarm fired.
One boot was different. On the kernel without the MC0 vote the ADSP
audio services did not come up (APM commands timed out, the LPI pin
controller and all macros stayed in deferred probe), and that boot went
through eight s2idle cycles without a reset, one of them 4.7 hours.
That is a single boot, so it may be chance. Keeping only the LPI pin
controller module out, so that no macro binds while the ADSP and APM
work normally, still reset 3 of 3. So if that boot was not chance, what
matters is the state of the ADSP, not the APPS-side LPASS drivers.
With the LPI pin controller module kept out, stopping the ADSP
remoteproc right before rtcwake resumed 4 of 4 (three boots), and
stopping it and starting it again 30 s before sleep reset 3 of 3.
Keeping the ADSP awake through suspend with an open playback stream also
resumed 3 of 3. Unloading the pmic_glink clients (battmgr, UCSI,
altmode) with the ADSP running still reset 3 of 3, and so did disabling
island mode in the sensors registry.
I would not read "the ADSP does it" into the resumed runs, though. In
ddr_stats the DDR goes to 200 MHz during s2idle with the MC0 vote and
both DSPs running, but stays at 547 MHz for the whole suspend when a
DSP remoteproc was stopped before it (ADSP or CDSP, also with the MC0
vote present) and in the playback runs. So in the runs that resumed
without the MC0 vote and where I logged ddr_stats, the DDR was not
taken down at all; the resets come where the ADSP is running and idle.
What holds it there after a DSP stop I do not know: in the AOP vote
table I found no vote that tells those runs from the control runs that
go to 200 MHz.
In an earlier test a sleep-set vote on llcc_mc -> ebi from a test module
avoided the reset; one on chm_apps -> qns_llcc (SH0/SH1) does not.
> If the Pad 3 behaves like the Pad 2 Pro, the ISLAND1 slice is not in use
> during its s2idle, and this patch could not make a difference there.
In the five resumed runs adsp_island stayed at the same count before
and after each cycle, so it does look like the Pad 2 Pro here.
[1] https://lore.kernel.org/r/20261113-topic-8750_llcc-v1-1-6536cb46d7fe@oss.qualcomm.com
Thanks,
Vladyslav
prev parent reply other threads:[~2026-11-29 19:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-11 7:21 yzddMr6 via B4 Relay
2026-11-12 17:35 ` Vladyslav Tymoshchuk
2026-11-13 7:55 ` Konrad Dybcio
2026-11-13 9:01 ` Konrad Dybcio
2026-11-16 16:47 ` yzddMr6
2026-11-29 19:08 ` Vladyslav Tymoshchuk [this message]
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=20261129190817.594-1-tvlad744@gmail.com \
--to=tvlad744@gmail.com \
--cc=abelvesa@kernel.org \
--cc=ajay.nandam@oss.qualcomm.com \
--cc=andersson@kernel.org \
--cc=konrad.dybcio@oss.qualcomm.com \
--cc=konradybcio@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=melody.olvera@oss.qualcomm.com \
--cc=yzddmr6@gmail.com \
/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®