Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1352712

Re: [PATCH v3 1/2] cxl: Add mechanism for delivering AFU driver specific events

From Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Newsgroups linux.kernel
Subject Re: [PATCH v3 1/2] cxl: Add mechanism for delivering AFU driver specific events
Date 2016-03-08 09:10 +0100
Message-ID <rakSm-6EA-17@gated-at.bofh.it> (permalink)
References <raf6i-2wB-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 08/03/16 12:48, Ian Munsie wrote:
> From: Ian Munsie <imunsie@au1.ibm.com>
>
> This adds an afu_driver_ops structure with event_pending and
> deliver_event callbacks. An AFU driver such as cxlflash can fill these
> out and associate it with a context to enable passing custom AFU
> specific events to userspace.
>
> The cxl driver will call event_pending() during poll, select, read, etc.
> calls to check if an AFU driver specific event is pending, and will call
> deliver_event() to deliver that event. This way, the cxl driver takes
> care of all the usual locking semantics around these calls and handles
> all the generic cxl events, so that the AFU driver only needs to worry
> about it's own events.
>
> The deliver_event() call is passed a struct cxl_event buffer to fill in.
> The header will already be filled in for an AFU driver event, and the
> AFU driver is expected to expand the header.size as necessary (up to
> max_size, defined by struct cxl_event_afu_driver_reserved) and fill out
> it's own information.
>
> Since AFU drivers provide their own means for userspace to obtain the
> AFU file descriptor (i.e. cxlflash uses an ioctl on their scsi file
> descriptor to obtain the AFU file descriptor) and the generic cxl driver
> will never use this event, the ABI of the event is up to each individual
> AFU driver.
>
> Signed-off-by: Ian Munsie <imunsie@au1.ibm.com>

Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>

-- 
Andrew Donnellan              Software Engineer, OzLabs
andrew.donnellan@au1.ibm.com  Australia Development Lab, Canberra
+61 2 6201 8874 (work)        IBM Australia Limited

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v3 1/2] cxl: Add mechanism for delivering AFU driver specific events "Ian Munsie" <imunsie@au1.ibm.com> - 2016-03-08 03:00 +0100
  Re: [PATCH v3 1/2] cxl: Add mechanism for delivering AFU driver specific events Matt Ochs <mrochs@us.ibm.com> - 2016-03-08 05:10 +0100
  Re: [PATCH v3 1/2] cxl: Add mechanism for delivering AFU driver  specific events Andrew Donnellan <andrew.donnellan@au1.ibm.com> - 2016-03-08 09:10 +0100
  Re: [PATCH v3 1/2] cxl: Add mechanism for delivering AFU driver  specific events Frederic Barrat <fbarrat@linux.vnet.ibm.com> - 2016-03-09 10:30 +0100
    Re: [PATCH v3 1/2] cxl: Add mechanism for delivering AFU driver specific events Ian Munsie <imunsie@au1.ibm.com> - 2016-03-10 01:50 +0100
    Re: [PATCH v3 1/2] cxl: Add mechanism for delivering AFU driver specific events Ian Munsie <imunsie@au1.ibm.com> - 2016-03-10 02:30 +0100
  Re: [PATCH v3 1/2] cxl: Add mechanism for delivering AFU driver specific events Vaibhav Jain <vaibhav@linux.vnet.ibm.com> - 2016-03-09 15:40 +0100
    Re: [PATCH v3 1/2] cxl: Add mechanism for delivering AFU driver specific events Matt Ochs <mrochs@us.ibm.com> - 2016-03-09 17:50 +0100
    Re: [PATCH v3 1/2] cxl: Add mechanism for delivering AFU driver  specific events Frederic Barrat <fbarrat@linux.vnet.ibm.com> - 2016-03-09 18:10 +0100
      Re: [PATCH v3 1/2] cxl: Add mechanism for delivering AFU driver specific events Vaibhav Jain <vaibhav@linux.vnet.ibm.com> - 2016-03-10 18:30 +0100
    Re: [PATCH v3 1/2] cxl: Add mechanism for delivering AFU driver specific events Ian Munsie <imunsie@au1.ibm.com> - 2016-03-10 02:30 +0100
      Re: [PATCH v3 1/2] cxl: Add mechanism for delivering AFU driver specific events Vaibhav Jain <vaibhav@linux.vnet.ibm.com> - 2016-03-10 18:40 +0100
      Re: [PATCH v3 1/2] cxl: Add mechanism for delivering AFU driver  specific events Andrew Donnellan <andrew.donnellan@au1.ibm.com> - 2016-03-11 03:00 +0100
    Re: [PATCH v3 1/2] cxl: Add mechanism for delivering AFU driver  specific events Michael Neuling <mikey@neuling.org> - 2016-03-10 04:30 +0100
      Re: [PATCH v3 1/2] cxl: Add mechanism for delivering AFU driver specific events Vaibhav Jain <vaibhav@linux.vnet.ibm.com> - 2016-03-10 18:30 +0100

csiph-web