]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915: Enable SAGV support for Gen12
authorStanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Thu, 14 May 2020 07:48:53 +0000 (10:48 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 14 May 2020 16:08:30 +0000 (19:08 +0300)
Flip the switch and enable SAGV support
for Gen12 also.

Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200514074853.9508-4-stanislav.lisovskiy@intel.com
drivers/gpu/drm/i915/intel_pm.c

index 68d88634bc2929bc2502de7fec473fec90e1141b..696491d71a1d1a6765badf57c3bd0db6b14d11e2 100644 (file)
@@ -3638,10 +3638,6 @@ static bool skl_needs_memory_bw_wa(struct drm_i915_private *dev_priv)
 static bool
 intel_has_sagv(struct drm_i915_private *dev_priv)
 {
-       /* HACK! */
-       if (IS_GEN(dev_priv, 12))
-               return false;
-
        return (IS_GEN9_BC(dev_priv) || INTEL_GEN(dev_priv) >= 10) &&
                dev_priv->sagv_status != I915_SAGV_NOT_CONTROLLED;
 }