From: "Alastair D'Silva" <alastair@au1.ibm.com> To: alastair@d-silva.org Cc: Frederic Barrat <fbarrat@linux.ibm.com>, Andrew Donnellan <andrew.donnellan@au1.ibm.com>, Arnd Bergmann <arnd@arndb.de>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: [PATCH v2 0/7] Refactor OCXL driver to allow external drivers to use it Date: Wed, 20 Mar 2019 16:08:52 +1100 [thread overview] Message-ID: <20190320050901.310-1-alastair@au1.ibm.com> (raw) In-Reply-To: <20190313041524.14644-1-alastair@au1.ibm.com> From: Alastair D'Silva <alastair@d-silva.org> This series reworks the OpenCAPI driver to split frontend (driver interactions) from backend (hardware interactions). This allows external drivers to utilise the core of the generic OpenCAPI driver to communicate with specific OpenCAPI hardware. Changelog: V2: - Reorder patches as some required structs that were only available later - Add dev.release implementation for ocxl_file_info to address warning on driver unload (ocxl: Create a clear delineation...) - Set output var irq_id in ocxl_afu_irq_alloc (ocxl: afu_irq only deals...) - Bump copyright year (ocxl: Provide global MMIO accessors..., ocxl: Split pci.c) Alastair D'Silva (7): ocxl: Split pci.c ocxl: Don't pass pci_dev around ocxl: Create a clear delineation between ocxl backend & frontend ocxl: Allow external drivers to use OpenCAPI contexts ocxl: afu_irq only deals with IRQ IDs, not offsets ocxl: move event_fd handling to frontend ocxl: Provide global MMIO accessors for external drivers drivers/misc/ocxl/Makefile | 3 +- drivers/misc/ocxl/afu_irq.c | 97 ++--- drivers/misc/ocxl/context.c | 18 +- drivers/misc/ocxl/core.c | 578 ++++++++++++++++++++++++++++++ drivers/misc/ocxl/file.c | 160 ++++++--- drivers/misc/ocxl/mmio.c | 234 ++++++++++++ drivers/misc/ocxl/ocxl_internal.h | 49 +-- drivers/misc/ocxl/pci.c | 562 ++--------------------------- drivers/misc/ocxl/sysfs.c | 58 +-- drivers/misc/ocxl/trace.h | 12 +- include/misc/ocxl.h | 322 ++++++++++++++++- 11 files changed, 1390 insertions(+), 703 deletions(-) create mode 100644 drivers/misc/ocxl/core.c create mode 100644 drivers/misc/ocxl/mmio.c -- 2.20.1
WARNING: multiple messages have this Message-ID (diff)
From: "Alastair D'Silva" <alastair@au1.ibm.com> To: alastair@d-silva.org Cc: Arnd Bergmann <arnd@arndb.de>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, linux-kernel@vger.kernel.org, Andrew Donnellan <andrew.donnellan@au1.ibm.com>, Frederic Barrat <fbarrat@linux.ibm.com>, linuxppc-dev@lists.ozlabs.org Subject: [PATCH v2 0/7] Refactor OCXL driver to allow external drivers to use it Date: Wed, 20 Mar 2019 16:08:52 +1100 [thread overview] Message-ID: <20190320050901.310-1-alastair@au1.ibm.com> (raw) In-Reply-To: <20190313041524.14644-1-alastair@au1.ibm.com> From: Alastair D'Silva <alastair@d-silva.org> This series reworks the OpenCAPI driver to split frontend (driver interactions) from backend (hardware interactions). This allows external drivers to utilise the core of the generic OpenCAPI driver to communicate with specific OpenCAPI hardware. Changelog: V2: - Reorder patches as some required structs that were only available later - Add dev.release implementation for ocxl_file_info to address warning on driver unload (ocxl: Create a clear delineation...) - Set output var irq_id in ocxl_afu_irq_alloc (ocxl: afu_irq only deals...) - Bump copyright year (ocxl: Provide global MMIO accessors..., ocxl: Split pci.c) Alastair D'Silva (7): ocxl: Split pci.c ocxl: Don't pass pci_dev around ocxl: Create a clear delineation between ocxl backend & frontend ocxl: Allow external drivers to use OpenCAPI contexts ocxl: afu_irq only deals with IRQ IDs, not offsets ocxl: move event_fd handling to frontend ocxl: Provide global MMIO accessors for external drivers drivers/misc/ocxl/Makefile | 3 +- drivers/misc/ocxl/afu_irq.c | 97 ++--- drivers/misc/ocxl/context.c | 18 +- drivers/misc/ocxl/core.c | 578 ++++++++++++++++++++++++++++++ drivers/misc/ocxl/file.c | 160 ++++++--- drivers/misc/ocxl/mmio.c | 234 ++++++++++++ drivers/misc/ocxl/ocxl_internal.h | 49 +-- drivers/misc/ocxl/pci.c | 562 ++--------------------------- drivers/misc/ocxl/sysfs.c | 58 +-- drivers/misc/ocxl/trace.h | 12 +- include/misc/ocxl.h | 322 ++++++++++++++++- 11 files changed, 1390 insertions(+), 703 deletions(-) create mode 100644 drivers/misc/ocxl/core.c create mode 100644 drivers/misc/ocxl/mmio.c -- 2.20.1
next prev parent reply other threads:[~2019-03-20 5:13 UTC|newest] Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-03-13 4:15 [PATCH 0/7] Refactor OCXL driver to allow external drivers to use it Alastair D'Silva 2019-03-13 4:15 ` Alastair D'Silva 2019-03-13 4:15 ` [PATCH 1/7] ocxl: Provide global MMIO accessors for external drivers Alastair D'Silva 2019-03-13 4:15 ` Alastair D'Silva 2019-03-13 18:06 ` Frederic Barrat 2019-03-13 18:06 ` Frederic Barrat 2019-03-15 4:11 ` Andrew Donnellan 2019-03-15 4:11 ` Andrew Donnellan 2019-03-13 4:15 ` [PATCH 2/7] ocxl: Allow external drivers to use OpenCAPI contexts Alastair D'Silva 2019-03-13 4:15 ` Alastair D'Silva 2019-03-13 18:20 ` Frederic Barrat 2019-03-13 18:20 ` Frederic Barrat 2019-03-13 4:15 ` [PATCH 3/7] ocxl: Split pci.c Alastair D'Silva 2019-03-13 4:15 ` Alastair D'Silva 2019-03-14 16:48 ` Frederic Barrat 2019-03-13 4:15 ` [PATCH 4/7] ocxl: Don't pass pci_dev around Alastair D'Silva 2019-03-13 4:15 ` Alastair D'Silva 2019-03-14 17:00 ` Frederic Barrat 2019-03-14 17:00 ` Frederic Barrat 2019-03-15 3:32 ` Andrew Donnellan 2019-03-15 3:32 ` Andrew Donnellan 2019-03-13 4:15 ` [PATCH 5/7] ocxl: Create a clear delineation between ocxl backend & frontend Alastair D'Silva 2019-03-13 4:15 ` Alastair D'Silva 2019-03-14 16:27 ` Frederic Barrat 2019-03-14 16:27 ` Frederic Barrat 2019-03-13 4:15 ` [PATCH 6/7] ocxl: afu_irq only deals with IRQ IDs, not offsets Alastair D'Silva 2019-03-13 4:15 ` Alastair D'Silva 2019-03-15 13:56 ` Greg Kurz 2019-03-20 0:28 ` Alastair D'Silva 2019-03-13 4:15 ` [PATCH 7/7] ocxl: move event_fd handling to frontend Alastair D'Silva 2019-03-13 4:15 ` Alastair D'Silva 2019-03-20 5:08 ` Alastair D'Silva [this message] 2019-03-20 5:08 ` [PATCH v2 0/7] Refactor OCXL driver to allow external drivers to use it Alastair D'Silva 2019-03-20 5:08 ` [PATCH v2 1/7] ocxl: Split pci.c Alastair D'Silva 2019-03-20 5:08 ` Alastair D'Silva 2019-03-20 5:08 ` [PATCH v2 2/7] ocxl: Don't pass pci_dev around Alastair D'Silva 2019-03-20 5:08 ` Alastair D'Silva 2019-03-20 5:08 ` [PATCH v2 3/7] ocxl: Create a clear delineation between ocxl backend & frontend Alastair D'Silva 2019-03-20 5:08 ` Alastair D'Silva 2019-03-22 17:38 ` Frederic Barrat 2019-03-22 17:38 ` Frederic Barrat 2019-03-20 5:08 ` [PATCH v2 4/7] ocxl: Allow external drivers to use OpenCAPI contexts Alastair D'Silva 2019-03-20 5:08 ` Alastair D'Silva 2019-03-20 5:08 ` [PATCH v2 5/7] ocxl: afu_irq only deals with IRQ IDs, not offsets Alastair D'Silva 2019-03-20 5:08 ` Alastair D'Silva 2019-03-20 5:08 ` [PATCH v2 6/7] ocxl: move event_fd handling to frontend Alastair D'Silva 2019-03-20 5:08 ` Alastair D'Silva 2019-03-20 5:08 ` [PATCH v2 7/7] ocxl: Provide global MMIO accessors for external drivers Alastair D'Silva 2019-03-20 5:08 ` Alastair D'Silva
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=20190320050901.310-1-alastair@au1.ibm.com \ --to=alastair@au1.ibm.com \ --cc=alastair@d-silva.org \ --cc=andrew.donnellan@au1.ibm.com \ --cc=arnd@arndb.de \ --cc=fbarrat@linux.ibm.com \ --cc=gregkh@linuxfoundation.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linuxppc-dev@lists.ozlabs.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: linkBe 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.