]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite48dddb31bc25e45910da52208053ce7c8d56fa6
tree3dc7d108affe3a79d42f21cffc0c2f863f57aa42
parentafab85c7a75f733127f6b9a5010463cfcb90afdf
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