Commit 0d4a57f0 authored by Ville Syrjälä's avatar Ville Syrjälä
Browse files

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: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250902133113.18778-9-ville.syrjala@linux.intel.com


Reviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
parent a6d31e18
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -757,14 +757,15 @@ int intel_dram_detect(struct drm_i915_private *i915)
	drm_dbg_kms(&i915->drm, "DRAM type: %s\n",
		    intel_dram_type_str(dram_info->type));

	drm_dbg_kms(&i915->drm, "DRAM channels: %u\n", dram_info->num_channels);

	drm_dbg_kms(&i915->drm, "Num QGV points %u\n", dram_info->num_qgv_points);
	drm_dbg_kms(&i915->drm, "Num PSF GV points %u\n", dram_info->num_psf_gv_points);

	/* TODO: Do we want to abort probe on dram detection failures? */
	if (ret)
		return 0;

	drm_dbg_kms(&i915->drm, "Num qgv points %u\n", dram_info->num_qgv_points);

	drm_dbg_kms(&i915->drm, "DRAM channels: %u\n", dram_info->num_channels);

	return 0;
}