summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_pm.c
diff options
context:
space:
mode:
authorJesse Barnes2013-05-08 19:45:14 +0200
committerDaniel Vetter2013-05-10 21:56:37 +0200
commit3727d55e4d85836aa6cb759a965daaef88074150 (patch)
treeb07b6410282d0d81efcd1c8b6641a5927df693c2 /drivers/gpu/drm/i915/intel_pm.c
parentdrm/i915: BIOS and power context stolen mem handling for VLV v7 (diff)
downloadkernel-qcow2-linux-3727d55e4d85836aa6cb759a965daaef88074150.tar.gz
kernel-qcow2-linux-3727d55e4d85836aa6cb759a965daaef88074150.tar.xz
kernel-qcow2-linux-3727d55e4d85836aa6cb759a965daaef88074150.zip
drm/i915: allow stolen, pre-allocated objects to avoid GTT allocation v2
In some cases, we may not need GTT address space allocated to a stolen object, so allow passing -1 to the preallocated function to indicate as much. v2: remove BUG_ON(gtt_offset & 4095) now that -1 is allowed (Ville) Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_pm.c')
-rw-r--r--drivers/gpu/drm/i915/intel_pm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index 67294f4cd3a5..6df886e06b64 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -2881,7 +2881,7 @@ static void valleyview_setup_pctx(struct drm_device *dev)
pcbr_offset = (pcbr & (~4095)) - dev_priv->mm.stolen_base;
pctx = i915_gem_object_create_stolen_for_preallocated(dev_priv->dev,
pcbr_offset,
- pcbr_offset,
+ -1,
pctx_size);
goto out;
}