[PATCH 0/4] crypto: hisilicon - various cleanup for QM and SGL

Chenghai Huang posted 4 patches 3 months, 2 weeks ago
drivers/crypto/hisilicon/qm.c  | 41 ++++++++++++++++++++++------------
drivers/crypto/hisilicon/sgl.c |  5 -----
2 files changed, 27 insertions(+), 19 deletions(-)
[PATCH 0/4] crypto: hisilicon - various cleanup for QM and SGL
Posted by Chenghai Huang 3 months, 2 weeks ago
This patch series addresses several issues in the hisilicon crypto
driver:
Patch 1: ensures proper synchronization when reading eqe/aeqe
values by saving the complete 4-byte values atomically. This
guarantees the valid bit and queue number are read as a consistent
pair that was written by the device.
Patch 2: adds concurrency protection for the err_threshold variable
to prevent race conditions between sysfs operations and hardware
error handling functions.
Patch 3: removes redundant error checks for curr_hw_sgl since
acc_get_sgl() cannot fail after mem_block creation, simplifying the
code.
Patch 4: adds a default case to a switch statement in
qm_vft_data_cfg to comply with coding style and prevent compiler
warnings.

nieweiqiang (4):
  crypto: hisilicon/qm - add concurrency protection for variable
    err_threshold
  crypto: hisilicon/qm - add missing default in switch in
    qm_vft_data_cfg
  crypto: hisilicon/qm - add the save operation of eqe and aeqe
  crypto: hisilicon/sgl - remove unnecessary checks for curr_hw_sgl
    error

 drivers/crypto/hisilicon/qm.c  | 41 ++++++++++++++++++++++------------
 drivers/crypto/hisilicon/sgl.c |  5 -----
 2 files changed, 27 insertions(+), 19 deletions(-)

-- 
2.33.0
Re: [PATCH 0/4] crypto: hisilicon - various cleanup for QM and SGL
Posted by Herbert Xu 3 months, 1 week ago
On Sat, Oct 25, 2025 at 06:12:54PM +0800, Chenghai Huang wrote:
> This patch series addresses several issues in the hisilicon crypto
> driver:
> Patch 1: ensures proper synchronization when reading eqe/aeqe
> values by saving the complete 4-byte values atomically. This
> guarantees the valid bit and queue number are read as a consistent
> pair that was written by the device.
> Patch 2: adds concurrency protection for the err_threshold variable
> to prevent race conditions between sysfs operations and hardware
> error handling functions.
> Patch 3: removes redundant error checks for curr_hw_sgl since
> acc_get_sgl() cannot fail after mem_block creation, simplifying the
> code.
> Patch 4: adds a default case to a switch statement in
> qm_vft_data_cfg to comply with coding style and prevent compiler
> warnings.
> 
> nieweiqiang (4):
>   crypto: hisilicon/qm - add concurrency protection for variable
>     err_threshold
>   crypto: hisilicon/qm - add missing default in switch in
>     qm_vft_data_cfg
>   crypto: hisilicon/qm - add the save operation of eqe and aeqe
>   crypto: hisilicon/sgl - remove unnecessary checks for curr_hw_sgl
>     error
> 
>  drivers/crypto/hisilicon/qm.c  | 41 ++++++++++++++++++++++------------
>  drivers/crypto/hisilicon/sgl.c |  5 -----
>  2 files changed, 27 insertions(+), 19 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