Linux-NVME Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: hch@lst.de (Christoph Hellwig)
Subject: NVMe vs DMA addressing limitations
Date: Thu, 12 Jan 2017 14:07:52 +0100	[thread overview]
Message-ID: <20170112130752.GA14465@lst.de> (raw)
In-Reply-To: <3306663.hKmLLq1hhl@wuerfel>

On Thu, Jan 12, 2017@12:56:07PM +0100, Arnd Bergmann wrote:
> That is an interesting question: We actually have the
> "DMA_ATTR_NO_KERNEL_MAPPING" for this case, and ARM implements
> it in the coherent interface, so that might be a good fit.

Yes. my WIP HMB patch uses DMA_ATTR_NO_KERNEL_MAPPING, although I'm
workin on x86 at the moment where it's a no-op.

> Implementing it in the streaming API makes no sense since we
> already have a kernel mapping here, but using a normal allocation
> (possibly with DMA_ATTR_NON_CONSISTENT or DMA_ATTR_SKIP_CPU_SYNC,
> need to check) might help on other architectures that have
> limited amounts of coherent memory and no CMA.

Though about that - but in the end DMA_ATTR_NO_KERNEL_MAPPING implies
those, so instead of using lots of flags in driver I'd rather fix
up more dma_ops implementations to take advantage of
DMA_ATTR_NO_KERNEL_MAPPING.

  reply	other threads:[~2017-01-12 13:07 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1483044304-2085-1-git-send-email-nikita.yoush@cogentembedded.com>
     [not found] ` <2723285.JORgusvJv4@wuerfel>
     [not found]   ` <9a03c05d-ad4c-0547-d1fe-01edb8b082d6@cogentembedded.com>
     [not found]     ` <6374144.HVL0QxNJiT@wuerfel>
2017-01-09 20:34       ` [PATCH 1/2] arm64: dma_mapping: allow PCI host driver to limit DMA mask Nikita Yushchenko
2017-01-09 20:57         ` Christoph Hellwig
     [not found]           ` <e084dbad-29ab-25bd-5e17-da0fcd92f7ac@cogentembedded.com>
2017-01-10  7:07             ` NVMe vs DMA addressing limitations Christoph Hellwig
2017-01-10  7:31               ` Nikita Yushchenko
2017-01-10 11:01                 ` Arnd Bergmann
2017-01-10 14:48                   ` Christoph Hellwig
2017-01-10 15:02                     ` Arnd Bergmann
2017-01-12 10:09                     ` Sagi Grimberg
2017-01-12 11:56                       ` Arnd Bergmann
2017-01-12 13:07                         ` Christoph Hellwig [this message]
2017-01-10 10:54               ` Arnd Bergmann
2017-01-10 10:47           ` [PATCH 1/2] arm64: dma_mapping: allow PCI host driver to limit DMA mask Arnd Bergmann
2017-01-10 14:44             ` Christoph Hellwig
2017-01-10 15:00               ` Arnd Bergmann

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=20170112130752.GA14465@lst.de \
    --to=hch@lst.de \
    /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