public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Skip subrange map tests on DWC iATU allocation failure
@ 2026-03-18 14:46 Christian Bruel
  2026-03-18 14:46 ` [PATCH 1/3] selftests: pci_endpoint: Skip subrange map test if iATU allocation fails Christian Bruel
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Christian Bruel @ 2026-03-18 14:46 UTC (permalink / raw)
  To: Manivannan Sadhasivam, Krzysztof Wilczyński,
	Kishon Vijay Abraham I, Shuah Khan, Bjorn Helgaas, Arnd Bergmann,
	Greg Kroah-Hartman, Koichiro Den, Niklas Cassel
  Cc: fabrice.gasnier, linux-pci, linux-kselftest, linux-kernel,
	Christian Bruel

For platforms with a limited iATU inbound window entries, pci_epc_set_bar()
might fail to allocate the ATU entries for subrange maps requiring more
than 1 slot.
For the dwc controller, this failure is reported with -ENOSPC in
dw_pcie_ep_set_bar(). In this case, the epf test cannot be run and needs
to be skipped.

For other controllers (Rockchip, RCar, Cadence) the .set_bar functions do
not use this error.

Signed-off-by: Christian Bruel <christian.bruel@foss.st.com>
---
Christian Bruel (3):
      selftests: pci_endpoint: Skip subrange map test if iATU allocation fails
      PCI: endpoint: pci-epf-test: Handle -ENOSPC in subrange map test
      misc: pci_endpoint_test: Handle -ENOSPC in subrange mapping test case

 drivers/misc/pci_endpoint_test.c                         | 6 +++++-
 drivers/pci/endpoint/functions/pci-epf-test.c            | 3 +++
 tools/testing/selftests/pci_endpoint/pci_endpoint_test.c | 2 ++
 3 files changed, 10 insertions(+), 1 deletion(-)
---
base-commit: 8e5a478b6d6a5bb0a3d52147862b15e4d826af19
change-id: 20260318-skip-bar_subrange-tests-if-enospc-c26f03038e92

Best regards,
-- 
Christian Bruel <christian.bruel@foss.st.com>


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2026-03-20 15:33 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-18 14:46 [PATCH 0/3] Skip subrange map tests on DWC iATU allocation failure Christian Bruel
2026-03-18 14:46 ` [PATCH 1/3] selftests: pci_endpoint: Skip subrange map test if iATU allocation fails Christian Bruel
2026-03-18 15:32   ` Niklas Cassel
2026-03-19  1:28   ` Koichiro Den
2026-03-19  8:47     ` Niklas Cassel
2026-03-20 13:41       ` Koichiro Den
2026-03-20 10:04     ` Christian Bruel
2026-03-20 14:05       ` Koichiro Den
2026-03-20 14:19         ` Christian Bruel
2026-03-20 15:33           ` Koichiro Den
2026-03-18 14:46 ` [PATCH 2/3] PCI: endpoint: pci-epf-test: Handle -ENOSPC in subrange map test Christian Bruel
2026-03-18 15:50   ` Niklas Cassel
2026-03-18 14:46 ` [PATCH 3/3] misc: pci_endpoint_test: Handle -ENOSPC in subrange mapping test case Christian Bruel
2026-03-18 16:03   ` Niklas Cassel
2026-03-20  9:35     ` Christian Bruel
2026-03-20 11:16       ` Niklas Cassel
2026-03-20 13:25         ` Christian Bruel
2026-03-20 13:43           ` Niklas Cassel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox