]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: hisilicon/qm - inject error before stopping queue
authorWeili Qian <qianweili@huawei.com>
Sat, 31 Aug 2024 11:48:31 +0000 (19:48 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 6 Sep 2024 06:50:46 +0000 (14:50 +0800)
commitb04f06fc0243600665b3b50253869533b7938468
tree222fd57abea9dc658cf9a94eeeeee9bb5fda0d3c
parent145013f723947c83b1a5f76a0cf6e7237d59e973
crypto: hisilicon/qm - inject error before stopping queue

The master ooo cannot be completely closed when the
accelerator core reports memory error. Therefore, the driver
needs to inject the qm error to close the master ooo. Currently,
the qm error is injected after stopping queue, memory may be
released immediately after stopping queue, causing the device to
access the released memory. Therefore, error is injected to close master
ooo before stopping queue to ensure that the device does not access
the released memory.

Fixes: 6c6dd5802c2d ("crypto: hisilicon/qm - add controller reset interface")
Signed-off-by: Weili Qian <qianweili@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/qm.c