gpu: ion: Add IOMMU heap allocator with IOMMU API
authorHiroshi DOYU <hdoyu@nvidia.com>
Fri, 23 Dec 2011 12:10:33 +0000 (14:10 +0200)
committerRohan Somvanshi <rsomvanshi@nvidia.com>
Thu, 12 Jan 2012 17:14:10 +0000 (09:14 -0800)
commit609eb320c69b130eb7bbd4b0398ea6ce6c85bbfc
tree16a2b029d3f76db87a8d427d64eba4700e49fc19
parent1638b56014450dce1c04895ecf9da7305294760d
gpu: ion: Add IOMMU heap allocator with IOMMU API

Implemented IOMMU heap allocator("ion_iommu_heap_ops") with IOMMU
API. This implementation is independenf of SoC because the standard
IOMMU API is used in the backend implementation of this heap_ops.

[Krishna Reddy: Refactored the original version heavily, especially
making "allocation" and "mapping" features independent with "struct
page" based mapping functions.]

Change-Id: Ia692d9a0dc00424fa3e95a830f557808351b1ad7
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/72217
Reviewed-by: Automatic_Commit_Validation_User
drivers/gpu/ion/Kconfig
drivers/gpu/ion/Makefile
drivers/gpu/ion/ion_heap.c
drivers/gpu/ion/ion_iommu_heap.c [new file with mode: 0644]
drivers/gpu/ion/ion_priv.h
include/linux/ion.h