• Thomas Hellstrom's avatar
    drm/vmwgfx: Use the dma scatter-gather iterator to get dma addresses · 8dc39cfc
    Thomas Hellstrom authored
    Use struct sg_dma_page_iter in favour struct of sg_page_iter, which fairly
    recently was declared useless for obtaining dma addresses.
    
    With a struct sg_dma_page_iter we can't call sg_page_iter_page() so
    when the page is needed, use the same page lookup mechanism as for the
    non-sg dma modes instead of calling sg_dma_page_iter.
    
    Note, the fixes tag doesn't really point to a commit introducing a
    failure / regression, but rather to a commit that implemented a simple
    workaround for this problem.
    
    Cc: Jason Gunthorpe <jgg@mellanox.com>
    Fixes: d901b276 ("lib/scatterlist: Provide a DMA page iterator")
    Signed-off-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
    Reviewed-by: default avatarJason Gunthorpe <jgg@mellanox.com>
    8dc39cfc
vmwgfx_ttm_buffer.c 22.2 KB