summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2020-03-26 17:11:44 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2020-04-03 00:09:53 +1100
commitbbe9064f30f06e7791d04f9f61a842226a6a44fe (patch)
treeaf2540434e890eb3b12e18fb9c882aa513e73107
parent0c89649a70bed679fd408c1eb82fa99dbe1354a0 (diff)
downloadlinux-bbe9064f30f06e7791d04f9f61a842226a6a44fe.tar.gz
linux-bbe9064f30f06e7791d04f9f61a842226a6a44fe.tar.bz2
linux-bbe9064f30f06e7791d04f9f61a842226a6a44fe.zip
selftests/eeh: Skip ahci adapters
The ahci driver doesn't support error recovery, and if your root filesystem is attached to it the eeh-basic.sh test will likely kill your machine. So skip any device we see using the ahci driver. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200326061144.2006522-1-mpe@ellerman.id.au
-rwxr-xr-xtools/testing/selftests/powerpc/eeh/eeh-basic.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/testing/selftests/powerpc/eeh/eeh-basic.sh b/tools/testing/selftests/powerpc/eeh/eeh-basic.sh
index f988d2f42e8f..8a8d0f456946 100755
--- a/tools/testing/selftests/powerpc/eeh/eeh-basic.sh
+++ b/tools/testing/selftests/powerpc/eeh/eeh-basic.sh
@@ -41,6 +41,11 @@ for dev in `ls -1 /sys/bus/pci/devices/ | grep '\.0$'` ; do
continue;
fi
+ if [ "ahci" = "$(basename $(realpath /sys/bus/pci/devices/$dev/driver))" ] ; then
+ echo "$dev, Skipped: ahci doesn't support recovery"
+ continue
+ fi
+
# Don't inject errosr into an already-frozen PE. This happens with
# PEs that contain multiple PCI devices (e.g. multi-function cards)
# and injecting new errors during the recovery process will probably