From: Lyude <lyude@redhat.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t 2/3] tests/kms_chamelium: Increase HPD storm threshold to 10 from 1
Date: Tue, 20 Nov 2018 19:33:37 -0500 [thread overview]
Message-ID: <20181121003338.16956-3-lyude@redhat.com> (raw)
In-Reply-To: <20181121003338.16956-1-lyude@redhat.com>
From: Lyude Paul <lyude@redhat.com>
This is to adjust for the changes to how long pulses are counted towards
HPD storms that were made in https://patchwork.freedesktop.org/patch/260597/
Also, update the appropriate documentation in igt to reflect this.
Signed-off-by: Lyude Paul <lyude@redhat.com>
---
lib/igt_debugfs.c | 3 +++
tests/kms_chamelium.c | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/lib/igt_debugfs.c b/lib/igt_debugfs.c
index a3aca846..358b4cab 100644
--- a/lib/igt_debugfs.c
+++ b/lib/igt_debugfs.c
@@ -557,6 +557,9 @@ static void igt_hpd_storm_exit_handler(int sig)
* through debugfs. Useful for hotplugging tests where HPD storm detection
* might get in the way and slow things down.
*
+ * Note that each long HPD pulse will count as 10 towards the threshold, and
+ * short HPD pulses (if enabled) will count as 1 towards the threshold.
+ *
* If the system does not support HPD storm detection, this function does
* nothing.
*
diff --git a/tests/kms_chamelium.c b/tests/kms_chamelium.c
index f051344d..0097dbcc 100644
--- a/tests/kms_chamelium.c
+++ b/tests/kms_chamelium.c
@@ -742,7 +742,7 @@ test_hpd_storm_detect(data_t *data, struct chamelium_port *port, int width)
igt_require_hpd_storm_ctl(data->drm_fd);
reset_state(data, port);
- igt_hpd_storm_set_threshold(data->drm_fd, 1);
+ igt_hpd_storm_set_threshold(data->drm_fd, 10);
chamelium_fire_hpd_pulses(data->chamelium, port, width, 10, false);
igt_assert(igt_hpd_storm_detected(data->drm_fd));
--
2.19.1
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2018-11-21 0:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-21 0:33 [igt-dev] [PATCH i-g-t 0/3] Add tests for HPD short storm detection Lyude
2018-11-21 0:33 ` [igt-dev] [PATCH i-g-t 1/3] lib/kms_chamelium: Use FireHpdPulse for chamelium_hpd_send_pulses() Lyude
2018-12-11 16:52 ` Ville Syrjälä
2018-12-11 21:28 ` Lyude Paul
2018-11-21 0:33 ` Lyude [this message]
2018-12-11 16:56 ` [igt-dev] [PATCH i-g-t 2/3] tests/kms_chamelium: Increase HPD storm threshold to 10 from 1 Ville Syrjälä
2018-11-21 0:33 ` [igt-dev] [PATCH i-g-t 3/3] tests/kms_chamelium: Introduce HPD short storm tests Lyude
2018-12-11 17:09 ` Ville Syrjälä
2018-12-11 17:34 ` Ville Syrjälä
2018-12-11 21:39 ` Lyude Paul
2018-11-21 1:21 ` [igt-dev] ✓ Fi.CI.BAT: success for Add tests for HPD short storm detection Patchwork
2018-11-21 12:07 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
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=20181121003338.16956-3-lyude@redhat.com \
--to=lyude@redhat.com \
--cc=igt-dev@lists.freedesktop.org \
/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