In uadk v1, the library will alloc a ctx_buffer used for storing
stream information. On hisilicon platform, the hardware will output
some data to this buffer. So the ctx_buffer should be map to PA/IOVA.
But here the lz77_zstd forgot to unmap this buffer on error branch.
What's more, if the user use the wd_bmm ops, the unmap is a void
function.
Signed-off-by: Yang Shen <shenyang39(a)huawei.com>
---
v1/drv/hisi_zip_udrv.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/v1/drv/hisi_zip_udrv.c b/v1/drv/hisi_zip_udrv.c
index f820b7f..470acb9 100644
--- a/v1/drv/hisi_zip_udrv.c
+++ b/v1/drv/hisi_zip_udrv.c
@@ -512,6 +512,9 @@ static int fill_zip_addr_lz77_zstd(void *ssqe,
unmap_phy_seq:
drv_iova_unmap(q, zstd_out->literal, (void *)phy_lit, zstd_out->lit_sz);
unmap_phy_lit:
+ if (msg->stream_mode == WCRYPTO_COMP_STATEFUL)
+ drv_iova_unmap(q, msg->ctx_buf, (void *)addr.ctxbuf_addr - CTX_BUFFER_OFFSET,
+ MAX_CTX_RSV_SIZE);
drv_iova_unmap(q, msg->src, (void *)addr.source_addr, msg->in_size);
return -WD_ENOMEM;
}
--
2.33.0
Update the testing function of uadk tool.
Add test function of init2.
Add TRNG test function
Kai Ye (3):
uadk_tool - support aead algorithm decrypto perf testing
uadk_tool - support dual sec engine device testing
uadk: support some uadk dfx stronger feature
Longfang Liu (8):
uadk_tool: Optimize sec's sva benchmark code
uadk_tool: Optimize sec's no-sva benchmark code
uadk_tool: Optimize sec's software benchmark code
uadk_tool: add latency test function for uadk_tools
uadk_tool: modify the clean code issue
uadk/tools: Update test function for init2
uadk/sec: added init2 performance test
uadk/comp: added init2 test function for comp
Qi Tao (4):
uadk_tool: fix the memory leak problem
uadk_tool: fix error writing data to uninitialized memory
uadk_tool: initialize the return value 'ret' of the function
add secure compilation option
Weili Qian (10):
uadk_tool: delete redundant memset zero
uadk_tool: fix possible memory leak in <alg>_uadk_async_run
uadk_tool: fix the called function interface
uadk_tool: release memory after all tasks are complete
uadk_tool: fix hpre test code issues
uadk_tool: Support performance test for TRNG.
uadk_tool: added init2 test function for hpre
uadk_tool: use marco to replace numbers
uadk/tool: initialize cparams to zero
uadk_tool: added sm4-xts GB test
Wenkai Lin (3):
uadk_tool/v1 - support aead algorithm decrypto perf testing
uadk_tool/v1: fix sec benchmark problem
uadk/tools: fix for uadk tool sec aead async mode
Yang Shen (4):
uadk/tools - support new parameters for compression
uadk/tools - misc fixes for uadk compress performance
uadk/tools - fix lz77_zstd performance test for nosva mode
uadk/tools - fix for uadk compression stream performance
Zhiqi Song (1):
uadk_tool: support test case for aes cbc cts mode
uadk_tool/Makefile.am | 7 +-
uadk_tool/benchmark/hpre_protocol_data.h | 77 +-
uadk_tool/benchmark/hpre_uadk_benchmark.c | 364 ++++--
uadk_tool/benchmark/hpre_wd_benchmark.c | 98 +-
uadk_tool/benchmark/sec_soft_benchmark.c | 887 ++++++++++-----
uadk_tool/benchmark/sec_uadk_benchmark.c | 1236 +++++++++++++++------
uadk_tool/benchmark/sec_wd_benchmark.c | 1217 +++++++++++++-------
uadk_tool/benchmark/trng_wd_benchmark.c | 324 ++++++
uadk_tool/benchmark/trng_wd_benchmark.h | 7 +
uadk_tool/benchmark/uadk_benchmark.c | 280 ++++-
uadk_tool/benchmark/uadk_benchmark.h | 43 +-
uadk_tool/benchmark/zip_uadk_benchmark.c | 299 +++--
uadk_tool/benchmark/zip_wd_benchmark.c | 335 +++---
uadk_tool/test/test_sec.c | 136 ++-
14 files changed, 3732 insertions(+), 1578 deletions(-)
create mode 100644 uadk_tool/benchmark/trng_wd_benchmark.c
create mode 100644 uadk_tool/benchmark/trng_wd_benchmark.h
--
2.33.0