• Christoph Hellwig's avatar
    drm/nouveau: stop using is_swiotlb_active · 0a2f6372
    Christoph Hellwig authored
    Drivers have no business looking into dma-mapping internals and check
    what backend is used.  Unfortunstely the DRM core is still broken and
    tries to do plain page allocations instead of using DMA API allocators
    by default and uses various bandaids on when to use dma_alloc_coherent.
    
    Switch nouveau to use the same (broken) scheme as amdgpu and radeon
    to remove the last driver user of is_swiotlb_active.
    Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
    Reviewed-by: default avatarLyude Paul <lyude@redhat.com>
    0a2f6372
nouveau_ttm.c 9.72 KB