diff options
author | Chen Gong <gong.chen@linux.intel.com> | 2013-07-18 04:47:26 -0400 |
---|---|---|
committer | Chen Gong <gong.chen@linux.intel.com> | 2013-07-18 04:50:07 -0400 |
commit | 023217c5e7f396c44e71b9e4674c932d78a00cc3 (patch) | |
tree | 590323363fd5bd31473fa0aa27975bc0012cf059 | |
parent | b8aff3581eaf198de8df7cc358bf5c3507d5fe71 (diff) | |
download | mce-test-023217c5e7f396c44e71b9e4674c932d78a00cc3.tar.gz |
Improve test reliability for SRAR case
Remove possible EDAC driver to avoid interference.
Signed-off-by: Chen Gong <gong.chen@linux.intel.com>
-rwxr-xr-x | cases/function/core_recovery/srar_recovery.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cases/function/core_recovery/srar_recovery.sh b/cases/function/core_recovery/srar_recovery.sh index e41ef82..f011d3d 100755 --- a/cases/function/core_recovery/srar_recovery.sh +++ b/cases/function/core_recovery/srar_recovery.sh @@ -6,6 +6,7 @@ export ROOT=`(cd ../../../; pwd)` . $ROOT/lib/mce.sh inject_type=0x00000010 +EDAC_TYPE="" invalid() { @@ -52,6 +53,18 @@ if [ $? -ne 0 ]; then invalid "Uncorrectable non-fatal Memory Error is not supported" fi +# remove possible EDAC module, otherwise, the error information will be ate +# by EDAC module and mcelog will not get it. +# By now, only i7core_edac and sb_edac hook into the mcelog kernel buffer +cat /proc/modules | grep -q i7core_edac +if [ $? -eq 0 ]; then + EDAC_TYPE="i7core_edac" +else + cat /proc/modules | grep -q sb_edac + [ $? -eq 0 ] && EDAC_TYPE="sb_edac" +fi +rmmod $EDAC_TYPE >/dev/null 2>&1 + touch trigger tail -f trigger | ./core_recovery $1 > log & addr=`cat log |cut -d' ' -f6|head -1` |