aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-02-15 08:43:56 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2017-02-15 10:07:34 +0000
commit57202f47af85381f31f317a2a75fe76ea4c76925 (patch)
tree9adeaea21bc64200e1281b350095ffb9b5ab1d1c /drivers
parentdrm/i915: Only preallocate the aliasing GTT to the extents of the global GTT (diff)
downloadlinux-dev-57202f47af85381f31f317a2a75fe76ea4c76925.tar.xz
linux-dev-57202f47af85381f31f317a2a75fe76ea4c76925.zip
drm/i915: Differentiate the aliasing_ppgtt with an invalid filp
Use an invalid filp so that the aliasing_ppgtt can be clearly identified. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Matthew Auld <matthew.auld@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/20170215084357.19977-22-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/i915/i915_gem_gtt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c
index 7fbb10804319..84b50d636688 100644
--- a/drivers/gpu/drm/i915/i915_gem_gtt.c
+++ b/drivers/gpu/drm/i915/i915_gem_gtt.c
@@ -2380,7 +2380,7 @@ int i915_gem_init_aliasing_ppgtt(struct drm_i915_private *i915)
struct i915_hw_ppgtt *ppgtt;
int err;
- ppgtt = i915_ppgtt_create(i915, NULL, "[alias]");
+ ppgtt = i915_ppgtt_create(i915, ERR_PTR(-EPERM), "[alias]");
if (IS_ERR(ppgtt))
return PTR_ERR(ppgtt);