+48
−25
Loading
Merge Pull Request from: @xiao_jiang_shui 1. uacce: add error number for the unsupported mremap Since the driver doesn't support the mremap, add an error number to show users the fail. 2. uacce: check the qfr address before releasing the qfr When qfr type is UACCE_QFRT_SS, qfr may be noiommu_ss_default_qfr. The memory is global static memory and cannot be freed. Therefore, the qfr address needs to be checked before the qfr is released. 3. uacce: add stop_queue to replace put_queue in ioctl Since the resources of uacce_queue cannot be ensured to be fully released before calling put_queue, directly putting the queue might pose a slight risk. 4. uacce: add mutex for check qfr Since the qfr operations can race in some cases, the validity checks require locking protection. 5. crypto: hisilicon/zip - correct the wrong word in the printed information Correct the wrong word in the printed information. 6. crypto: hisilicon/qm - fix the uacce_alloc return value check The uacce_alloc mentions that caller needs check returned negotiated uacce->flags. And now it will clear the bit UACCE_DEV_SVA if failed to enable sva. So the qm need to remove uacce if 'flags' changes. 7. migration: modify dfx error type without VM driver In the live migration scenario, when the ACC driver is not insmod to the VM, the command to test the mailbox operation will detect that the device has no driver loaded. However, the error reported is the same as the abnormal parameter when testing dfx, and the error scenario cannot be distinguished. Therefore, this error type needs to be modified. issue: https://gitee.com/openeuler/kernel/issues/IB9H0P Link:https://gitee.com/openeuler/kernel/pulls/14106 Reviewed-by:Yang Shen <shenyang39@huawei.com> Signed-off-by:
Zhang Peng <zhangpeng362@huawei.com>