drm/i915: gmch: set SR WMs to valid values before enabling them
authorImre Deak <imre.deak@intel.com>
Fri, 13 Jun 2014 11:54:20 +0000 (14:54 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 7 Jul 2014 09:33:47 +0000 (11:33 +0200)
commit9858425c8fe631673ef325b59bac38c26c08b004
tree48ee4d3b098556b8e462748c99ed83fea3d1fd83
parent5209b1f4c4f8036f52f5ac2df2afc806254f247f
drm/i915: gmch: set SR WMs to valid values before enabling them

Atm it's possible that we enable the memory self-refresh mode before the
watermark levels used by this mode are programmed with valid values. So
move the enabling after we programmed the WM levels.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Vijay Purushothaman <vijay.a.purushothaman@intel.com>
Reviewed-by: Deepak S<deepak.s@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c