All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] iommu: Add MMIO mapping type
@ 2016-04-05 11:39 ` Robin Murphy
  0 siblings, 0 replies; 10+ messages in thread
From: Robin Murphy @ 2016-04-05 11:39 UTC (permalink / raw)
  To: joro-zLv9SwRftAIdnm+yROfE0A, will.deacon-5wv7dgnIgG8
  Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
	niklas.soderlund+renesas-1zkq55x86MTxsAP9Fp7wbw,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	eric.auger-QSEj5FYQhm4dnm+yROfE0A

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-5wv7dgnIgG8@public.gmane.org>
---

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] 10+ messages in thread

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

Thread overview: 10+ 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 ` Robin Murphy
     [not found] ` <d80a42ceae3a39ef7c593a5181a1742a84c65533.1459854346.git.robin.murphy-5wv7dgnIgG8@public.gmane.org>
2016-04-05 11:39   ` [PATCH 2/3] iommu/io-pgtable-arm: Support IOMMU_MMIO flag Robin Murphy
2016-04-05 11:39     ` Robin Murphy
     [not found]     ` <1e6ddedc0bb08b6581f6e0e80710c2ed03830647.1459854346.git.robin.murphy-5wv7dgnIgG8@public.gmane.org>
2016-04-06 15:58       ` Eric Auger
2016-04-06 15:58         ` Eric Auger
2016-04-05 11:39   ` [PATCH 3/3] iommu/io-pgtable-arm-v7s: " Robin Murphy
2016-04-05 11:39     ` Robin Murphy
2016-04-07 13:08   ` [PATCH 1/3] iommu: Add MMIO mapping type Joerg Roedel
2016-04-07 13:08     ` Joerg Roedel

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.