drm/i915/fbc: Limit cfb to the first 256MiB of stolen on g4x+
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 14 Jul 2020 20:19:45 +0000 (23:19 +0300)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 17 Aug 2020 20:15:28 +0000 (16:15 -0400)
commit83c0926f3e189e91137c5311f2d187eafc6091a0
tree18150ffa57fbf001eaeffe0726fad12d2ad06208
parent62975d27d647a40c58d3b96c29b911fc4f33c310
drm/i915/fbc: Limit cfb to the first 256MiB of stolen on g4x+

Since g4x the CFB base only takes a 28bit offset into stolen.
Not sure if the CFB is allowed to start below that limit but
then extend beyond it. Let's assume not and just restrict the
allocation to the first 256MiB (in the unlikely case
we have more stolen than that).

v2: s/BIT/BIT_ULL/ (Chris)

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200714201945.18959-1-ville.syrjala@linux.intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/display/intel_fbc.c