mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-15 19:56:03 +00:00
selftests/powerpc: Add VF recovery tests
The basic EEH test ignores VFs since we the way the eeh_dev_break debugfs interface works means that if multiple VFs are enabled we may cause errors on all them them. However, we can work around that by only enabling a single VF at a time. This patch adds some infrastructure for finding SR-IOV capable devices and enabling / disabling VFs so we can exercise the VF specific EEH recovery paths. Two new tests are added, one for testing EEH aware devices and one for EEH un-aware VFs. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20201103044503.917128-3-oohall@gmail.com
This commit is contained in:
parent
d6749ccba7
commit
38132cc0e5
3 changed files with 188 additions and 0 deletions
45
tools/testing/selftests/powerpc/eeh/eeh-vf-aware.sh
Executable file
45
tools/testing/selftests/powerpc/eeh/eeh-vf-aware.sh
Executable file
35
tools/testing/selftests/powerpc/eeh/eeh-vf-unaware.sh
Executable file
35
tools/testing/selftests/powerpc/eeh/eeh-vf-unaware.sh
Executable file
Loading…
Add table
Add a link
Reference in a new issue