Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sched 12.25 #604

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Sched 12.25 #604

wants to merge 11 commits into from

Commits on Jan 3, 2024

  1. cipher: support mutil-driver

    1. alloc_sess will pick driver according to setup.para.task_type & alg,
       will reuse task_type & alg from init2 if no setup.para to compatible with v2
       will reuse setting.driver to compatible with v1
    2. alloc_sess will add drivers to sched.drv[]
    3. poll_ctx will poll all drivers in sched.drv[]
    4. sw and hw will reuse common resources: sched, pool and ctxs.
    5. Only hw will request real ctxs.
    
    Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
    zhangfeigao committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    5c814bb View commit details
    Browse the repository at this point in the history
  2. cipher: add op_ctx to make sw easier

    sw has no hw_ctx, but still need ctx_id to get pool msg
    for multi-threads. so use op_ctx taking info like ctx_id
    and mode: sync/async.
    
    Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
    zhangfeigao committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    dfe0bb7 View commit details
    Browse the repository at this point in the history
  3. comp: support mutil-driver

    1. alloc_sess will pick driver according to setup.para.task_type & alg,
       will reuse task_type & alg from init2 if no setup.para to compatible with v2
       will reuse setting.driver to compatible with v1
    2. alloc_sess will add drivers to sched.drv[]
    3. poll_ctx will poll all drivers in sched.drv[]
    4. sw and hw will reuse common resources: sched, pool and ctxs.
    5. Only hw will request real ctxs.
    
    Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
    zhangfeigao committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    44a23b6 View commit details
    Browse the repository at this point in the history
  4. comp: use para: op_ctx for sw

    sw has no hw_ctx, but still need ctx_id to get pool msg
    for multi-threads. so use op_ctx taking info like ctx_id
    and mode: sync/async.
    
    Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
    zhangfeigao committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    162c2ca View commit details
    Browse the repository at this point in the history
  5. Adding zlib drv to simulate cpu instruction driver

    In order to simulate cpu instruction accelerator, this patch adds
    zlib drv, which does not require accelerator at all.
    So may not require wd_xxx_init, and ctx and sched which relates
    to queue.
    
    Btw, zlib is required.
    yum install zlib-devel
    apt-get install zlib1g-dev
    
    Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
    zhangfeigao committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    fd67885 View commit details
    Browse the repository at this point in the history
  6. uadk/alg: let UADK_ALG_SOFT register to uadk

    Will use hisi_zlib to test adapter, so let UADK_ALG_SOFT register to uadk
    
    Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
    zhangfeigao committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    0503684 View commit details
    Browse the repository at this point in the history
  7. wd_util: consider sw has no dev, no hw ctx or op

    sw and hw will share common resources like ctxs and pool.
    sw may works on platform no accerator dev, or has dev but
    no ctx, or sw driver has no op.
    Ignore these error as normal cases.
    
    Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
    zhangfeigao committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    f496c66 View commit details
    Browse the repository at this point in the history
  8. digest: support mutil-driver

    1. alloc_sess will pick driver according to setup.para.task_type & alg,
       will reuse task_type & alg from init2 if no setup.para to compatible with v2
       will reuse setting.driver to compatible with v1
    2. alloc_sess will add drivers to sched.drv[]
    3. poll_ctx will poll all drivers in sched.drv[]
    4. sw and hw will reuse common resources: sched, pool and ctxs.
    5. Only hw will request real ctxs.
    6. alloc_sess will parse para.alg to set digest_type and digest_mode
    
    Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
    zhangfeigao committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    17102da View commit details
    Browse the repository at this point in the history
  9. digest: add op_ctx to make sw easier

    sw has no hw_ctx, but still need ctx_id to get pool msg
    for multi-threads. so use op_ctx taking info like ctx_id
    and mode: sync/async.
    
    Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
    zhangfeigao committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    59b82af View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2024

  1. uadk: wd_request_drv requests drv via alg_task_type

    User want to choose sve or ce instruction explicitly,
    so modify wd_request_drv to request drv via para
    alg_task_type
    
    Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
    zhangfeigao committed Jan 4, 2024
    Configuration menu
    Copy the full SHA
    5e3c716 View commit details
    Browse the repository at this point in the history

Commits on Jan 9, 2024

  1. fix?

    Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
    zhangfeigao committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    2410285 View commit details
    Browse the repository at this point in the history