drm/i915: Move aliasing_ppgtt underneath its i915_ggtt
The aliasing_ppgtt provides a PIN_USER alias for the global gtt, so move it under the i915_ggtt to simplify later transformations to enable intel_context.vm. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190730143209.4549-1-chris@chris-wilson.co.uk
This commit is contained in:
@@ -1190,7 +1190,7 @@ static int igt_ctx_readonly(void *arg)
|
||||
goto out_unlock;
|
||||
}
|
||||
|
||||
vm = ctx->vm ?: &i915->mm.aliasing_ppgtt->vm;
|
||||
vm = ctx->vm ?: &i915->ggtt.alias->vm;
|
||||
if (!vm || !vm->has_read_only) {
|
||||
err = 0;
|
||||
goto out_unlock;
|
||||
|
Reference in New Issue
Block a user