From: Mohit Sharma <mohit.sharma@oss.qualcomm.com>
To: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Cc: Mohit Sharma <mohit.sharma@oss.qualcomm.com>,
Srinivas Kandagatla <srini@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Mark Brown <broonie@kernel.org>,
Ajay Kumar Nandam <ajay.nandam@oss.qualcomm.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Konrad Dybcio <konradybcio@kernel.org>,
Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>,
linux-sound@vger.kernel.org, linux-arm-msm@vger.kernel.org,
linux-kernel@vger.kernel.org, stable@vger.kernel.org
Subject: Re: [PATCH 1/2] ASoC: qcom: q6apm: Guard callbacks until probe data is ready
Date: Wed, 2 Dec 2026 17:23:54 +0530 [thread overview]
Message-ID: <20261202115354.3297105-1-mohit.sharma@oss.qualcomm.com> (raw)
In-Reply-To: <9cde423b-e71a-4038-9e89-d6ecd7da5399@oss.qualcomm.com>
Thanks for reviewing.
There should not be a response belonging to the current driver instance
while drvdata is NULL. apm_callback() processes responses to SPF-state,
graph/configuration and shared-memory commands. apm_probe() publishes its
fully initialized driver data before issuing GET_SPF_STATE and before
populating command-issuing children.
Similarly, prm_callback() only processes hardware-resource request/release
responses, and q6prm publishes its driver data before exposing consumers
that can issue those commands. The q6apm_is_adsp_ready() call from
prm_probe() targets the APM service, not PRM.
Therefore, a packet received during this interval cannot be a response to
a command issued by the current driver instance. It would be stale or
unsolicited, with no valid waiter or initialized client state to which it
could be delivered. I agree that silently returning makes this reasoning
unclear, and this should have been explained explicitly in the commit
message.
Thanks,
Mohit
next prev parent reply other threads:[~2026-12-02 11:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-22 14:41 [PATCH 0/2] Fix GPR callback registration race during probe Mohit Sharma
2026-10-22 14:41 ` [PATCH 1/2] ASoC: qcom: q6apm: Guard callbacks until probe data is ready Mohit Sharma
2026-11-15 10:06 ` Srinivas Kandagatla
2026-12-02 11:53 ` Mohit Sharma [this message]
2026-10-22 14:41 ` [PATCH 2/2] soc: qcom: apr: Publish GPR callback before client probe Mohit Sharma
2026-11-14 15:25 ` Shawn Guo
2026-11-15 10:00 ` Srinivas Kandagatla
2026-11-30 8:08 ` Shawn Guo
2026-12-02 11:54 ` Mohit Sharma
2026-12-02 11:58 ` Srinivas Kandagatla
2026-11-02 22:38 ` (subset) [PATCH 0/2] Fix GPR callback registration race during probe 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=20261202115354.3297105-1-mohit.sharma@oss.qualcomm.com \
--to=mohit.sharma@oss.qualcomm.com \
--cc=ajay.nandam@oss.qualcomm.com \
--cc=andersson@kernel.org \
--cc=broonie@kernel.org \
--cc=konradybcio@kernel.org \
--cc=krzysztof.kozlowski@oss.qualcomm.com \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=srini@kernel.org \
--cc=srinivas.kandagatla@oss.qualcomm.com \
--cc=stable@vger.kernel.org \
--cc=tiwai@suse.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®