On Tue, Apr 07, 2026 at 07:41:50PM +0530, Manivannan Sadhasivam wrote: > On Tue, 07 Apr 2026 14:04:07 +0200, Christian Bruel wrote: > > 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. > > > > [...] > > Applied, thanks! > > [1/3] PCI: endpoint: pci-epf-test: Handle -ENOSPC in subrange_setup > commit: dfac277624c82b361dbb3e0fc57f577a270bebbb > [2/3] misc: pci_endpoint_test: Handle -ENOSPC in subrange mapping test case > commit: a51c75fc48c2a0d2ead2d7e8c521de0423ec8dec > [3/3] selftests: pci_endpoint: Skip BAR subrange test on -ENOSPC > commit: 2b729b7721bd4d0640b26790ea6c360c85a4af8c
I squashed these together because they need to be understood together. I'm missing the details, but it seems unfortunate that the COMMAND_*, STATUS_*, and CAP_* definitions have to be duplicated and presumably kept in sync in drivers/misc/pci_endpoint_test.c and drivers/pci/endpoint/functions/pci-epf-test.c.

