[PATCH v2 0/6] crypto: hisilicon - enhancements and fixes for device reset and configuration

Chenghai Huang posted 6 patches 1 month, 2 weeks ago
drivers/crypto/hisilicon/hpre/hpre_main.c |  66 +++++++++---
drivers/crypto/hisilicon/qm.c             |  45 ++++++--
drivers/crypto/hisilicon/sec2/sec_main.c  | 126 +++++++++++++++-------
drivers/crypto/hisilicon/zip/zip_main.c   | 112 ++++++++++++++-----
4 files changed, 260 insertions(+), 89 deletions(-)
[PATCH v2 0/6] crypto: hisilicon - enhancements and fixes for device reset and configuration
Posted by Chenghai Huang 1 month, 2 weeks ago
1.Cleanup performance mode configuration function, this register
which do not require read-back verification.
2.The configuration of each modules need to be restored after
device reset.
3.Add a check for the sva status before resetting.
4.Check if the input parameters match the device PF.
5.Register reserved interrupt for virtual function to avoid
Warnings with GICv4 and VF passthrough.
6.Repair a hardware register, otherwise the stream mode LZ77
algorithm will be affected.

V1: https://lore.kernel.org/all/20250816102834.828655-1-huangchenghai2@huawei.com/
Updates:
- Move hisi_zip_open_sva_prefetch() to hpre_set_user_domain_and_cache().
- Swap the order of patch1 and patch2.

Chenghai Huang (3):
  crypto: hisilicon/zip - remove unnecessary validation for
    high-performance mode configurations
  crypto: hisilicon - re-enable address prefetch after device resuming
  crypto: hisilicon/zip - enable literal length in stream mode
    compression

Weili Qian (2):
  crypto: hisilicon - check the sva module status while enabling or
    disabling address prefetch
  crypto: hisilicon/qm - request reserved interrupt for virtual function

Zhushuai Yin (1):
  crypto: hisilicon/qm - check whether the input function and PF are on
    the same device

 drivers/crypto/hisilicon/hpre/hpre_main.c |  66 +++++++++---
 drivers/crypto/hisilicon/qm.c             |  45 ++++++--
 drivers/crypto/hisilicon/sec2/sec_main.c  | 126 +++++++++++++++-------
 drivers/crypto/hisilicon/zip/zip_main.c   | 112 ++++++++++++++-----
 4 files changed, 260 insertions(+), 89 deletions(-)

-- 
2.33.0
Re: [PATCH v2 0/6] crypto: hisilicon - enhancements and fixes for device reset and configuration
Posted by Herbert Xu 1 month ago
On Thu, Aug 21, 2025 at 09:38:03AM +0800, Chenghai Huang wrote:
> 1.Cleanup performance mode configuration function, this register
> which do not require read-back verification.
> 2.The configuration of each modules need to be restored after
> device reset.
> 3.Add a check for the sva status before resetting.
> 4.Check if the input parameters match the device PF.
> 5.Register reserved interrupt for virtual function to avoid
> Warnings with GICv4 and VF passthrough.
> 6.Repair a hardware register, otherwise the stream mode LZ77
> algorithm will be affected.
> 
> V1: https://lore.kernel.org/all/20250816102834.828655-1-huangchenghai2@huawei.com/
> Updates:
> - Move hisi_zip_open_sva_prefetch() to hpre_set_user_domain_and_cache().
> - Swap the order of patch1 and patch2.
> 
> Chenghai Huang (3):
>   crypto: hisilicon/zip - remove unnecessary validation for
>     high-performance mode configurations
>   crypto: hisilicon - re-enable address prefetch after device resuming
>   crypto: hisilicon/zip - enable literal length in stream mode
>     compression
> 
> Weili Qian (2):
>   crypto: hisilicon - check the sva module status while enabling or
>     disabling address prefetch
>   crypto: hisilicon/qm - request reserved interrupt for virtual function
> 
> Zhushuai Yin (1):
>   crypto: hisilicon/qm - check whether the input function and PF are on
>     the same device
> 
>  drivers/crypto/hisilicon/hpre/hpre_main.c |  66 +++++++++---
>  drivers/crypto/hisilicon/qm.c             |  45 ++++++--
>  drivers/crypto/hisilicon/sec2/sec_main.c  | 126 +++++++++++++++-------
>  drivers/crypto/hisilicon/zip/zip_main.c   | 112 ++++++++++++++-----
>  4 files changed, 260 insertions(+), 89 deletions(-)
> 
> -- 
> 2.33.0

All applied.  Thanks.
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt