]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/tegra: Support DMA API for display controllers
authorThierry Reding <treding@nvidia.com>
Mon, 28 Oct 2019 12:37:17 +0000 (13:37 +0100)
committerThierry Reding <treding@nvidia.com>
Tue, 29 Oct 2019 14:04:36 +0000 (15:04 +0100)
commit2e8d8749f6f9bb35b947228271dc9ec31be93335
tree0aea36f156eaf878dbfad48ee9caf8f84b953537
parentd972d6247628054f4a9f05c084a1f52de9df209d
drm/tegra: Support DMA API for display controllers

If a display controller is not attached to an explicit IOMMU domain,
which usually means that it's connected to an IOMMU domain controlled by
the DMA API, make sure to map the framebuffer to the display controller
address space. This allows us to transparently handle setups where the
display controller is attached to an IOMMU or setups where it isn't. It
also allows the driver to work with a DMA API that is backed by an
IOMMU.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/dc.c
drivers/gpu/drm/tegra/hub.c
drivers/gpu/drm/tegra/plane.c
drivers/gpu/drm/tegra/plane.h