From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3yblFv2hRXzDqpb for ; Tue, 14 Nov 2017 22:12:03 +1100 (AEDT) In-Reply-To: <1506321782.13257.4.camel@hbabu-laptop> To: Haren Myneni , herbert@gondor.apana.org.au, ddstreet@ieee.org, mikey@neuling.org, suka@us.ibm.com, npiggin@gmail.com From: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, linux-crypto@vger.kernel.org Subject: Re: [1/2] crypto/nx: Use percpu send window for NX requests Message-Id: <3yblFv25bsz9sPr@ozlabs.org> Date: Tue, 14 Nov 2017 22:12:03 +1100 (AEDT) List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, 2017-09-25 at 06:43:02 UTC, Haren Myneni wrote: > [PATCH 1/2] crypto/nx: Use percpu send window for NX requests > > For P9 NX, the send window is opened for each crypto session and closed > upon free. But VAS supports 64K windows per chip for all coprocessors > including in user space support. So there is a possibility of not > getting the window for kernel requests. > > This patch reserves windows for each coprocessor type (NX842) and are > available forever for kernel requests, Opens each window for each CPU > on the corresponding chip during driver initialization. So then use the > percpu txwin for NX requests depends on the CPU on which the process > is executing. > > Signed-off-by: Haren Myneni Series applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/976dd6490b1b45727733a3ee1e25e1 cheers