From: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
To: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org
Cc: arnd@arndb.de, gregkh@linuxfoundation.org, mpe@ellerman.id.au,
andrew.donnellan@au1.ibm.com, alastair@au1.ibm.com
Subject: [PATCH 00/13] New driver to support OpenCAPI devices on POWER9
Date: Mon, 18 Dec 2017 16:21:13 +0100 [thread overview]
Message-ID: <cover.1513608243.git.fbarrat@linux.vnet.ibm.com> (raw)
This series adds support for Open Coherent Accelerator (ocxl) devices
on POWER9 processor. OpenCAPI is a consortium developing the
specifications for an interface between processors and accelerators,
allowing sharing the host memory with the accelerators, using virtual
addresses.
The OpenCAPI device can also have its own local memory and provide
access to the host, though it is not supported by that series.
The OpenCAPI specification is processor agnostic, but this series adds
support specifically for powerpc.
Even though the underlying transport is not PCI, the firmware
abstracts the hardware like a PCI host bridge and Linux sees the
OpenCAPI devices as PCI devices. So a lot of existing infrastructure
and commands can be reused.
Patches 1-5: add the platform-specific services needed by the driver
Patches 6-10: driver code
Patch 11: small correction to existing cxl driver
Patch 12: documentation
Current limitations, that will be addressed in later patches:
- no capability to trigger a reset of the opencapi adapter
- no support for the 'wake_host_thread' command
- no support for adapters with a dual-link connection (none exists yet)
- no access to the adapter-local memory
Many people contributed directly or indirectly, from the software,
hardware and bringup teams. In particular Andrew Donnellan and
Alastair D'Silva, who are developing the related firmware and library.
Feedback welcome!
Frederic Barrat (13):
powerpc/powernv: Introduce new PHB type for opencapi links
powerpc/powernv: Set correct configuration space size for opencapi
devices
powerpc/powernv: Add opal calls for opencapi
powerpc/powernv: Add platform-specific services for opencapi
powerpc/powernv: Capture actag information for the device
ocxl: Driver code for 'generic' opencapi devices
ocxl: Add AFU interrupt support
ocxl: Add a kernel API for other opencapi drivers
ocxl: Add trace points
ocxl: Add Makefile and Kconfig
cxl: Remove support for "Processing accelerators" class
ocxl: Documentation
ocxl: add MAINTAINERS entry
Documentation/accelerators/ocxl.rst | 151 +++++
Documentation/ioctl/ioctl-number.txt | 1 +
MAINTAINERS | 12 +
arch/powerpc/include/asm/opal-api.h | 5 +-
arch/powerpc/include/asm/opal.h | 6 +
arch/powerpc/include/asm/pnv-ocxl.h | 43 ++
arch/powerpc/platforms/powernv/Makefile | 1 +
arch/powerpc/platforms/powernv/npu-dma.c | 2 +-
arch/powerpc/platforms/powernv/ocxl.c | 519 ++++++++++++++++++
arch/powerpc/platforms/powernv/opal-wrappers.S | 3 +
arch/powerpc/platforms/powernv/pci-ioda.c | 56 +-
arch/powerpc/platforms/powernv/pci.c | 4 +
arch/powerpc/platforms/powernv/pci.h | 8 +-
drivers/misc/Kconfig | 1 +
drivers/misc/Makefile | 1 +
drivers/misc/cxl/pci.c | 2 -
drivers/misc/ocxl/Kconfig | 25 +
drivers/misc/ocxl/Makefile | 10 +
drivers/misc/ocxl/afu_irq.c | 209 +++++++
drivers/misc/ocxl/config.c | 729 +++++++++++++++++++++++++
drivers/misc/ocxl/context.c | 275 ++++++++++
drivers/misc/ocxl/file.c | 438 +++++++++++++++
drivers/misc/ocxl/link.c | 654 ++++++++++++++++++++++
drivers/misc/ocxl/main.c | 40 ++
drivers/misc/ocxl/ocxl_internal.h | 138 +++++
drivers/misc/ocxl/pasid.c | 114 ++++
drivers/misc/ocxl/pci.c | 592 ++++++++++++++++++++
drivers/misc/ocxl/sysfs.c | 150 +++++
drivers/misc/ocxl/trace.c | 13 +
drivers/misc/ocxl/trace.h | 189 +++++++
include/misc/ocxl-config.h | 52 ++
include/misc/ocxl.h | 221 ++++++++
include/uapi/misc/ocxl.h | 56 ++
33 files changed, 4702 insertions(+), 18 deletions(-)
create mode 100644 Documentation/accelerators/ocxl.rst
create mode 100644 arch/powerpc/include/asm/pnv-ocxl.h
create mode 100644 arch/powerpc/platforms/powernv/ocxl.c
create mode 100644 drivers/misc/ocxl/Kconfig
create mode 100644 drivers/misc/ocxl/Makefile
create mode 100644 drivers/misc/ocxl/afu_irq.c
create mode 100644 drivers/misc/ocxl/config.c
create mode 100644 drivers/misc/ocxl/context.c
create mode 100644 drivers/misc/ocxl/file.c
create mode 100644 drivers/misc/ocxl/link.c
create mode 100644 drivers/misc/ocxl/main.c
create mode 100644 drivers/misc/ocxl/ocxl_internal.h
create mode 100644 drivers/misc/ocxl/pasid.c
create mode 100644 drivers/misc/ocxl/pci.c
create mode 100644 drivers/misc/ocxl/sysfs.c
create mode 100644 drivers/misc/ocxl/trace.c
create mode 100644 drivers/misc/ocxl/trace.h
create mode 100644 include/misc/ocxl-config.h
create mode 100644 include/misc/ocxl.h
create mode 100644 include/uapi/misc/ocxl.h
--
2.14.1
next reply other threads:[~2017-12-18 15:21 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-18 15:21 Frederic Barrat [this message]
2017-12-18 15:21 ` [PATCH 01/13] powerpc/powernv: Introduce new PHB type for opencapi links Frederic Barrat
2018-01-03 3:53 ` Andrew Donnellan
2017-12-18 15:21 ` [PATCH 02/13] powerpc/powernv: Set correct configuration space size for opencapi devices Frederic Barrat
2017-12-19 1:14 ` Andrew Donnellan
2018-01-20 9:52 ` Michael Ellerman
2018-01-22 5:07 ` Andrew Donnellan
2017-12-18 15:21 ` [PATCH 03/13] powerpc/powernv: Add opal calls for opencapi Frederic Barrat
2017-12-19 0:47 ` Andrew Donnellan
2017-12-18 15:21 ` [PATCH 04/13] powerpc/powernv: Add platform-specific services " Frederic Barrat
2018-01-03 7:31 ` Andrew Donnellan
2017-12-18 15:21 ` [PATCH 05/13] powerpc/powernv: Capture actag information for the device Frederic Barrat
2017-12-18 15:21 ` [PATCH 06/13] ocxl: Driver code for 'generic' opencapi devices Frederic Barrat
2018-01-03 7:30 ` Andrew Donnellan
2017-12-18 15:21 ` [PATCH 07/13] ocxl: Add AFU interrupt support Frederic Barrat
2017-12-19 4:05 ` Benjamin Herrenschmidt
2018-01-23 17:10 ` Cédric Le Goater
2017-12-18 15:21 ` [PATCH 08/13] ocxl: Add a kernel API for other opencapi drivers Frederic Barrat
2017-12-18 15:21 ` [PATCH 09/13] ocxl: Add trace points Frederic Barrat
2017-12-18 16:48 ` Philippe Ombredanne
2017-12-20 12:01 ` Frederic Barrat
2017-12-18 15:21 ` [PATCH 10/13] ocxl: Add Makefile and Kconfig Frederic Barrat
2018-01-03 5:48 ` Andrew Donnellan
2018-01-09 15:45 ` Frederic Barrat
2018-01-09 23:21 ` Michael Ellerman
2018-01-10 19:17 ` Frederic Barrat
2017-12-18 15:21 ` [PATCH 11/13] cxl: Remove support for "Processing accelerators" class Frederic Barrat
2017-12-18 23:47 ` Andrew Donnellan
2017-12-18 15:21 ` [PATCH 12/13] ocxl: Documentation Frederic Barrat
2017-12-18 15:21 ` [PATCH 13/13] ocxl: add MAINTAINERS entry Frederic Barrat
2017-12-18 16:04 ` Joe Perches
2017-12-19 14:39 ` Frederic Barrat
2017-12-19 0:22 ` [PATCH 00/13] New driver to support OpenCAPI devices on POWER9 Andrew Donnellan
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=cover.1513608243.git.fbarrat@linux.vnet.ibm.com \
--to=fbarrat@linux.vnet.ibm.com \
--cc=alastair@au1.ibm.com \
--cc=andrew.donnellan@au1.ibm.com \
--cc=arnd@arndb.de \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mpe@ellerman.id.au \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).