From: Sasha Levin <sashal@kernel.org>
To: stable@vger.kernel.org
Cc: libo.chen.cn@eng.windriver.com, Sasha Levin <sashal@kernel.org>
Subject: Re: [PATCH 5.15] crypto: hisilicon/qm - inject error before stopping queue
Date: Wed, 11 Dec 2024 11:33:25 -0500 [thread overview]
Message-ID: <20241211083647-b5c9f6aacf3e0045@stable.kernel.org> (raw)
In-Reply-To: <20241211081815.209162-1-libo.chen.cn@eng.windriver.com>
[ Sasha's backport helper bot ]
Hi,
The upstream commit SHA1 provided is correct: b04f06fc0243600665b3b50253869533b7938468
WARNING: Author mismatch between patch and upstream commit:
Backport author: libo.chen.cn@eng.windriver.com
Commit author: Weili Qian <qianweili@huawei.com>
Status in newer kernel trees:
6.12.y | Present (exact SHA1)
6.6.y | Present (different SHA1: aa3e0db35a60)
6.1.y | Present (different SHA1: 98d3be34c915)
5.15.y | Not found
Note: The patch differs from the upstream commit:
---
1: b04f06fc02436 ! 1: 1ad66e6380c8c crypto: hisilicon/qm - inject error before stopping queue
@@ Metadata
## Commit message ##
crypto: hisilicon/qm - inject error before stopping queue
+ [ Upstream commit b04f06fc0243600665b3b50253869533b7938468 ]
+
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,
@@ Commit message
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>
+ Signed-off-by: Libo Chen <libo.chen.cn@windriver.com>
## drivers/crypto/hisilicon/qm.c ##
@@ drivers/crypto/hisilicon/qm.c: static int qm_set_vf_mse(struct hisi_qm *qm, bool set)
@@ drivers/crypto/hisilicon/qm.c: static int qm_controller_reset_prepare(struct his
/* PF obtains the information of VF by querying the register. */
qm_cmd_uninit(qm);
-@@ drivers/crypto/hisilicon/qm.c: static int qm_master_ooo_check(struct hisi_qm *qm)
- return ret;
+@@ drivers/crypto/hisilicon/qm.c: static int qm_controller_reset_prepare(struct hisi_qm *qm)
+ return 0;
}
-static void qm_dev_ecc_mbit_handle(struct hisi_qm *qm)
@@ drivers/crypto/hisilicon/qm.c: static int qm_master_ooo_check(struct hisi_qm *qm
- if (!qm->err_status.is_dev_ecc_mbit &&
- qm->err_status.is_qm_ecc_mbit &&
- qm->err_ini->close_axi_master_ooo) {
+-
- qm->err_ini->close_axi_master_ooo(qm);
+-
- } else if (qm->err_status.is_dev_ecc_mbit &&
- !qm->err_status.is_qm_ecc_mbit &&
- !qm->err_ini->close_axi_master_ooo) {
+-
- nfe_enb = readl(qm->io_base + QM_RAS_NFE_ENABLE);
- writel(nfe_enb & QM_RAS_NFE_MBIT_DISABLE,
- qm->io_base + QM_RAS_NFE_ENABLE);
@@ drivers/crypto/hisilicon/qm.c: static int qm_master_ooo_check(struct hisi_qm *qm
- }
-}
-
- static int qm_soft_reset_prepare(struct hisi_qm *qm)
+ static int qm_soft_reset(struct hisi_qm *qm)
{
struct pci_dev *pdev = qm->pdev;
-@@ drivers/crypto/hisilicon/qm.c: static int qm_soft_reset_prepare(struct hisi_qm *qm)
+@@ drivers/crypto/hisilicon/qm.c: static int qm_soft_reset(struct hisi_qm *qm)
return ret;
}
- qm_dev_ecc_mbit_handle(qm);
- ret = qm_master_ooo_check(qm);
- if (ret)
- return ret;
+-
+ /* OOO register set and check */
+ writel(ACC_MASTER_GLOBAL_CTRL_SHUTDOWN,
+ qm->io_base + ACC_MASTER_GLOBAL_CTRL);
---
Results of testing on various branches:
| Branch | Patch Apply | Build Test |
|---------------------------|-------------|------------|
| stable/linux-5.15.y | Success | Success |
next prev parent reply other threads:[~2024-12-11 16:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-11 8:18 [PATCH 5.15] crypto: hisilicon/qm - inject error before stopping queue libo.chen.cn
2024-12-11 16:33 ` Sasha Levin [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-12-11 5:29 libo.chen.cn
2024-12-11 7:05 ` Greg KH
2024-12-11 8:08 ` Chen, Libo (CN)
2024-12-11 16:33 ` Sasha Levin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241211083647-b5c9f6aacf3e0045@stable.kernel.org \
--to=sashal@kernel.org \
--cc=libo.chen.cn@eng.windriver.com \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.