Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
description of repo status
Open Source
>
Other
>
Operation System
&&
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
458
Star
1.7K
Fork
1.9K
GVP
openEuler
/
kernel
Closed
Code
Issues
1271
Pull Requests
991
Wiki
Insights
Pipelines
Service
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
DevLens
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
【OLK-5.10】【ACC】ACC相关的特性、bugfix、和cleanup
Done
#I5AFY1
Task
YangJS
Opened this issue
2022-06-01 20:12
### **feature:** 1、qos的值应在flr复位或设备后复位重置。因此,为每个函数设置 qos 值的最大值。然后用户编写 alg_qos 时更新 qos 的值。 2、如果启用了 qm 时钟门控,速率限制器将不准确。因此,在执行任务之前禁用时钟门控。 3、为HW V3增加了SVA模式的寄存器配置。 4、drivers/crypto/hisilicon/qm.h迁移至include/linux/hisi_acc_qm.h。 5、加速器增加寄存器检测功能。提供了一个工具用户可以通过 Debugfs 检查差分寄存器。 6、在 acc 引擎控制器重置期间添加最后一个单词转储功能。最后的单词在打印过程中报告给打印信息重置。 dmesg 信息包括 qm 调试寄存器和引擎调试寄存器。它可以帮助改进调试能力。 7、hisi_qm_free_qps() 可以一次调用释放多个队列,它是已经出口了。因此,将 hisi_qm_release_qp() 替换为 hisi_qm_free_qps()在 zip_crypto.c 中,并且不要将 hisi_qm_release_qp() 导出到 qm.c 之外。 8、hisi_qm_get_free_qp_num() 是获取函数上的空闲队列号。它是一个简单的函数,仅由hisi_qm_get_available_instances()。此补丁修改为直接获取空闲队列hisi_qm_get_available_instances(),并删除 hisi_qm_get_free_qp_num()。 ### **bugfix:** 1、当 hisi_qm_resume() 返回 0 时,表示设备已经启动成功地。如果设备启动失败,hisi_qm_resume() 需要将实际的错误代码返回给调用者,而不是 0。 2、hpre_curve25519_src_init() 在调用之前为“ptr”分配内存内存cmp()。如果 memcmp() 返回 0,该函数将返回 '-EINVAL'不释放内存。 3、在 HW V3 中无需启用 sm4 额外模式。这是修复它。 4、不应在 SEC2 中使用 CRYPTO_ALG_ALLOCATES_MEMORY。 SEC2驱动程序使用预先分配的缓冲区,包括 src sql 池、dst sql 池和其他 qp ctx 资源。 (例如 IV 缓冲区、mac 缓冲区、密钥缓冲)。 SEC2 驱动程序在请求处理期间不分配内存。驱动程序仅在 I/O 期间将软件 sql 映射到分配的硬件 sql。所以这是修复它。 本轮patch回会较多,将patch合入后跑了商用OS ACC模块内核态的大部分用例。其中大部分通过,部分未通过部分均为未适配openeuler的用例(测试平台有记录,图片无法上传)。
### **feature:** 1、qos的值应在flr复位或设备后复位重置。因此,为每个函数设置 qos 值的最大值。然后用户编写 alg_qos 时更新 qos 的值。 2、如果启用了 qm 时钟门控,速率限制器将不准确。因此,在执行任务之前禁用时钟门控。 3、为HW V3增加了SVA模式的寄存器配置。 4、drivers/crypto/hisilicon/qm.h迁移至include/linux/hisi_acc_qm.h。 5、加速器增加寄存器检测功能。提供了一个工具用户可以通过 Debugfs 检查差分寄存器。 6、在 acc 引擎控制器重置期间添加最后一个单词转储功能。最后的单词在打印过程中报告给打印信息重置。 dmesg 信息包括 qm 调试寄存器和引擎调试寄存器。它可以帮助改进调试能力。 7、hisi_qm_free_qps() 可以一次调用释放多个队列,它是已经出口了。因此,将 hisi_qm_release_qp() 替换为 hisi_qm_free_qps()在 zip_crypto.c 中,并且不要将 hisi_qm_release_qp() 导出到 qm.c 之外。 8、hisi_qm_get_free_qp_num() 是获取函数上的空闲队列号。它是一个简单的函数,仅由hisi_qm_get_available_instances()。此补丁修改为直接获取空闲队列hisi_qm_get_available_instances(),并删除 hisi_qm_get_free_qp_num()。 ### **bugfix:** 1、当 hisi_qm_resume() 返回 0 时,表示设备已经启动成功地。如果设备启动失败,hisi_qm_resume() 需要将实际的错误代码返回给调用者,而不是 0。 2、hpre_curve25519_src_init() 在调用之前为“ptr”分配内存内存cmp()。如果 memcmp() 返回 0,该函数将返回 '-EINVAL'不释放内存。 3、在 HW V3 中无需启用 sm4 额外模式。这是修复它。 4、不应在 SEC2 中使用 CRYPTO_ALG_ALLOCATES_MEMORY。 SEC2驱动程序使用预先分配的缓冲区,包括 src sql 池、dst sql 池和其他 qp ctx 资源。 (例如 IV 缓冲区、mac 缓冲区、密钥缓冲)。 SEC2 驱动程序在请求处理期间不分配内存。驱动程序仅在 I/O 期间将软件 sql 映射到分配的硬件 sql。所以这是修复它。 本轮patch回会较多,将patch合入后跑了商用OS ACC模块内核态的大部分用例。其中大部分通过,部分未通过部分均为未适配openeuler的用例(测试平台有记录,图片无法上传)。
Comments (
1
)
Sign in
to comment
Status
Done
Backlog
Doing
Done
Declined
Assignees
Not set
Labels
sig/Kernel
Not set
Projects
Unprojected
Unprojected
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (
-
)
Tags (
-
)
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
Duration
(hours)
参与者(2)
C
1
https://gitee.com/openeuler/kernel.git
git@gitee.com:openeuler/kernel.git
openeuler
kernel
kernel
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register