]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/eeh: Bump EEH wait time to 60s
authorOliver O'Halloran <oohall@gmail.com>
Wed, 22 Jan 2020 03:11:25 +0000 (14:11 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Feb 2020 07:36:57 +0000 (08:36 +0100)
commit8c2357b9b237f8e0296ff428c7d0fada5e7c5d59
treedc883f0e55c88ab47041f98e098cdf1abc42e2a9
parentb023e342e1945421a5f575d5a44ce962d0eff63a
selftests/eeh: Bump EEH wait time to 60s

[ Upstream commit b8b02690e9a2996e06d1e05237b9d88b834f2671 ]

Some newer cards supported by aacraid can take up to 40s to recover
after an EEH event. This causes spurious failures in the basic EEH
self-test since the current maximim timeout is only 30s.

Fix the immediate issue by bumping the timeout to a default of 60s,
and allow the wait time to be specified via an environmental variable
(EEH_MAX_WAIT).

Reported-by: Steve Best <sbest@redhat.com>
Suggested-by: Douglas Miller <dougmill@us.ibm.com>
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200122031125.25991-1-oohall@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/powerpc/eeh/eeh-functions.sh