Home
last modified time | relevance | path

Searched hist:"49 f821919bb9d45de7f1cde6072de01d36235b5d" (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/gpu/drm/tegra/
H A Dplane.cdiff 49f821919bb9d45de7f1cde6072de01d36235b5d Tue Dec 03 17:19:08 CET 2019 Thierry Reding <treding@nvidia.com> drm/tegra: gem: Remove premature import restrictions

All the display related blocks on Tegra require contiguous memory. Using
the DMA API, there is no knowing at import time which device will end up
using the buffer, so it's not known whether or not an IOMMU will be used
to map the buffer.

Move the check for non-contiguous buffers/mappings to the tegra_dc_pin()
function which is now the earliest point where it is known if a DMA BUF
can be used by the given device or not.

v2: add check for contiguous buffer/mapping in tegra_dc_pin()

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Thierry Reding <treding@nvidia.com>
H A Dgem.cdiff 49f821919bb9d45de7f1cde6072de01d36235b5d Tue Dec 03 17:19:08 CET 2019 Thierry Reding <treding@nvidia.com> drm/tegra: gem: Remove premature import restrictions

All the display related blocks on Tegra require contiguous memory. Using
the DMA API, there is no knowing at import time which device will end up
using the buffer, so it's not known whether or not an IOMMU will be used
to map the buffer.

Move the check for non-contiguous buffers/mappings to the tegra_dc_pin()
function which is now the earliest point where it is known if a DMA BUF
can be used by the given device or not.

v2: add check for contiguous buffer/mapping in tegra_dc_pin()

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Thierry Reding <treding@nvidia.com>