]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fix frame start delay programming
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 24 Oct 2019 12:21:38 +0000 (15:21 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 15 Nov 2019 18:35:04 +0000 (20:35 +0200)
commita6ce3ed5c639b34cb9dd1e83f6830ff257af6e87
tree7f8cbf65246589841961a1a632536b2378ab8531
parent098c2cd3b08383be420eec39c9bff967f9d93dc3
drm/i915: Fix frame start delay programming

Currently we're blindly poking at the frame start delay bits
in PIPECONF when trying to sanitize the hardware state. Those
bits decided to move elsewhere on HSW, so on many platforms
we're not doing anything at all here. Also we're forgetting
about the PCH transcoder entirely.

Add all the bit definitions for the various homes these bits
have had throughout the years, and reset them all to zero.

However I'm not entirely sure this is a safe thing to do. If
not I guess we'd want full readout+statecheck for this stuff.
For now let's stick to the current logic and hope for the
best.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191024122138.25065-3-ville.syrjala@linux.intel.com
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_pm.c