]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Explicitly mark Global GTT address spaces
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Fri, 31 Aug 2018 14:36:43 +0000 (15:36 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 1 Sep 2018 09:25:38 +0000 (10:25 +0100)
commit79bda41de9023959e7117668a84b88403f7bb3e5
treea8380b8292c44dd6e15e644b9c773aa7f3ed8919
parentf9812c6da16aea3c019113ab9ebc496ed1c6a72c
drm/i915: Explicitly mark Global GTT address spaces

So far we have been relying on vm->file pointer being NULL to declare
something GGTT.

This has the unfortunate consequence that the default kernel context is
also declared GGTT and interferes with the following patch which wants to
instantiate VMA's and execute requests against the kernel context.

Change the is_ggtt test to use an explicit flag in struct address_space to
solve this issue.

Note that the bit used is free since there is an alignment hole in the
struct.

v2:
 * Mark mock ggtt.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180831143643.12366-1-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/i915_gem_gtt.h
drivers/gpu/drm/i915/selftests/mock_gtt.c