[v4 i-g-t 3/3] HAX: Print Color Bit Depth from EDID

Bhanuprakash Modem bhanuprakash.modem at intel.com
Mon Jan 10 07:42:42 UTC 2022


Print Color Bit Depth from EDID

Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
 tests/intel-ci/fast-feedback.testlist | 4 ++++
 tests/kms_color_helper.c              | 7 +++++++
 2 files changed, 11 insertions(+)

diff --git a/tests/intel-ci/fast-feedback.testlist b/tests/intel-ci/fast-feedback.testlist
index de1c6cb46c..8b53cb6767 100644
--- a/tests/intel-ci/fast-feedback.testlist
+++ b/tests/intel-ci/fast-feedback.testlist
@@ -102,6 +102,10 @@ igt at kms_chamelium@hdmi-crc-fast
 igt at kms_chamelium@vga-hpd-fast
 igt at kms_chamelium@vga-edid-read
 igt at kms_chamelium@common-hpd-after-suspend
+igt at kms_color@pipe-A-deep-color
+igt at kms_color@pipe-B-deep-color
+igt at kms_color@pipe-C-deep-color
+igt at kms_color@pipe-D-deep-color
 igt at kms_prop_blob@basic
 igt at kms_cursor_legacy@basic-busy-flip-before-cursor-atomic
 igt at kms_cursor_legacy@basic-busy-flip-before-cursor-legacy
diff --git a/tests/kms_color_helper.c b/tests/kms_color_helper.c
index 9ca266dd3a..03e264d995 100644
--- a/tests/kms_color_helper.c
+++ b/tests/kms_color_helper.c
@@ -30,6 +30,7 @@ is_panel_supports_deep_color(int fd, drmModeConnector *connector)
 	uint64_t edid_blob_id;
 	const struct edid *edid;
 	uint8_t bit_depth;
+	char mfg[3];
 	drmModePropertyBlobPtr edid_blob = NULL;
 
 	igt_assert(kmstest_get_property(fd, connector->connector_id,
@@ -39,6 +40,12 @@ is_panel_supports_deep_color(int fd, drmModeConnector *connector)
 
 	edid = (const struct edid *) edid_blob->data;
 	bit_depth = edid->input;
+	edid_get_mfg(edid, mfg);
+
+	igt_info("Panel EDID mfg: %s, ver.rev: %d.%d, ext_len: %d, input: 0x%x, bit depth: 0x%x\n",
+			mfg, edid->version, edid->revision, edid->extensions_len, ((bit_depth & 0xf0) >> 4),
+			((bit_depth & (7 << 4)) >> 4));
+
 	drmModeFreePropertyBlob(edid_blob);
 
 	/*
-- 
2.32.0



More information about the Intel-gfx-trybot mailing list