aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Gong <gong.chen@linux.intel.com>2011-09-20 10:42:50 +0800
committerAndi Kleen <ak@linux.intel.com>2012-01-12 11:21:05 -0800
commite2b189e9e80e59a335b8c783aa7fa1628c353555 (patch)
tree3b11d827f79c379a506b001547f3fe5e01b57172
parente7df20db2f8601dbf3af2360d90ad17137d8e8c9 (diff)
downloadmce-test-e2b189e9e80e59a335b8c783aa7fa1628c353555.tar.gz
add SRAR test case in the user context situation
This is part of the SRAR test cases. It is used to test DCU error happening under user land and other CPUs working in the user context, kernel context, NMI context and IRQ context. Signed-off-by: Chen Gong <gong.chen@linux.intel.com> Signed-off-by: Andi Kleen <ak@linux.intel.com>
-rwxr-xr-xcases/soft-inj/recoverable_ucr/cases.sh2
-rw-r--r--cases/soft-inj/recoverable_ucr/data/srar_usr_dcu7
-rw-r--r--cases/soft-inj/recoverable_ucr/data/srar_usr_dcu_irq7
-rw-r--r--cases/soft-inj/recoverable_ucr/data/srar_usr_dcu_nmi6
-rw-r--r--doc/cases/soft-inj_recoverable_ucr.txt54
5 files changed, 75 insertions, 1 deletions
diff --git a/cases/soft-inj/recoverable_ucr/cases.sh b/cases/soft-inj/recoverable_ucr/cases.sh
index 054a97b..ee74ccb 100755
--- a/cases/soft-inj/recoverable_ucr/cases.sh
+++ b/cases/soft-inj/recoverable_ucr/cases.sh
@@ -37,7 +37,7 @@ verify()
{
local removes="TSC TIME PROCESSOR"
case "$bcase" in
- srao_*)
+ srao_*|srar_*)
soft_inject_verify_mcelog
verify_klog $klog
soft_inject_verify_return_val
diff --git a/cases/soft-inj/recoverable_ucr/data/srar_usr_dcu b/cases/soft-inj/recoverable_ucr/data/srar_usr_dcu
new file mode 100644
index 0000000..335b6bc
--- /dev/null
+++ b/cases/soft-inj/recoverable_ucr/data/srar_usr_dcu
@@ -0,0 +1,7 @@
+CPU 0 BANK 2
+STATUS UNCORRECTED SRAR 0x134
+MCGSTATUS RIPV MCIP EIPV
+ADDR 0x12345000
+MISC 0x8c
+RIP 0x73:0x1eadbabe
+NOBROADCAST
diff --git a/cases/soft-inj/recoverable_ucr/data/srar_usr_dcu_irq b/cases/soft-inj/recoverable_ucr/data/srar_usr_dcu_irq
new file mode 100644
index 0000000..5572bf6
--- /dev/null
+++ b/cases/soft-inj/recoverable_ucr/data/srar_usr_dcu_irq
@@ -0,0 +1,7 @@
+CPU 3 BANK 2
+STATUS UNCORRECTED SRAR 0x134
+MCGSTATUS RIPV MCIP EIPV
+ADDR 0x12345000
+MISC 0x8c
+RIP 0x73:0x1eadbabe
+IRQBROADCAST
diff --git a/cases/soft-inj/recoverable_ucr/data/srar_usr_dcu_nmi b/cases/soft-inj/recoverable_ucr/data/srar_usr_dcu_nmi
new file mode 100644
index 0000000..3af1cc7
--- /dev/null
+++ b/cases/soft-inj/recoverable_ucr/data/srar_usr_dcu_nmi
@@ -0,0 +1,6 @@
+CPU 0 BANK 2
+STATUS UNCORRECTED SRAR 0x134
+MCGSTATUS RIPV MCIP EIPV
+ADDR 0x12345000
+MISC 0x8c
+RIP 0x73:0x1eadbabe
diff --git a/doc/cases/soft-inj_recoverable_ucr.txt b/doc/cases/soft-inj_recoverable_ucr.txt
index 4b10338..47a3a09 100644
--- a/doc/cases/soft-inj_recoverable_ucr.txt
+++ b/doc/cases/soft-inj_recoverable_ucr.txt
@@ -136,3 +136,57 @@ overall: (7 cases)
* No warning or bug during kernel processing.
* Exception message is "Action optional with unknown MCACOD"
+8.srar_usr_dcu
+- Objective:
+ * Test logic of uncorrected with S & AR
+- Code path tested:
+ * do_machine_check()
+ * mce_start()
+ * mce_timeout() except if (*t <= 0) branch
+ * mce_severity()
+ * mce_get_rip()
+ * mce_log()
+ * mce_end()
+ * mce_reign()
+- Reference:
+ * Inject data file: cases/soft-inj/recoverable_uc/data/srar_usr_dcu
+- Expected result:
+ * No warning or bug during kernel processing.
+ * Exception message is "Data CACHE Level-0 Data-Read Error"
+
+9.srar_usr_dcu_nmi
+- Objective:
+ * Test logic of uncorrected with S & AR
+- Code path tested:
+ * do_machine_check()
+ * mce_start()
+ * mce_timeout() except if (*t <= 0) branch
+ * mce_severity()
+ * mce_get_rip()
+ * mce_log()
+ * mce_end()
+ * mce_reign()
+- Reference:
+ * Inject data file: cases/soft-inj/recoverable_uc/data/srar_usr_dcu_nmi
+- Expected result:
+ * No warning or bug during kernel processing.
+ * Exception message is "Data CACHE Level-0 Data-Read Error"
+
+10.srar_dcu_irq
+- Objective:
+ * Test logic of uncorrected with S & AR
+- Code path tested:
+ * do_machine_check()
+ * mce_start()
+ * mce_timeout() except if (*t <= 0) branch
+ * mce_severity()
+ * mce_get_rip()
+ * mce_log()
+ * mce_end()
+ * mce_reign()
+- Reference:
+ * Inject data file: cases/soft-inj/recoverable_uc/data/srar_dcu_irq
+- Expected result:
+ * No warning or bug during kernel processing.
+ * Exception message is "Data CACHE Level-0 Data-Read Error"
+