drm/i915/gen10: implement gen 10 watermarks calculations
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 11 Aug 2017 23:38:25 +0000 (16:38 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Wed, 16 Aug 2017 14:42:36 +0000 (07:42 -0700)
commit6c64dd378aca528903cb9f7a60d04fc5c1a3bdbd
tree53cc5a94529a66063cef595c05c9fb76cefc83c9
parentacf58d4e965d40fc014252292b0911b4c9fe6697
drm/i915/gen10: implement gen 10 watermarks calculations

They're slightly different than the gen 9 calculations.

v2: Remove TODO comment. Code matches recent spec.
v3: Rebase on top of latest skl code using new fp16.16 and
    fixing a logic issue. Auto rebase bot has apparently
    made some bad decisions that changed the logic of the
    code. (Noticed by Manesh, updated by Rodrigo).

Cc: Mahesh Kumar <mahesh1.kumar@intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Mahesh Kumar <mahesh1.kumar@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170811233825.32083-1-rodrigo.vivi@intel.com
drivers/gpu/drm/i915/intel_pm.c