]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/icl: Fail flip if ddb allocated are less than min display buffer needed
authorMahesh Kumar <mahesh1.kumar@intel.com>
Tue, 30 Jan 2018 13:49:12 +0000 (11:49 -0200)
committerPaulo Zanoni <paulo.r.zanoni@intel.com>
Wed, 31 Jan 2018 16:19:32 +0000 (14:19 -0200)
commit0fae19041c7bb13db7e4b3f49e8a29112c1c406d
tree7ca35f69d5d5e5c1895dd5a15290f05645aac4df
parentca01d1813879afa9c85e84cb48f453aa14acb8fd
drm/i915/icl: Fail flip if ddb allocated are less than min display buffer needed

ICL require DDB allocation of plane to be more than "minimum display
buffer needed" for each level in order to enable WM level.

This patch implements and consider the same while allocating DDB
and enabling WM.

Changes Since V1:
 - rebase
Changes Since V2:
 - Remove extra parentheses
 - Use FP16.16 only when absolutely necessary (Paulo)
Changes Since V3:
 - Rebase
Changes since v4 (from Paulo):
 - Coding style issue.
Changes since v5 (from Paulo):
 - Do the final checks according to BSpec.

Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Mahesh Kumar <mahesh1.kumar@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180130134918.32283-4-paulo.r.zanoni@intel.com
drivers/gpu/drm/i915/intel_pm.c