drm/tegra: gem: Take into account IOMMU aperture
authorThierry Reding <treding@nvidia.com>
Mon, 19 Jan 2015 15:15:04 +0000 (16:15 +0100)
committerThierry Reding <treding@nvidia.com>
Fri, 12 Jun 2015 14:23:50 +0000 (16:23 +0200)
commit4553f733c68b66ef49f838aa24470d58caf76ff5
treed6d170f2bdc1d0fa3f6f8f539effadb837423241
parent3c1dae0a07c651526f8e878d223a88f82caa5a50
drm/tegra: gem: Take into account IOMMU aperture

The IOMMU may not always be able to address 2 GiB of memory. On Tegra20,
the GART supports 32 MiB starting at 0x58000000. Also the aperture on
Tegra30 and later is in fact the full 4 GiB, rather than just 2 GiB as
currently assumed.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/drm.c