drm/i915: Codify our assumption that the Global GTT is <= 4GiB
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 18 Mar 2016 08:42:59 +0000 (10:42 +0200)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Fri, 18 Mar 2016 13:19:18 +0000 (15:19 +0200)
commitc890e2d5313e8e8f4fb54258dc2bbb2c7dd901ce
treec876339d4a26b084e58e6f36f947e1df245568e6
parentd507d73578ef7aa1ffcd122e51caa59e4492cb46
drm/i915: Codify our assumption that the Global GTT is <= 4GiB

Throughout the code base, we use u32 for offsets into the global GTT. If
we ever see any hardware with a larger GGTT, then we run the real risk
of silent corruption. So test for our assumption up front so that we
have a nice reminder should the time come when it fails.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
[Rebased and changed 1ull -> 1ULL, cut 80 char line]
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1458290579-27783-1-git-send-email-joonas.lahtinen@linux.intel.com
drivers/gpu/drm/i915/i915_gem_gtt.c