From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Sudeep Dutt <sudeep.dutt@intel.com>
Cc: Arnd Bergmann <arnd@arndb.de>, Jonathan Corbet <corbet@lwn.net>,
linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org,
Dave Jiang <dave.jiang@intel.com>,
Nikhil Rao <nikhil.rao@intel.com>,
Ashutosh Dixit <ashutosh.dixit@intel.com>
Subject: Re: [PATCH char-misc-next v2 00/13] misc: mic: SCIF driver
Date: Mon, 26 Jan 2015 12:27:25 -0800 [thread overview]
Message-ID: <20150126202725.GA24523@kroah.com> (raw)
In-Reply-To: <1422295627.9362.173.camel@rbtaylor-desk1.amr.corp.intel.com>
On Mon, Jan 26, 2015 at 10:07:07AM -0800, Sudeep Dutt wrote:
> On Sun, 2015-01-25 at 20:44 +0800, Greg Kroah-Hartman wrote:
> > On Mon, Jan 12, 2015 at 03:09:54PM -0800, Sudeep Dutt wrote:
> > > ChangeLog:
> > > =========
> > > v1 => v2:
> > > a) Use kernel-doc formatting for SCIF header file documentation, enhance
> > > SCIF ring buffer documentation and formatting cleanup in patch 4 as
> > > per feedback from Greg Kroah-Hartman
> > > b) SCIF bug fixes and cleanups since initial post
> > >
> > > v1: Initial post @ https://lkml.org/lkml/2014/12/10/546
> >
> > Do you have any test code that can be added to the tree to exercise this
> > api and at least give a hint as to how it all works from the userspace
> > side? You don't have any pointers to any userspace code, what is using
> > this API?
> >
>
> SCIF has been used to implement an ICC offload compiler runtime in user
> space. We will be submitting a kernel client as well if this initial
> patch series is accepted upstream. SCIF has a user space library which
> is a thin IOCTL wrapper providing a user space API similar to the kernel
> API in scif.h. The SCIF user space library is distributed separately via
> https://software.intel.com/en-us/mic-developer
>
> Here is some SCIF pseudo code as an example:
>
> Process A (on host) Process B (on MIC Coprocessor)
>
> scif_open(..) scif_open(..)
> scif_bind(..) scif_bind(..)
> scif_listen(..)
> scif_accept(..) scif_connect(..)
> /* SCIF connection established */
>
> /* Send and receive control messages */
> scif_send(..)/scif_recv(..) scif_send(..)/scif_recv(..)
>
> /* Register memory */
> scif_register(..) scif_register(..)
>
> /* RDMA */
> scif_readfrom(..)/scif_writeto(..) scif_readfrom(..)/scif_writeto(..)
>
> mmap(..) mmap(..)
> /* Access remote registered memory */
>
> /* Close the endpoints */
> scif_close(..) scif_close(..)
Document this somewhere in your submission so that people know where to
look for userspace stuff.
> The user space code has been distributed and maintained separately from
> the kernel so we did not include it as part of this patch series to
> avoid bloating the kernel. Do you think we should include the user space
> SCIF library and some sample user space test applications under
> Documentation/mic with this patch series?
sample test applications are always good, if they work on their own
without requiring the library. I wouldn't put the whole library in the
kernel tree unless you feel it is needed there.
thanks,
greg k-h
prev parent reply other threads:[~2015-01-26 20:34 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-12 23:09 [PATCH char-misc-next v2 00/13] misc: mic: SCIF driver Sudeep Dutt
2015-01-12 23:09 ` [PATCH char-misc-next v2 01/13] misc: mic: SCIF header file and IOCTL interface Sudeep Dutt
2015-01-25 12:39 ` Greg Kroah-Hartman
2015-01-26 18:07 ` Sudeep Dutt
2015-01-25 12:41 ` Greg Kroah-Hartman
2015-01-26 18:07 ` Sudeep Dutt
2015-01-12 23:09 ` [PATCH char-misc-next v2 02/13] misc: mic: SCIF ring buffer infrastructure Sudeep Dutt
2015-01-12 23:09 ` [PATCH char-misc-next v2 03/13] misc: mic: SCIF Hardware Bus Sudeep Dutt
2015-01-12 23:09 ` [PATCH char-misc-next v2 04/13] misc: mic: SCIF Peer Bus Sudeep Dutt
2015-01-12 23:09 ` [PATCH char-misc-next v2 05/13] misc: mic: Common MIC header file changes in preparation for SCIF Sudeep Dutt
2015-01-12 23:10 ` [PATCH char-misc-next v2 06/13] misc: mic: SCIF module initialization Sudeep Dutt
2015-01-12 23:10 ` [PATCH char-misc-next v2 07/13] misc: mic: SCIF node queue pair setup management Sudeep Dutt
2015-01-12 23:10 ` [PATCH char-misc-next v2 08/13] misc: mic: SCIF open close bind and listen APIs Sudeep Dutt
2015-01-12 23:10 ` [PATCH char-misc-next v2 09/13] misc: mic: SCIF connections APIs i.e. accept and connect Sudeep Dutt
2015-01-12 23:10 ` [PATCH char-misc-next v2 10/13] misc: mic: SCIF messaging and node enumeration APIs Sudeep Dutt
2015-01-12 23:10 ` [PATCH char-misc-next v2 11/13] misc: mic: MIC host driver specific changes to enable SCIF Sudeep Dutt
2015-01-12 23:10 ` [PATCH char-misc-next v2 12/13] misc: mic: MIC card " Sudeep Dutt
2015-01-12 23:10 ` [PATCH char-misc-next v2 13/13] misc: mic: add support for loading/unloading SCIF driver Sudeep Dutt
2015-01-25 12:44 ` [PATCH char-misc-next v2 00/13] misc: mic: " Greg Kroah-Hartman
2015-01-26 18:07 ` Sudeep Dutt
2015-01-26 20:27 ` Greg Kroah-Hartman [this message]
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=20150126202725.GA24523@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=arnd@arndb.de \
--cc=ashutosh.dixit@intel.com \
--cc=corbet@lwn.net \
--cc=dave.jiang@intel.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nikhil.rao@intel.com \
--cc=sudeep.dutt@intel.com \
/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