From: Thomas Gleixner <tglx@linutronix.de>
To: "Frank Li" <Frank.Li@nxp.com>,
"Manivannan Sadhasivam" <manivannan.sadhasivam@linaro.org>,
"Krzysztof Wilczyński" <kw@linux.com>,
"Kishon Vijay Abraham I" <kishon@kernel.org>,
"Bjorn Helgaas" <bhelgaas@google.com>,
"Arnd Bergmann" <arnd@arndb.de>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Rafael J. Wysocki" <rafael@kernel.org>,
"Anup Patel" <apatel@ventanamicro.com>,
"Marc Zyngier" <maz@kernel.org>
Cc: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org,
imx@lists.linux.dev, Niklas Cassel <cassel@kernel.org>,
dlemoal@kernel.org, jdmason@kudzu.us,
linux-arm-kernel@lists.infradead.org, Frank Li <Frank.Li@nxp.com>
Subject: Re: [PATCH v11 3/7] PCI: endpoint: pci-ep-msi: Add MSI address/data pair mutable check
Date: Mon, 09 Dec 2024 20:51:52 +0100 [thread overview]
Message-ID: <87h67cprc7.ffs@tglx> (raw)
In-Reply-To: <20241209-ep-msi-v11-3-7434fa8397bd@nxp.com>
Frank!
On Mon, Dec 09 2024 at 12:48, Frank Li wrote:
> Some MSI controller change address/data pair when irq_set_affinity().
> Current PCI endpoint can't support this type MSI controller. So add flag
> MSI_FLAG_MSG_IMMUTABLE in include/linux/msi.h, set this flags in ARM GIC
> ITS MSI controller and check it when allocate doorbell.
>
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
> ---
> Change from v9 to v11
> - new patch
> ---
> drivers/irqchip/irq-gic-v3-its-msi-parent.c | 1 +
> drivers/pci/endpoint/pci-ep-msi.c | 8 ++++++++
> include/linux/msi.h | 2 ++
This is not how it works and I explained that you to more than once in
the past.
The change to the interrupt code is standalone and has nothing to do
with PCI endpoint. The latter is just a user of this.
So this want's to be split into several patches:
1) add the new flag and a helper function which checks for the flag.
2) add the flag to GICv3 ITS with a proper explanation
3) Check for it in the PCI endpoint code
>
> + if (!dom->msi_parent_ops)
> + return -EINVAL;
irq_domain_is_msi_parent()
> + if (!(dom->msi_parent_ops->supported_flags & MSI_FLAG_MSG_IMMUTABLE)) {
Want's a helper.
Thanks,
tglx
next prev parent reply other threads:[~2024-12-09 19:53 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-09 17:48 [PATCH v11 0/7] PCI: EP: Add RC-to-EP doorbell with platform MSI controller Frank Li
2024-12-09 17:48 ` [PATCH v11 1/7] irqchip/gic-v3-its: Avoid overwriting msi_prepare callback if provided by msi_domain_info Frank Li
2024-12-09 17:48 ` [PATCH v11 2/7] PCI: endpoint: Add RC-to-EP doorbell support using platform MSI controller Frank Li
2024-12-09 17:48 ` [PATCH v11 3/7] PCI: endpoint: pci-ep-msi: Add MSI address/data pair mutable check Frank Li
2024-12-09 19:51 ` Thomas Gleixner [this message]
2024-12-09 22:16 ` Frank Li
2024-12-09 23:19 ` Frank Li
2024-12-09 17:48 ` [PATCH v11 4/7] PCI: endpoint: Add pci_epf_align_inbound_addr() helper for address alignment Frank Li
2024-12-09 17:48 ` [PATCH v11 5/7] PCI: endpoint: pci-epf-test: Add doorbell test support Frank Li
2024-12-09 17:48 ` [PATCH v11 6/7] misc: pci_endpoint_test: Add doorbell test case Frank Li
2024-12-09 17:48 ` [PATCH v11 7/7] tools: PCI: Add 'B' option for test doorbell Frank Li
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=87h67cprc7.ffs@tglx \
--to=tglx@linutronix.de \
--cc=Frank.Li@nxp.com \
--cc=apatel@ventanamicro.com \
--cc=arnd@arndb.de \
--cc=bhelgaas@google.com \
--cc=cassel@kernel.org \
--cc=dlemoal@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=imx@lists.linux.dev \
--cc=jdmason@kudzu.us \
--cc=kishon@kernel.org \
--cc=kw@linux.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=manivannan.sadhasivam@linaro.org \
--cc=maz@kernel.org \
--cc=rafael@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;
as well as URLs for NNTP newsgroup(s).