Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp606918ybv; Thu, 20 Feb 2020 04:16:43 -0800 (PST) X-Google-Smtp-Source: APXvYqzhKi94hcJmczuV9LUXZ59pEbbAAUXJhZ4/9J/qkGB+1ayhRnBCYMRLk2NurQP3GjYXmuIj X-Received: by 2002:aca:c692:: with SMTP id w140mr1819778oif.139.1582201003595; Thu, 20 Feb 2020 04:16:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582201003; cv=none; d=google.com; s=arc-20160816; b=e2GI/eY8U2BvQQh8Y8kDCAHybeLu4PkgA9q3ERwaNH355G+b0Ro3yATLye4/pOJr5q yqYxSQ/q8Gn6eOU1Jq/Q6OwkQJ/QXjzM0j9j+pNLR4SghDadGvjHpZBUz0kEVkw9RzI7 lD/V0p83nyXtTQTm2+5EDu67mVkT4TL5XWfUHzw6GzwMpWfw2qHIUdb5KEIM+/fwkqCf ooZR5XxPJjwpDI8MJhgdV20kYPcfHWfeD9KA6xaKR0mdcEgfxl4vY0YUOM0PNzlUF0Ka jK6dRXpWf6NnUW4fo8vEgmgbDkUH38zrEkN8te+Pj+ZuK4s9/c4B/N4vXvKicRFLxbkq hTsQ== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=5uUp+HC3JvY0oodiceYtuMUmB/Jh8VxWWpkKPCKoICU=; b=PBaZnnjCsuXru8Ekiy285cBM9tx0r9Yl8yze7Q0vITTnNCwduuoukBn+LYBHQmE6ss aqZzIsVNzM6HfrfbqH41SdKBeiBd5EsTdlUv7/bMCCXBXqYqsOE7IZ+TVPG0V8Mq8gWP JYakJsfIzVH7Nspn2s9TK7QO+czJyHuGVf9AQgtRSXwvfDr9Psw7DbHETYO4TQkBrLxy MrSMJrL2yTXHs0uKH17TyrEs1XnFLpWw51BKGY5TTd4wWW1j3vtHyHz1ep6OWh2HOMCB GnDOPKueVDcliztsg7nl0oNHteMvZz336h45KCpmdEVqAXSih+/6B1PHe4CYEFCYwmsf TOzg== 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 g10si1509653otn.12.2020.02.20.04.16.23; Thu, 20 Feb 2020 04:16:43 -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 S1727978AbgBTMQT (ORCPT + 99 others); Thu, 20 Feb 2020 07:16:19 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:60310 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727921AbgBTMQT (ORCPT ); Thu, 20 Feb 2020 07:16:19 -0500 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 593D3C4BD37B747CE70B; Thu, 20 Feb 2020 20:16:10 +0800 (CST) Received: from [127.0.0.1] (10.67.101.242) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.439.0; Thu, 20 Feb 2020 20:16:01 +0800 Subject: Re: [PATCH 4/4] crypto: hisilicon/sec2 - Add pbuffer mode for SEC driver To: John Garry , , 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> <87591c1f-5c6b-64bd-5dc2-900e1481b5ca@huawei.com> CC: , , , , , , , From: Xu Zaibo Message-ID: Date: Thu, 20 Feb 2020 20:16:01 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <87591c1f-5c6b-64bd-5dc2-900e1481b5ca@huawei.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.101.242] X-CFilter-Loop: Reflected Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 2020/2/20 19:07, John Garry wrote: > 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... > Currently, I find the only drawback is needing more memory :), what's your idea? Yes, the same as SEC V1. Cheers, Zaibo . >> >> . >>> >>> The commit message is very light on details. >>> >>> Thanks >>> john >>> >>> . >>> >> >> >> . > > . >