diff options
author | Andrew Patterson <andrew.patterson@hp.com> | 2010-03-10 16:01:01 +0800 |
---|---|---|
committer | Huang Ying <ying.huang@intel.com> | 2010-03-10 16:01:01 +0800 |
commit | 9bd5e2c7886fca72f139cd8402488a2235957d41 (patch) | |
tree | 444350b8b2d4cd5d2cf92e26b47d28d64bcc7c62 | |
parent | 2e98a2b5fd65b51144337a595e3c731507633f43 (diff) | |
download | aer-inject-9bd5e2c7886fca72f139cd8402488a2235957d41.tar.gz |
aer-inject: add some data file examples
Add some example data files illustrating some simple test cases and
the different syntax variations.
Signed-off-by: Andrew Patterson <andrew.patterson@hp.com>
Signed-off-by: Huang Ying <ying.huang@intel.com>
-rw-r--r-- | examples/correctable | 13 | ||||
-rw-r--r-- | examples/fatal | 13 | ||||
-rw-r--r-- | examples/mixed-corr-nonfatal | 15 | ||||
-rw-r--r-- | examples/multiple-corr-nonfatal | 19 | ||||
-rw-r--r-- | examples/nonfatal | 13 | ||||
-rw-r--r-- | examples/syntax-variations | 37 | ||||
-rw-r--r-- | test/aer1 | 4 |
7 files changed, 110 insertions, 4 deletions
diff --git a/examples/correctable b/examples/correctable new file mode 100644 index 0000000..7c1eae9 --- /dev/null +++ b/examples/correctable @@ -0,0 +1,13 @@ +# Inject a correctable bad TLP error into the device with header log +# words 0 1 2 3. +# +# Either specify the PCI id on the command-line option or uncomment and edit +# the PCI_ID line below using the correct PCI ID. +# +# Note that system firmware/BIOS may mask certain errors and/or not report +# header log words. +# +AER +# PCI_ID [WWWW:]XX.YY.Z +COR_STATUS BAD_TLP +HEADER_LOG 0 1 2 3 diff --git a/examples/fatal b/examples/fatal new file mode 100644 index 0000000..42196cd --- /dev/null +++ b/examples/fatal @@ -0,0 +1,13 @@ +# Inject an uncorrectable/fatal malformed TLP error into the device +# with header log words 0 1 2 3. +# +# Either specify the PCI id on the command-line option or uncomment and edit +# the PCI_ID line below using the correct PCI ID. +# +# Note that system firmware/BIOS may mask certain errors, change their severity +# and/or not report header log words. +# +AER +# PCI_ID [WWWW:]XX.YY.Z +UNCOR_STATUS MALF_TLP +HEADER_LOG 0 1 2 3 diff --git a/examples/mixed-corr-nonfatal b/examples/mixed-corr-nonfatal new file mode 100644 index 0000000..5e1d1b4 --- /dev/null +++ b/examples/mixed-corr-nonfatal @@ -0,0 +1,15 @@ +# Simultaneously inject a correctable bad TLP and an +# uncorrectable/non-fatal completion abort error into the device with header +# log words 0 1 2 3. +# +# Either specify the PCI id on the command-line option or uncomment and edit +# the PCI_ID line below using the correct PCI ID. +# +# Note that system firmware/BIOS may mask certain errors, change their severity +# and/or not report header log words. +# +AER +# PCI_ID [WWWW:]XX.YY.Z +COR_STATUS BAD_TLP +UNCOR_STATUS COMP_ABORT +HEADER_LOG 0 1 2 3 diff --git a/examples/multiple-corr-nonfatal b/examples/multiple-corr-nonfatal new file mode 100644 index 0000000..11e7369 --- /dev/null +++ b/examples/multiple-corr-nonfatal @@ -0,0 +1,19 @@ +# Sequentially inject a correctable bad TLP and a +# uncorrectable/non-fatal completion abort error into the device with header +# various header log words. +# +# Either specify the PCI id on the command-line option or uncomment and edit +# the PCI_ID line below using the correct PCI ID. +# +# Note that system firmware/BIOS may mask certain errors, change their severity +# and/or not report header log words. +# +AER +# PCI_ID [WWWW:]XX.YY.Z +COR_STATUS BAD_TLP +HEADER_LOG 0 1 2 3 +# +AER +# PCI_ID [WWWW:]XX.YY.Z +UNCOR_STATUS COMP_ABORT +HEADER_LOG 4 5 6 7 diff --git a/examples/nonfatal b/examples/nonfatal new file mode 100644 index 0000000..21084c1 --- /dev/null +++ b/examples/nonfatal @@ -0,0 +1,13 @@ +# Inject an uncorrectable/non-fatal training error into the device +# with header log words 0 1 2 3. +# +# Either specify the PCI id on the command-line option or uncomment and edit +# the PCI_ID line below using the correct PCI ID. +# +# Note that system firmware/BIOS may mask certain errors, change their severity +# and/or not report header log words. +# +AER +# PCI_ID [WWWW:]XX.YY.Z +UNCOR_STATUS COMP_ABORT +HEADER_LOG 0 1 2 3 diff --git a/examples/syntax-variations b/examples/syntax-variations new file mode 100644 index 0000000..4663e49 --- /dev/null +++ b/examples/syntax-variations @@ -0,0 +1,37 @@ +# Variations in syntax +# +# Either specify the PCI id on the command-line option or uncomment and edit +# the PCI_ID line below using the correct PCI ID. +# +# We can use lower-case: +# +aer +# pci_id [WWWW:]XX.YY.Z +cor_status rcvr +header_log 0 1 2 3 +# +# We can use aliases for key words: +# +AER +# ID [WWWW:]XX.YY.Z +COR BAD_TLP +HL 4 5 6 7 +# +# We can put multiple errors on the same line and use octal and hexadecimal +# numbers: +# +AER +# PCI_ID [WWWW:]XX.YY.Z +COR_STATUS BAD_DLLP REP_ROLL +HEADER_LOG 010 0x9 0xa 0xB +# +# We can use defaults: +# +AER +# PCI_ID [WWWW:]XX.YY.Z +COR_STATUS REP_TIMER +# +# Newlines are ignored and the PCI ID can be specified on the command-line. +# We can also use raw numbers for the error: +# +AER COR_STATUS 0x2 HEADER_LOG 0 1 2 3 diff --git a/test/aer1 b/test/aer1 deleted file mode 100644 index c960175..0000000 --- a/test/aer1 +++ /dev/null @@ -1,4 +0,0 @@ -AER -BUS 0 DEV 0 FN 2 -COR_STATUS BAD_TLP -HEADER_LOG 0 1 2 3 |