All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sven Schnelle <svens@linux.ibm.com>
To: Marc Zyngier <maz@kernel.org>,
	Mark Rutland <mark.rutland@arm.com>,
	"Joerg Roedel (AMD)" <joro@8bytes.org>,
	Will Deacon <will@kernel.org>
Cc: Robin Murphy <robin.murphy@arm.com>,
	Catalin Marinas <catalin.marinas@arm.com>,
	Sudeep Holla <sudeep.holla@kernel.org>,
	Ard Biesheuvel <ardb@kernel.org>,
	linux-kernel@vger.kernel.org, iommu@lists.linux.dev,
	linux-arm-kernel@lists.infradead.org,
	Christian Borntraeger <borntraeger@linux.ibm.com>,
	Hendrik Brueckner <brueckner@linux.ibm.com>,
	Ulrich Weigand <Ulrich.Weigand@de.ibm.com>,
	Arnd Bergmann <arnd@arndb.de>,
	linux-s390@vger.kernel.org
Subject: [PATCH 0/3] Add arm on s390 accelerator driver
Date: Fri,  4 Dec 2026 15:45:26 +0100	[thread overview]
Message-ID: <20261204144529.960326-1-svens@linux.ibm.com> (raw)

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


             reply	other threads:[~2026-12-04 14:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 14:45 Sven Schnelle [this message]
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-05 13:18   ` Krzysztof Kozlowski
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
2026-12-05  9:47   ` Uwe Kleine-König

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=20261204144529.960326-1-svens@linux.ibm.com \
    --to=svens@linux.ibm.com \
    --cc=Ulrich.Weigand@de.ibm.com \
    --cc=ardb@kernel.org \
    --cc=arnd@arndb.de \
    --cc=borntraeger@linux.ibm.com \
    --cc=brueckner@linux.ibm.com \
    --cc=catalin.marinas@arm.com \
    --cc=iommu@lists.linux.dev \
    --cc=joro@8bytes.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=maz@kernel.org \
    --cc=robin.murphy@arm.com \
    --cc=sudeep.holla@kernel.org \
    --cc=will@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.