Skip MCHBAR queries when display is not available
authorStuart Summers <stuart.summers@intel.com>
Wed, 20 Nov 2019 00:45:05 +0000 (16:45 -0800)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 20 Nov 2019 15:43:47 +0000 (17:43 +0200)
commite7862f476e6f78ebf715d6090e922cd91b1a194c
treeab99a3a67c0d6e11b4864d6f9b7ad628644e2828
parent7451a074bf2f263ed7c92f6d9d21aa9c2beef601
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: Stuart Summers <stuart.summers@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191120004505.149516-1-stuart.summers@intel.com
drivers/gpu/drm/i915/i915_drv.c