[PATCH 2/4] drm/i915: Ingore error to read dunit registers on bxt/glk
Ville Syrjala
ville.syrjala at linux.intel.com
Mon Mar 25 10:47:47 UTC 2019
From: Ville Syrjälä <ville.syrjala at 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 at linux.intel.com>
---
drivers/gpu/drm/i915/i915_drv.c | 6 ------
1 file changed, 6 deletions(-)
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;
}
--
2.19.2
More information about the Intel-gfx-trybot
mailing list