Skip to content

Commit 0d4a57f

Browse files
committed
drm/i915/dram: Print memory details even if something went wrong
Print the memory details even if the detection failed in some way but we continued the driver initialization anyway. It'll be easier to debug issues if we at least know what the final results were. And while at it also print the number of PSF GV points. Previously we only printed the QGV points. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250902133113.18778-9-ville.syrjala@linux.intel.com Reviewed-by: Jani Nikula <jani.nikula@intel.com>
1 parent a6d31e1 commit 0d4a57f

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -757,14 +757,15 @@ int intel_dram_detect(struct drm_i915_private *i915)
757757
drm_dbg_kms(&i915->drm, "DRAM type: %s\n",
758758
intel_dram_type_str(dram_info->type));
759759

760+
drm_dbg_kms(&i915->drm, "DRAM channels: %u\n", dram_info->num_channels);
761+
762+
drm_dbg_kms(&i915->drm, "Num QGV points %u\n", dram_info->num_qgv_points);
763+
drm_dbg_kms(&i915->drm, "Num PSF GV points %u\n", dram_info->num_psf_gv_points);
764+
760765
/* TODO: Do we want to abort probe on dram detection failures? */
761766
if (ret)
762767
return 0;
763768

764-
drm_dbg_kms(&i915->drm, "Num qgv points %u\n", dram_info->num_qgv_points);
765-
766-
drm_dbg_kms(&i915->drm, "DRAM channels: %u\n", dram_info->num_channels);
767-
768769
return 0;
769770
}
770771

0 commit comments

Comments
 (0)