drm/i915: Add sprite watermark programming for VLV and CHV
authorGajanan Bhat <gajanan.bhat@intel.com>
Thu, 7 Aug 2014 11:33:30 +0000 (17:03 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 8 Aug 2014 15:44:00 +0000 (17:44 +0200)
commit01e184cc85d4516cab0ecea7c2c43a2dd3ad432b
tree6ab7b96daf14df5c93fb7452b9a22b1ab1a9d536
parenta398e9c79eea74ba2f3f24ac08902661682f008c
drm/i915: Add sprite watermark programming for VLV and CHV

Program DDL register as part of sprite watermark programming for CHV and VLV.

v2: Rename DRAIN_LATENCY_MAX by DRAIN_LATENCY_MASK

v3: Addressed review comments by Ville
    - Changed Sprite DDL definitions to more generic to avoid multiple if-else
    - Changed bit masking to customary form
    - Changed to bitwise shorthand operator for sprite_dl assignment

Signed-off-by: Gajanan Bhat <gajanan.bhat@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_pm.c