Skip to content

tegra: DMA mask and IOMMU bit fixes

Alexandre Courbot nouveau 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4platform: allow to specify the IOMMU bitdrm/nouveau/include/nvkm/core/tegra.h drm/nouveau/nouveau_platform.c drm/nouveau/nouveau_platform.h +1 more+33 -30 replies
2/4instmem/gk20a: make use of the IOMMU bitdrm/nouveau/nvkm/subdev/instmem/gk20a.c+6 -40 replies
3/4ttm: convert to DMA APIdrm/nouveau/nouveau_ttm.c+5 -70 replies
4/4ttm: set the DMA mask for platform devicesdrm/nouveau/nouveau_ttm.c+19 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] tegra: DMA mask and IOMMU bit fixes

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(-)
Signature · 6 lines
2.5.1

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