crypto: hisilicon/zip - enable ssid for sva sgl
Subsystems (2)
PATCH 1/1 crypto: hisilicon/zip - enable ssid for sva sgl
For Kunpeng 920, the bit 0 of register 'HZIP_SGL_RUSER_32_63' stand for whether the ssid is valid. So this bit should be set as valid for sva mode.
Signed-off-by Yang Shen <[email protected]>
--- drivers/crypto/hisilicon/zip/zip_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/crypto/hisilicon/zip/zip_main.c +2 -1
@@ -364,15 +364,16 @@ static int hisi_zip_set_user_domain_and_cache(struct hisi_qm *qm)/* user domain configurations */ writel (AXUSER_BASE , base +HZIP_BD_RUSER_32_63 ); -writel (AXUSER_BASE , base +HZIP_SGL_RUSER_32_63 );writel (AXUSER_BASE , base +HZIP_BD_WUSER_32_63 );if (qm->use_sva && qm->ver ==QM_HW_V2 ) {writel (AXUSER_BASE |AXUSER_SSV , base +HZIP_DATA_RUSER_32_63 );writel (AXUSER_BASE |AXUSER_SSV , base +HZIP_DATA_WUSER_32_63 ); +writel (AXUSER_BASE |AXUSER_SSV , base +HZIP_SGL_RUSER_32_63 ); }else {writel (AXUSER_BASE , base +HZIP_DATA_RUSER_32_63 );writel (AXUSER_BASE , base +HZIP_DATA_WUSER_32_63 ); +writel (AXUSER_BASE , base +HZIP_SGL_RUSER_32_63 ); }/* let's open all compression/decompression cores */
Signature · 1 line
2.33.0
Herbert Xu
maintainerQuoted 7 lines · Yang Shen
For Kunpeng 920, the bit 0 of register '
HZIP_SGL_RUSER_32_63' stand for whether the ssid is valid. So this bit should be set as valid for sva mode.Signed-off-by Yang Shen <[email protected]>--- drivers/crypto/hisilicon/zip/zip_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Patch applied. Thanks.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt