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
This commit is contained in:
Родитель
0c89649a70
Коммит
bbe9064f30
|
@ -41,6 +41,11 @@ for dev in `ls -1 /sys/bus/pci/devices/ | grep '\.0$'` ; do
|
||||||
continue;
|
continue;
|
||||||
fi
|
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
|
# Don't inject errosr into an already-frozen PE. This happens with
|
||||||
# PEs that contain multiple PCI devices (e.g. multi-function cards)
|
# PEs that contain multiple PCI devices (e.g. multi-function cards)
|
||||||
# and injecting new errors during the recovery process will probably
|
# and injecting new errors during the recovery process will probably
|
||||||
|
|
Загрузка…
Ссылка в новой задаче