[PATCH] drm/i915/bios: add VBT DSI DSC debug logging
Jani Nikula
jani.nikula at intel.com
Fri Dec 13 13:10:43 UTC 2024
Improve the debug logging for DSC parameters for ports.
Signed-off-by: Jani Nikula <jani.nikula at intel.com>
---
drivers/gpu/drm/i915/display/intel_bios.c | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/display/intel_bios.c b/drivers/gpu/drm/i915/display/intel_bios.c
index e0e4e9b62d8d..51f9aca960f9 100644
--- a/drivers/gpu/drm/i915/display/intel_bios.c
+++ b/drivers/gpu/drm/i915/display/intel_bios.c
@@ -2157,19 +2157,22 @@ parse_compression_parameters(struct intel_display *display)
list_for_each_entry(devdata, &display->vbt.display_devices, node) {
const struct child_device_config *child = &devdata->child;
+ char port_name = port_name(intel_bios_encoder_port(devdata));
if (!child->compression_enable)
continue;
if (!params) {
drm_dbg_kms(display->drm,
- "VBT: compression params not available\n");
+ "Port %c VBT indicates compression but params not available\n",
+ port_name);
continue;
}
if (child->compression_method_cps) {
drm_dbg_kms(display->drm,
- "VBT: CPS compression not supported\n");
+ "Port %c VBT indicates unsupported CPS compression\n",
+ port_name);
continue;
}
@@ -2177,6 +2180,9 @@ parse_compression_parameters(struct intel_display *display)
devdata->dsc = kmemdup(¶ms->data[index],
sizeof(*devdata->dsc), GFP_KERNEL);
+
+ drm_dbg_kms(display->drm, "Port %c VBT DSC index %d\n",
+ port_name, index);
}
}
@@ -3543,6 +3549,11 @@ bool intel_bios_get_dsc_params(struct intel_encoder *encoder,
if (!devdata->dsc)
return false;
+ drm_dbg_kms(display->drm,
+ "[ENCODER:%d:%s] Found port %c VBT DSC parameters\n",
+ encoder->base.base.id, encoder->base.name,
+ port_name(encoder->port));
+
fill_dsc(crtc_state, devdata->dsc, dsc_max_bpc);
return true;
--
2.39.5
More information about the Intel-gfx
mailing list