drm/i915: enable vGPU detection for all
authorPing Gao <[email protected]>
Tue, 6 Sep 2016 04:04:11 +0000 (12:04 +0800)
committerJani Nikula <[email protected]>
Tue, 6 Sep 2016 13:39:36 +0000 (16:39 +0300)
vGPU capability is handled by GVT-g host driver, not needed to
put extra HW check for vGPU detection. And we'll actually support
vGPU from BDW.

Signed-off-by: Ping Gao <[email protected]>
Signed-off-by: Zhenyu Wang <[email protected]>
Reviewed-by: Joonas Lahtinen <[email protected]>
Acked-by: Chris Wilson <[email protected]>
Cc: [email protected]
Signed-off-by: Jani Nikula <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/i915_vgpu.c

index 142bac976919f6966d2ca26935950a34be96533a..38f805e689d87209d1a5c4ff6cbf7e268bece810 100644 (file)
@@ -65,9 +65,6 @@ void i915_check_vgpu(struct drm_i915_private *dev_priv)
 
        BUILD_BUG_ON(sizeof(struct vgt_if) != VGT_PVINFO_SIZE);
 
-       if (!IS_HASWELL(dev_priv))
-               return;
-
        magic = __raw_i915_read64(dev_priv, vgtif_reg(magic));
        if (magic != VGT_MAGIC)
                return;