drm/vmwgfx: Fix dma API layer violation
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 23 Apr 2019 12:02:57 +0000 (14:02 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Thu, 25 Apr 2019 07:05:03 +0000 (09:05 +0200)
commit81103355b1e23345dbcdeccad59962a424da4a34
tree3dc7d108affe3a79d42f21cffc0c2f863f57aa42
parentc2d311553855395764e2e5bf401d987ba65c2056
drm/vmwgfx: Fix dma API layer violation

Remove the check for IOMMU presence since it was considered a
layer violation.
This means we have no reliable way to destinguish between coherent
hardware IOMMU DMA address translations and incoherent SWIOTLB DMA
address translations, which we can't handle. So always presume the
former. This means that if anybody forces SWIOTLB without also setting
the vmw_force_coherent=1 vmwgfx option, driver operation will fail,
like it will on most other graphics drivers.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c