Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4546917rdb; Fri, 15 Sep 2023 05:48:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEONjslqvV8hhPRNoEYTICdQgY812l+gXWw+DhQovx3LPfyPw1L937pcjHKRkK+vqRBauCN X-Received: by 2002:a17:903:1c4:b0:1c3:bfb8:8c1 with SMTP id e4-20020a17090301c400b001c3bfb808c1mr1379792plh.65.1694782090863; Fri, 15 Sep 2023 05:48:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694782090; cv=none; d=google.com; s=arc-20160816; b=Dj+CHeWDJ7fvheqFTWHpCsgBclsYr9SSZt8c+1dbv3FYDjCQmZBNKJrYXa9/fpTsIZ riu7fwtGBQM2/LfdUbHwWx9Hccc+dR/wuD0I1jKgAqxdvE05FpAPotnnXTYUllzAioin 7iOp4n+UndOjgG7Moifa+XwPrEv1XtmMWmCPXR+yrSXUHjfiEofULiqasj6uIFS9vWlf Ffk8SRtAVj4gS+us/RSyNMCNNjuOA2ubNNZdnvrbqTIrDNsz2r+4NtxF+E9wPq0XrrJC cP1XuqkEG28wjM2q8AOsLwBogsaswCNe//YlFBNQGYfF5VxCjG/hiocXDNMRH4RIkBrc MnkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=7+tJ/KsIswTmNeKa3tLG1ExmR6SfnnZoUA5bR+lKBMU=; fh=I0hb6fVKpPMH6kofj5xb1SdGokUQf4qVbWQQ2p37oLo=; b=pitR0sCCblk5sl6qikDMYAd4LouVDwiFjr+pk72tnsDu6EEIkRaNz5oWwl6iUp1sjV cD+4Bf2iL11DeuPqsdy/rxngvRvmuJVvfxYYTiif9rbHuMi3QBgUE7O5V1vIH9JDMMN1 bqC8euQXXrnT5fgbXkxkc6hMg/Q3cNf+wHfdbkdcFfSusxtkwgqjMvfS1rmqJgJSFPir Oi9Gkfx0ZlZYtq9CjSz3ftU7v0gktJBH50v7po9AHpOmtSaJtQokaZjb/7v5OakFBrKy ITRVUq+MQPFvj1VywmTeMXHx5iWLySspr+XiIYpsn/EWT9FJ113IISl1Wx7YMMc+/w3T ODeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="bkEc/rho"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id m19-20020a170902c45300b001bc7d717ac4si3247764plm.104.2023.09.15.05.48.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 05:48:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="bkEc/rho"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id F1B4B83B16DE; Fri, 15 Sep 2023 04:24:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234119AbjIOLYC (ORCPT + 99 others); Fri, 15 Sep 2023 07:24:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234183AbjIOLYB (ORCPT ); Fri, 15 Sep 2023 07:24:01 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31CFC1B0; Fri, 15 Sep 2023 04:23:56 -0700 (PDT) Received: from pps.filterd (m0353728.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38FB8BH0027314; Fri, 15 Sep 2023 11:23:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=7+tJ/KsIswTmNeKa3tLG1ExmR6SfnnZoUA5bR+lKBMU=; b=bkEc/rhonQfrChQKspzo6V0xCg5+tTPJuGHuTBhoZBuBPFNvRgMy1P5XRQL0Cz2nn8+v LnKIey2nwxwcZnA2YHTN0kOFa/keshp1ZNKDawssFKZWtKwISYfrCS5BkfnZFZ8qCIb9 QYGz99nxHhzCG4xAcC0+grlcth5NrvjGsqgr9eYh1mjHxAPZ6UbwlDYQ6MfmDwFjXE01 QQJ9hMZbCTRBuUadG+R0hsPIH+Alq0qeS3A8D/RL9EAZGT0nZd4iVPB3RnAkUxGR68j3 V+BYcM31fUVohOxa/J2LA/iZvfImlrJqcuEl3dnVpP4vrF2OPl5wzMwv0lUV/XHTcI4H ew== Received: from ppma12.dal12v.mail.ibm.com (dc.9e.1632.ip4.static.sl-reverse.com [50.22.158.220]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3t4nrg0yb9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 15 Sep 2023 11:23:31 +0000 Received: from pps.filterd (ppma12.dal12v.mail.ibm.com [127.0.0.1]) by ppma12.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 38FANkxP024039; Fri, 15 Sep 2023 11:23:30 GMT Received: from smtprelay05.dal12v.mail.ibm.com ([172.16.1.7]) by ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 3t131tucsh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 15 Sep 2023 11:23:30 +0000 Received: from smtpav04.wdc07v.mail.ibm.com (smtpav04.wdc07v.mail.ibm.com [10.39.53.231]) by smtprelay05.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 38FBNTC951118478 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 15 Sep 2023 11:23:29 GMT Received: from smtpav04.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2632158056; Fri, 15 Sep 2023 11:23:29 +0000 (GMT) Received: from smtpav04.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B9E0E58050; Fri, 15 Sep 2023 11:23:27 +0000 (GMT) Received: from [9.67.12.83] (unknown [9.67.12.83]) by smtpav04.wdc07v.mail.ibm.com (Postfix) with ESMTP; Fri, 15 Sep 2023 11:23:27 +0000 (GMT) Message-ID: <6297a0bd-3101-d8cc-5a8f-24b3b82a92e6@linux.ibm.com> Date: Fri, 15 Sep 2023 06:23:25 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: [PATCH v2] crypto: vmx: Improved AES/XTS performance of 6-way unrolling for ppc. To: Herbert Xu Cc: linux-crypto@vger.kernel.org, leitao@debian.org, nayna@linux.ibm.com, appro@cryptogams.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, mpe@ellerman.id.au, ltcgcw@linux.vnet.ibm.com, dtsen@us.ibm.com References: <20230830134911.179765-1-dtsen@linux.ibm.com> Content-Language: en-US From: Danny Tsen In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: k1wFaZS8WDv_pgb1ahtL03Oaohp_mJzl X-Proofpoint-GUID: k1wFaZS8WDv_pgb1ahtL03Oaohp_mJzl X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-15_08,2023-09-14_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 phishscore=0 clxscore=1015 mlxlogscore=678 spamscore=0 priorityscore=1501 adultscore=0 mlxscore=0 impostorscore=0 lowpriorityscore=0 bulkscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309150098 X-Spam-Status: No, score=-2.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 15 Sep 2023 04:24:02 -0700 (PDT) Thanks Herbert. -Danny On 9/15/23 5:41 AM, Herbert Xu wrote: > On Wed, Aug 30, 2023 at 09:49:11AM -0400, Danny Tsen wrote: >> Improve AES/XTS performance of 6-way unrolling for PowerPC up >> to 17% with tcrypt. This is done by using one instruction, >> vpermxor, to replace xor and vsldoi. >> >> The same changes were applied to OpenSSL code and a pull request was >> submitted. >> >> This patch has been tested with the kernel crypto module tcrypt.ko and >> has passed the selftest. The patch is also tested with >> CONFIG_CRYPTO_MANAGER_EXTRA_TESTS enabled. >> >> Signed-off-by: Danny Tsen >> --- >> drivers/crypto/vmx/aesp8-ppc.pl | 141 +++++++++++++++++++++----------- >> 1 file changed, 92 insertions(+), 49 deletions(-) > Patch applied. Thanks.