[PATCH 08/11] PCI: qcom-ep: Add Nord PCIe Endpoint controller support

sashiko-bot at kernel.org sashiko-bot at kernel.org
Sat Nov 21 19:08:30 PST 2026


Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] PCI: qcom-ep: unconditional msix_capable in cfg_nord breaks
  7-reg instances
--

commit 04b8653283bc8abe57f3e64a544c24c1195d37c3
Author: Krishna Chaitanya Chundru <krishna.chundru at oss.qualcomm.com>

PCI: qcom-ep: Add Nord PCIe Endpoint controller support

This commit adds the qcom,nord-pcie-ep compatible and cfg_nord configuration
for the Nord PCIe Endpoint controller, including per-channel HDMA register
spacing via ch_space_sz.

> diff --git a/drivers/pci/controller/dwc/pcie-qcom-ep.c b/drivers/pci/controller/dwc/pcie-qcom-ep.c
> index 335207de8f0cc..79acedb301974 100644
> --- a/drivers/pci/controller/dwc/pcie-qcom-ep.c
> +++ b/drivers/pci/controller/dwc/pcie-qcom-ep.c

[ ... ]

> @@ -985,7 +989,16 @@ static const struct qcom_pcie_ep_cfg cfg_1_34_0_fw_managed = {
>  	.firmware_managed = true,
>  };
>  
> +static const struct qcom_pcie_ep_cfg cfg_nord = {
> +	.hdma_support = true,
> +	.override_no_snoop = true,
> +	.disable_mhi_ram_parity_check = true,
> +	.msix_capable = true,
> +	.ch_space_sz = SZ_4K,
> +};

[Severity: High]
Does setting .msix_capable = true unconditionally in cfg_nord break the
Nord PCIe endpoint instances that do not support MSI-X?

Per Documentation/devicetree/bindings/pci/qcom,pcie-ep.yaml,
qcom,nord-pcie-ep nodes allow 7 or 8 reg entries because only one Nord
controller instance provides the 8th "msix" register region, while the
other three instances have 7 reg entries and no MSI-X support.  Because
qcom_pcie_epc_get_features() reports epc_features->msix_capable = true
solely from pcie_ep->cfg->msix_capable, binding pci-epf-mhi to any of the
7-reg instances leaves epf_mhi->msix_phys as 0 and causes
pci_epf_mhi_epc_init() to fail with -EINVAL ("MSI-X BAR address not
configured in DT") instead of falling back to MSI.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261122-nord_ep-v1-0-6d8839ffa9aa@oss.qualcomm.com?part=8



More information about the linux-phy mailing list