Skip to content

Commit a6d31e1

Browse files
committed
drm/i915/dram: Don't call skl_get_dram_info()/skl_get_dram_type() on icl
Currently the icl codepaths first determine the memory type from the memory controller registers (via skl_get_dram_info()->skl_get_dram_type()) and then overwrite the results with icl_pcode_read_mem_global_info(). Get rid of the pointless (and potentially incorrect) skl_get_dram_type() stuff. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250902133113.18778-8-ville.syrjala@linux.intel.com Reviewed-by: Jani Nikula <jani.nikula@intel.com>
1 parent 4dfd3a5 commit a6d31e1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/gpu/drm/i915/soc/intel_dram.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,8 +669,9 @@ static int icl_pcode_read_mem_global_info(struct drm_i915_private *dev_priv,
669669

670670
static int gen11_get_dram_info(struct drm_i915_private *i915, struct dram_info *dram_info)
671671
{
672-
int ret = skl_get_dram_info(i915, dram_info);
672+
int ret;
673673

674+
ret = skl_dram_get_channels_info(i915, dram_info);
674675
if (ret)
675676
return ret;
676677

0 commit comments

Comments
 (0)