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> | 2015-01-21 21:24:00 -0500 |
commit | fde46a96edd22ca3ac295d513dd512a4f7f02042 (patch) | |
tree | 590323363fd5bd31473fa0aa27975bc0012cf059 | |
parent | 79e0e1a878fdb328a788338cf061174dac3f88a3 (diff) | |
download | mce-test-fde46a96edd22ca3ac295d513dd512a4f7f02042.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` |