Linux s390 Architecture development
 help / color / mirror / Atom feed
* [PATCH 0/3] Add arm on s390 accelerator driver
@ 2026-12-04 14:45 Sven Schnelle
  2026-12-04 14:45 ` [PATCH 1/3] iommu: sva: allow SVA without PASID Sven Schnelle
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Sven Schnelle @ 2026-12-04 14:45 UTC (permalink / raw)
  To: Marc Zyngier, Mark Rutland, Joerg Roedel (AMD), Will Deacon
  Cc: Robin Murphy, Catalin Marinas, Sudeep Holla, Ard Biesheuvel,
	linux-kernel, iommu, linux-arm-kernel, Christian Borntraeger,
	Hendrik Brueckner, Ulrich Weigand, Arnd Bergmann, linux-s390

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@kernel.org/

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


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

end of thread, other threads:[~2026-12-04 15:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 14:45 [PATCH 0/3] Add arm on s390 accelerator driver Sven Schnelle
2026-12-04 14:45 ` [PATCH 1/3] iommu: sva: allow SVA without PASID Sven Schnelle
2026-12-04 15:12   ` sashiko-bot
2026-12-04 14:45 ` [PATCH 2/3] dt-bindings: firmware: platform-accel: add yaml documentation Sven Schnelle
2026-12-04 15:22   ` sashiko-bot
2026-12-04 14:45 ` [PATCH 3/3] drivers: firmware: add ARM on s390 accelerator driver Sven Schnelle
2026-12-04 15:28   ` Arnd Bergmann
2026-12-04 15:45   ` sashiko-bot

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