]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita511600cdf31fb5f61fddf993dc727bc0f508747
tree4c9913a6b5076b4428ab85a0132ba2d43bb9fb5c
parent7353736f6cec3cb2b276776a14051614bb4f938b
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