From: Shivendra Pratap <shivendra.pratap@oss.qualcomm.com>
To: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
Cc: Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org,
Unnathi Chalicheemala <unnathi.chalicheemala@oss.qualcomm.com>,
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Subject: Re: [PATCH v10 3/3] firmware: qcom_scm: Use TASK_IDLE state in wait_for_wq_completion()
Date: Wed, 3 Dec 2025 16:27:25 +0530 [thread overview]
Message-ID: <7580dd6f-564b-bb26-8322-5c4a132f6aa6@oss.qualcomm.com> (raw)
In-Reply-To: <20251203083132.lpx63c7oium52sr6@hu-mojha-hyd.qualcomm.com>
On 12/3/2025 2:01 PM, Mukesh Ojha wrote:
> On Sun, Nov 30, 2025 at 08:11:04PM +0530, Shivendra Pratap wrote:
>> From: Unnathi Chalicheemala <unnathi.chalicheemala@oss.qualcomm.com>
>>
>> When the kernel issues an SMC (Secure Monitor Call) and the firmware
>> requests the kernel to wait, the waiting thread enters an
>> uninterruptible (D) state. In case of an extended wait request by the
>> firmware, any device suspend request, cannot proceed because of the
>> thread stuck in D state. This blocks the device suspend.
>
> Not only that, it is stuck in D state after holding a mutex, which is
> more severe because none of the SMC calls can go through. However, this
> has been the case since the day the firmware started supporting waitq
> with a single context, which is somewhat acceptable as the firmware does
> not allow otherwise. Since, you are adding the multiple waitq context
> supported by firmware with your other patches,
>
> Do you plan to support multiple waitq contexts i.e parallel SCM calls,
> in SCM driver as well ?
Yes. Parallel SCM can be enabled once this waitq enablement support is
in place.
thanks,
Shivendra
next prev parent reply other threads:[~2025-12-03 10:57 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-30 14:41 [PATCH v10 0/3] SCM: Support latest version of waitq-aware firmware Shivendra Pratap
2025-11-30 14:41 ` [PATCH v10 1/3] firmware: qcom_scm: Add API to get waitqueue IRQ info Shivendra Pratap
2025-12-02 11:43 ` Mukesh Ojha
2025-12-02 16:36 ` Shivendra Pratap
2025-11-30 14:41 ` [PATCH v10 2/3] firmware: qcom_scm: Support multiple waitq contexts Shivendra Pratap
2025-12-02 12:52 ` Mukesh Ojha
2025-11-30 14:41 ` [PATCH v10 3/3] firmware: qcom_scm: Use TASK_IDLE state in wait_for_wq_completion() Shivendra Pratap
2025-12-03 8:31 ` Mukesh Ojha
2025-12-03 10:57 ` Shivendra Pratap [this message]
2025-12-04 7:36 ` Mukesh Ojha
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=7580dd6f-564b-bb26-8322-5c4a132f6aa6@oss.qualcomm.com \
--to=shivendra.pratap@oss.qualcomm.com \
--cc=andersson@kernel.org \
--cc=bartosz.golaszewski@linaro.org \
--cc=konradybcio@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mukesh.ojha@oss.qualcomm.com \
--cc=unnathi.chalicheemala@oss.qualcomm.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®