]> git.baikalelectronics.ru Git - kernel.git/commit
crypto/nx: Get NX capabilities for GZIP coprocessor type
authorHaren Myneni <haren@linux.ibm.com>
Thu, 17 Jun 2021 20:38:36 +0000 (13:38 -0700)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 20 Jun 2021 11:58:58 +0000 (21:58 +1000)
commit676eb2668aa1a088ceacad6ea13ee6aefd7740f0
treeed00721cacd8614b2327040496199b5dfad1ccd3
parentdb03dbf72089eaf719fb02840fec9777914a0c72
crypto/nx: Get NX capabilities for GZIP coprocessor type

The hypervisor provides different NX capabilities that it
supports. These capabilities such as recommended minimum
compression / decompression lengths and the maximum request
buffer size in bytes are used to define the user space NX
request.

NX will reject the request if the buffer size is more than
the maximum buffer size. Whereas compression / decompression
lengths are recommended values for better performance.

Changes to get NX overall capabilities which points to the
specific features that the hypervisor supports. Then retrieve
the capabilities for the specific feature (available only
for NXGZIP).

Signed-off-by: Haren Myneni <haren@linux.ibm.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/f2b6a1fb8b6112595a73d81c67a35af4e7f5d0a3.camel@linux.ibm.com
drivers/crypto/nx/nx-common-pseries.c