]> git.baikalelectronics.ru Git - kernel.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)
commit0d99a7459ea95f9f3768ee8e417a517419dd9868
tree0aea36f156eaf878dbfad48ee9caf8f84b953537
parentd5c03f2b166aef49e75932859bc0c2109e6a1c48
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