Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
From: Unnathi Chalicheemala <quic_uchalich@quicinc.com>
To: Bjorn Andersson <andersson@kernel.org>,
	Konrad Dybcio <konradybcio@kernel.org>
Cc: Unnathi Chalicheemala <quic_uchalich@quicinc.com>,
	linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org,
	kernel@quicinc.com
Subject: [PATCH v2 0/2] SCM: Support latest version of waitq-aware firmware
Date: Thu, 29 Aug 2024 15:15:53 -0700	[thread overview]
Message-ID: <cover.1724968351.git.quic_uchalich@quicinc.com> (raw)

This series adds support for the latest improvements made in SCM
firmware that allow for multiple wait-queues in firmware.

To support multi VM synchronization when VMs make SMC calls on same CPU,
waitqueue mechanism is added in firmware which runs at EL2 & EL3 exception
levels.

The macros defined in the first patch are only used in SCM driver and will
be dropped once Gunyah hypervisor driver patches are merged as fill_irq_fwspec_params()
is reused from here:
https://lore.kernel.org/all/20240405081735319-0700.eberman@hu-eberman-lv.qualcomm.com/

P.S. While at Qualcomm, Guru Das Srinagesh authored the initial version of these patches.
Thanks Guru!

---
Changes in v2:
- Dropped "Initialize waitq before setting global __scm" as it was merged here:
https://lore.kernel.org/r/1711034642-22860-4-git-send-email-quic_mojha@quicinc.com
- Decoupled "Remove QCOM_SMC_WAITQ_FLAG_WAKE_ALL" from series
- Converted xarray to a statically sized array
- Initialize waitq array in probe function
- Remove reinit of waitq completion struct in scm_get_completion()
- Introduced new APIs to get no. of waitqueue contexts and waitqueue IRQ no.
directly from firmware.

- Link to v1: https://lore.kernel.org/all/20240228-multi_waitq-v1-0-ccb096419af0@quicinc.com/

Unnathi Chalicheemala (2):
  firmware: qcom_scm: Add API to get waitqueue IRQ info
  firmware: qcom_scm: Support multiple waitq contexts

 drivers/firmware/qcom/qcom_scm.c | 135 ++++++++++++++++++++++++++-----
 drivers/firmware/qcom/qcom_scm.h |   1 +
 2 files changed, 116 insertions(+), 20 deletions(-)

-- 
2.34.1


             reply	other threads:[~2024-08-29 22:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-29 22:15 Unnathi Chalicheemala [this message]
2024-08-29 22:15 ` [PATCH v2 1/2] firmware: qcom_scm: Add API to get waitqueue IRQ info Unnathi Chalicheemala
2024-08-29 23:45   ` Konrad Dybcio
2024-09-09 14:58     ` Unnathi Chalicheemala
2024-09-04 22:05   ` Bjorn Andersson
2024-08-29 22:15 ` [PATCH v2 2/2] firmware: qcom_scm: Support multiple waitq contexts Unnathi Chalicheemala
2024-09-04 21:54   ` Bjorn Andersson
2024-09-16 23:57     ` Unnathi Chalicheemala

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=cover.1724968351.git.quic_uchalich@quicinc.com \
    --to=quic_uchalich@quicinc.com \
    --cc=andersson@kernel.org \
    --cc=kernel@quicinc.com \
    --cc=konradybcio@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /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