Skip to content

add tests to verify IFS (In Field Scan) driver functionality

Pengfei Xu linux-kselftest lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 3 repliesIn review
  2. v14 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- Rebase to v6.10 cycle kernel and resolve some code conflicts
- Improved checking of IFS ARRAY_BIST support by leveraging sysfs entry methods (suggested by Ashok)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4selftests: ifs: verify test interfaces are created by the driverMAINTAINERS tools/testing/selftests/Makefile tools/testing/selftests/drivers/platform/x86/intel/ifs/Makefile +1 more+187 -00 replies
2/4selftests: ifs: verify test image loading functionalitytools/testing/selftests/drivers/platform/x86/intel/ifs/test_ifs.sh+120 -10 replies
3/4selftests: ifs: verify IFS scan test functionalitytools/testing/selftests/drivers/platform/x86/intel/ifs/test_ifs.sh+189 -10 replies
4/4selftests: ifs: verify IFS ARRAY BIST functionalitytools/testing/selftests/drivers/platform/x86/intel/ifs/test_ifs.sh+8 -00 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJithu JosephKuppuswamy Sathyanarayanan
SeriesA-b
1/4R-b R-b
2/4R-b R-b
3/4R-b R-b
4/4R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] add tests to verify IFS (In Field Scan) driver functionality

To verify IFS (In Field Scan [1]) driver functionality, add the following 6 test cases:
1. Verify that IFS sysfs entries are created after loading the IFS module
2. Check if loading an invalid IFS test image fails and loading a valid one succeeds
3. Perform IFS scan test on each CPU using all the available image files
4. Perform IFS scan with first test image file on a random CPU for 3 rounds
5. Perform IFS ARRAY BIST(Board Integrated System Test) test on each CPU
6. Perform IFS ARRAY BIST test on a random CPU for 3 rounds

These are not exhaustive, but some minimal test runs to check various parts of the driver. Some negative tests are also included.

[1] https://docs.kernel.org/arch/x86/ifs.html

Pengfei Xu (4):
selftests: ifs: verify test interfaces are created by the driver
selftests: ifs: verify test image loading functionality
selftests: ifs: verify IFS scan test functionality
selftests: ifs: verify IFS ARRAY BIST functionality

 MAINTAINERS                                   |   1 +
 tools/testing/selftests/Makefile              |   1 +
 .../drivers/platform/x86/intel/ifs/Makefile   |   6 +
 .../platform/x86/intel/ifs/test_ifs.sh        | 494 ++++++++++++++++++
 4 files changed, 502 insertions(+)
 create mode 100644 tools/testing/selftests/drivers/platform/x86/intel/ifs/Makefile
 create mode 100755 tools/testing/selftests/drivers/platform/x86/intel/ifs/test_ifs.sh

---
Changes:
v1 to v2:
- Rebase to v6.10 cycle kernel and resolve some code conflicts
- Improved checking of IFS ARRAY_BIST support by leveraging sysfs entry methods (suggested by Ashok)

Signature · 1 line
2.43.0