drm/vmwgfx: Improve on IOMMU detection
authorThomas Hellstrom <thellstrom@vmware.com>
Thu, 17 Jan 2019 13:34:52 +0000 (14:34 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Tue, 5 Feb 2019 12:55:16 +0000 (13:55 +0100)
commit9ddac734aa310c5fbc0ec93602335d2a39092451
treec86db489d1c9640f8ec25c380b208e620f7ffc61
parent4cbfa1e6c09e98450aab3240e5119b0ab2c9795b
drm/vmwgfx: Improve on IOMMU detection

instead of relying on intel_iommu_enabled, use the fact that the
dma_map_ops::map_page != dma_direct_map_page.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Deepak Rawat <drawat@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c