[Intel-gfx] [PATCH 4/7] drm/i915: Limit maximum number of memory channels
José Roberto de Souza
jose.souza at intel.com
Thu Jul 8 21:18:24 UTC 2021
Alderlake-P PCODE is returning 4 memory channels while it has a
maximum of 2.
So adding this limit and printing a debug message but the real fix
will need to come from PCODE.
HSDES: 22013272110
Signed-off-by: José Roberto de Souza <jose.souza at intel.com>
---
drivers/gpu/drm/i915/intel_dram.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/gpu/drm/i915/intel_dram.c b/drivers/gpu/drm/i915/intel_dram.c
index 879b0f007be31..de1d426627ef1 100644
--- a/drivers/gpu/drm/i915/intel_dram.c
+++ b/drivers/gpu/drm/i915/intel_dram.c
@@ -467,6 +467,10 @@ static int icl_pcode_read_mem_global_info(struct drm_i915_private *dev_priv)
}
dram_info->num_channels = (val & 0xf0) >> 4;
+ if (dram_info->num_channels > 2) {
+ drm_info(&dev_priv->drm, "More DRAM channels than expected, setting to max.\n");
+ dram_info->num_channels = 2;
+ }
dram_info->num_qgv_points = (val & 0xf00) >> 8;
return 0;
--
2.32.0
More information about the Intel-gfx
mailing list