Skip to content
Snippets Groups Projects
user avatar
Myron Stowe authored
JIRA: https://issues.redhat.com/browse/RHEL-83611
Upstream Status: 392188bb0f6ec5162edf457c062929a6abfa369a

commit 392188bb0f6ec5162edf457c062929a6abfa369a
Author: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Date:   Thu Jan 16 22:46:50 2025 +0530

    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, 1024000, 1024001 Bytes)
      12. Write Tests - MEMCPY (For 1, 1024, 1025, 1024000, 1024001 Bytes)
      13. Copy Tests - MEMCPY (For 1, 1024, 1025, 1024000, 1024001 Bytes)
      14. Read Tests - DMA (For 1, 1024, 1025, 1024000, 1024001 Bytes)
      15. Write Tests - DMA (For 1, 1024, 1025, 1024000, 1024001 Bytes)
      16. Copy Tests - DMA (For 1, 1024, 1025, 1024000, 1024001 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: default avatarAman Gupta <aman1.gupta@samsung.com>
Co-developed-by: default avatarPadmanabhan Rajanbabu <p.rajanbabu@samsung.com>
    [mani: reworked based on the IOCTL fix, cleanups, documentation, commit message]
Signed-off-by: default avatarAman Gupta <aman1.gupta@samsung.com>
Signed-off-by: default avatarPadmanabhan Rajanbabu <p.rajanbabu@samsung.com>
Signed-off-by: default avatarManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Tested-by: default avatarNiklas Cassel <cassel@kernel.org>
Reviewed-by: default avatarNiklas Cassel <cassel@kernel.org>

Signed-off-by: default avatarMyron Stowe <mstowe@redhat.com>
de5cfff1
History
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
Name Last commit Last update
..