diff options
author | Andi Kleen <ak@linux.intel.com> | 2009-08-17 17:30:44 +0200 |
---|---|---|
committer | Andi Kleen <ak@linux.intel.com> | 2009-08-17 17:30:44 +0200 |
commit | 16b188ad99489a60610440519aa5dfebdb9a3712 (patch) | |
tree | a2ceaddf977fd6cd00d4f3046a6a1fcd1396aeaf | |
parent | 31e224da3e368042c56b2ee9cdc225c9590aad56 (diff) | |
parent | 852f0e29e8eb69599522f72202df90cac35a187e (diff) | |
download | mce-test-16b188ad99489a60610440519aa5dfebdb9a3712.tar.gz |
Merge branch 'master' of git://git.kernel.org/pub/scm/utils/cpu/mce/mce-test
-rw-r--r-- | README | 21 | ||||
-rw-r--r-- | doc/cases/soft-inj_panic_ucr.txt | 37 | ||||
-rw-r--r-- | doc/howto.txt | 48 |
3 files changed, 83 insertions, 23 deletions
@@ -14,6 +14,7 @@ Here is a short description of what is included in the package README This document + COPYING GNU General Public License @@ -21,7 +22,6 @@ Makefile Top level make file for MCE test suite drivers/* - Contains test drivers, which drive test procedure and do some common works for test drivers. There is one directory for each test driver, the user interface of a driver is the driver.sh @@ -42,6 +42,10 @@ config/* parameters for test driver, which test cases are used in test, the parameters for test cases, etc. +tsrc/* + Some standalone test programs for various parts of the machine + check code. + lib/* Contains some shell scripts, in which some common shell functions and variable definitions are defined to be used by @@ -76,12 +80,21 @@ bin/ Some tools used by test drivers or test cases will be installed into this directory. + +Test Instruction +---------------- + +Please refer to corresponding section in doc/howto.txt. + + Futher Information ------------------ For futher information about MCE test suite, please refer to documents in doc sub-directory. -README.kdump: For testing via kdump. With kdump, a real panic - will triggered. -design.txt: Simple design document +doc/howto.txt: a more detailed HOWTO document + +doc/cases/*.txt: Description of every test case, including test + objective, code patch tested, reference and + expected results diff --git a/doc/cases/soft-inj_panic_ucr.txt b/doc/cases/soft-inj_panic_ucr.txt index 815febc..867c0b7 100644 --- a/doc/cases/soft-inj_panic_ucr.txt +++ b/doc/cases/soft-inj_panic_ucr.txt @@ -1,4 +1,4 @@ -Overall: (4 cases) +Overall: (6 cases) - Test method * Add cases/soft-inj/panic_ucr/cases.sh into configuration file, and invoke @@ -98,3 +98,38 @@ Overall: (4 cases) * No warning or bug during kernel processing. * MCE records collected via kernel panic log is same as reference ones. * Kernel panic message is "Machine check from unknown source" + +5.srao_ewb_noripv +- Objective: + * Test MCE handler logic for EIPV and RIPV MCE in kernel space +- Code path tested: + * do_machine_check() + * mce_start() + * mce_end() + * mce_severity() + * mce_regin() for_each_possible_loops loops(check mce-severity message) + * mce_panic() + * mce_log() + * print_mce() +- Reference: + * Inject data file: cases/soft-inj/recoverable_ucr/data/srao_ewb_noripv +- Expected result: + * No warning or bug during kernel processing. + * MCE records collected via kernel panic log is same as reference ones. + * Kernel panic message is "Fatal Machine check" + * Exception message is "Neither restart nor error IP" + +6.srao_mem_scrub_noripv +- Objective: + * Test MCE handler logic for EIPV and RIPV MCE in kernel space +- Code path tested: + * the same as srao_ewb_noripv +- Reference: + * Inject data file: + * cases/soft-inj/recoverable_ucr/data/srao_mem_scrub_noripv +- Expected result: + * No warning or bug during kernel processing. + * MCE records collected via kernel panic log is same as reference ones. + * Kernel panic message is "Fatal Machine check" + * Exception message is "Neither restart nor error IP" + diff --git a/doc/howto.txt b/doc/howto.txt index f7d08ad..4939303 100644 --- a/doc/howto.txt +++ b/doc/howto.txt @@ -18,26 +18,36 @@ guide and how to add new test cases into test suite. 0. Quick shortcut ------------------ + +- Install the Linux kernel with full MCE injection support, including + latest Linux kernel (2.6.31) and MCE injection enhancement patchset + in: http://ftp.kernel.org/pub/linux/kernel/people/yhuang/mce/. Make + sure following configuration options are enabled: + + CONFIG_X86_MCE=y + CONFIG_X86_MCE_INTEL=y + CONFIG_X86_MCE_INJECT=y + - Get mcelog git version from -git://git.kernel.org/pub/scm/utils/cpu/mce/mcelog.git. -and install in /usr/sbin (or rather first in your $PATH) + git://git.kernel.org/pub/scm/utils/cpu/mce/mcelog.git. + and install in /usr/sbin (or rather first in your $PATH) -git clone git://git.kernel.org/pub/scm/utils/cpu/mce/mcelog.git -cd mcelog -make -sudo make install + git clone git://git.kernel.org/pub/scm/utils/cpu/mce/mcelog.git + cd mcelog + make + sudo make install - Get mce-inject git version from -git://git.kernel.org/pub/scm/utils/cpu/mce/mce-inject.git. + git://git.kernel.org/pub/scm/utils/cpu/mce/mce-inject.git. -git clone git://git.kernel.org/pub/scm/utils/cpu/mce/mce-inject.git -cd mce-inject -make -sudo make install + git clone git://git.kernel.org/pub/scm/utils/cpu/mce/mce-inject.git + cd mce-inject + make + sudo make install - Run make test-simple -This will do the basic tests, but not the more complicated kdump ones. -For more information on those read below. + This will do the basic tests, but not the more complicated kdump ones. + For more information on those read below. 1. Introduction --------------- @@ -237,9 +247,7 @@ instructions. a. Linux kernel and user space tools as follow should be installed - - A Linux kernel with MCE injection support. Latest Linux kernel - MCE injection patches can be found at: - git://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-mce-2.6.git + - A Linux kernel with full MCE injection support (see 0) - mce-inject tool (see 3.1) - mcelog with proper version (see 3.2) @@ -287,8 +295,12 @@ Enterprise Linux 5. Since KDUMP is supported by the above mentioned distro's the test driver was written and tested on them. Contribution towards supporting more distributions are welcome. -a. Install Linux kernel with MCE injection support. Latest Linux - kernel MCE injection patches can be found at: FIXME url. +a. Install Linux kernel with full MCE injection and KDUMP support. In + addition to MCE injection support in section 0, the following + configuration options should be enabled too: + + CONFIG_KEXEC=y + CONFIG_CRASH_DUMP=y b. Install these additional packages: |