diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2019-03-06 22:35:45 +0200 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2019-03-07 23:18:51 +0200 |
commit | 331ecded7e6cb005a22fea99d3d02402cf19a7b1 (patch) | |
tree | 4420c2931bfe88a4306d3855d2f3c05df2a17920 /drivers/gpu/drm/i915/i915_drv.c | |
parent | 8860343cc9a7f31fa6d0fb904770924593f6c311 (diff) | |
download | linux-stable-331ecded7e6cb005a22fea99d3d02402cf19a7b1.tar.gz linux-stable-331ecded7e6cb005a22fea99d3d02402cf19a7b1.tar.bz2 linux-stable-331ecded7e6cb005a22fea99d3d02402cf19a7b1.zip |
drm/i915: Extract DIMM info on GLK too
The BXT code for parsing DIMM info works for GLK too. Let's
dig it out even if we might not need it immediately.
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190306203551.24592-7-ville.syrjala@linux.intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index a3cf74a00b3f..7f8bdebd9f1a 100644 --- a/drivers/gpu/drm/i915/i915_drv.c +++ b/drivers/gpu/drm/i915/i915_drv.c @@ -1378,11 +1378,11 @@ intel_get_dram_info(struct drm_i915_private *dev_priv) */ dram_info->is_16gb_dimm = !IS_GEN9_LP(dev_priv); - if (INTEL_GEN(dev_priv) < 9 || IS_GEMINILAKE(dev_priv)) + if (INTEL_GEN(dev_priv) < 9) return; /* Need to calculate bandwidth only for Gen9 */ - if (IS_BROXTON(dev_priv)) + if (IS_GEN9_LP(dev_priv)) ret = bxt_get_dram_info(dev_priv); else if (IS_GEN(dev_priv, 9)) ret = skl_get_dram_info(dev_priv); |