summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/cavium/zip/zip_inflate.c
Commit message (Collapse)AuthorAgeFilesLines
* crypto: cavium - Limit result reading attemptsJan Glauber2018-04-211-2/+2
| | | | | | | | | | | | | | | 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>
* crypto: zip - Add Compression/Decompression statisticsMahipal Challa2017-03-091-0/+12
| | | | | | | | | Add statistics for compression/decompression hardware offload under debugfs. Signed-off-by: Mahipal Challa <Mahipal.Challa@cavium.com> Signed-off-by: Jan Glauber <jglauber@cavium.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
* crypto: zip - Wire-up Compression / decompression HW offloadMahipal Challa2017-03-091-0/+211
This contains changes for adding compression/decompression h/w offload functionality for both DEFLATE and LZS. Signed-off-by: Mahipal Challa <Mahipal.Challa@cavium.com> Signed-off-by: Jan Glauber <jglauber@cavium.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
OpenPOWER on IntegriCloud