drm/i915: Don't leave old junk in ilk active watermarks on readout
commitf4502e6ea6fd7f30911d3693f07c0aeecd60416a
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 13 May 2016 14:55:17 +0000 (13 17:55 +0300)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 6 Jun 2016 23:11:10 +0000 (6 19:11 -0400)
treef2c425c94dec7ecd9fe76cfeee5cd1dab5ba810d
parent732468f790115d012dc18a505084aa53e38f4a40
drm/i915: Don't leave old junk in ilk active watermarks on readout

[ Upstream commit 7045c3689f148a0c95f42bae8ef3eb2829ac7de9 ]

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: 243e6a44b9ca ("drm/i915: Init HSW watermark tracking in intel_modeset_setup_hw_state()")
Cc: stable@vger.kernel.org
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
(cherry picked from commit 15606534bf0a65d8a74a90fd57b8712d147dbca6)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/gpu/drm/i915/intel_pm.c