drm/i915: Clear self-refresh watermarks when disabled
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 7 Dec 2012 10:43:24 +0000 (10:43 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 17 Dec 2012 11:38:45 +0000 (12:38 +0100)
commit52bd02d8e3fd83201a1a81bdb4ec6fc0b54d24a0
treed43b37193ef1ec58395304a4c585423a6bba1c3f
parentaf6c4575afada1a9c411e42439b5d40908865b11
drm/i915: Clear self-refresh watermarks when disabled

If we elect to disable self-refresh as they require too many FIFO
entries, clear the values prior to writing them into the registers. If
they are too large they may occupy more bits than available and so
corrupt neighbouring WM values.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c