All of lore.kernel.org
 help / color / mirror / Atom feed
From: Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>
To: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>
Cc: Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>,
	Julien Grall <julien@xen.org>, Rahul Singh <rahul.singh@arm.com>,
	Stefano Stabellini <sstabellini@kernel.org>,
	Bertrand Marquis <bertrand.marquis@arm.com>,
	Michal Orzel <michal.orzel@amd.com>,
	Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>
Subject: [PATCH 1/3] arm: smmu: allow SMMU to have more IRQs than context banks
Date: Fri, 29 Mar 2024 00:08:57 +0000	[thread overview]
Message-ID: <20240329000822.3363568-2-volodymyr_babchuk@epam.com> (raw)
In-Reply-To: <20240329000822.3363568-1-volodymyr_babchuk@epam.com>

I encountered platform, namely Qualcomm SA8155P where SMMU-compatible
IO-MMU advertises more context IQRs than there are context banks. This
should not be an issue, we need to relax the check in the SMMU driver
to allow such configuration.

Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
---
 xen/drivers/passthrough/arm/smmu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/drivers/passthrough/arm/smmu.c b/xen/drivers/passthrough/arm/smmu.c
index 32e2ff279b..2dd3688f3b 100644
--- a/xen/drivers/passthrough/arm/smmu.c
+++ b/xen/drivers/passthrough/arm/smmu.c
@@ -2550,7 +2550,7 @@ static int arm_smmu_device_dt_probe(struct platform_device *pdev)
 	parse_driver_options(smmu);
 
 	if (smmu->version > ARM_SMMU_V1 &&
-	    smmu->num_context_banks != smmu->num_context_irqs) {
+	    smmu->num_context_banks > smmu->num_context_irqs) {
 		dev_err(dev,
 			"found only %d context interrupt(s) but %d required\n",
 			smmu->num_context_irqs, smmu->num_context_banks);
-- 
2.43.0


  reply	other threads:[~2024-03-29  0:09 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-29  0:08 [PATCH 0/3] Add experimental support for Qualcomm SA8155P SoC Volodymyr Babchuk
2024-03-29  0:08 ` Volodymyr Babchuk [this message]
2024-04-02  7:28   ` [PATCH 1/3] arm: smmu: allow SMMU to have more IRQs than context banks Michal Orzel
2024-04-17 21:26     ` Julien Grall
2024-03-29  0:08 ` [PATCH 3/3] arm: platform: qcom: add basic support SA8155P SoC Volodymyr Babchuk
2024-04-03  8:16   ` Michal Orzel
2024-04-17 21:45   ` Julien Grall
2024-03-29  0:08 ` [PATCH 2/3] drivers: serial: add Qualcomm GENI-based serial driver Volodymyr Babchuk
2024-04-02  7:53   ` Jan Beulich
2024-04-02 10:25   ` Michal Orzel
2024-04-02 21:19     ` Volodymyr Babchuk
2024-04-03  7:46       ` Michal Orzel
2024-04-17 22:31       ` Julien Grall
2024-04-04  6:29     ` Michal Orzel
2024-04-17 21:58   ` Julien Grall

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=20240329000822.3363568-2-volodymyr_babchuk@epam.com \
    --to=volodymyr_babchuk@epam.com \
    --cc=bertrand.marquis@arm.com \
    --cc=julien@xen.org \
    --cc=michal.orzel@amd.com \
    --cc=rahul.singh@arm.com \
    --cc=sstabellini@kernel.org \
    --cc=xen-devel@lists.xenproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.