Skip to content

Commit a2deb87

Browse files
zhenywickle
authored andcommitted
drm/i915: Disable semaphore on vGPU for now
This is to disable semaphore usage when on vGPU for now. Unfortunately GVT-g hasn't fully enabled semaphore usage yet, so current guest with semaphore use would cause vGPU failure. Although current semaphore failure with vGPU can be simply resolved by allowing cmd parser to accept MI_SEMAPHORE_WAIT command with address audit, we're checking general usage of semaphore and how we should handle it properly for virtualization in consider of function and security concern. So we decide to request to disable it for now in guest driver. Once GVT could support it, we would add new compat bit to turn it on. Fixes: e886196 ("drm/i915: Use HW semaphores for inter-engine synchronisation on gen8+") #vgpu Cc: Kevin Tian <kevin.tian@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com> Acked-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20190327090636.3547-1-zhenyuw@linux.intel.com
1 parent 5aa2c9a commit a2deb87

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎drivers/gpu/drm/i915/intel_lrc.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2313,8 +2313,9 @@ void intel_execlists_set_default_submission(struct intel_engine_cs *engine)
23132313
engine->park = NULL;
23142314
engine->unpark = NULL;
23152315

2316-
engine->flags |= I915_ENGINE_HAS_SEMAPHORES;
23172316
engine->flags |= I915_ENGINE_SUPPORTS_STATS;
2317+
if (!intel_vgpu_active(engine->i915))
2318+
engine->flags |= I915_ENGINE_HAS_SEMAPHORES;
23182319
if (engine->preempt_context)
23192320
engine->flags |= I915_ENGINE_HAS_PREEMPTION;
23202321
}

0 commit comments

Comments
 (0)