Projects
Eulaceura:Factory
uadk_engine
_service:obs_scm:0001-v1-dh-add-iova_map-and-io...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:0001-v1-dh-add-iova_map-and-iova_unmap-ops.patch of Package uadk_engine
From 984b503e018ebc6964e47c3784fd0f204b0c28fd Mon Sep 17 00:00:00 2001 From: Liulongfang <liulongfang@huawei.com> Date: Tue, 9 Jan 2024 17:28:20 +0800 Subject: [PATCH 1/3] v1/dh: add iova_map and iova_unmap ops If iova_map and iova_unmap ops are not registered, wcrypto_create_dh_ctx() will return fail since parameters check fails. Signed-off-by: Weili Qian <qianweili@huawei.com> --- src/v1/alg/dh/hpre_dh_wd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/v1/alg/dh/hpre_dh_wd.c b/src/v1/alg/dh/hpre_dh_wd.c index b8ca9a1..556e744 100644 --- a/src/v1/alg/dh/hpre_dh_wd.c +++ b/src/v1/alg/dh/hpre_dh_wd.c @@ -314,6 +314,8 @@ static int hpre_dh_init_eng_ctx(hpre_dh_engine_ctx_t *eng_ctx, int bits, bool is eng_ctx->dh_setup.cb = hpre_dh_cb; eng_ctx->dh_setup.br.alloc = kae_wd_alloc_blk; eng_ctx->dh_setup.br.free = kae_wd_free_blk; + eng_ctx->dh_setup.br.iova_map = kae_dma_map; + eng_ctx->dh_setup.br.iova_unmap = kae_dma_unmap; eng_ctx->dh_setup.br.usr = pool; eng_ctx->dh_setup.is_g2 = is_g2; eng_ctx->ctx = wcrypto_create_dh_ctx(q, &eng_ctx->dh_setup); -- 2.25.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2