]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915: Limit display Wa_1405510057 to gen11
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 28 Jan 2020 15:51:50 +0000 (17:51 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 28 Feb 2020 18:28:31 +0000 (20:28 +0200)
TGL+ supposedly do not need Wa_1405510057 so limit it to
gen11 only.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200128155152.21977-2-ville.syrjala@linux.intel.com
Reviewed-by: Imre Deak <imre.deak@intel.com>
drivers/gpu/drm/i915/display/intel_hdmi.c

index 000cd1ae9b930ba8f0024b0830d4fceaa78fc58d..39930232b25323acdd80fa0136ee585da09c80d2 100644 (file)
@@ -2275,9 +2275,9 @@ static bool hdmi_deep_color_possible(const struct intel_crtc_state *crtc_state,
                }
        }
 
-       /* Display Wa_1405510057:icl */
+       /* Display Wa_1405510057:icl,ehl */
        if (crtc_state->output_format == INTEL_OUTPUT_FORMAT_YCBCR420 &&
-           bpc == 10 && INTEL_GEN(dev_priv) >= 11 &&
+           bpc == 10 && IS_GEN(dev_priv, 11) &&
            (adjusted_mode->crtc_hblank_end -
             adjusted_mode->crtc_hblank_start) % 8 == 2)
                return false;