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 5/5] [intel-gfx] tests/pm_dc: Added test for DC6 during DPMS
Date: Sat, 3 Nov 2018 07:36:06 -0400 [thread overview]
Message-ID: <1541244966-27134-6-git-send-email-jyoti.r.yadav@intel.com> (raw)
In-Reply-To: <1541244966-27134-1-git-send-email-jyoti.r.yadav@intel.com>
Added new subtest for DC6 entry during DPMS on/off cycle.
During DPMS on/off cycle DC6 counter is incremented.
v2: Renamed the subtest name.
v3: Rebased.
Signed-off-by: Jyoti Yadav <jyoti.r.yadav@intel.com>
---
tests/pm_dc.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/tests/pm_dc.c b/tests/pm_dc.c
index d47b837..6d71e34 100644
--- a/tests/pm_dc.c
+++ b/tests/pm_dc.c
@@ -211,7 +211,7 @@ int main(int argc, char *argv[])
igt_info("Runtime PM support: %d\n", has_runtime_pm);
igt_require(has_runtime_pm);
igt_require(igt_pm_dmc_loaded(data.debugfs_fd));
- igt_display_init(&data->display, data->drm_fd);
+ igt_display_init(&data.display, data.drm_fd);
//display_init(&data);
}
@@ -248,6 +248,15 @@ int main(int argc, char *argv[])
// cleanup(&data);
}
+ igt_subtest("dc6-dpms") {
+ /* Check DC6 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_dpms(&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 ` [igt-dev] [PATCH i-g-t v3 3/5] [intel-gfx] tests/pm_dc: Added test for DC6 during PSR Jyoti Yadav
2018-11-21 17:40 ` 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 ` Jyoti Yadav [this message]
2018-11-21 17:43 ` [igt-dev] [PATCH i-g-t v3 5/5] [intel-gfx] tests/pm_dc: Added test for DC6 " 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-6-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