Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp539589ybv; Thu, 20 Feb 2020 03:07:45 -0800 (PST) X-Google-Smtp-Source: APXvYqw6myM7o1zJeY09Z1pG9VIu0+9pgQR/iWhgvbGHebFN5pEpn8MxpDKL71Lz+0Vt5SEJzbBX X-Received: by 2002:a05:6830:1691:: with SMTP id k17mr23734098otr.282.1582196865034; Thu, 20 Feb 2020 03:07:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582196865; cv=none; d=google.com; s=arc-20160816; b=B8W9eVBA7tLMndeJTPFqhR8BBAmNxhorwxxT4fqNl63Vk8uZ6oHsqNBSmjXFPcLTPe bcOn7xUumQX/LNkjaIxfAfb8uIzmGMGSJlKiSTRJ01vBnHj2SLYoqOJFrNYBRZbRb6ZK 0tQYMHr9d5K3TvQLs5CgJFmgN75zInd0uZxlrTaLNp1caY2Qgo4ASkMeQzZz4v8ia8/g dsjE6yMLmyjWr4b9Aniw8a0NN3BWYAZe5yqo0PI5FLFLOBjuGyJLnz6LPcusVeDfGuso 9QniF/D1vHy9ut7tFHvoTkR7oLWK5YbvzO7J4E78ZCgO5nJJp/6AOeripzLvrS7f7aV2 8Z+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=rPeItLmqW0vkjqzidCugdCcLL+Li8C9rtWdkRCVk/oY=; b=0TkA2uP+NDbuWfgp93/xqj1crnHRDxLHyizxIT5tFH+Ng9d1mbQ4LKK8RwnNB0IPdD HbW9jBwxRoL0vlKKJ+dIUODWKtuwfIpcT97QhD1DheyKOccs23crt3OtjPir8rUMbcZI T+Mj98rE2S4BCcxxSkEuBofxoZCHBPLvL+SIQ5u0U71zwWMOTDkmAfFAlsQrN1b890Cb fJyh4UfOfiVPnwulmMJF+DfMXwRuIrNyXwyBy0+QiwWqw+/Mu8kC6OJzibECJirvXzVz 25OrxG1/4CvGwZ6Sz7d7MnkwVieIkvpCNxUxSMLejrSx3TWwbBgtfF65x1ChFjLWD1xt NJeQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o206si10967392oih.143.2020.02.20.03.07.22; Thu, 20 Feb 2020 03:07:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727046AbgBTLHM (ORCPT + 99 others); Thu, 20 Feb 2020 06:07:12 -0500 Received: from lhrrgout.huawei.com ([185.176.76.210]:2448 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726217AbgBTLHM (ORCPT ); Thu, 20 Feb 2020 06:07:12 -0500 Received: from LHREML713-CAH.china.huawei.com (unknown [172.18.7.107]) by Forcepoint Email with ESMTP id A47AF8312BA485B65AE4; Thu, 20 Feb 2020 11:07:10 +0000 (GMT) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by LHREML713-CAH.china.huawei.com (10.201.108.36) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 20 Feb 2020 11:07:10 +0000 Received: from [127.0.0.1] (10.202.226.45) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 20 Feb 2020 11:07:09 +0000 Subject: Re: [PATCH 4/4] crypto: hisilicon/sec2 - Add pbuffer mode for SEC driver To: Xu Zaibo , , CC: , , , , , , , References: <1582189495-38051-1-git-send-email-xuzaibo@huawei.com> <1582189495-38051-5-git-send-email-xuzaibo@huawei.com> <011d8794-b4ab-a5ad-b765-e6e2c09991aa@huawei.com> <69fe2d60-428e-9747-b7c0-d69cf25efc0e@huawei.com> From: John Garry Message-ID: <87591c1f-5c6b-64bd-5dc2-900e1481b5ca@huawei.com> Date: Thu, 20 Feb 2020 11:07:08 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 MIME-Version: 1.0 In-Reply-To: <69fe2d60-428e-9747-b7c0-d69cf25efc0e@huawei.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.226.45] X-ClientProxiedBy: lhreml738-chm.china.huawei.com (10.201.108.188) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 20/02/2020 10:10, Xu Zaibo wrote: > Hi, > > > On 2020/2/20 17:50, John Garry wrote: >> On 20/02/2020 09:04, Zaibo Xu wrote: >>> From: liulongfang >>> >>> In the scenario of SMMU translation, the SEC performance of short >>> messages >>> (<512Bytes) cannot meet our expectations. To avoid this, we reserve the >>> plat buffer (PBUF) memory for small packets when creating TFM. >>> >> >> I haven't gone through the code here, but why not use this method also >> for non-translated? What are the pros and cons? > Because non-translated has no performance or throughput problems. > OK, so no problem, but I was asking could it be improved, and, if so, what would be the drawbacks? As for the change to check if the IOMMU is translating, it seems exact same as that for the hi1616 driver... > cheers, > Zaibo > > . >> >> The commit message is very light on details. >> >> Thanks >> john >> >> . >> > > > .