From: Jyoti Yadav <jyoti.r.yadav@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Jyoti Yadav <jyoti.r.yadav@intel.com>
Subject: [igt-dev] [PATCH i-g-t v3 3/5] [intel-gfx] tests/pm_dc: Added test for DC6 during PSR
Date: Sat, 3 Nov 2018 07:36:04 -0400 [thread overview]
Message-ID: <1541244966-27134-4-git-send-email-jyoti.r.yadav@intel.com> (raw)
In-Reply-To: <1541244966-27134-1-git-send-email-jyoti.r.yadav@intel.com>
This patch add subtest to check DC6 entry on PSR for the supported
platforms.
v2: Rename the subtest with more meaningful name.
v3: Rebased.
Signed-off-by: Jyoti Yadav <jyoti.r.yadav@intel.com>
---
tests/pm_dc.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/tests/pm_dc.c b/tests/pm_dc.c
index 671c0f5..3ecfb1c 100644
--- a/tests/pm_dc.c
+++ b/tests/pm_dc.c
@@ -203,6 +203,18 @@ int main(int argc, char *argv[])
test_dc_state_psr(&data, CHECK_DC5);
cleanup(&data);
}
+
+ igt_subtest("dc6-psr") {
+ psr_enable(data.debugfs_fd);
+ igt_require_f(edp_psr_sink_support(&data),
+ "Sink does not support PSR\n");
+ /* Check DC5 counter is available for the platform.
+ * Skip the test if counter is not available.
+ */
+ read_dc_counter(data.drm_fd, CHECK_DC6);
+ test_dc_state_psr(&data, CHECK_DC6);
+ cleanup(&data);
+ }
igt_fixture {
close(data.debugfs_fd);
display_fini(&data);
--
1.9.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-03 11:36 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-03 11:36 [igt-dev] [PATCH i-g-t v3 0/5] Added new test file pm_dc.c Jyoti Yadav
2018-11-03 11:36 ` [igt-dev] [PATCH i-g-t v3 1/5] [intel-gfx] lib/igt_pm: Moves Dmc_loaded() function into library Jyoti Yadav
2018-11-03 11:36 ` [igt-dev] [PATCH i-g-t v3 2/5] [intel-gfx] tests/pm_dc: Added new test to verify Display C States Jyoti Yadav
2018-11-21 17:39 ` Imre Deak
2018-11-03 11:36 ` Jyoti Yadav [this message]
2018-11-21 17:40 ` [igt-dev] [PATCH i-g-t v3 3/5] [intel-gfx] tests/pm_dc: Added test for DC6 during PSR Imre Deak
2018-11-03 11:36 ` [igt-dev] [PATCH i-g-t v3 4/5] [intel-gfx] tests/pm_dc: Added test for DC5 during DPMS Jyoti Yadav
2018-11-21 17:42 ` Imre Deak
2018-11-03 11:36 ` [igt-dev] [PATCH i-g-t v3 5/5] [intel-gfx] tests/pm_dc: Added test for DC6 " Jyoti Yadav
2018-11-21 17:43 ` Imre Deak
2018-11-03 12:25 ` [igt-dev] ✓ Fi.CI.BAT: success for Added new test file pm_dc.c (rev2) Patchwork
2018-11-03 13:43 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2018-11-21 18:10 ` Imre Deak
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=1541244966-27134-4-git-send-email-jyoti.r.yadav@intel.com \
--to=jyoti.r.yadav@intel.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