Skip to content

Commit 66192b2

Browse files
yekai123123herbertx
authored andcommitted
crypto: hisilicon/sec - fix the process of disabling sva prefetching
The open interface of the sva prefetching function is distinguish the chip version. But the close interface of the sva prefetching function doesn't distinguish the chip version. As a result, the sva prefetching close operation is also performed on Kunpeng920, those registers are important on Kunpeng920, which eventually leads to abnormal hardware problems. So need to fix it immediately. Signed-off-by: Kai Ye <yekai13@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent e29dd5c commit 66192b2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/crypto/hisilicon/sec2/sec_main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,9 @@ static void sec_close_sva_prefetch(struct hisi_qm *qm)
364364
u32 val;
365365
int ret;
366366

367+
if (qm->ver < QM_HW_V3)
368+
return;
369+
367370
val = readl_relaxed(qm->io_base + SEC_PREFETCH_CFG);
368371
val |= SEC_PREFETCH_DISABLE;
369372
writel(val, qm->io_base + SEC_PREFETCH_CFG);

0 commit comments

Comments
 (0)