drm/nouveau/platform: probe IOMMU if present
authorAlexandre Courbot <acourbot@nvidia.com>
Fri, 20 Feb 2015 09:23:03 +0000 (18:23 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 14 Apr 2015 07:00:44 +0000 (17:00 +1000)
commit58fd9375c2c5344e8ab6ef9971635bc59cd39658
tree85727259dfb9e87703762bcfc5f110c96c4b554c
parent5dc240bcfe9a8d30b151be58b174261ba388cb01
drm/nouveau/platform: probe IOMMU if present

Tegra SoCs have an IOMMU that can be used to present non-contiguous
physical memory as contiguous to the GPU and maximize the use of large
pages in the GPU MMU, leading to performance gains. This patch adds
support for probing such a IOMMU if present and make its properties
available in the nouveau_platform_gpu structure so subsystems can take
advantage of it.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_platform.c
drivers/gpu/drm/nouveau/nouveau_platform.h