]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests: pci_endpoint: Migrate to Kselftest framework
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Thu, 16 Jan 2025 17:16:50 +0000 (22:46 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 21 Jan 2025 20:17:55 +0000 (14:17 -0600)
commit392188bb0f6ec5162edf457c062929a6abfa369a
tree19ac9a9d9323f8e928704da77138b670dc5e94b8
parente19bde2269ca3611156fd0c078a71af0b6956545
selftests: pci_endpoint: Migrate to Kselftest framework

Migrate the PCI endpoint test to Kselftest framework. All the tests that
were part of the previous pcitest.sh file were migrated.

Below is the list of tests converted:

   1. BAR0 Test
   2. BAR1 Test
   3. BAR2 Test
   4. BAR3 Test
   5. BAR4 Test
   6. BAR5 Test
   7. Consecutive BAR Tests
   8. Legacy IRQ Tests
   9. MSI Interrupt Tests (MSI1 to MSI32)
  10. MSI-X Interrupt Tests (MSI-X1 to MSI-X2048)
  11. Read Tests - MEMCPY (For 1, 1024, 1025, 10240001024001 Bytes)
  12. Write Tests - MEMCPY (For 1, 1024, 1025, 10240001024001 Bytes)
  13. Copy Tests - MEMCPY (For 1, 1024, 1025, 10240001024001 Bytes)
  14. Read Tests - DMA (For 1, 1024, 1025, 10240001024001 Bytes)
  15. Write Tests - DMA (For 1, 1024, 1025, 10240001024001 Bytes)
  16. Copy Tests - DMA (For 1, 1024, 1025, 10240001024001 Bytes)

BAR, DMA and MEMCPY tests are added as fixture variants and can be executed
separately as below:

  $ pci_endpoint_test -v BAR0
  $ pci_endpoint_test -v dma
  $ pci_endpoint_test -v memcpy

Link: https://lore.kernel.org/r/20250116171650.33585-5-manivannan.sadhasivam@linaro.org
Co-developed-by: Aman Gupta <aman1.gupta@samsung.com>
Co-developed-by: Padmanabhan Rajanbabu <p.rajanbabu@samsung.com>
[mani: reworked based on the IOCTL fix, cleanups, documentation, commit message]
Signed-off-by: Aman Gupta <aman1.gupta@samsung.com>
Signed-off-by: Padmanabhan Rajanbabu <p.rajanbabu@samsung.com>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Tested-by: Niklas Cassel <cassel@kernel.org>
Reviewed-by: Niklas Cassel <cassel@kernel.org>
Documentation/PCI/endpoint/pci-test-howto.rst
tools/testing/selftests/Makefile
tools/testing/selftests/pci_endpoint/.gitignore
tools/testing/selftests/pci_endpoint/Build [deleted file]
tools/testing/selftests/pci_endpoint/Makefile
tools/testing/selftests/pci_endpoint/config [new file with mode: 0644]
tools/testing/selftests/pci_endpoint/pci_endpoint_test.c [new file with mode: 0644]
tools/testing/selftests/pci_endpoint/pcitest.c [deleted file]
tools/testing/selftests/pci_endpoint/pcitest.sh [deleted file]