Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crypto/nx: Remove 'pid' in vas_tx_win_attr struct

When window is opened, pid reference is taken for user space
windows. Not needed for kernel windows. So remove 'pid' in
vas_tx_win_attr struct.

Signed-off-by: Haren Myneni <haren@linux.ibm.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1587114674.2275.1132.camel@hbabu-laptop

authored by

Haren Myneni and committed by
Michael Ellerman
040b00ac 1af11ae2

-2
-1
arch/powerpc/include/asm/vas.h
··· 86 86 int wcreds_max; 87 87 int lpid; 88 88 int pidr; /* hardware PID (from SPRN_PID) */ 89 - int pid; /* linux process id */ 90 89 int pswid; 91 90 int rsvd_txbuf_count; 92 91 int tc_mode;
-1
drivers/crypto/nx/nx-common-powernv.c
··· 692 692 */ 693 693 vas_init_tx_win_attr(&txattr, coproc->ct); 694 694 txattr.lpid = 0; /* lpid is 0 for kernel requests */ 695 - txattr.pid = 0; /* pid is 0 for kernel requests */ 696 695 697 696 /* 698 697 * Open a VAS send window which is used to send request to NX.