aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_pm.c
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2015-05-08 21:05:55 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-05-20 05:25:40 -0400
commitb6e742f652791919ce5c8e05a1d664bcbc5111a6 (patch)
treeafe956e9c03877c0dc0dc3a5ac4d146a6e4093e0 /drivers/gpu/drm/i915/intel_pm.c
parent49d6fa210e9a87bd83697692753604cbcaf103ae (diff)
drm/i915: Be optimistic about future display engines having 7 WM levels
As we're doing throughout the code, being optimistic that platform n + 1 will mostly reuse the same things as platform n allows us to minimize the enabling work needed. This time, it's about the number of WM levels. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_pm.c')
-rw-r--r--drivers/gpu/drm/i915/intel_pm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index af2606098cf9..f08264ca1d30 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -1946,7 +1946,7 @@ static void intel_fixup_cur_wm_latency(struct drm_device *dev, uint16_t wm[5])
1946int ilk_wm_max_level(const struct drm_device *dev) 1946int ilk_wm_max_level(const struct drm_device *dev)
1947{ 1947{
1948 /* how many WM levels are we expecting */ 1948 /* how many WM levels are we expecting */
1949 if (IS_GEN9(dev)) 1949 if (INTEL_INFO(dev)->gen >= 9)
1950 return 7; 1950 return 7;
1951 else if (IS_HASWELL(dev) || IS_BROADWELL(dev)) 1951 else if (IS_HASWELL(dev) || IS_BROADWELL(dev))
1952 return 4; 1952 return 4;