diff options
author | Jyoti Yadav <jyoti.r.yadav@intel.com> | 2019-09-19 23:00:32 +0530 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2019-09-20 13:51:55 +0300 |
commit | ec11bc198d087a137d3d323d9b61050dc2519eba (patch) | |
tree | d3ed38c0c5872b60f78d17f691f943b6a639145d /tests/i915/i915_pm_dc.c | |
parent | 0f1e4a9635f35be751cf183b9dd42017da5697e4 (diff) |
tests/i915/i915_pm_dc: Added test for DC6 during DPMS
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.
v4: Addressed review comment by replacing igt_display_init() to
igt_display_require(), changes got done in patch set 2.
v5: Addressed the review comment by removing redundant read_dc_counter()
suggested by Imre.
Listing actual change in patch set changelog to make review easier.
v6: Rebased due to test name pm_dc changed to i915_pm_dc, aligning to
other PM tests.
v7: Introduced setup_dc_dpms() in order to disable i915 runtime PM for
the platform supports DC9.
Signed-off-by: Jyoti Yadav <jyoti.r.yadav@intel.com>
Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Diffstat (limited to 'tests/i915/i915_pm_dc.c')
-rw-r--r-- | tests/i915/i915_pm_dc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/i915/i915_pm_dc.c b/tests/i915/i915_pm_dc.c index 553f8407..2ea27b00 100644 --- a/tests/i915/i915_pm_dc.c +++ b/tests/i915/i915_pm_dc.c @@ -281,6 +281,12 @@ int main(int argc, char *argv[]) test_dc_state_dpms(&data, CHECK_DC5); } + igt_describe("This test validates display engine entry to DC5 state " + "while all connectors's DPMS property set to OFF"); + igt_subtest("dc6-dpms") { + test_dc_state_dpms(&data, CHECK_DC6); + } + igt_fixture { close(data.debugfs_fd); display_fini(&data); |