All of lore.kernel.org
 help / color / mirror / Atom feed
* generic DMA bypass flag v3
@ 2020-04-14 12:25 ` Christoph Hellwig
  0 siblings, 0 replies; 60+ messages in thread
From: Christoph Hellwig @ 2020-04-14 12:25 UTC (permalink / raw)
  To: iommu, Alexey Kardashevskiy
  Cc: linuxppc-dev, Lu Baolu, Greg Kroah-Hartman, Joerg Roedel,
	Robin Murphy, linux-kernel

Hi all,

I've recently beeing chatting with Lu about using dma-iommu and
per-device DMA ops in the intel IOMMU driver, and one missing feature
in dma-iommu is a bypass mode where the direct mapping is used even
when an iommu is attached to improve performance.  The powerpc
code already has a similar mode, so I'd like to move it to the core
DMA mapping code.  As part of that I noticed that the current
powerpc code has a little bug in that it used the wrong check in the
dma_sync_* routines to see if the direct mapping code is used.

These two patches just add the generic code and move powerpc over,
the intel IOMMU bits will require a separate discussion.

The x86 AMD Gart code also has a bypass mode, but it is a lot
strange, so I'm not going to touch it for now.

Changes since v2:
 - move the dma mapping helpers out of line
 - check for possible direct mappings using the dma mask

Changes since v1:
 - rebased to the current dma-mapping-for-next tree

^ permalink raw reply	[flat|nested] 60+ messages in thread

end of thread, other threads:[~2020-07-07 15:16 UTC | newest]

Thread overview: 60+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-14 12:25 generic DMA bypass flag v3 Christoph Hellwig
2020-04-14 12:25 ` Christoph Hellwig
2020-04-14 12:25 ` Christoph Hellwig
2020-04-14 12:25 ` [PATCH 1/4] dma-mapping: move the remaining DMA API calls out of line Christoph Hellwig
2020-04-14 12:25   ` Christoph Hellwig
2020-04-14 12:25   ` Christoph Hellwig
2020-04-15  2:26   ` Alexey Kardashevskiy
2020-04-15  2:26     ` Alexey Kardashevskiy
2020-04-15  2:26     ` Alexey Kardashevskiy
2020-04-15  6:18     ` Christoph Hellwig
2020-04-15  6:18       ` Christoph Hellwig
2020-04-15  6:18       ` Christoph Hellwig
2020-04-15 11:21       ` Alexey Kardashevskiy
2020-04-15 11:21         ` Alexey Kardashevskiy
2020-04-15 11:21         ` Alexey Kardashevskiy
2020-04-17  7:58         ` Christoph Hellwig
2020-04-17  7:58           ` Christoph Hellwig
2020-04-17  7:58           ` Christoph Hellwig
2020-05-05  4:18           ` Alexey Kardashevskiy
2020-05-05  4:18             ` Alexey Kardashevskiy
2020-05-05  4:18             ` Alexey Kardashevskiy
2020-05-09  8:19             ` Christoph Hellwig
2020-05-09  8:19               ` Christoph Hellwig
2020-05-09  8:19               ` Christoph Hellwig
2020-05-09 14:07               ` Alexey Kardashevskiy
2020-05-09 14:07                 ` Alexey Kardashevskiy
2020-05-09 14:07                 ` Alexey Kardashevskiy
2020-06-03  4:13               ` Alexey Kardashevskiy
2020-06-03  4:13                 ` Alexey Kardashevskiy
2020-06-03  4:13                 ` Alexey Kardashevskiy
2020-07-07  0:43                 ` Alexey Kardashevskiy
2020-07-07  0:43                   ` Alexey Kardashevskiy
2020-07-07  0:43                   ` Alexey Kardashevskiy
2020-07-07 14:51                   ` Christoph Hellwig
2020-07-07 14:51                     ` Christoph Hellwig
2020-07-07 14:51                     ` Christoph Hellwig
2020-04-14 12:25 ` [PATCH 2/4] dma-mapping: inline the fast path dma-direct calls Christoph Hellwig
2020-04-14 12:25   ` Christoph Hellwig
2020-04-14 12:25   ` Christoph Hellwig
2020-04-14 12:25 ` [PATCH 3/4] dma-mapping: add a dma_ops_bypass flag to struct device Christoph Hellwig
2020-04-14 12:25   ` Christoph Hellwig
2020-04-14 12:25   ` Christoph Hellwig
2020-04-14 12:47   ` Greg Kroah-Hartman
2020-04-14 12:47     ` Greg Kroah-Hartman
2020-04-14 12:47     ` Greg Kroah-Hartman
2020-04-18 12:42   ` Joerg Roedel
2020-04-18 12:42     ` Joerg Roedel
2020-04-18 12:42     ` Joerg Roedel
2020-04-19  8:00     ` Christoph Hellwig
2020-04-19  8:00       ` Christoph Hellwig
2020-04-19  8:00       ` Christoph Hellwig
2020-04-19 12:25       ` Joerg Roedel
2020-04-19 12:25         ` Joerg Roedel
2020-04-19 12:25         ` Joerg Roedel
2020-04-19 14:46         ` Alexey Kardashevskiy
2020-04-19 14:46           ` Alexey Kardashevskiy
2020-04-19 14:46           ` Alexey Kardashevskiy
2020-04-14 12:25 ` [PATCH 4/4] powerpc: use the generic dma_ops_bypass mode Christoph Hellwig
2020-04-14 12:25   ` Christoph Hellwig
2020-04-14 12:25   ` Christoph Hellwig

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.