On 5/31/2024 1:23 PM, Pengfei Xu wrote:
To verify IFS (In Field Scan [1]) driver functionality, add the following 6 test cases:
- Verify that IFS sysfs entries are created after loading the IFS module
- Check if loading an invalid IFS test image fails and loading a valid one succeeds
- Perform IFS scan test on each CPU using all the available image files
- Perform IFS scan with first test image file on a random CPU for 3 rounds
- Perform IFS ARRAY BIST(Board Integrated System Test) test on each CPU
- 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)
For All 4 patches in this series
Acked-by: Jithu Joseph jithu.joseph@intel.com
Thanks Jithu