mbox series

[0/3] crypto: hisilicon - fix issues related to device reset

Message ID 20240831114831.21987-1-qianweili@huawei.com
Headers show
Series crypto: hisilicon - fix issues related to device reset | expand

Message

Weili Qian Aug. 31, 2024, 11:48 a.m. UTC
This set fixes some issues related to device reset:
1. Before enabling the device, reset the device to ensure that
the device is in the initial state.
2. Mask device task timeout error because the current device
timeout threshold is too short.
3. Memory error is injected to close master ooo to prevent the
device write the released memory.

Weili Qian (3):
  crypto: hisilicon/qm - reset device before enabling it
  crypto: hisilicon/hpre - mask cluster timeout error
  crypto: hisilicon/qm - inject error before stopping queue

 drivers/crypto/hisilicon/hpre/hpre_main.c |  54 ++++----
 drivers/crypto/hisilicon/qm.c             | 151 ++++++++++++++--------
 drivers/crypto/hisilicon/sec2/sec_main.c  |  16 +--
 drivers/crypto/hisilicon/zip/zip_main.c   |  23 ++--
 4 files changed, 146 insertions(+), 98 deletions(-)

Comments

Herbert Xu Sept. 6, 2024, 7:10 a.m. UTC | #1
On Sat, Aug 31, 2024 at 07:48:28PM +0800, Weili Qian wrote:
> This set fixes some issues related to device reset:
> 1. Before enabling the device, reset the device to ensure that
> the device is in the initial state.
> 2. Mask device task timeout error because the current device
> timeout threshold is too short.
> 3. Memory error is injected to close master ooo to prevent the
> device write the released memory.
> 
> Weili Qian (3):
>   crypto: hisilicon/qm - reset device before enabling it
>   crypto: hisilicon/hpre - mask cluster timeout error
>   crypto: hisilicon/qm - inject error before stopping queue
> 
>  drivers/crypto/hisilicon/hpre/hpre_main.c |  54 ++++----
>  drivers/crypto/hisilicon/qm.c             | 151 ++++++++++++++--------
>  drivers/crypto/hisilicon/sec2/sec_main.c  |  16 +--
>  drivers/crypto/hisilicon/zip/zip_main.c   |  23 ++--
>  4 files changed, 146 insertions(+), 98 deletions(-)
> 
> -- 
> 2.33.0

All applied.  Thanks.