]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries/vas: Integrate API with open/close windows
authorHaren Myneni <haren@linux.ibm.com>
Thu, 17 Jun 2021 20:36:28 +0000 (13:36 -0700)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 20 Jun 2021 11:58:57 +0000 (21:58 +1000)
commitd391ace9fc22b099e819e6b345f7998f9c7cb818
tree8597a07538c6b445657d77b960ca738b39b65563
parent61f5bd9f6ad362728764911de1b53140facf01e7
powerpc/pseries/vas: Integrate API with open/close windows

This patch adds VAS window allocatioa/close with the corresponding
hcalls. Also changes to integrate with the existing user space VAS
API and provide register/unregister functions to NX pseries driver.

The driver register function is used to create the user space
interface (/dev/crypto/nx-gzip) and unregister to remove this entry.

The user space process opens this device node and makes an ioctl
to allocate VAS window. The close interface is used to deallocate
window.

Signed-off-by: Haren Myneni <haren@linux.ibm.com>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/e8d956bace3f182c4d2e66e343ff37cb0391d1fd.camel@linux.ibm.com
arch/powerpc/include/asm/vas.h
arch/powerpc/platforms/pseries/Makefile
arch/powerpc/platforms/pseries/vas.c