summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/nx
diff options
context:
space:
mode:
authorHaren Myneni <haren@linux.ibm.com>2020-04-17 02:02:01 -0700
committerMichael Ellerman <mpe@ellerman.id.au>2020-04-20 16:53:14 +1000
commitdda44eb29c235735a5ceae283dc521cfca27885c (patch)
tree89470b22fe9ed17e01a43bd40898760d7b6cbf9e /drivers/crypto/nx
parent45f25a79fe50f330b563d012fc856a1103cb00d8 (diff)
downloadlinux-dda44eb29c235735a5ceae283dc521cfca27885c.tar.bz2
powerpc/vas: Add VAS user space API
On power9, userspace can send GZIP compression requests directly to NX once kernel establishes NX channel / window with VAS. This patch provides user space API which allows user space to establish channel using open VAS_TX_WIN_OPEN ioctl, mmap and close operations. Each window corresponds to file descriptor and application can open multiple windows. After the window is opened, VAS_TX_WIN_OPEN icoctl to open a window on specific VAS instance, mmap() system call to map the hardware address of engine's request queue into the application's virtual address space. Then the application can then submit one or more requests to the the engine by using the copy/paste instructions and pasting the CRBs to the virtual address (aka paste_address) returned by mmap(). Only NX GZIP coprocessor type is supported right now and allow GZIP engine access via /dev/crypto/nx-gzip device node. Thanks to Michael Ellerman for his changes and suggestions to make the ioctl generic to support any coprocessor type. Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> Signed-off-by: Haren Myneni <haren@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/1587114121.2275.1109.camel@hbabu-laptop
Diffstat (limited to 'drivers/crypto/nx')
0 files changed, 0 insertions, 0 deletions