[Intel-gfx] [PATCH v2 2/6] drm/i915: Enable full ppgtt for vgpu on Broadwell
Zhiyuan Lv
zhiyuan.lv at intel.com
Fri Aug 28 00:41:15 PDT 2015
The full ppgtt is supported now in Intel GVT-g device model. Broadwell
is allowed to use it in virtual machines.
v2:
- Keep backward compatibility on HSW with old device model (daniel)
Signed-off-by: Zhiyuan Lv <zhiyuan.lv at intel.com>
Signed-off-by: Zhi Wang <zhi.a.wang at intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
---
drivers/gpu/drm/i915/i915_gem_gtt.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c
index ed10e77..56cc8e8 100644
--- a/drivers/gpu/drm/i915/i915_gem_gtt.c
+++ b/drivers/gpu/drm/i915/i915_gem_gtt.c
@@ -108,8 +108,8 @@ static int sanitize_enable_ppgtt(struct drm_device *dev, int enable_ppgtt)
has_aliasing_ppgtt = INTEL_INFO(dev)->gen >= 6;
has_full_ppgtt = INTEL_INFO(dev)->gen >= 7;
- if (intel_vgpu_active(dev))
- has_full_ppgtt = false; /* emulation is too hard */
+ if (intel_vgpu_active(dev) && (IS_HASWELL(dev)))
+ has_full_ppgtt = false;
/*
* We don't allow disabling PPGTT for gen9+ as it's a requirement for
--
1.9.1
More information about the Intel-gfx
mailing list