| f4f353cb | 05-Feb-2025 |
Wenkai Lin <[email protected]> |
crypto: hisilicon/sec2 - fix for sec spec check
During encryption and decryption, user requests must be checked first, if the specifications that are not supported by the hardware are used, the soft
crypto: hisilicon/sec2 - fix for sec spec check
During encryption and decryption, user requests must be checked first, if the specifications that are not supported by the hardware are used, the software computing is used for processing.
Fixes: 2f072d75d1ab ("crypto: hisilicon - Add aead support on SEC2") Signed-off-by: Wenkai Lin <[email protected]> Signed-off-by: Chenghai Huang <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
show more ...
|
| a49cc71e | 05-Feb-2025 |
Wenkai Lin <[email protected]> |
crypto: hisilicon/sec2 - fix for aead authsize alignment
The hardware only supports authentication sizes that are 4-byte aligned. Therefore, the driver switches to software computation in this case.
crypto: hisilicon/sec2 - fix for aead authsize alignment
The hardware only supports authentication sizes that are 4-byte aligned. Therefore, the driver switches to software computation in this case.
Fixes: 2f072d75d1ab ("crypto: hisilicon - Add aead support on SEC2") Signed-off-by: Wenkai Lin <[email protected]> Signed-off-by: Chenghai Huang <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
show more ...
|
| a5a9d959 | 13-Dec-2024 |
Wenkai Lin <[email protected]> |
crypto: hisilicon/sec2 - fix for aead invalid authsize
When the digest alg is HMAC-SHAx or another, the authsize may be less than 4 bytes and mac_len of the BD is set to zero, the hardware considers
crypto: hisilicon/sec2 - fix for aead invalid authsize
When the digest alg is HMAC-SHAx or another, the authsize may be less than 4 bytes and mac_len of the BD is set to zero, the hardware considers it a BD configuration error and reports a ras error, so the sec driver needs to switch to software calculation in this case, this patch add a check for it and remove unnecessary check that has been done by crypto.
Fixes: 2f072d75d1ab ("crypto: hisilicon - Add aead support on SEC2") Signed-off-by: Wenkai Lin <[email protected]> Signed-off-by: Chenghai Huang <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
show more ...
|
| c418ba6b | 26-Oct-2024 |
Weili Qian <[email protected]> |
crypto: hisilicon/qm - disable same error report before resetting
If an error indicating that the device needs to be reset is reported, disable the error reporting before device reset is complete, e
crypto: hisilicon/qm - disable same error report before resetting
If an error indicating that the device needs to be reset is reported, disable the error reporting before device reset is complete, enable the error reporting after the reset is complete to prevent the same error from being reported repeatedly.
Fixes: eaebf4c3b103 ("crypto: hisilicon - Unify hardware error init/uninit into QM") Signed-off-by: Weili Qian <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
show more ...
|
| 6117af86 | 23-Apr-2024 |
Wenkai Lin <[email protected]> |
crypto: hisilicon/sec2 - fix for register offset
The offset of SEC_CORE_ENABLE_BITMAP should be 0 instead of 32, it cause a kasan shift-out-bounds warning, fix it.
Signed-off-by: Wenkai Lin <linwen
crypto: hisilicon/sec2 - fix for register offset
The offset of SEC_CORE_ENABLE_BITMAP should be 0 instead of 32, it cause a kasan shift-out-bounds warning, fix it.
Signed-off-by: Wenkai Lin <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
show more ...
|
| bba42507 | 07-Apr-2024 |
Chenghai Huang <[email protected]> |
crypto: hisilicon/sec - Fix memory leak for sec resource release
The AIV is one of the SEC resources. When releasing resources, it need to release the AIV resources at the same time. Otherwise, memo
crypto: hisilicon/sec - Fix memory leak for sec resource release
The AIV is one of the SEC resources. When releasing resources, it need to release the AIV resources at the same time. Otherwise, memory leakage occurs.
The aiv resource release is added to the sec resource release function.
Signed-off-by: Chenghai Huang <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
show more ...
|
| 0a6e038f | 07-Apr-2024 |
Chenghai Huang <[email protected]> |
crypto: hisilicon - Adjust debugfs creation and release order
There is a scenario where the file directory is created but the file memory is not set. In this case, if a user accesses the file, an er
crypto: hisilicon - Adjust debugfs creation and release order
There is a scenario where the file directory is created but the file memory is not set. In this case, if a user accesses the file, an error occurs.
So during the creation process of debugfs, memory should be allocated first before creating the directory. In the release process, the directory should be deleted first before releasing the memory to avoid the situation where the memory does not exist when accessing the directory.
In addition, the directory released by the debugfs is a global variable. When the debugfs of an accelerator fails to be initialized, releasing the directory of the global variable affects the debugfs initialization of other accelerators. The debugfs root directory released by debugfs init should be a member of qm, not a global variable.
Signed-off-by: Chenghai Huang <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
show more ...
|
| dd1a502c | 26-Jan-2024 |
Qi Tao <[email protected]> |
crypto: hisilicon/sec2 - fix some cleanup issues
This patch fixes following cleanup issues: - The return value of the function is inconsistent with the actual return type. - After the pointer t
crypto: hisilicon/sec2 - fix some cleanup issues
This patch fixes following cleanup issues: - The return value of the function is inconsistent with the actual return type. - After the pointer type is directly converted to the `__le64` type, the program may crash or produce unexpected results.
Signed-off-by: Qi Tao <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
show more ...
|
| c4af4225 | 26-Jan-2024 |
Qi Tao <[email protected]> |
crypto: hisilicon/sec2 - modify nested macro call
Nested macros are integrated into a single macro, making the code simpler.
Signed-off-by: Qi Tao <[email protected]> Signed-off-by: Herbert Xu <he
crypto: hisilicon/sec2 - modify nested macro call
Nested macros are integrated into a single macro, making the code simpler.
Signed-off-by: Qi Tao <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
show more ...
|
| f1115b00 | 02-Dec-2023 |
Zhiqi Song <[email protected]> |
crypto: hisilicon/sec2 - save capability registers in probe process
Pre-store the valid value of the sec alg support related capability register in sec_qm_init(), which will be called by probe proce
crypto: hisilicon/sec2 - save capability registers in probe process
Pre-store the valid value of the sec alg support related capability register in sec_qm_init(), which will be called by probe process. It can reduce the number of capability register queries and avoid obtaining incorrect values in abnormal scenarios, such as reset failed and the memory space disabled.
Fixes: 921715b6b782 ("crypto: hisilicon/sec - get algorithm bitmap from registers") Signed-off-by: Zhiqi Song <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
show more ...
|