[2/4] drm/i915: Ingore error to read dunit registers on bxt/glk

Submitted by Ville Syrjälä on March 25, 2019, 10:47 a.m.

Details

Message ID 20190325104749.29334-2-ville.syrjala@linux.intel.com
State New
Headers show
Series "Series without cover letter" ( rev: 3 2 1 ) in Intel GFX - Try Bot

Not browsing as part of any series.

Commit Message

Ville Syrjälä March 25, 2019, 10:47 a.m.
From: Ville Syrjälä <ville.syrjala@linux.intel.com>

On some glk machines the dunit registers apparently can't be
read via mchbar. I tried to play around with the magic hidden
p2sb device and its sbreg bar, but I couldn't find correct
looking registers for the dunits in there.

Since the only thing we really need on bxt/glk is memory
bacndwidth let's just ignore the faiure to read the dunit
registers.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
 drivers/gpu/drm/i915/i915_drv.c | 6 ------
 1 file changed, 6 deletions(-)

Patch hide | download patch | download mbox

diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index 6f7d269234e0..c01d747bc4a6 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -1399,12 +1399,6 @@  bxt_get_dram_info(struct drm_i915_private *dev_priv)
 			dram_info->type = type;
 	}
 
-	if (dram_info->type == INTEL_DRAM_UNKNOWN ||
-	    dram_info->ranks == 0) {
-		DRM_INFO("couldn't get memory information\n");
-		return -EINVAL;
-	}
-
 	return 0;
 }