Files
android_kernel_xiaomi_sm8450/drivers/gpu/drm
Christoph Hellwig 2b3cd6249b drm/vmwgfx: fix the check when to use dma_alloc_coherent
Since Linux 4.21 we merged the swiotlb ops into the DMA direct ops,
so they would always have a the sync_single methods.  But late in
the cicle we also removed the direct ops entirely, so we'd see NULL
DMA ops.  Switch vmw_dma_select_mode to only detect swiotlb presence
using swiotlb_nr_tbl() instead.

Fixes: 55897af630 ("dma-direct: merge swiotlb_dma_ops into the dma_direct code")
Fixes: 356da6d0cd ("dma-mapping: bypass indirect calls for dma-direct")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2019-01-29 12:30:17 +01:00
..
2018-11-28 09:31:07 -08:00
2018-11-20 14:56:18 +01:00
2018-11-20 14:56:18 +01:00
2018-07-13 18:40:28 +02:00
2018-10-04 11:03:34 +10:00
2018-11-30 10:57:18 +01:00