crypto: hisilicon/sec2 - Add pbuffer mode for SEC driver
authorLongfang Liu <liulongfang@huawei.com>
Thu, 5 Mar 2020 02:06:25 +0000 (10:06 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 12 Mar 2020 12:00:14 +0000 (23:00 +1100)
commit74b58db8b7edfadff4a1ed2eb195ab45570a33a9
tree11b067ca3ed053ebc07bb831554cd850ea62e1f6
parent2514f5595db7287b0708a21ee40a3278dade69dc
crypto: hisilicon/sec2 - Add pbuffer mode for SEC driver

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.

Signed-off-by: Longfang Liu <liulongfang@huawei.com>
Signed-off-by: Zaibo Xu <xuzaibo@huawei.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/sec2/sec.h
drivers/crypto/hisilicon/sec2/sec_crypto.c