[PATCH 0/3] Add arm on s390 accelerator driver

From: Sven Schnelle

Date: Fri Dec 04 2026 - 09:47:38 EST


Upcoming s390 machines will support crypto/deflate hardware acceleration
for arm64 guests. This works by providing a memory region to the guest
which can be written to via the st64bv0 instruction. In order to use this
instruction from userspace programs, a driver is needed that allows to map
the accelerator memory region via mmap(). Programs can then call
acceleration functions by writing a parameter block + function code with
st64bv0 to this memory region.

st64bv0 writes 32 bits of data taken from the ACCDATA_EL1 register together
with the other data. An additional patch is needed to make it possible to
use st64bv0 without a PASID. I agreed with Arnd that I send the patch
with this driver, as it is the use case for it.

NOTE: the patchset depends on patches 2-4 of the series from:

https://lore.kernel.org/all/20261203095703.655796-1-arnd@xxxxxxxxxx/

Arnd Bergmann (1):
iommu: sva: allow SVA without PASID

Sven Schnelle (2):
dt-bindings: firmware: platform-accel: add yaml documentation
drivers: firmware: add ARM on s390 accelerator driver

.../bindings/firmware/platform-accel.yaml | 37 ++++
MAINTAINERS | 7 +
drivers/firmware/Kconfig | 10 ++
drivers/firmware/Makefile | 1 +
drivers/firmware/platform-accel.c | 168 ++++++++++++++++++
drivers/iommu/iommu-sva.c | 31 +++-
drivers/iommu/iommu.c | 21 ++-
include/linux/iommu.h | 8 +
8 files changed, 275 insertions(+), 8 deletions(-)
create mode 100644 Documentation/devicetree/bindings/firmware/platform-accel.yaml
create mode 100644 drivers/firmware/platform-accel.c


base-commit: 007722b8211f7b34fdf21b1e6a9c32497633ea29
prerequisite-patch-id: 2ad19c35e53aa86d4d706692b991a5eb9d4a4dc7
prerequisite-patch-id: 334d1217dd04cccac70aafe00ce6e318e13c5afd
prerequisite-patch-id: 58d0d38039709bf5b6a592bd356257cc5cecba7e
--
2.56.1