]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/eeh: Correct retries in eeh_pe_reset_full()
authorSam Bobroff <sbobroff@linux.ibm.com>
Thu, 29 Nov 2018 03:16:42 +0000 (14:16 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 5 Feb 2019 00:55:45 +0000 (11:55 +1100)
commit607a7b406ba9531c3fadbc93dbfffef728fe37d0
treecc7ffaff8702be687dbab4819643cbeccbab2107
parentdba5913b99a6b7f00324dd0f288802689bb9f5ee
powerpc/eeh: Correct retries in eeh_pe_reset_full()

Currently, eeh_pe_reset_full() will only attempt to reset a PE more
than once if activating the reset state and deactivating it both
succeed, but later polling shows that it hasn't become active.

Change this so that it will try up to three times for any reason other
than an unrecoverable slot error and adjust the message generation so
that it's clear weather the reset has ultimately succeeded or failed.
This allows the reset to succeed in some situations where it would
currently fail.

Signed-off-by: Sam Bobroff <sbobroff@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/eeh.c