[PATCH] drm/i915: debug vbt+straps
Ville Syrjala
ville.syrjala at linux.intel.com
Sat Feb 18 00:50:05 UTC 2023
From: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
drivers/gpu/drm/i915/display/intel_bios.c | 2 ++
drivers/gpu/drm/i915/display/intel_display.c | 3 +++
2 files changed, 5 insertions(+)
diff --git a/drivers/gpu/drm/i915/display/intel_bios.c b/drivers/gpu/drm/i915/display/intel_bios.c
index f35ef3675d39..346fbd1f3b47 100644
--- a/drivers/gpu/drm/i915/display/intel_bios.c
+++ b/drivers/gpu/drm/i915/display/intel_bios.c
@@ -2728,6 +2728,8 @@ static void parse_ddi_port(struct intel_bios_encoder_data *devdata)
if (port == PORT_NONE)
return;
+ print_ddi_port(devdata, port);
+
if (!is_port_valid(i915, port)) {
drm_dbg_kms(&i915->drm,
"VBT reports port %c as supported, but that can't be true: skipping\n",
diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
index 0bb429d3e8d7..d62a0680adf9 100644
--- a/drivers/gpu/drm/i915/display/intel_display.c
+++ b/drivers/gpu/drm/i915/display/intel_display.c
@@ -7862,6 +7862,9 @@ static void intel_setup_outputs(struct drm_i915_private *dev_priv)
intel_ddi_init(dev_priv, PORT_C);
vlv_dsi_init(dev_priv);
} else if (DISPLAY_VER(dev_priv) >= 9) {
+ drm_dbg_kms(&dev_priv->drm, "Straps 0x%x 0x%x\n",
+ intel_de_read(dev_priv, DDI_BUF_CTL(PORT_A)),
+ intel_de_read(dev_priv, SFUSE_STRAP));
intel_ddi_init(dev_priv, PORT_A);
intel_ddi_init(dev_priv, PORT_B);
intel_ddi_init(dev_priv, PORT_C);
--
2.39.2
More information about the Intel-gfx-trybot
mailing list