summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBhanuprakash Modem <bhanuprakash.modem@intel.com>2024-09-17 15:14:21 +0530
committerBhanuprakash Modem <bhanuprakash.modem@intel.com>2024-09-18 16:42:00 +0530
commit54bea89f0cfd1de2b2d814f2c1ca918b111aa858 (patch)
tree3ca58d54ced2a7d4f82c6ca2c286e350ceccc25c /lib
parent20a0ae35cb9fbae774dce8b78e20b2eb658171aa (diff)
lib/igt_kms: Add a debug log for invalid pipe/output combo
Add some meaningful logs in case of invalid pipe/output combo. Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com> Reviewed-by: Pranay Samala <pranay.samala@intel.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/igt_kms.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index dd530dbab..9313e4c27 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -6585,8 +6585,13 @@ bool intel_pipe_output_combo_valid(igt_display_t *display)
if (output->pending_pipe == PIPE_NONE)
continue;
- if (!igt_pipe_connector_valid(output->pending_pipe, output))
+ if (!igt_pipe_connector_valid(output->pending_pipe, output)) {
+ igt_info("Output %s is disconnected (or) pipe-%s & %s cannot be used together\n",
+ igt_output_name(output),
+ kmstest_pipe_name(output->pending_pipe),
+ igt_output_name(output));
return false;
+ }
combo++;
}