]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Don't leave old junk in ilk active watermarks on readout
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 13 May 2016 14:55:17 +0000 (17:55 +0300)
committerMatt Roper <matthew.d.roper@intel.com>
Fri, 13 May 2016 21:18:06 +0000 (14:18 -0700)
commitf7b8a5f7bfcb66d6f154ecc5fe4729047a79a2ad
tree9f23140e83f3ecf67877ec865e1fd3954a2860cf
parent5f81063a5d14302705f3a93e57e3fb81c8910316
drm/i915: Don't leave old junk in ilk active watermarks on readout

When we read out the watermark state from the hardware we're supposed to
transfer that into the active watermarks, but currently we fail to any
part of the active watermarks that isn't explicitly written. Let's clear
it all upfront.

Looks like this has been like this since the beginning, when I added the
readout. No idea why I didn't clear it up.

Cc: Matt Roper <matthew.d.roper@intel.com>
Fixes: fb5130ee1c4e ("drm/i915: Init HSW watermark tracking in intel_modeset_setup_hw_state()")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1463151318-14719-2-git-send-email-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/intel_pm.c