aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/gvt/scheduler.c
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyuw@linux.intel.com>2016-10-18 09:40:07 +0800
committerDaniel Vetter <daniel.vetter@ffwll.ch>2016-10-18 08:24:49 +0200
commit1140f9ed051011e06a2a15c73efe57ac0b0cdc8d (patch)
tree3d0986cafb2122501e45488ab955bce73412d5f1 /drivers/gpu/drm/i915/gvt/scheduler.c
parentdrm/i915: Suppress underruns during DP link retraining (diff)
downloadlinux-dev-1140f9ed051011e06a2a15c73efe57ac0b0cdc8d.tar.xz
linux-dev-1140f9ed051011e06a2a15c73efe57ac0b0cdc8d.zip
drm/i915/gvt: Fix build failure after intel_engine_cs change
Change GVT-g code reference for intel_engine_cs from static array to allocated pointer after commit 3b3f1650b1ca ("drm/i915: Allocate intel_engine_cs structure only for the enabled engines"). Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/20161018014007.29369-1-zhenyuw@linux.intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/gvt/scheduler.c')
-rw-r--r--drivers/gpu/drm/i915/gvt/scheduler.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/gvt/scheduler.c b/drivers/gpu/drm/i915/gvt/scheduler.c
index 732672b7d22b..b15cdf5978a9 100644
--- a/drivers/gpu/drm/i915/gvt/scheduler.c
+++ b/drivers/gpu/drm/i915/gvt/scheduler.c
@@ -68,7 +68,7 @@ static int populate_shadow_context(struct intel_vgpu_workload *workload)
workload->ctx_desc.lrca);
context_page_num = intel_lr_context_size(
- &gvt->dev_priv->engine[ring_id]);
+ gvt->dev_priv->engine[ring_id]);
context_page_num = context_page_num >> PAGE_SHIFT;
@@ -171,7 +171,7 @@ static int dispatch_workload(struct intel_vgpu_workload *workload)
shadow_ctx->desc_template = workload->ctx_desc.addressing_mode <<
GEN8_CTX_ADDRESSING_MODE_SHIFT;
- workload->req = i915_gem_request_alloc(&dev_priv->engine[ring_id],
+ workload->req = i915_gem_request_alloc(dev_priv->engine[ring_id],
shadow_ctx);
if (IS_ERR_OR_NULL(workload->req)) {
gvt_err("fail to allocate gem request\n");
@@ -298,7 +298,7 @@ static void update_guest_context(struct intel_vgpu_workload *workload)
workload->ctx_desc.lrca);
context_page_num = intel_lr_context_size(
- &gvt->dev_priv->engine[ring_id]);
+ gvt->dev_priv->engine[ring_id]);
context_page_num = context_page_num >> PAGE_SHIFT;