• Laurent Pinchart's avatar
    drm/omap: gem: Clean up GEM objects memory flags · cdb0381d
    Laurent Pinchart authored
    The driver assumes that only objects backed by shmem need to be mapped
    through DMM. While this is true with the current code, the assumption
    won't hold with dma_buf import support.
    
    Condition the mapping based on whether the buffer has been allocated
    using the DMA mapping API instead and clean up the flags to avoid having
    to check both flags and GEM object filp field to decide how to process
    buffers. Flags are not the authoritative source of information regarding
    where the buffer memory comes from, and are renamed to make that
    clearer.
    Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
    Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
    cdb0381d
omap_gem.c 40.6 KB