drm/i915/skl: Make sure to allocate mininum sizes in the DDB
authorDamien Lespiau <damien.lespiau@intel.com>
Mon, 9 Feb 2015 13:35:10 +0000 (13:35 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 24 Feb 2015 20:40:32 +0000 (21:40 +0100)
commit80958155d684c917a954c24951d590bec942dbaf
tree4c9913a6b5076b4428ab85a0132ba2d43bb9fb5c
parenta1d263428ac7447afd9f79fce8d2d7863a2307e2
drm/i915/skl: Make sure to allocate mininum sizes in the DDB

I overlooked the fact that we need to allocate a minimum 8 blocks and
that just allocating the planes depending on how much they need to fetch
from the DDB in proportion of how much memory bw is necessary for the
whole display can lead to cases where we don't respect those minima (and
thus overrun).

So, instead, start by allocating 8 blocks to each active display plane
and then allocate the remaining blocks like before.

v2: Rebase on top of -nightly

Cc: Mahesh Kumar <mahesh1.kumar@intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c