]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915/skl: distribute DDB based on panel resolution
authorMahesh Kumar <mahesh1.kumar@intel.com>
Wed, 1 Aug 2018 15:11:13 +0000 (20:41 +0530)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Tue, 7 Aug 2018 08:25:30 +0000 (10:25 +0200)
commitcf1f697acb04d2e06c117436cc55e52760f1ea7c
treef758c8999b62cc23e3bc898e79ca1bcb06281a05
parentaaa023782fda76a3eacd9f3c8c14ad7382d86cf2
drm/i915/skl: distribute DDB based on panel resolution

We distribute DDB equally among all pipes irrespective of display
buffer requirement of each pipe. This leads to a situation where high
resolution y-tiled display can not be enabled with 2 low resolution
displays.

Main contributing factor for DDB requirement is width of the display.
This patch make changes to distribute ddb based on display width.
So display with higher width will get bigger chunk of DDB.

Changes Since V1:
 - pipe_size/ddb_size will not overflow u16 so use appropriate
   data-types during computation (Chris)
Changes Since V2:
 - avoid redundancy and possible truncation errors (Chris)

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107113
Cc: raviraj.p.sitaram@intel.com
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Mahesh Kumar <mahesh1.kumar@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180801151113.5337-1-mahesh1.kumar@intel.com
drivers/gpu/drm/i915/intel_pm.c