summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
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)