[igt-dev] [i-g-t V7 07/81] tests/chamelium/kms_chamelium_edid: Document each subtest for testplan
Bhanuprakash Modem
bhanuprakash.modem at intel.com
Tue Aug 15 16:47:01 UTC 2023
Add documentation for all kms tests which is used by IGT testplan
documentation.
V2: - Add chamelium to the Functionality
- Update Functionality to reflect the edid
V3: - Driver requirement: s/any/i915, xe/
Cc: Kunal Joshi <kunal1.joshi at intel.com>
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
tests/chamelium/kms_chamelium_edid.c | 96 ++++++++++++++++++++++++++--
1 file changed, 92 insertions(+), 4 deletions(-)
diff --git a/tests/chamelium/kms_chamelium_edid.c b/tests/chamelium/kms_chamelium_edid.c
index 446bbd204..8e730c818 100644
--- a/tests/chamelium/kms_chamelium_edid.c
+++ b/tests/chamelium/kms_chamelium_edid.c
@@ -25,8 +25,9 @@
*/
/**
- * TEST: Tests behaviour of edid & timings using chamelium
+ * TEST: kms chamelium edid
* Category: Display
+ * Description: Testing EDID with a Chamelium board
*/
#include <fcntl.h>
@@ -149,22 +150,25 @@ static void check_mode(struct chamelium *chamelium, struct chamelium_port *port,
* Description: Make sure the EDID exposed by KMS is the same as the screen's
* Test category: functionality test
* Run type: BAT
- * Functionality: dp
+ * Functionality: chamelium, dp_edid
* Mega feature: DP
+ * Driver requirement: i915, xe
*
* SUBTEST: hdmi-edid-read
* Description: Make sure the EDID exposed by KMS is the same as the screen's
* Test category: functionality test
* Run type: BAT
- * Functionality: hdmi
+ * Functionality: chamelium, hdmi_edid
* Mega feature: HDMI
+ * Driver requirement: i915, xe
*
* SUBTEST: vga-edid-read
* Description: Make sure the EDID exposed by KMS is the same as the screen's
* Test category: functionality test
* Run type: BAT
- * Functionality: vga
+ * Functionality: chamelium, vga_edid
* Mega feature: VGA
+ * Driver requirement: i915, xe
*/
static const char igt_custom_edid_type_read_desc[] =
"Make sure the EDID exposed by KMS is the same as the screen's";
@@ -205,6 +209,32 @@ static void igt_custom_edid_type_read(chamelium_data_t *data,
drmModeFreeConnector(connector);
}
+/**
+ * SUBTEST: dp-edid-stress-resolution-%s
+ * Description: Stress test the DUT by testing multiple EDIDs, one right after
+ * the other, and ensure their validity by check the real screen
+ * resolution vs the advertised mode (%arg[1]) resolution.
+ * Test category: functionality test
+ * Run type: FULL
+ * Functionality: chamelium, dp_edid
+ * Mega feature: DP
+ * Driver requirement: i915, xe
+ *
+ * SUBTEST: hdmi-edid-stress-resolution-%s
+ * Description: Stress test the DUT by testing multiple EDIDs, one right after
+ * the other, and ensure their validity by check the real screen
+ * resolution vs the advertised mode (%arg[1]) resolution.
+ * Test category: functionality test
+ * Run type: FULL
+ * Functionality: chamelium, hdmi_edid
+ * Mega feature: HDMI
+ * Driver requirement: i915, xe
+ *
+ * arg[1]:
+ *
+ * @4k: 4K
+ * @non-4k: Non 4K
+ */
static const char igt_edid_stress_resolution_desc[] =
"Stress test the DUT by testing multiple EDIDs, one right after the other, "
"and ensure their validity by check the real screen resolution vs the "
@@ -274,6 +304,17 @@ static void edid_stress_resolution(chamelium_data_t *data,
data->ports, data->port_count);
}
+/**
+ * SUBTEST: dp-edid-resolution-list
+ * Description: Get an EDID with many modes of different configurations, set
+ * them on the screen and check the screen resolution matches the
+ * mode resolution.
+ * Test category: functionality test
+ * Run type: FULL
+ * Functionality: chamelium, dp_edid
+ * Mega feature: DP
+ * Driver requirement: i915, xe
+ */
static const char igt_edid_resolution_list_desc[] =
"Get an EDID with many modes of different configurations, set them on the screen and check the"
" screen resolution matches the mode resolution.";
@@ -337,6 +378,32 @@ static void edid_resolution_list(chamelium_data_t *data,
drmModeFreeConnector(connector);
}
+/**
+ * SUBTEST: dp-edid-change-during-%s
+ * Description: Simulate a screen being unplugged and another screen being
+ * plugged during suspend, check that a uevent is sent and
+ * connector status is updated during %arg[1]
+ * Test category: functionality test
+ * Run type: FULL
+ * Functionality: chamelium, dp_edid
+ * Mega feature: DP
+ * Driver requirement: i915, xe
+ *
+ * SUBTEST: hdmi-edid-change-during-%s
+ * Description: Simulate a screen being unplugged and another screen being
+ * plugged during suspend, check that a uevent is sent and
+ * connector status is updated during %arg[1]
+ * Test category: functionality test
+ * Run type: FULL
+ * Functionality: chamelium, dp_edid
+ * Mega feature: DP
+ * Driver requirement: i915, xe
+ *
+ * arg[1]:
+ *
+ * @hibernate: hibernation
+ * @suspend: suspend
+ */
static const char test_suspend_resume_edid_change_desc[] =
"Simulate a screen being unplugged and another screen being plugged "
"during suspend, check that a uevent is sent and connector status is "
@@ -389,6 +456,27 @@ static void test_suspend_resume_edid_change(chamelium_data_t *data,
link_status_failed[1][p]);
}
+/**
+ * SUBTEST: dp-mode-timings
+ * Description: For each mode of the IGT base EDID, perform a modeset and check
+ * the mode detected by the Chamelium receiver matches the mode we
+ * set
+ * Test category: functionality test
+ * Run type: FULL
+ * Functionality: chamelium, dp_edid
+ * Mega feature: DP
+ * Driver requirement: i915, xe
+ *
+ * SUBTEST: hdmi-mode-timings
+ * Description: For each mode of the IGT base EDID, perform a modeset and check
+ * the mode detected by the Chamelium receiver matches the mode we
+ * set
+ * Test category: functionality test
+ * Run type: FULL
+ * Functionality: chamelium, dp_edid
+ * Mega feature: DP
+ * Driver requirement: i915, xe
+ */
static const char test_mode_timings_desc[] =
"For each mode of the IGT base EDID, perform a modeset and check the "
"mode detected by the Chamelium receiver matches the mode we set";
--
2.40.0
More information about the igt-dev
mailing list