<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-linux/drivers/crypto/hisilicon/sec2, branch jd/unified-crypt-queue</title>
<subtitle>WireGuard for the Linux kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-linux/atom/drivers/crypto/hisilicon/sec2?h=jd%2Funified-crypt-queue</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-linux/atom/drivers/crypto/hisilicon/sec2?h=jd%2Funified-crypt-queue'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/'/>
<updated>2020-03-20T03:36:50Z</updated>
<entry>
<title>crypto: hisilicon/sec2 - Add new create qp process</title>
<updated>2020-03-20T03:36:50Z</updated>
<author>
<name>Kai Ye</name>
<email>yekai13@huawei.com</email>
</author>
<published>2020-03-10T08:42:52Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=0b5e43bc1258bb400378fed99beae032dbece045'/>
<id>urn:sha1:0b5e43bc1258bb400378fed99beae032dbece045</id>
<content type='text'>
Combine found device and created qp into one operation instead of found
device and create qp both are independent operations. when execute
multiple tasks, the different threads may find same device at the same
time, but the number of queues is insufficient on the device. causing
one of threads fail to create a qp. Now fix this, First find device then
create qp, if result failure. the current thread will find next device.

Signed-off-by: Kai Ye &lt;yekai13@huawei.com&gt;
Signed-off-by: Shukun Tan &lt;tanshukun1@huawei.com&gt;
Reviewed-by: Zhou Wang &lt;wangzhou1@hisilicon.com&gt;
Reviewed-by: Zaibo Xu &lt;xuzaibo@huawei.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: hisilicon/sec2 - Add pbuffer mode for SEC driver</title>
<updated>2020-03-12T12:00:14Z</updated>
<author>
<name>Longfang Liu</name>
<email>liulongfang@huawei.com</email>
</author>
<published>2020-03-05T02:06:25Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=74b58db8b7edfadff4a1ed2eb195ab45570a33a9'/>
<id>urn:sha1:74b58db8b7edfadff4a1ed2eb195ab45570a33a9</id>
<content type='text'>
In the scenario of SMMU translation, the SEC performance of short messages
(&lt;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 &lt;liulongfang@huawei.com&gt;
Signed-off-by: Zaibo Xu &lt;xuzaibo@huawei.com&gt;
Reviewed-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: hisilicon/sec2 - Update IV and MAC operation</title>
<updated>2020-03-12T12:00:14Z</updated>
<author>
<name>Longfang Liu</name>
<email>liulongfang@huawei.com</email>
</author>
<published>2020-03-05T02:06:24Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=2514f5595db7287b0708a21ee40a3278dade69dc'/>
<id>urn:sha1:2514f5595db7287b0708a21ee40a3278dade69dc</id>
<content type='text'>
We have updated the operation method of IV and MAC address
to prepare for pbuf patch and fixed coding style.

Signed-off-by: Longfang Liu &lt;liulongfang@huawei.com&gt;
Signed-off-by: Zaibo Xu &lt;xuzaibo@huawei.com&gt;
Reviewed-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: hisilicon/sec2 - Add iommu status check</title>
<updated>2020-03-12T12:00:14Z</updated>
<author>
<name>Longfang Liu</name>
<email>liulongfang@huawei.com</email>
</author>
<published>2020-03-05T02:06:23Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=8824bc5ed1e7fbc23529c9b2e799bb9414cb6e52'/>
<id>urn:sha1:8824bc5ed1e7fbc23529c9b2e799bb9414cb6e52</id>
<content type='text'>
In order to improve performance of small packets (&lt;512Bytes)
in SMMU translation scenario, we need to identify the type of IOMMU
in the SEC probe to process small packets by a different method.

Signed-off-by: Longfang Liu &lt;liulongfang@huawei.com&gt;
Signed-off-by: Zaibo Xu &lt;xuzaibo@huawei.com&gt;
Reviewed-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: hisilicon/sec2 - Add workqueue for SEC driver.</title>
<updated>2020-03-12T12:00:14Z</updated>
<author>
<name>Ye Kai</name>
<email>yekai13@huawei.com</email>
</author>
<published>2020-03-05T02:06:22Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=a13c97118749954a9f47a3b5fc47457baf664f2d'/>
<id>urn:sha1:a13c97118749954a9f47a3b5fc47457baf664f2d</id>
<content type='text'>
Allocate one workqueue for each QM instead of one for all QMs,
we found the throughput of SEC engine can be increased to
the hardware limit throughput during testing sec2 performance.
so we added this scheme.

Signed-off-by: Ye Kai &lt;yekai13@huawei.com&gt;
Signed-off-by: Longfang Liu &lt;liulongfang@huawei.com&gt;
Signed-off-by: Zaibo Xu &lt;xuzaibo@huawei.com&gt;
Reviewed-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: hisilicon - remove redundant assignment of pointer ctx</title>
<updated>2020-02-28T00:43:21Z</updated>
<author>
<name>Colin Ian King</name>
<email>colin.king@canonical.com</email>
</author>
<published>2020-02-22T14:24:09Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=1b44f93eb3e51f97d06a92eb39ab1ad031851f74'/>
<id>urn:sha1:1b44f93eb3e51f97d06a92eb39ab1ad031851f74</id>
<content type='text'>
Pointer ctx is being re-assigned with the same value as it
was initialized with. The second assignment is redundant and
can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King &lt;colin.king@canonical.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: hisilicon - Unify error detect process into qm</title>
<updated>2020-02-13T08:58:08Z</updated>
<author>
<name>Shukun Tan</name>
<email>tanshukun1@huawei.com</email>
</author>
<published>2020-01-20T07:30:08Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=f826e6efb42b9eb0097d0969310a407aa039be08'/>
<id>urn:sha1:f826e6efb42b9eb0097d0969310a407aa039be08</id>
<content type='text'>
In error detect process, a lot of duplicate code can put into qm. We add
two callback(get_dev_hw_err_status and log_dev_hw_err) into struct
hisi_qm_err_ini to handle device error detect, meanwhile the qm error
detect not changed.

Signed-off-by: Shukun Tan &lt;tanshukun1@huawei.com&gt;
Signed-off-by: Zaibo Xu &lt;xuzaibo@huawei.com&gt;
Reviewed-by: Zhou Wang &lt;wangzhou1@hisilicon.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: hisilicon - Unify hardware error init/uninit into QM</title>
<updated>2020-02-13T08:58:08Z</updated>
<author>
<name>Shukun Tan</name>
<email>tanshukun1@huawei.com</email>
</author>
<published>2020-01-20T07:30:06Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=eaebf4c3b103dfc3c00dd3b6d3966fb9e08777ce'/>
<id>urn:sha1:eaebf4c3b103dfc3c00dd3b6d3966fb9e08777ce</id>
<content type='text'>
The initialization and uninitialization of zip/hpre/sec/qm hardware error
is processed in respective drivers, which could be unified into qm.c. We
add struct hisi_qm_err_ini into struct hisi_qm, which involve all error
handlers of device and assignment should be done in driver probe.

Signed-off-by: Shukun Tan &lt;tanshukun1@huawei.com&gt;
Signed-off-by: Zaibo Xu &lt;xuzaibo@huawei.com&gt;
Reviewed-by: Zhou Wang &lt;wangzhou1@hisilicon.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: hisilicon - fix spelling mistake "disgest" -&gt; "digest"</title>
<updated>2020-01-22T08:21:11Z</updated>
<author>
<name>Colin Ian King</name>
<email>colin.king@canonical.com</email>
</author>
<published>2020-01-17T09:28:19Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=2203d3f7971d28a2bcd8e2439bcead9069089e9a'/>
<id>urn:sha1:2203d3f7971d28a2bcd8e2439bcead9069089e9a</id>
<content type='text'>
There is a spelling mistake in an error message. Fix it.

Signed-off-by: Colin Ian King &lt;colin.king@canonical.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: hisilicon - Add aead support on SEC2</title>
<updated>2020-01-16T07:18:15Z</updated>
<author>
<name>Zaibo Xu</name>
<email>xuzaibo@huawei.com</email>
</author>
<published>2020-01-11T02:41:56Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=2f072d75d1ab32e9c7c43a54398f4360a0a42d5e'/>
<id>urn:sha1:2f072d75d1ab32e9c7c43a54398f4360a0a42d5e</id>
<content type='text'>
authenc(hmac(sha1),cbc(aes)), authenc(hmac(sha256),cbc(aes)), and
authenc(hmac(sha512),cbc(aes)) support are added for SEC v2.

Signed-off-by: Zaibo Xu &lt;xuzaibo@huawei.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
</feed>
