drm/nouveau/instmem/gk20a: add IOMMU support
authorAlexandre Courbot <acourbot@nvidia.com>
Fri, 20 Feb 2015 09:23:04 +0000 (18:23 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 14 Apr 2015 07:00:45 +0000 (17:00 +1000)
commita7f6da6e758cd99fcae918b63549273893983189
tree2aa072dd29a1f6272749eff16f462c35a9e6cb37
parent58fd9375c2c5344e8ab6ef9971635bc59cd39658
drm/nouveau/instmem/gk20a: add IOMMU support

Let GK20A's instmem take advantage of the IOMMU if it is present. Having
an IOMMU means that instmem is no longer allocated using the DMA API,
but instead obtained through page_alloc and made contiguous to the GPU
by IOMMU mappings.

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