Linux s390 Architecture development
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Support APMLM field with PQAP/TAPQ instruction
@ 2026-10-13 13:44 Harald Freudenberger
  2026-10-13 13:44 ` [PATCH v3 1/2] s390/ap: Support new " Harald Freudenberger
  2026-10-13 13:44 ` [PATCH v3 2/2] s390/ap: Cap AP maximum message size adjustable via module parameter Harald Freudenberger
  0 siblings, 2 replies; 5+ messages in thread
From: Harald Freudenberger @ 2026-10-13 13:44 UTC (permalink / raw)
  To: dengler, fcallies
  Cc: freude, linux-s390, Heiko Carstens, Vasily Gorbik,
	Alexander Gordeev

There is a new field APMLM (AP message limit multiplier) defined
within the GR2 register on successful invocation of the TAPQ
subfunction for the PQAP instruction. This patch (series) covers all
what's needed to support this new field within the AP bus code.

Changelog:
v1: initial version
v2: The update of the bit mask TAPQ_CARD_HWINFO_MASK was missing. So
    the new field apmlm could not shine through.
v3: Shashiko complained about that there is no upper limit but the
    combination of apml and apmlm could lead to memory allocations of
    960KB per AP request/reply. So introduce an upper and lower limit
    to crop this firmware given AP message size limit into reasonable
    range. By default 12KB...72KB but the upper limit can be adjusted
    via module parameter.

Harald Freudenberger (2):
  s390/ap: Support new APMLM field with PQAP/TAPQ instruction
  s390/ap: Cap AP maximum message size adjustable via module parameter

 arch/s390/include/asm/ap.h    |  4 ++--
 drivers/s390/crypto/ap_bus.c  | 11 +++++++++++
 drivers/s390/crypto/ap_bus.h  |  7 +++++--
 drivers/s390/crypto/ap_card.c |  9 ++++++++-
 4 files changed, 26 insertions(+), 5 deletions(-)

--
2.43.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-10-13 13:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-13 13:44 [PATCH v3 0/2] Support APMLM field with PQAP/TAPQ instruction Harald Freudenberger
2026-10-13 13:44 ` [PATCH v3 1/2] s390/ap: Support new " Harald Freudenberger
2026-10-13 13:52   ` sashiko-bot
2026-10-13 13:44 ` [PATCH v3 2/2] s390/ap: Cap AP maximum message size adjustable via module parameter Harald Freudenberger
2026-10-13 13:52   ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox