]> git.baikalelectronics.ru Git - kernel.git/commit
arm: dma-mapping: remove order parameter from arm_iommu_create_mapping()
authorMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 25 Feb 2014 12:01:09 +0000 (13:01 +0100)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Fri, 28 Feb 2014 10:55:18 +0000 (11:55 +0100)
commit16a5045abdc634acc78539e8ce15b6c98ed45432
tree2b86d6df14c10b8d288ad61624e485b429a1de18
parent8c89613580983e75c25d1abdd2a61ad51abd8716
arm: dma-mapping: remove order parameter from arm_iommu_create_mapping()

The 'order' parameter for IOMMU-aware dma-mapping implementation was
introduced mainly as a hack to reduce size of the bitmap used for
tracking IO virtual address space. Since now it is possible to dynamically
resize the bitmap, this hack is not needed and can be removed without any
impact on the client devices. This way the parameters for
arm_iommu_create_mapping() becomes much easier to understand. 'size'
parameter now means the maximum supported IO address space size.

The code will allocate (resize) bitmap in chunks, ensuring that a single
chunk is not larger than a single memory page to avoid unreliable
allocations of size larger than PAGE_SIZE in atomic context.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
arch/arm/include/asm/dma-iommu.h
arch/arm/mm/dma-mapping.c
drivers/gpu/drm/exynos/exynos_drm_drv.h
drivers/gpu/drm/exynos/exynos_drm_iommu.c
drivers/gpu/drm/exynos/exynos_drm_iommu.h
drivers/iommu/shmobile-iommu.c