]> git.karo-electronics.de Git - linux-beck.git/commit
drm/i915: Fix IPS related flicker
authorRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 28 May 2015 18:07:11 +0000 (11:07 -0700)
committerJani Nikula <jani.nikula@intel.com>
Fri, 26 Jun 2015 08:50:23 +0000 (11:50 +0300)
commitac88cd738425e04dbed3706621cf613a00708834
treebe1b25802f24a63a27d5448979f6b3b5c7647d5b
parent9044a81d1be632251b7ee97ce9a0bf2a97989be6
drm/i915: Fix IPS related flicker

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: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h