drm/i915: Don't apply the 16Gb DIMM wm latency w/a to BXT/GLK
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 23 Oct 2018 18:21:02 +0000 (21:21 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 24 Oct 2018 12:14:45 +0000 (15:14 +0300)
commit5d6f36b27d2764f3dc940606ee6b7ec5c669af3e
tree3c2c3d7d6af6854b001c7a2bb661c2151d729a38
parent26ee5bc390115ceaf82315fc88d0d6793c094361
drm/i915: Don't apply the 16Gb DIMM wm latency w/a to BXT/GLK

The 16Gb DIMM w/a is not applicable to BXT or GLK. Limit it to
the appropriate platforms.

This was especially harsh on GLK since we don't even try to read
the DIMM information on that platforms, hence valid_dimm was
always false and thus we always tried to apply the w/a.
Furthermore the w/a pushed the level 0 latency above the
level 1 latency, which doesn't really make sense.

v2: Do the check when populating is_16gb_dimm (Mahesh)

Cc: Mahesh Kumar <mahesh1.kumar@intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Fixes: 86b592876cb6 ("drm/i915: Implement 16GB dimm wa for latency level-0")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181023182102.31549-1-ville.syrjala@linux.intel.com
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Mahesh Kumar <mahesh1.sh.kumar@gmail.com>
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_pm.c