summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorKrishna Reddy <vdumpa@nvidia.com>2012-01-22 23:38:03 -0800
committerVarun Colbert <vcolbert@nvidia.com>2012-01-30 11:38:14 -0800
commit984dc158f391c3d2086a95248887946dd73dcca9 (patch)
tree49931aa44a86793c56ea18544f5e7e94147554a0 /drivers/gpu
parent8d580ed5b5c826e1da3d4349e9a95cb4490a69b7 (diff)
HACK: gpu: ion: tegra: Implement nvmap_alloc_iovm.
Change-Id: Ida720a6b27f2df11e6381dc0eb5306df3b768f22 Signed-off-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-on: http://git-master/r/76785 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/ion/tegra/tegra_ion.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/ion/tegra/tegra_ion.c b/drivers/gpu/ion/tegra/tegra_ion.c
index 65335d265362..f686269f2f81 100644
--- a/drivers/gpu/ion/tegra/tegra_ion.c
+++ b/drivers/gpu/ion/tegra/tegra_ion.c
@@ -572,8 +572,11 @@ void _nvmap_handle_free(struct nvmap_handle *h)
struct nvmap_handle_ref *nvmap_alloc_iovm(struct nvmap_client *client,
size_t size, size_t align, unsigned int flags, unsigned int iova_start)
{
- /* FIXME: */
- return NULL;
+ struct ion_handle *h;
+
+ h = ion_alloc(client, size, align, 0xFF);
+ ion_remap_dma(client, h, iova_start);
+ return h;
}
void nvmap_free_iovm(struct nvmap_client *client, struct nvmap_handle_ref *r)