linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] iommu: Add MMIO mapping type
@ 2016-04-05 11:39 Robin Murphy
  2016-04-05 11:39 ` [PATCH 2/3] iommu/io-pgtable-arm: Support IOMMU_MMIO flag Robin Murphy
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Robin Murphy @ 2016-04-05 11:39 UTC (permalink / raw)
  To: linux-arm-kernel

On some platforms, MMIO regions might need slightly different treatment
compared to mapping regular memory; add the notion of MMIO mappings to
the IOMMU API's memory type flags, so that callers can let the IOMMU
drivers know to do the right thing.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
---

Hi all,

Since this is a prerequisite for both MSI remapping and slave DMA
handling to function properly, and the latter still needs some design
work to reach a consensus[1], I thought it worth reposting this
separately from Niklas' series. I've also split it up now that there's
short-descriptor format to cover as well.

Robin.

[1]:http://lists.linuxfoundation.org/pipermail/iommu/2016-March/016059.html

 include/linux/iommu.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/linux/iommu.h b/include/linux/iommu.h
index a5c539f..34b6432 100644
--- a/include/linux/iommu.h
+++ b/include/linux/iommu.h
@@ -30,6 +30,7 @@
 #define IOMMU_WRITE	(1 << 1)
 #define IOMMU_CACHE	(1 << 2) /* DMA cache coherency */
 #define IOMMU_NOEXEC	(1 << 3)
+#define IOMMU_MMIO	(1 << 4) /* e.g. things like MSI doorbells */
 
 struct iommu_ops;
 struct iommu_group;
-- 
2.7.3.dirty

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

end of thread, other threads:[~2016-04-07 13:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-05 11:39 [PATCH 1/3] iommu: Add MMIO mapping type Robin Murphy
2016-04-05 11:39 ` [PATCH 2/3] iommu/io-pgtable-arm: Support IOMMU_MMIO flag Robin Murphy
2016-04-06 15:58   ` Eric Auger
2016-04-05 11:39 ` [PATCH 3/3] iommu/io-pgtable-arm-v7s: " Robin Murphy
2016-04-07 13:08 ` [PATCH 1/3] iommu: Add MMIO mapping type Joerg Roedel

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).