Skip to content

Commit

Permalink
drm/i915/gvt: set max priority for gvt context
Browse files Browse the repository at this point in the history
This is to workaround guest driver hang regression after
preemption enable that gvt hasn't enabled handling of that
for guest workload. So in effect this disables preemption
for gvt context now.

Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
(cherry picked from commit 1603660)
  • Loading branch information
Zhenyu Wang committed Dec 6, 2017
1 parent ac7688c commit 11474e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/i915/gvt/scheduler.c
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,9 @@ int intel_vgpu_init_gvt_context(struct intel_vgpu *vgpu)
if (IS_ERR(vgpu->shadow_ctx))
return PTR_ERR(vgpu->shadow_ctx);

if (INTEL_INFO(vgpu->gvt->dev_priv)->has_logical_ring_preemption)
vgpu->shadow_ctx->priority = INT_MAX;

vgpu->shadow_ctx->engine[RCS].initialised = true;

bitmap_zero(vgpu->shadow_ctx_desc_updated, I915_NUM_ENGINES);
Expand Down

0 comments on commit 11474e9

Please sign in to comment.