]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commitb4ba22114c78de48fda3818f569f75e97d58c719
treeed00721cacd8614b2327040496199b5dfad1ccd3
parent7da00b0e71334aa1e3d8db1cc1f40eb47cb1e188
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