]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/i915/selftests: Set vm->gt backpointer for mock_ppgtt
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 22 Oct 2019 09:58:51 +0000 (10:58 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 22 Oct 2019 11:16:42 +0000 (12:16 +0100)
commitaa9eb0caaa0352820607076fc9b755f84fe71f22
tree5fbe94bae84a489856c76745d2de8756390bf48c
parent18f3b2727fc324db1a1787704d97b8f20a5fb1cb
drm/i915/selftests: Set vm->gt backpointer for mock_ppgtt

Add the backpointer to ppgtt and i915->gt so that we can traverse across
the device hierarchy.

Reported-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191022095851.23442-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/mock_gem_device.c
drivers/gpu/drm/i915/selftests/mock_gtt.c