]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita0f88911d7336082ef02cce9c41540702d3b673a
tree2aa072dd29a1f6272749eff16f462c35a9e6cb37
parente09cf7e6741ef241367f7cc331981d8a21c12723
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