]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: hisilicon/hpre - mask cluster timeout error
authorWeili Qian <qianweili@huawei.com>
Sat, 31 Aug 2024 11:48:30 +0000 (19:48 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:28:56 +0000 (16:28 +0200)
commit7803e8cdaa847a0ca65ff13e5db8c19d3b0e1fb9
treeab966e4b616b0db0ac588b0bf652c8afb6a3f8cd
parent4589bb97e42f2cfc5cbf0fe09d9e5afad905ec62
crypto: hisilicon/hpre - mask cluster timeout error

[ Upstream commit 145013f723947c83b1a5f76a0cf6e7237d59e973 ]

The timeout threshold of the hpre cluster is 16ms. When the CPU
and device share virtual address, page fault processing time may
exceed the threshold.

In the current test, there is a high probability that the
cluster times out. However, the cluster is waiting for the
completion of memory access, which is not an error, the device
does not need to be reset. If an error occurs in the cluster,
qm also reports the error. Therefore, the cluster timeout
error of hpre can be masked.

Fixes: d90fab0deb8e ("crypto: hisilicon/qm - get error type from hardware registers")
Signed-off-by: Weili Qian <qianweili@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/crypto/hisilicon/hpre/hpre_main.c