From: Paul Kocialkowski <paul.kocialkowski@linux.intel.com>
To: intel-gfx@lists.freedesktop.org
Cc: Lyude <lyude@redhat.com>
Subject: [PATCH i-g-t v2 3/7] tests/chamelium: Add VGA HPD toggle tests after suspend and hibernate
Date: Tue, 27 Jun 2017 13:53:07 +0300 [thread overview]
Message-ID: <20170627105311.28975-3-paul.kocialkowski@linux.intel.com> (raw)
In-Reply-To: <20170627105311.28975-1-paul.kocialkowski@linux.intel.com>
This adds HPD toggle after suspend and hibernate testing for VGA, in the
same fashion as currently done for DP and HDMI and includes VGA in the
common suspend and hibernate test.
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@linux.intel.com>
---
tests/chamelium.c | 22 +++++++++-------------
1 file changed, 9 insertions(+), 13 deletions(-)
diff --git a/tests/chamelium.c b/tests/chamelium.c
index 04e7e379..835c3282 100644
--- a/tests/chamelium.c
+++ b/tests/chamelium.c
@@ -232,9 +232,6 @@ try_suspend_resume_hpd(data_t *data, struct chamelium_port *port,
} else {
for (p = 0; p < data->port_count; p++) {
port = data->ports[p];
- if (chamelium_port_get_type(port) == DRM_MODE_CONNECTOR_VGA)
- continue;
-
chamelium_schedule_hpd_toggle(data->chamelium, port,
SUSPEND_RESUME_DELAY * 1000 / 2,
!connected);
@@ -252,9 +249,6 @@ try_suspend_resume_hpd(data_t *data, struct chamelium_port *port,
} else {
for (p = 0; p < data->port_count; p++) {
port = data->ports[p];
- if (chamelium_port_get_type(port) == DRM_MODE_CONNECTOR_VGA)
- continue;
-
igt_assert_eq(reprobe_connector(data, port), connected ?
DRM_MODE_DISCONNECTED :
DRM_MODE_CONNECTED);
@@ -292,9 +286,6 @@ test_suspend_resume_hpd_common(data_t *data, enum igt_suspend_state state,
for (p = 0; p < data->port_count; p++) {
port = data->ports[p];
- if (chamelium_port_get_type(port) == DRM_MODE_CONNECTOR_VGA)
- continue;
-
igt_debug("Testing port %s\n", chamelium_port_get_name(port));
}
@@ -810,10 +801,15 @@ igt_main
igt_kms_get_alt_edid());
}
- /* FIXME: Right now there isn't a way to do any sort of delayed
- * psuedo-hotplug with VGA, so testing detection after a
- * suspend/resume cycle isn't possible yet
- */
+ connector_subtest("vga-hpd-after-suspend", VGA)
+ test_suspend_resume_hpd(&data, port,
+ SUSPEND_STATE_MEM,
+ SUSPEND_TEST_NONE);
+
+ connector_subtest("vga-hpd-after-hibernate", VGA)
+ test_suspend_resume_hpd(&data, port,
+ SUSPEND_STATE_DISK,
+ SUSPEND_TEST_DEVICES);
connector_subtest("vga-hpd-without-ddc", VGA)
test_hpd_without_ddc(&data, port);
--
2.13.1
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2017-06-27 10:53 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-27 10:53 [PATCH i-g-t v2 1/7] lib/igt_aux: Use provided autoresume delay for rtc wake Paul Kocialkowski
2017-06-27 10:53 ` [PATCH i-g-t v2 2/7] chamelium: Add support for HPD toggle scheduling instead of async pulses Paul Kocialkowski
2017-06-27 10:53 ` Paul Kocialkowski [this message]
2017-06-27 10:53 ` [PATCH i-g-t v2 4/7] tests/chamelium: Reduce the simple hotplug test toggle count for VGA Paul Kocialkowski
2017-06-27 10:53 ` [PATCH i-g-t v2 5/7] tests/chamelium: Update connector state without reprobe when possible Paul Kocialkowski
2017-06-27 21:26 ` Lyude Paul
2017-06-28 7:47 ` Paul Kocialkowski
2017-06-27 10:53 ` [PATCH i-g-t v2 6/7] tests/chamelium: Disconnect connectors without extra reset Paul Kocialkowski
2017-06-27 21:21 ` Lyude Paul
2017-06-28 7:49 ` Paul Kocialkowski
2017-06-27 10:53 ` [PATCH i-g-t v2 7/7] Make igtrc configuration common, with configurable suspend/resume delay Paul Kocialkowski
2017-06-27 21:11 ` Lyude Paul
2017-06-28 7:27 ` Paul Kocialkowski
2017-06-27 21:25 ` [PATCH i-g-t v2 1/7] lib/igt_aux: Use provided autoresume delay for rtc wake Lyude Paul
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170627105311.28975-3-paul.kocialkowski@linux.intel.com \
--to=paul.kocialkowski@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=lyude@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).