• Rodrigo Vivi's avatar
    drm/i915: Fix IPS related flicker · ac88cd73
    Rodrigo Vivi authored
    We cannot let IPS enabled with no plane on the pipe:
    
    BSpec: "IPS cannot be enabled until after at least one plane has
    been enabled for at least one vertical blank." and "IPS must be
    disabled while there is still at least one plane enabled on the
    same pipe as IPS." This restriction apply to HSW and BDW.
    
    However a shortcut path on update primary plane function
    to make primary plane invisible by setting DSPCTRL to 0
    was leting IPS enabled while there was no
    other plane enabled on the pipe causing flickerings that we were
    believing that it was caused by that other restriction where
    ips cannot be used when pixel rate is greater than 95% of cdclok.
    
    v2: Don't mess with Atomic path as pointed out by Ville.
    
    Reference: https://bugs.freedesktop.org/show_bug.cgi?id=85583
    Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
    Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
    Cc: stable@vger.kernel.org
    Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
    Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
    Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
    ac88cd73
intel_drv.h 47.7 KB