Skip to content

Commit bb408da

Browse files
Pengfei Xushuahkh
authored andcommitted
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 <[email protected]> Reviewed-by: Kuppuswamy Sathyanarayanan <[email protected]> Co-developed-by: Ashok Raj <[email protected]> Signed-off-by: Ashok Raj <[email protected]> Signed-off-by: Pengfei Xu <[email protected]> Acked-by: Jithu Joseph <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 3170f7a commit bb408da

File tree

1 file changed

+8
-0
lines changed
  • tools/testing/selftests/drivers/platform/x86/intel/ifs

1 file changed

+8
-0
lines changed

tools/testing/selftests/drivers/platform/x86/intel/ifs/test_ifs.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ readonly IFS_SCAN_MODE="0"
1717
readonly IFS_ARRAY_BIST_SCAN_MODE="1"
1818
readonly IFS_PATH="/sys/devices/virtual/misc/intel_ifs"
1919
readonly IFS_SCAN_SYSFS_PATH="${IFS_PATH}_${IFS_SCAN_MODE}"
20+
readonly IFS_ARRAY_BIST_SYSFS_PATH="${IFS_PATH}_${IFS_ARRAY_BIST_SCAN_MODE}"
2021
readonly RUN_TEST="run_test"
2122
readonly STATUS="status"
2223
readonly DETAILS="details"
@@ -479,6 +480,13 @@ test_ifs()
479480
test_ifs_scan_available_imgs
480481
test_ifs_same_cpu_loop "$IFS_SCAN_MODE" "$RANDOM_CPU" "$LOOP_TIMES"
481482
fi
483+
484+
if [[ -d "$IFS_ARRAY_BIST_SYSFS_PATH" ]]; then
485+
ifs_test_cpus "$SIBLINGS" "$IFS_ARRAY_BIST_SCAN_MODE"
486+
test_ifs_same_cpu_loop "$IFS_ARRAY_BIST_SCAN_MODE" "$RANDOM_CPU" "$LOOP_TIMES"
487+
else
488+
append_log "[$SKIP] No $IFS_ARRAY_BIST_SYSFS_PATH, skip IFS ARRAY BIST scan"
489+
fi
482490
}
483491

484492
trap ifs_cleanup SIGTERM SIGINT

0 commit comments

Comments
 (0)