OSDN Git Service

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)
commit4741da925fa3e5acdd4da154f4803dad383e882f
tree75127e590f6d486a90415b911077a9b2cf67ee4f
parentf061ff077e657b27d7e24e31b1da484b2376348d
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