Commit 4357ce07 authored by Paulo Zanoni's avatar Paulo Zanoni

drm/i915/gen11: fix the SAGV block time for gen11

It's 10us for gen 11.
Reviewed-by: default avatarMahesh Kumar <mahesh1.kumar@intel.com>
Reviewed-by: default avatarJames Ausmus <james.ausmus@intel.com>
Signed-off-by: default avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180130134918.32283-7-paulo.r.zanoni@intel.com
parent 78005497
...@@ -3694,11 +3694,18 @@ bool intel_can_enable_sagv(struct drm_atomic_state *state) ...@@ -3694,11 +3694,18 @@ bool intel_can_enable_sagv(struct drm_atomic_state *state)
struct intel_crtc_state *cstate; struct intel_crtc_state *cstate;
enum pipe pipe; enum pipe pipe;
int level, latency; int level, latency;
int sagv_block_time_us = IS_GEN9(dev_priv) ? 30 : 20; int sagv_block_time_us;
if (!intel_has_sagv(dev_priv)) if (!intel_has_sagv(dev_priv))
return false; return false;
if (IS_GEN9(dev_priv))
sagv_block_time_us = 30;
else if (IS_GEN10(dev_priv))
sagv_block_time_us = 20;
else
sagv_block_time_us = 10;
/* /*
* SKL+ workaround: bspec recommends we disable the SAGV when we have * SKL+ workaround: bspec recommends we disable the SAGV when we have
* more then one pipe enabled * more then one pipe enabled
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment