Linux Test Project
 help / color / mirror / Atom feed
* [LTP] [PATCH v2 0/2] tcpi refactoring
@ 2026-08-06  8:10 Andrea Cervesato
  2026-08-06  8:10 ` [LTP] [PATCH v2 1/2] tpci: refactor kernel module Andrea Cervesato
  2026-08-06  8:10 ` [LTP] [PATCH v2 2/2] tpci: refactor test using new API Andrea Cervesato
  0 siblings, 2 replies; 4+ messages in thread
From: Andrea Cervesato @ 2026-08-06  8:10 UTC (permalink / raw)
  To: Linux Test Project

Rewrite the tcpi test so we use the new LTP API.

- rewrite kernel module
- rewrite LTP test
- merge kernel module and LTP test in the same folder

Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
---
Changes in v2:
- fix commit tag
- check that device exists
- skip PCI_DISABLE because it's an unreliable test
- Link to v1: https://lore.kernel.org/20260805-tpci_refactoring-v1-0-4ca8d84f8a95@suse.com

---
Andrea Cervesato (2):
      tpci: refactor kernel module
      tpci: refactor test using new API

 .../pci/{tpci_kernel => tpci}/.gitignore           |   3 +-
 testcases/kernel/device-drivers/pci/tpci/Makefile  |  22 ++
 .../pci/{tpci_kernel => tpci}/ltp_tpci.c           | 230 +++++++++++----------
 testcases/kernel/device-drivers/pci/tpci/tpci.c    | 166 +++++++++++++++
 testcases/kernel/device-drivers/pci/tpci/tpci.h    |  36 ++++
 .../kernel/device-drivers/pci/tpci_kernel/Makefile |  35 ----
 .../pci/tpci_kernel/pci-exp-tests-HOWTO            |  58 ------
 .../kernel/device-drivers/pci/tpci_kernel/tpci.h   |  43 ----
 .../kernel/device-drivers/pci/tpci_user/.gitignore |   1 -
 .../kernel/device-drivers/pci/tpci_user/Makefile   |  20 --
 .../kernel/device-drivers/pci/tpci_user/tpci.c     | 115 -----------
 11 files changed, 342 insertions(+), 387 deletions(-)
---
base-commit: 12fcadf63a99fc4bec76f9b4715cda626256562f
change-id: 20260804-tpci_refactoring-64b59221ae5c

Best regards,
-- 
Andrea Cervesato <andrea.cervesato@suse.com>


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

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

end of thread, other threads:[~2026-08-06 10:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-06  8:10 [LTP] [PATCH v2 0/2] tcpi refactoring Andrea Cervesato
2026-08-06  8:10 ` [LTP] [PATCH v2 1/2] tpci: refactor kernel module Andrea Cervesato
2026-08-06 10:40   ` [LTP] " linuxtestproject.agent
2026-08-06  8:10 ` [LTP] [PATCH v2 2/2] tpci: refactor test using new API Andrea Cervesato

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