]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6091bf7d320db9f3fafb7d34912fdba92a9f9903
treec86db489d1c9640f8ec25c380b208e620f7ffc61
parent6a94040c067b335301da833add330f5e32328590
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