• Thierry Reding's avatar
    drm/tegra: gem: Remove premature import restrictions · 49f82191
    Thierry Reding authored
    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: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
    49f82191
plane.c 12.8 KB