From: Finn Callies <fcallies@linux.ibm.com>
To: hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com
Cc: linux-s390@vger.kernel.org, fcallies@linux.ibm.com, freude@linux.ibm.com
Subject: [PATCH v1 1/1] s390/ap: Fix MAPML computation
Date: Tue, 4 Aug 2026 12:58:11 +0200 [thread overview]
Message-ID: <20260804105811.17744-2-fcallies@linux.ibm.com> (raw)
In-Reply-To: <20260804105811.17744-1-fcallies@linux.ibm.com>
When the TAPQ subfunction of PQAP returns a value between 0 and 3 in the
ml field the Principles of Operation states that the MAPML size is to be
12k bytes.
Reviewed-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Finn Callies <fcallies@linux.ibm.com>
---
drivers/s390/crypto/ap_card.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/s390/crypto/ap_card.c b/drivers/s390/crypto/ap_card.c
index e827fbeb76fb..c86397f4ddcd 100644
--- a/drivers/s390/crypto/ap_card.c
+++ b/drivers/s390/crypto/ap_card.c
@@ -241,7 +241,7 @@ struct ap_card *ap_card_create(int id, struct ap_tapq_hwinfo hwinfo,
ac->ap_dev.device_type = comp_type;
ac->hwinfo = hwinfo;
ac->id = id;
- ac->maxmsgsize = hwinfo.ml > 0 ?
+ ac->maxmsgsize = hwinfo.ml > 3 ?
hwinfo.ml * AP_TAPQ_ML_FIELD_CHUNK_SIZE : AP_DEFAULT_MAX_MSG_SIZE;
return ac;
--
Finn Callies <fcallies@linux.ibm.com>
Linux on Z - crypto
next prev parent reply other threads:[~2026-08-04 10:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-04 10:58 [PATCH v1 0/1] Fix MAPML calculation in ap bus code Finn Callies
2026-08-04 10:58 ` Finn Callies [this message]
2026-08-04 11:02 ` [PATCH v1 1/1] s390/ap: Fix MAPML computation sashiko-bot
2026-08-04 12:09 ` Heiko Carstens
2026-08-04 12:11 ` [PATCH v1 0/1] Fix MAPML calculation in ap bus code Heiko Carstens
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=20260804105811.17744-2-fcallies@linux.ibm.com \
--to=fcallies@linux.ibm.com \
--cc=agordeev@linux.ibm.com \
--cc=freude@linux.ibm.com \
--cc=gor@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=linux-s390@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox