]> 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)
commite42aa1f0b76601b5196056d7ba0faa40e70d11e4
tree4c9913a6b5076b4428ab85a0132ba2d43bb9fb5c
parentfba2c1ed9c78c5db04ce9e3cf48b01066ccb46ea
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