{"id":808085,"url":"http://patchwork.ozlabs.org/api/1.0/patches/808085/?format=json","project":{"id":2,"url":"http://patchwork.ozlabs.org/api/1.0/projects/2/?format=json","name":"Linux PPC development","link_name":"linuxppc-dev","list_id":"linuxppc-dev.lists.ozlabs.org","list_email":"linuxppc-dev@lists.ozlabs.org","web_url":"https://github.com/linuxppc/wiki/wiki","scm_url":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git","webscm_url":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/"},"msgid":"<1504163845.4681.8.camel@hbabu-laptop>","date":"2017-08-31T07:17:25","name":"[V4,5/7] crypto/nx: Use kzalloc for workmem allocation","commit_ref":"f05368336b3ae399f66cf511c52c6d69c7bc6b39","pull_url":null,"state":"accepted","archived":false,"hash":"ac711ddad81c9c5fa62a5af6c2f14b396e3b3c51","submitter":{"id":12875,"url":"http://patchwork.ozlabs.org/api/1.0/people/12875/?format=json","name":"Haren Myneni","email":"haren@linux.vnet.ibm.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1504163845.4681.8.camel@hbabu-laptop/mbox/","series":[{"id":757,"url":"http://patchwork.ozlabs.org/api/1.0/series/757/?format=json","date":"2017-08-31T07:10:13","name":"Enable NX 842 compression engine on Power9","version":4,"mbox":"http://patchwork.ozlabs.org/series/757/mbox/"}],"check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/808085/checks/","tags":{},"headers":{"Return-Path":"<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>","X-Original-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Delivered-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Received":["from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xjYfN3GDgz9s7c\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 31 Aug 2017 17:19:40 +1000 (AEST)","from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xjYfN16kVzDrSN\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 31 Aug 2017 17:19:40 +1000 (AEST)","from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com\n\t[148.163.158.5])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3xjYc82Lq5zDqmV\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tThu, 31 Aug 2017 17:17:44 +1000 (AEST)","from pps.filterd (m0098417.ppops.net [127.0.0.1])\n\tby mx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id\n\tv7V7GCnU093123\n\tfor <linuxppc-dev@lists.ozlabs.org>; Thu, 31 Aug 2017 03:17:41 -0400","from e36.co.us.ibm.com (e36.co.us.ibm.com [32.97.110.154])\n\tby mx0a-001b2d01.pphosted.com with ESMTP id 2cpar7cdfr-1\n\t(version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT)\n\tfor <linuxppc-dev@lists.ozlabs.org>; Thu, 31 Aug 2017 03:17:41 -0400","from localhost\n\tby e36.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use\n\tOnly! Violators will be prosecuted\n\tfor <linuxppc-dev@lists.ozlabs.org> from <haren@linux.vnet.ibm.com>; \n\tThu, 31 Aug 2017 01:17:40 -0600","from b03cxnp08028.gho.boulder.ibm.com (9.17.130.20)\n\tby e36.co.us.ibm.com (192.168.1.136) with IBM ESMTP SMTP Gateway:\n\tAuthorized Use Only! Violators will be prosecuted; \n\tThu, 31 Aug 2017 01:17:37 -0600","from b03ledav001.gho.boulder.ibm.com\n\t(b03ledav001.gho.boulder.ibm.com [9.17.130.232])\n\tby b03cxnp08028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with\n\tESMTP id v7V7Hbwa31391892; Thu, 31 Aug 2017 00:17:37 -0700","from b03ledav001.gho.boulder.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id F0C2F6E0A7;\n\tThu, 31 Aug 2017 01:17:36 -0600 (MDT)","from [9.70.82.25] (unknown [9.70.82.25])\n\tby b03ledav001.gho.boulder.ibm.com (Postfix) with ESMTP id 4B67C6E0A3;\n\tThu, 31 Aug 2017 01:17:36 -0600 (MDT)"],"Subject":"[PATCH V4 5/7] crypto/nx: Use kzalloc for workmem allocation","From":"Haren Myneni <haren@linux.vnet.ibm.com>","To":"mpe@ellerman.id.au, herbert@gondor.apana.org.au","Content-Type":"text/plain; charset=\"UTF-8\"","Date":"Thu, 31 Aug 2017 00:17:25 -0700","Mime-Version":"1.0","X-Mailer":"Evolution 2.28.3 ","Content-Transfer-Encoding":"7bit","X-TM-AS-GCONF":"00","x-cbid":"17083107-0020-0000-0000-00000CA41940","X-IBM-SpamModules-Scores":"","X-IBM-SpamModules-Versions":"BY=3.00007640; HX=3.00000241; KW=3.00000007;\n\tPH=3.00000004; SC=3.00000226; SDB=6.00910095; UDB=6.00456509;\n\tIPR=6.00690375; \n\tBA=6.00005562; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009;\n\tZB=6.00000000; \n\tZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00016938;\n\tXFM=3.00000015; UTC=2017-08-31 07:17:40","X-IBM-AV-DETECTION":"SAVI=unused REMOTE=unused XFE=unused","x-cbparentid":"17083107-0021-0000-0000-00005DF0AF3E","Message-Id":"<1504163845.4681.8.camel@hbabu-laptop>","X-Proofpoint-Virus-Version":"vendor=fsecure engine=2.50.10432:, ,\n\tdefinitions=2017-08-31_02:, , signatures=0","X-Proofpoint-Spam-Details":"rule=outbound_notspam policy=outbound score=0\n\tspamscore=0 suspectscore=2\n\tmalwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam\n\tadjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000\n\tdefinitions=main-1708310111","X-BeenThere":"linuxppc-dev@lists.ozlabs.org","X-Mailman-Version":"2.1.23","Precedence":"list","List-Id":"Linux on PowerPC Developers Mail List\n\t<linuxppc-dev.lists.ozlabs.org>","List-Unsubscribe":"<https://lists.ozlabs.org/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe>","List-Archive":"<http://lists.ozlabs.org/pipermail/linuxppc-dev/>","List-Post":"<mailto:linuxppc-dev@lists.ozlabs.org>","List-Help":"<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help>","List-Subscribe":"<https://lists.ozlabs.org/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>","Cc":"mikey@neuling.org, linuxram@us.ibm.com, npiggin@gmail.com,\n\tsuka@us.ibm.com, \n\tlinux-crypto@vger.kernel.org, linuxppc-dev@lists.ozlabs.org,\n\tddstreet@ieee.org","Errors-To":"linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org","Sender":"\"Linuxppc-dev\"\n\t<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>"},"content":"Send window is opened / closed for each crypto session.\nSo initializes txwin in workmem.\n\nSigned-off-by: Haren Myneni <haren@us.ibm.com>\n---\n drivers/crypto/nx/nx-842.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)","diff":"diff --git a/drivers/crypto/nx/nx-842.c b/drivers/crypto/nx/nx-842.c\nindex d94e25df503b..da3cb8c35ec7 100644\n--- a/drivers/crypto/nx/nx-842.c\n+++ b/drivers/crypto/nx/nx-842.c\n@@ -116,7 +116,7 @@ int nx842_crypto_init(struct crypto_tfm *tfm, struct nx842_driver *driver)\n \n \tspin_lock_init(&ctx->lock);\n \tctx->driver = driver;\n-\tctx->wmem = kmalloc(driver->workmem_size, GFP_KERNEL);\n+\tctx->wmem = kzalloc(driver->workmem_size, GFP_KERNEL);\n \tctx->sbounce = (u8 *)__get_free_pages(GFP_KERNEL, BOUNCE_BUFFER_ORDER);\n \tctx->dbounce = (u8 *)__get_free_pages(GFP_KERNEL, BOUNCE_BUFFER_ORDER);\n \tif (!ctx->wmem || !ctx->sbounce || !ctx->dbounce) {\n","prefixes":["V4","5/7"]}