drm/i915: Differentiate the aliasing_ppgtt with an invalid filp
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 15 Feb 2017 08:43:56 +0000 (08:43 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 15 Feb 2017 10:07:34 +0000 (10:07 +0000)
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
drivers/gpu/drm/i915/i915_gem_gtt.c

index 7fbb1080431997fd52fd90c16c87c7cabd8c7331..84b50d6366884e9968dd65c063c004fa2865c0f4 100644 (file)
@@ -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);