mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-18 06:33:43 -04:00
drm/i915/gt: Provide a local intel_context.vm
Track the currently bound address space used by the HW context. Minor conversions to use the local intel_context.vm are made, leaving behind some more surgery required to make intel_context the primary through the selftests. 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-2-chris@chris-wilson.co.uk
This commit is contained in:
@@ -1380,9 +1380,9 @@ static struct i915_address_space *vm_alias(struct intel_context *ce)
|
||||
{
|
||||
struct i915_address_space *vm;
|
||||
|
||||
vm = ce->gem_context->vm;
|
||||
if (!vm)
|
||||
vm = &ce->engine->gt->ggtt->alias->vm;
|
||||
vm = ce->vm;
|
||||
if (i915_is_ggtt(vm))
|
||||
vm = &i915_vm_to_ggtt(vm)->alias->vm;
|
||||
|
||||
return vm;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user