diff options
author | Zhenyu Wang <zhenyuw@linux.intel.com> | 2017-01-13 08:31:58 +0100 |
---|---|---|
committer | Zhenyu Wang <zhenyuw@linux.intel.com> | 2017-02-07 10:21:35 +0100 |
commit | d2896e34eb6f10b4f76b42df34b7e075b203c5ff (patch) | |
tree | dba8e169fba522f52752cccf96b817c8c557547d /drivers/gpu/drm/i915/gvt/kvmgt.c | |
parent | drm/i915: make intel_gvt_init() later instead of too early (diff) | |
download | linux-d2896e34eb6f10b4f76b42df34b7e075b203c5ff.tar.xz linux-d2896e34eb6f10b4f76b42df34b7e075b203c5ff.zip |
drm/i915/gvt: move intel iommu detection to intel_gvt_init()
Prepare to remove detect_host() hook. Move intel iommu detection early
in intel_gvt_init().
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/gvt/kvmgt.c')
-rw-r--r-- | drivers/gpu/drm/i915/gvt/kvmgt.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/gpu/drm/i915/gvt/kvmgt.c b/drivers/gpu/drm/i915/gvt/kvmgt.c index 0c9234a87a20..f29d2a27ccb1 100644 --- a/drivers/gpu/drm/i915/gvt/kvmgt.c +++ b/drivers/gpu/drm/i915/gvt/kvmgt.c @@ -1276,12 +1276,6 @@ static bool kvmgt_check_guest(void) */ static int kvmgt_detect_host(void) { -#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 return kvmgt_check_guest() ? -ENODEV : 0; } |