linux/drivers/iommu
Ohad Ben-Cohen 6d1c56a9db iommu/intel: announce supported page sizes
Let the IOMMU core know we support arbitrary page sizes (as long as
they're an order of 4KiB).

This way the IOMMU core will retain the existing behavior we're used to;
it will let us map regions that:
- their size is an order of 4KiB
- they are naturally aligned

Note: Intel IOMMU hardware doesn't support arbitrary page sizes,
but the driver does (it splits arbitrary-sized mappings into
the pages supported by the hardware).

To make everything simpler for now, though, this patch effectively tells
the IOMMU core to keep giving this driver the same memory regions it did
before, so nothing is changed as far as it's concerned.

At this point, the page sizes announced remain static within the IOMMU
core. To correctly utilize the pgsize-splitting of the IOMMU core by
this driver, it seems that some core changes should still be done,
because Intel's IOMMU page size capabilities seem to have the potential
to be different between different DMA remapping devices.

Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
2011-11-10 11:40:38 +01:00
..
amd_iommu.c iommu/amd: announce supported page sizes 2011-11-10 11:40:38 +01:00
amd_iommu_init.c iommu/amd: Move missing parts to drivers/iommu 2011-06-21 10:49:31 +02:00
amd_iommu_proto.h iommu/amd: Move missing parts to drivers/iommu 2011-06-21 10:49:31 +02:00
amd_iommu_types.h Merge branches 'amd/transparent-bridge' and 'core' 2011-06-21 11:14:10 +02:00
dmar.c Merge branch 'core-locking-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2011-10-26 16:17:32 +02:00
intel-iommu.c iommu/intel: announce supported page sizes 2011-11-10 11:40:38 +01:00
intr_remapping.c Merge branch 'core-locking-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2011-10-26 16:17:32 +02:00
intr_remapping.h x86/ia64: intel-iommu: move to drivers/iommu/ 2011-06-21 10:49:30 +02:00
iommu.c iommu/core: split mapping to page sizes as supported by the hardware 2011-11-10 11:40:37 +01:00
iova.c x86/ia64: intel-iommu: move to drivers/iommu/ 2011-06-21 10:49:30 +02:00
Kconfig Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu 2011-10-30 15:46:19 -07:00
Makefile Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu 2011-10-30 15:46:19 -07:00
msm_iommu.c iommu/msm: announce supported page sizes 2011-11-10 11:40:37 +01:00
msm_iommu_dev.c
omap-iommu-debug.c omap: iommu: omapify 'struct iommu' and exposed API 2011-08-26 11:46:01 +02:00
omap-iommu.c iommu/omap: announce supported page sizes 2011-11-10 11:40:37 +01:00
omap-iovmm.c iommu/core: split mapping to page sizes as supported by the hardware 2011-11-10 11:40:37 +01:00