media: tegra: avp: Allocate IOVMM first for AVP
Kaz Fukuoka [Sun, 15 May 2011 00:46:24 +0000 (17:46 -0700)]
bug 827505

Original-Change-Id: If6d4fd137b72c3a08bf8fb1094d8dd31ab361f1c
Reviewed-on: http://git-master/r/31633
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Tested-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Frank Thomas Bourgeois <fbourgeois@nvidia.com>

Rebase-Id: R563eaa39b299d89133f7a9fb4b1c7129e8ddb71e

drivers/video/tegra/nvmap/nvmap_dev.c

index aeba57c..1ebb1f4 100644 (file)
@@ -1207,6 +1207,14 @@ static int nvmap_probe(struct platform_device *pdev)
 
        platform_set_drvdata(pdev, dev);
        nvmap_dev = dev;
+
+#if defined(CONFIG_TEGRA_AVP_KERNEL_ON_SMMU)
+       {
+               void avp_early_init(void);
+               avp_early_init();
+       }
+#endif
+
        return 0;
 fail_heaps:
        for (i = 0; i < dev->nr_carveouts; i++) {