Skip to content

Support APMLM field with PQAP/TAPQ instruction

Harald Freudenberger linux-s390 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 0 repliesNew
  2. v21 patch 4 repliesSuperseded
  3. v11 patch 1 replySuperseded

Changelog from the cover letter

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.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2s390/ap: Support new APMLM field with PQAP/TAPQ instructionarch/s390/include/asm/ap.h drivers/s390/crypto/ap_bus.h drivers/s390/crypto/ap_card.c+5 -40 replies
2/2s390/ap: Cap AP maximum message size adjustable via module parameterdrivers/s390/crypto/ap_bus.c drivers/s390/crypto/ap_bus.h drivers/s390/crypto/ap_card.c+21 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/2] Support APMLM field with PQAP/TAPQ instruction

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