Skip to content

Commit bbe9064

Browse files
committed
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 0c89649 commit bbe9064

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/testing/selftests/powerpc/eeh/eeh-basic.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ for dev in `ls -1 /sys/bus/pci/devices/ | grep '\.0$'` ; do
4141
continue;
4242
fi
4343

44+
if [ "ahci" = "$(basename $(realpath /sys/bus/pci/devices/$dev/driver))" ] ; then
45+
echo "$dev, Skipped: ahci doesn't support recovery"
46+
continue
47+
fi
48+
4449
# Don't inject errosr into an already-frozen PE. This happens with
4550
# PEs that contain multiple PCI devices (e.g. multi-function cards)
4651
# and injecting new errors during the recovery process will probably

0 commit comments

Comments
 (0)