drm/i915: Always enable execlists on BDW for vgpu
Subsystems (2)
PATCH 3/7 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 reason is that GVT-g does not support the dynamic mode switch between ring buffer mode and execlist mode when running multiple virtual machines. Consider that ring buffer mode is legacy mode, it makes sense to drop it inside virtual machines.
Signed-off-by Zhiyuan Lv <[email protected]>
Signed-off-by Zhi Wang <[email protected]>
--- drivers/gpu/drm/i915/intel_lrc.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/i915/intel_lrc.c +3 -0
@@ -239,6 +239,9 @@ int intel_sanitize_enable_execlists(struct drm_device *dev, int enable_execlistsif (INTEL_INFO (dev)->gen >=9 )return 1 ; +if (HAS_LOGICAL_RING_CONTEXTS (dev) &&intel_vgpu_active (dev)) +return 1 ; +if (enable_execlists ==0 )return 0 ;
Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx