These 4 patches fix two issues that existed on Tegra regarding DMA:

1) The bit indicating whether to use an IOMMU or not was hardcoded ; make this
   a platform property and use it in instmem
2) The DMA mask was not set for platform devices. Fix this by converting
   more pci_dma* to the DMA API, and use that more generic code to set the
   DMA mask properly for all platforms.

Tested on both x86 and Tegra and confirmed that the DMA mask was set properly
in both cases. In case there is worry about the conversion to the DMA API,
here is evidence that this change is a no-op for PCI as of 4.2:

http://lxr.free-electrons.com/ident?i=pci_set_dma_mask

Alexandre Courbot (4):
  platform: allow to specify the IOMMU bit
  instmem/gk20a: make use of the IOMMU bit
  ttm: convert to DMA API
  ttm: set the DMA mask for platform devices

 drm/nouveau/include/nvkm/core/tegra.h   |  3 +++
 drm/nouveau/nouveau_platform.c          | 14 ++++++++++++--
 drm/nouveau/nouveau_platform.h          | 10 ++++++++++
 drm/nouveau/nouveau_ttm.c               | 31 +++++++++++++++++++++----------
 drm/nouveau/nvkm/engine/device/tegra.c  |  9 ++++++++-
 drm/nouveau/nvkm/subdev/instmem/gk20a.c | 10 ++++++----
 6 files changed, 60 insertions(+), 17 deletions(-)

-- 
2.5.1

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

Reply via email to