]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/guc: Assert that all GGTT offsets used by the GuC are mappable
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 24 Dec 2016 19:31:46 +0000 (19:31 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 28 Dec 2016 11:15:48 +0000 (11:15 +0000)
commit3362726847650a560ffee1416007e41b102c6fd7
tree75127e590f6d486a90415b911077a9b2cf67ee4f
parent32e4c7b19cdf8ad5a68832a9a5d40f6e7949330d
drm/i915/guc: Assert that all GGTT offsets used by the GuC are mappable

Add an assertion to the plain i915_ggtt_offset() to double check that
any offset we hand to the GuC is outside of its unmappable ranges.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161224193146.4402-1-chris@chris-wilson.co.uk
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
drivers/gpu/drm/i915/i915_guc_submission.c
drivers/gpu/drm/i915/intel_guc_loader.c
drivers/gpu/drm/i915/intel_uc.h