From: Frank Li <Frank.li@oss.nxp.com>
To: Krishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com>
Cc: "Manivannan Sadhasivam" <mani@kernel.org>,
"Jeff Hugo" <jeff.hugo@oss.qualcomm.com>,
"Krzysztof Wilczyński" <kwilczynski@kernel.org>,
"Kishon Vijay Abraham I" <kishon@kernel.org>,
"Frank Li" <Frank.Li@kernel.org>,
"Bjorn Helgaas" <bhelgaas@google.com>,
"Niklas Cassel" <cassel@kernel.org>,
"Lorenzo Pieralisi" <lpieralisi@kernel.org>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Jingoo Han" <jingoohan1@gmail.com>,
"Vinod Koul" <vkoul@kernel.org>,
"Neil Armstrong" <neil.armstrong@linaro.org>,
"Bjorn Andersson" <andersson@kernel.org>,
"Konrad Dybcio" <konradybcio@kernel.org>,
"Abel Vesa" <abelvesa@kernel.org>,
mhi@lists.linux.dev, linux-arm-msm@vger.kernel.org,
linux-pci@vger.kernel.org, devicetree@vger.kernel.org,
linux-phy@lists.infradead.org,
"Anvita T" <anvita.t@oss.qualcomm.com>
Subject: Re: [PATCH 02/11] PCI: qcom-ep: Add MSI-X support
Date: Mon, 23 Nov 2026 10:41:35 -0600 [thread overview]
Message-ID: <awRsv7j4BptoBdD7@SMW015318> (raw)
In-Reply-To: <20261122-nord_ep-v1-2-6d8839ffa9aa@oss.qualcomm.com>
On Sun, Nov 22, 2026 at 08:26:15AM +0530, Krishna Chaitanya Chundru wrote:
> [You don't often get email from krishna.chundru@oss.qualcomm.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
>
> From: Anvita T <anvita.t@oss.qualcomm.com>
>
> The controller can signal interrupts using MSI-X in addition to MSI.
> Add an epc_features variant that advertises msix_capable and select it
> from ->get_features() for SoC configs that set the new msix_capable
> flag. Route PCI_IRQ_MSIX requests in ->raise_irq() to
> dw_pcie_ep_raise_msix_irq_doorbell().
>
> No functional change for existing SoCs, which leave msix_capable unset.
>
> Signed-off-by: Anvita T <anvita.t@oss.qualcomm.com>
> Signed-off-by: Krishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com>
> ---
> drivers/pci/controller/dwc/pcie-qcom-ep.c | 20 ++++++++++++++++++++
> 1 file changed, 20 insertions(+)
>
> diff --git a/drivers/pci/controller/dwc/pcie-qcom-ep.c b/drivers/pci/controller/dwc/pcie-qcom-ep.c
> index 2d7ddf8d173f..c794a2207df2 100644
> --- a/drivers/pci/controller/dwc/pcie-qcom-ep.c
> +++ b/drivers/pci/controller/dwc/pcie-qcom-ep.c
> @@ -170,12 +170,14 @@ enum qcom_pcie_ep_link_status {
> * @override_no_snoop: Override NO_SNOOP attribute in TLP to enable cache snooping
> * @disable_mhi_ram_parity_check: Disable MHI RAM data parity error check
> * @firmware_managed: Set if the controller is firmware managed
> + * @msix_capable: Set if the controller supports MSI-X
> */
> struct qcom_pcie_ep_cfg {
> bool hdma_support;
> bool override_no_snoop;
> bool disable_mhi_ram_parity_check;
> bool firmware_managed;
> + bool msix_capable;
why not direct put pci_epc_features pointer here.
Frank
> };
>
> /**
> @@ -806,6 +808,8 @@ static int qcom_pcie_ep_raise_irq(struct dw_pcie_ep *ep, u8 func_no,
> return dw_pcie_ep_raise_intx_irq(ep, func_no);
> case PCI_IRQ_MSI:
> return dw_pcie_ep_raise_msi_irq(ep, func_no, interrupt_num);
> + case PCI_IRQ_MSIX:
> + return dw_pcie_ep_raise_msix_irq_doorbell(ep, func_no, interrupt_num);
> default:
> dev_err(pci->dev, "Unknown IRQ type\n");
> return -EINVAL;
> @@ -852,9 +856,25 @@ static const struct pci_epc_features qcom_pcie_epc_features = {
> .bar[BAR_2] = { .only_64bit = true, },
> };
>
> +static const struct pci_epc_features qcom_pcie_epc_features_msix = {
> + DWC_EPC_COMMON_FEATURES,
> + .linkup_notifier = true,
> + .msi_capable = true,
> + .msix_capable = true,
> + .align = SZ_4K,
> + .bar[BAR_0] = { .only_64bit = true, },
> + .bar[BAR_2] = { .only_64bit = true, },
> +};
> +
> static const struct pci_epc_features *
> qcom_pcie_epc_get_features(struct dw_pcie_ep *pci_ep)
> {
> + struct dw_pcie *pci = to_dw_pcie_from_ep(pci_ep);
> + struct qcom_pcie_ep *pcie_ep = to_pcie_ep(pci);
> +
> + if (pcie_ep->cfg && pcie_ep->cfg->msix_capable)
> + return &qcom_pcie_epc_features_msix;
> +
> return &qcom_pcie_epc_features;
> }
>
>
> --
> 2.34.1
>
next prev parent reply other threads:[~2026-11-23 16:41 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-22 2:56 [PATCH 00/11] PCI: qcom-ep: Add Nord PCIe Endpoint controller support Krishna Chaitanya Chundru
2026-11-22 2:56 ` [PATCH 01/11] PCI: epf-mhi: Pass the actual number of MSI vectors to pci_epc_set_msi() Krishna Chaitanya Chundru
2026-11-22 3:03 ` sashiko-bot
2026-11-23 10:03 ` Niklas Cassel
2026-11-22 2:56 ` [PATCH 02/11] PCI: qcom-ep: Add MSI-X support Krishna Chaitanya Chundru
2026-11-22 3:08 ` sashiko-bot
2026-11-23 16:41 ` Frank Li [this message]
2026-11-22 2:56 ` [PATCH 03/11] PCI: epf-mhi: " Krishna Chaitanya Chundru
2026-11-22 3:15 ` sashiko-bot
2026-11-23 16:48 ` Frank Li
2026-11-22 2:56 ` [PATCH 04/11] PCI: dwc: Preserve glue-provided eDMA HDMA channel separation Krishna Chaitanya Chundru
2026-11-23 16:49 ` Frank Li
2026-11-22 2:56 ` [PATCH 05/11] phy: qcom: qmp-pcie: Add PCIe endpoint mode support Krishna Chaitanya Chundru
2026-11-23 16:56 ` Frank Li
2026-11-22 2:56 ` [PATCH 06/11] phy: qcom: qmp-pcie: Add Nord endpoint mode init sequences Krishna Chaitanya Chundru
2026-11-23 16:57 ` Frank Li
2026-11-22 2:56 ` [PATCH 07/11] dt-bindings: PCI: qcom-ep: Add Nord PCIe Endpoint Krishna Chaitanya Chundru
2026-11-22 2:56 ` [PATCH 08/11] PCI: qcom-ep: Add Nord PCIe Endpoint controller support Krishna Chaitanya Chundru
2026-11-22 3:08 ` sashiko-bot
2026-11-23 17:12 ` Frank Li
2026-11-22 2:56 ` [PATCH 09/11] PCI: epf-mhi: Add Nord endpoint support Krishna Chaitanya Chundru
2026-11-22 2:56 ` [PATCH 10/11] bus: mhi: host: pci_generic: Add support for Qualcomm Nord Krishna Chaitanya Chundru
2026-11-22 3:19 ` sashiko-bot
2026-11-23 17:19 ` Frank Li
2026-11-22 2:56 ` [PATCH 11/11] arm64: dts: qcom: nord: Add PCIe endpoint nodes Krishna Chaitanya Chundru
2026-11-22 3:17 ` sashiko-bot
2026-11-22 3:19 ` [PATCH 00/11] PCI: qcom-ep: Add Nord PCIe Endpoint controller support sashiko-bot
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=awRsv7j4BptoBdD7@SMW015318 \
--to=frank.li@oss.nxp.com \
--cc=Frank.Li@kernel.org \
--cc=abelvesa@kernel.org \
--cc=andersson@kernel.org \
--cc=anvita.t@oss.qualcomm.com \
--cc=bhelgaas@google.com \
--cc=cassel@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jeff.hugo@oss.qualcomm.com \
--cc=jingoohan1@gmail.com \
--cc=kishon@kernel.org \
--cc=konradybcio@kernel.org \
--cc=krishna.chundru@oss.qualcomm.com \
--cc=krzk+dt@kernel.org \
--cc=kwilczynski@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=lpieralisi@kernel.org \
--cc=mani@kernel.org \
--cc=mhi@lists.linux.dev \
--cc=neil.armstrong@linaro.org \
--cc=robh@kernel.org \
--cc=vkoul@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