]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: imx6: Fix i.MX8MP PCIe EP's occasional failure to trigger MSI
authorRichard Zhu <hongxing.zhu@nxp.com>
Mon, 29 Jul 2024 20:18:09 +0000 (16:18 -0400)
committerKrzysztof Wilczyński <kwilczynski@kernel.org>
Mon, 9 Sep 2024 14:08:15 +0000 (14:08 +0000)
commit5cb3aa92c7cf182940ae575c3f450d3708af087c
tree0b7d346a3872340888fe963c094b6478ff63aec7
parent5214ff221a14cadab1e2ee29499750fd5e884feb
PCI: imx6: Fix i.MX8MP PCIe EP's occasional failure to trigger MSI

Correct occasional MSI triggering failures in i.MX8MP PCIe EP by applying
the correct hardware outbound alignment requirement.

The i.MX platform has a restriction about outbound address translation. The
pci-epc-mem uses page_size to manage it. Set the correct page_size for i.MX
platform to meet the hardware requirement, which is the same as inbound
address alignment.

Thus, align it with epc_features::align.

Fixes: 1bd0d43dcf3b ("PCI: imx6: Clean up addr_space retrieval code")
Link: https://lore.kernel.org/linux-pci/20240729-pci2_upstream-v8-2-b68ee5ef2b4d@nxp.com
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
[kwilczynski: commit log]
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
Cc: <stable@vger.kernel.org> # 6.9+
drivers/pci/controller/dwc/pci-imx6.c