drm/i915: Always enable execlists on BDW for vgpu
authorZhiyuan Lv <zhiyuan.lv@intel.com>
Fri, 28 Aug 2015 07:41:16 +0000 (15:41 +0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 2 Sep 2015 09:45:50 +0000 (11:45 +0200)
commita0bd6c3183a164970e934ee4f514956dd577a628
treeda0a06bb67e5e08a358a43389d8c1f07b95126c7
parent331f38e77d4519d2ca60cea232c7f2bfad5e4d28
drm/i915: Always enable execlists on BDW for vgpu

Broadwell hardware supports both ring buffer mode and execlist mode.
When i915 runs inside a VM with Intel GVT-g, we allow execlist mode
only.

The main reason of EXECLIST only is that GVT-g does not support the
dynamic mode switch between ring buffer mode and execlist mode when
running multiple virtual machines.

v2:
- Adjust the position of vgpu check in sanitize function (Joonas)
- Add vgpu error check in context initialization. (Joonas, Daniel)

Signed-off-by: Zhiyuan Lv <zhiyuan.lv@intel.com>
Signed-off-by: Zhi Wang <zhi.a.wang@intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_context.c
drivers/gpu/drm/i915/intel_lrc.c