From: Depei Yang <yangdepei@hygon.cn>
To: <linux-crypto@vger.kernel.org>
Cc: Tom Lendacky <thomas.lendacky@amd.com>,
Herbert Xu <herbert@gondor.apana.org.au>,
"David S. Miller" <davem@davemloft.net>,
Gary R Hook <gary.hook@amd.com>, <linux-kernel@vger.kernel.org>,
Depei Yang <yangdepei@hygon.cn>, Shan Chen <chenshan@hygon.cn>,
Yongwei Xu <xuyongwei@hygon.cn>,
Xiaochen Shen <shenxiaochen@hygon.cn>, <stable@vger.kernel.org>
Subject: [PATCH 08/11] crypto: ccp - handle only supported interrupts in v5 irq bh
Date: Wed, 25 Nov 2026 15:46:06 +0800 [thread overview]
Message-ID: <4b3f4601c9fa26cd527e47f55375fef6a19dc841.1795588986.git.yangdepei@hygon.cn> (raw)
In-Reply-To: <cover.1795588986.git.yangdepei@hygon.cn>
The Hygon CCP reports INT_EMPTY_QUEUE in the interrupt status register,
which SUPPORTED_INTERRUPTS does not include. Treating it as a
completion makes the command queue thread observe a spurious
completion. Only process the bits that the driver enables.
AMD hardware has not been observed to report this bit; for the status
values it produces the new check is a no-op.
Fixes: 6263b51eb319 ("crypto: ccp - Change ISR handler method for a v5 CCP")
Cc: stable@vger.kernel.org
Reviewed-by: Shan Chen <chenshan@hygon.cn>
Tested-by: Yongwei Xu <xuyongwei@hygon.cn>
Signed-off-by: Depei Yang <yangdepei@hygon.cn>
---
drivers/crypto/ccp/ccp-dev-v5.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/crypto/ccp/ccp-dev-v5.c b/drivers/crypto/ccp/ccp-dev-v5.c
index 34832b830785..d2586625700b 100644
--- a/drivers/crypto/ccp/ccp-dev-v5.c
+++ b/drivers/crypto/ccp/ccp-dev-v5.c
@@ -792,7 +792,7 @@ static void ccp5_irq_bh(unsigned long data)
status = ioread32(cmd_q->reg_interrupt_status);
- if (status) {
+ if (status & SUPPORTED_INTERRUPTS) {
cmd_q->int_status = status;
cmd_q->q_status = ioread32(cmd_q->reg_status);
cmd_q->q_int_status = ioread32(cmd_q->reg_int_status);
--
2.34.1
next prev parent reply other threads:[~2026-11-25 7:46 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 7:45 [PATCH 00/11] crypto: ccp - add Hygon SM3/SM4 support Depei Yang
2026-11-25 7:45 ` [PATCH 01/11] crypto: ccp - fix LSB region mask calculation Depei Yang
2026-11-25 7:46 ` [PATCH 02/11] crypto: ccp - acknowledge queue interrupt before waking waiter Depei Yang
2026-11-25 7:46 ` [PATCH 03/11] crypto: ccp - add engine capability and version information Depei Yang
2026-11-25 7:46 ` [PATCH 04/11] crypto: ccp - register algorithms only for supported engines Depei Yang
2026-11-25 7:46 ` [PATCH 05/11] crypto: ccp - split v5 command submission from queue run Depei Yang
2026-11-25 7:46 ` [PATCH 06/11] crypto: ccp - add SM3/SM4 command definitions Depei Yang
2026-11-25 7:46 ` [PATCH 07/11] crypto: ccp - add Hygon CCP device IDs and vdata Depei Yang
2026-11-25 7:46 ` Depei Yang [this message]
2026-11-25 7:46 ` [PATCH 09/11] crypto: ccp - detect the Hygon CCP engines from the version register Depei Yang
2026-11-25 7:46 ` [PATCH 10/11] crypto: ccp - add SM4 engine and skcipher algorithms Depei Yang
2026-11-25 7:46 ` [PATCH 11/11] crypto: ccp - add SM3 engine and ahash algorithms Depei Yang
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=4b3f4601c9fa26cd527e47f55375fef6a19dc841.1795588986.git.yangdepei@hygon.cn \
--to=yangdepei@hygon.cn \
--cc=chenshan@hygon.cn \
--cc=davem@davemloft.net \
--cc=gary.hook@amd.com \
--cc=herbert@gondor.apana.org.au \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=shenxiaochen@hygon.cn \
--cc=stable@vger.kernel.org \
--cc=thomas.lendacky@amd.com \
--cc=xuyongwei@hygon.cn \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®