]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: pci_endpoint: Add BAR subrange mapping test case
authorKoichiro Den <den@valinux.co.jp>
Sat, 24 Jan 2026 14:50:12 +0000 (23:50 +0900)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 29 Jan 2026 23:42:37 +0000 (17:42 -0600)
commitc17b9046faf7d1f3b8bb992e4d53da873dc478fc
tree48ee6f3cb15a71410ee2d1d60c85d152617b66a9
parent8cf82bb558517503a81f8e3c49914c0836360aa6
selftests: pci_endpoint: Add BAR subrange mapping test case

Add BAR_SUBRANGE_TEST to the pci_endpoint kselftest suite.

The test uses the PCITEST_BAR_SUBRANGE ioctl and will skip when the
chosen BAR is disabled (-ENODATA), when the endpoint/controller does not
support subrange mapping (-EOPNOTSUPP), or when the BAR is reserved for
the test register space (-EBUSY).

Signed-off-by: Koichiro Den <den@valinux.co.jp>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/20260124145012.2794108-9-den@valinux.co.jp
tools/testing/selftests/pci_endpoint/pci_endpoint_test.c