OSDN Git Service

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)
commitcc7a4cffea21954bc72bec8251719c3d6fcc322d
tree7f8cbf65246589841961a1a632536b2378ab8531
parentc212fbde20aca7a8180fe0d5770bc9cfa789e27d
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