* [PATCH] PCI: stm32: Fix EP page_size alignment
@ 2025-11-14 8:08 Christian Bruel
2025-11-17 17:17 ` Manivannan Sadhasivam
0 siblings, 1 reply; 2+ messages in thread
From: Christian Bruel @ 2025-11-14 8:08 UTC (permalink / raw)
To: Lorenzo Pieralisi, Krzysztof Wilczyński,
Manivannan Sadhasivam, Rob Herring, Bjorn Helgaas,
Maxime Coquelin, Alexandre Torgue
Cc: linux-pci, linux-stm32, linux-arm-kernel, linux-kernel,
Christian Bruel
pci_epc_mem_alloc_addr() will allocate the cpu addr from the ATU
window phys base and a page number. The resulting cpu addr must be
correcly aligned with the ATU required alignment.
Signed-off-by: Christian Bruel <christian.bruel@foss.st.com>
---
drivers/pci/controller/dwc/pcie-stm32-ep.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/pci/controller/dwc/pcie-stm32-ep.c b/drivers/pci/controller/dwc/pcie-stm32-ep.c
index 3400c7cd2d88a279c49ef36a99fc7537c381c384..004033ed60a8917438b08f5941908405c339716a 100644
--- a/drivers/pci/controller/dwc/pcie-stm32-ep.c
+++ b/drivers/pci/controller/dwc/pcie-stm32-ep.c
@@ -237,6 +237,8 @@ static int stm32_add_pcie_ep(struct stm32_pcie *stm32_pcie,
ep->ops = &stm32_pcie_ep_ops;
+ ep->page_size = stm32_pcie_epc_features.align;
+
ret = dw_pcie_ep_init(ep);
if (ret) {
dev_err(dev, "Failed to initialize ep: %d\n", ret);
---
base-commit: 9c557fdcc2f5fab8541dbba9b08c222f89009f09
change-id: 20251113-atu_align_ep-7b8dda52ee89
Best regards,
--
Christian Bruel <christian.bruel@foss.st.com>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] PCI: stm32: Fix EP page_size alignment
2025-11-14 8:08 [PATCH] PCI: stm32: Fix EP page_size alignment Christian Bruel
@ 2025-11-17 17:17 ` Manivannan Sadhasivam
0 siblings, 0 replies; 2+ messages in thread
From: Manivannan Sadhasivam @ 2025-11-17 17:17 UTC (permalink / raw)
To: Lorenzo Pieralisi, Krzysztof Wilczyński, Rob Herring,
Bjorn Helgaas, Maxime Coquelin, Alexandre Torgue, Christian Bruel
Cc: linux-pci, linux-stm32, linux-arm-kernel, linux-kernel
On Fri, 14 Nov 2025 09:08:05 +0100, Christian Bruel wrote:
> pci_epc_mem_alloc_addr() will allocate the cpu addr from the ATU
> window phys base and a page number. The resulting cpu addr must be
> correcly aligned with the ATU required alignment.
>
>
Applied, thanks!
[1/1] PCI: stm32: Fix EP page_size alignment
commit: cf2eff021ee3c179a4ec4a6c1d34a27fd92b8acf
Best regards,
--
Manivannan Sadhasivam <mani@kernel.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-11-17 17:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-14 8:08 [PATCH] PCI: stm32: Fix EP page_size alignment Christian Bruel
2025-11-17 17:17 ` Manivannan Sadhasivam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox