Commit e7862f47 authored by Stuart Summers's avatar Stuart Summers Committed by Ville Syrjälä

Skip MCHBAR queries when display is not available

Platforms without display do not map the MCHBAR MMIO into the GFX
device BAR. Skip this sequence when display is not available.
Signed-off-by: default avatarStuart Summers <stuart.summers@intel.com>
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191120004505.149516-1-stuart.summers@intel.com
parent 7451a074
...@@ -1052,7 +1052,7 @@ intel_get_dram_info(struct drm_i915_private *dev_priv) ...@@ -1052,7 +1052,7 @@ intel_get_dram_info(struct drm_i915_private *dev_priv)
*/ */
dram_info->is_16gb_dimm = !IS_GEN9_LP(dev_priv); dram_info->is_16gb_dimm = !IS_GEN9_LP(dev_priv);
if (INTEL_GEN(dev_priv) < 9) if (INTEL_GEN(dev_priv) < 9 || !HAS_DISPLAY(dev_priv))
return; return;
if (IS_GEN9_LP(dev_priv)) if (IS_GEN9_LP(dev_priv))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment