]> git.baikalelectronics.ru Git - kernel.git/commitdiff
Revert "drm/i915/gvt: set max priority for gvt context"
authorWeinan Li <weinan.z.li@intel.com>
Wed, 21 Mar 2018 07:40:32 +0000 (15:40 +0800)
committerZhi Wang <zhi.a.wang@intel.com>
Sun, 13 May 2018 21:26:09 +0000 (05:26 +0800)
This reverts commit dbd563942c348c7af43bfedd80d9f873462ebd85.

There are issues which will block the host preemption before, instead of
disabling it use one workaround "setting max priority for gvt context"
to avoid the gvt context be preempted by the host. Now the issues have been
cleared, so revert this patch to enable host preemption.

v2:
- refine description(Zhenyu)

Signed-off-by: Weinan Li <weinan.z.li@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Zhi Wang <zhi.a.wang@intel.com>
drivers/gpu/drm/i915/gvt/scheduler.c

index ffb45a9ee22886786d79dbc6f1da60425722cb0b..c2d183b91500b72fccb8acd335e36f522b7403ee 100644 (file)
@@ -1156,9 +1156,6 @@ int intel_vgpu_setup_submission(struct intel_vgpu *vgpu)
        if (IS_ERR(s->shadow_ctx))
                return PTR_ERR(s->shadow_ctx);
 
-       if (HAS_LOGICAL_RING_PREEMPTION(vgpu->gvt->dev_priv))
-               s->shadow_ctx->sched.priority = INT_MAX;
-
        bitmap_zero(s->shadow_ctx_desc_updated, I915_NUM_ENGINES);
 
        s->workloads = kmem_cache_create_usercopy("gvt-g_vgpu_workload",