From: Chuanxiao Dong Date: Thu, 9 Feb 2017 03:38:38 +0000 (+0800) Subject: drm/i915/gvt: enable IOMMU for gvt X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=811a4cf273afc6f651e0ef3d5400084bf0aeb75e;p=openwrt%2Fstaging%2Fblogic.git drm/i915/gvt: enable IOMMU for gvt gvt driver has a check which doesn't allow to use gvt when host gpu iommu is enabled. This check can be removed after enable the iommu support in gvt Signed-off-by: Chuanxiao Dong Signed-off-by: Zhenyu Wang --- diff --git a/drivers/gpu/drm/i915/gvt/gvt.c b/drivers/gpu/drm/i915/gvt/gvt.c index 9a636a2c2077..3b9d59e457ba 100644 --- a/drivers/gpu/drm/i915/gvt/gvt.c +++ b/drivers/gpu/drm/i915/gvt/gvt.c @@ -75,13 +75,6 @@ int intel_gvt_init_host(void) if (xen_domain() && !xen_initial_domain()) return -ENODEV; -#ifdef CONFIG_INTEL_IOMMU - if (intel_iommu_gfx_mapped) { - gvt_err("Hardware IOMMU compatibility not yet supported, try to boot with intel_iommu=igfx_off\n"); - return -ENODEV; - } -#endif - /* Try to load MPT modules for hypervisors */ if (xen_initial_domain()) { /* In Xen dom0 */