linux-nvme.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: hch@infradead.org (Christoph Hellwig)
Subject: [PATCH] Move nvme driver source into subdirectory and move pci specifics from core into separate file
Date: Sat, 26 Sep 2015 09:09:33 -0700	[thread overview]
Message-ID: <20150926160933.GA30551@infradead.org> (raw)
In-Reply-To: <1443193953.3304.18.camel@linux.intel.com>

On Fri, Sep 25, 2015@08:12:33AM -0700, J Freyensee wrote:
> > My suggestion would be:
> > 
> >  a) move files to a new directory.  My suggestion for that would be
> >     driver/nvme/host/ as I have a software NVMe controller
> >     implementation under development which I'd like to also add under
> >     a different subdirectory of drivers/nvme.
> 
> Would that directory be slightly confusing name as the split
> implementation in this patch can still be used as the NVMe PCIe driver
> for SSD devices inside a given computer (laptop, PC, etc)?  I have no
> issue with the name, just posing a question.

Host is what the NVMe spec uses when referring to the computer housing
the NVMe card, that's why I came up with it.  But I'm open for alternate
suggestions.

> I can see that.  However we started with the split we had just out of
> the concern for backwards compatibility and worry of breaking something
> with the initial split.  There was the thought we can optimize some of
> the operations and remove them on future patches on operations that we
> know are safe to remove.

If you look at the NVMe spec we're basically down to two sort of
operations: NVMe commands, and MMIO read/write access to the main
BAR, so those seem the most important abstraction.  My nvme_command
passthrough through struct request takes care of the first, so some
{read,write}_bar_{32,64} ops seem to be most important ops.  Depending
on how exactly the initialization path is structured there might be a
frw more, but I'd tend towards duplicating a bit more in doubt there
initially.

Note that I've done a pre-"NVMe over Fabrics" RDMA transport and a
nvme-loop driver that directy injects commands from a front end
driver into a virtual controller about a year ago, and both fit this
scheme pretty well, as does the virtio-nvme code from Ming.

  reply	other threads:[~2015-09-26 16:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-24 21:27 [PATCH] Move nvme driver source into subdirectory and move pci specifics from core into separate file J Freyensee
2015-09-25  0:02 ` Christoph Hellwig
2015-09-25 15:12   ` J Freyensee
2015-09-26 16:09     ` Christoph Hellwig [this message]
2015-09-26  5:32   ` Ming Lin
2015-09-26 16:11     ` Christoph Hellwig
2015-10-09 17:38       ` Ming Lin
2015-10-10  7:30         ` Christoph Hellwig

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=20150926160933.GA30551@infradead.org \
    --to=hch@infradead.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 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).