Message ID | 20200916172228.83271-4-ganeshgr@linux.ibm.com (mailing list archive) |
---|---|
State | Changes Requested |
Headers | show |
Series | powerpc/mce: Fix mce handler and add selftest | expand |
Context | Check | Description |
---|---|---|
snowpatch_ozlabs/apply_patch | success | Successfully applied on branch powerpc/merge (27e2fbcd815a088d7d83c7158f76b6e95ab07c50) |
snowpatch_ozlabs/build-ppc64le | warning | Upstream build failed, couldn't test patch |
snowpatch_ozlabs/build-ppc64be | warning | Upstream build failed, couldn't test patch |
snowpatch_ozlabs/build-ppc64e | warning | Upstream build failed, couldn't test patch |
snowpatch_ozlabs/build-pmac32 | warning | Upstream build failed, couldn't test patch |
snowpatch_ozlabs/checkpatch | success | total: 0 errors, 0 warnings, 0 checks, 24 lines checked |
snowpatch_ozlabs/needsstable | success | Patch has no Fixes tags |
diff --git a/tools/testing/selftests/powerpc/Makefile b/tools/testing/selftests/powerpc/Makefile index 0830e63818c1..3c900b30da79 100644 --- a/tools/testing/selftests/powerpc/Makefile +++ b/tools/testing/selftests/powerpc/Makefile @@ -31,7 +31,8 @@ SUB_DIRS = alignment \ vphn \ math \ ptrace \ - security + security \ + mces endif diff --git a/tools/testing/selftests/powerpc/mces/Makefile b/tools/testing/selftests/powerpc/mces/Makefile new file mode 100644 index 000000000000..5a356295e952 --- /dev/null +++ b/tools/testing/selftests/powerpc/mces/Makefile @@ -0,0 +1,6 @@ +# SPDX-License-Identifier: GPL-2.0 +# Makefile for machine check exceptions selftests + +TEST_PROGS := slb_multihit.sh + +include ../../lib.mk diff --git a/tools/testing/selftests/powerpc/mces/slb_multihit.sh b/tools/testing/selftests/powerpc/mces/slb_multihit.sh new file mode 100755 index 000000000000..35c17c619d0a --- /dev/null +++ b/tools/testing/selftests/powerpc/mces/slb_multihit.sh @@ -0,0 +1,9 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0 + +if [ ! -e "/sys/kernel/debug/powerpc/mce_error_inject/inject_slb_multihit" ] ; then + exit 0; +fi + +echo 1 > /sys/kernel/debug/powerpc/mce_error_inject/inject_slb_multihit +exit 0
Add selftest to check if the system recovers from slb multihit errors. Signed-off-by: Ganesh Goudar <ganeshgr@linux.ibm.com> --- tools/testing/selftests/powerpc/Makefile | 3 ++- tools/testing/selftests/powerpc/mces/Makefile | 6 ++++++ tools/testing/selftests/powerpc/mces/slb_multihit.sh | 9 +++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 tools/testing/selftests/powerpc/mces/Makefile create mode 100755 tools/testing/selftests/powerpc/mces/slb_multihit.sh