summaryrefslogtreecommitdiffstats
path: root/lib/ucmpdi2.c
diff options
context:
space:
mode:
authorJan Glauber <jglauber@cavium.com>2018-04-09 17:45:51 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-06-16 09:18:23 +0200
commit11a145ea468da35b82112aff5351fca7bf6d4ca7 (patch)
treef86496b50cf6c58c7ff922720671cb770b2f1cbc /lib/ucmpdi2.c
parent3d3a603f096bfed660f395352733950ba92c4b5f (diff)
downloadtalos-obmc-linux-11a145ea468da35b82112aff5351fca7bf6d4ca7.tar.gz
talos-obmc-linux-11a145ea468da35b82112aff5351fca7bf6d4ca7.zip
crypto: cavium - Limit result reading attempts
commit c782a8c43e94ba6c09e9de2d69b5e3a5840ce61c upstream. After issuing a request an endless loop was used to read the completion state from memory which is asynchronously updated by the ZIP coprocessor. Add an upper bound to the retry attempts to prevent a CPU getting stuck forever in case of an error. Additionally, add a read memory barrier and a small delay between the reading attempts. Signed-off-by: Jan Glauber <jglauber@cavium.com> Reviewed-by: Robert Richter <rrichter@cavium.com> Cc: stable <stable@vger.kernel.org> # 4.14 Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/ucmpdi2.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud