]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Improve watermark dirtyness checks
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 11 Oct 2013 16:39:52 +0000 (19:39 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 15 Oct 2013 17:00:51 +0000 (19:00 +0200)
commita05aef8675ea96725e42b8da58d015d6fe2a2f8e
tree83e76b551cb445068212f8a451ddd860a8b3d20c
parente1f39d057a0e05e880e95f5caa45a8f97de9934d
drm/i915: Improve watermark dirtyness checks

Currently hsw_write_vm_values() may write to certain watermark
registers needlessly. For instance if only, say, LP3 changes,
the current code will again disable all LP1+ watermarks even
though only LP3 needs to be reconfigured.

Add an easy to read function that will compute the dirtyness of the
watermarks, and use that information to further optimize the watermark
programming.

v2: Disable LP1+ watermarks around changing LP0 watermarks for Paulo

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c