]> Git Repo - linux.git/commitdiff
selftests: ifs: verify IFS ARRAY BIST functionality
authorPengfei Xu <[email protected]>
Fri, 31 May 2024 07:53:50 +0000 (15:53 +0800)
committerShuah Khan <[email protected]>
Thu, 11 Jul 2024 17:31:11 +0000 (11:31 -0600)
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]>
tools/testing/selftests/drivers/platform/x86/intel/ifs/test_ifs.sh

index 82fc5a461b1279ac783f5ba8071cd2cf5e452b72..8b68964b29f468465d4ce69172d075ede8fcffa4 100755 (executable)
@@ -17,6 +17,7 @@ readonly IFS_SCAN_MODE="0"
 readonly IFS_ARRAY_BIST_SCAN_MODE="1"
 readonly IFS_PATH="/sys/devices/virtual/misc/intel_ifs"
 readonly IFS_SCAN_SYSFS_PATH="${IFS_PATH}_${IFS_SCAN_MODE}"
+readonly IFS_ARRAY_BIST_SYSFS_PATH="${IFS_PATH}_${IFS_ARRAY_BIST_SCAN_MODE}"
 readonly RUN_TEST="run_test"
 readonly STATUS="status"
 readonly DETAILS="details"
@@ -479,6 +480,13 @@ test_ifs()
                test_ifs_scan_available_imgs
                test_ifs_same_cpu_loop "$IFS_SCAN_MODE" "$RANDOM_CPU" "$LOOP_TIMES"
        fi
+
+       if [[ -d "$IFS_ARRAY_BIST_SYSFS_PATH" ]]; then
+               ifs_test_cpus "$SIBLINGS" "$IFS_ARRAY_BIST_SCAN_MODE"
+               test_ifs_same_cpu_loop "$IFS_ARRAY_BIST_SCAN_MODE" "$RANDOM_CPU" "$LOOP_TIMES"
+       else
+               append_log "[$SKIP] No $IFS_ARRAY_BIST_SYSFS_PATH, skip IFS ARRAY BIST scan"
+       fi
 }
 
 trap ifs_cleanup SIGTERM SIGINT
This page took 0.063689 seconds and 4 git commands to generate.