Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests: ifs: verify IFS ARRAY BIST functionality

There are two selftest scenarios for ARRAY BIST(Board Integrated System
Test) tests:

1. Perform IFS ARRAY BIST tests once on each CPU.
2. Perform IFS ARRAY BIST tests on a random CPU with 3 rounds.

These are not meant to be exhaustive, but are some minimal tests for
for checking IFS ARRAY BIST.

Reviewed-by: Jithu Joseph <jithu.joseph@intel.com>
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Co-developed-by: Ashok Raj <ashok.raj@intel.com>
Signed-off-by: Ashok Raj <ashok.raj@intel.com>
Signed-off-by: Pengfei Xu <pengfei.xu@intel.com>
Acked-by: Jithu Joseph <jithu.joseph@intel.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

authored by

Pengfei Xu and committed by
Shuah Khan
bb408dae 3170f7ac

+8
+8
tools/testing/selftests/drivers/platform/x86/intel/ifs/test_ifs.sh
··· 17 17 readonly IFS_ARRAY_BIST_SCAN_MODE="1" 18 18 readonly IFS_PATH="/sys/devices/virtual/misc/intel_ifs" 19 19 readonly IFS_SCAN_SYSFS_PATH="${IFS_PATH}_${IFS_SCAN_MODE}" 20 + readonly IFS_ARRAY_BIST_SYSFS_PATH="${IFS_PATH}_${IFS_ARRAY_BIST_SCAN_MODE}" 20 21 readonly RUN_TEST="run_test" 21 22 readonly STATUS="status" 22 23 readonly DETAILS="details" ··· 479 478 test_bad_and_origin_ifs_image "$DEFAULT_IMG_ID" 480 479 test_ifs_scan_available_imgs 481 480 test_ifs_same_cpu_loop "$IFS_SCAN_MODE" "$RANDOM_CPU" "$LOOP_TIMES" 481 + fi 482 + 483 + if [[ -d "$IFS_ARRAY_BIST_SYSFS_PATH" ]]; then 484 + ifs_test_cpus "$SIBLINGS" "$IFS_ARRAY_BIST_SCAN_MODE" 485 + test_ifs_same_cpu_loop "$IFS_ARRAY_BIST_SCAN_MODE" "$RANDOM_CPU" "$LOOP_TIMES" 486 + else 487 + append_log "[$SKIP] No $IFS_ARRAY_BIST_SYSFS_PATH, skip IFS ARRAY BIST scan" 482 488 fi 483 489 } 484 490