=?a?q?=5BPATCH=20v2=C2=A0=5D=20tests/i915/i915=5Fpm=5Fdc=3A=20Check=20dc3co=20count=20to=20skip=20the=20test?=
If dc3co is not enabled in driver, counter will always be zero and we can simply skip the test.
Signed-off-by Mohammed Thasleem <[email protected]>
Reviewed-by Swati Sharma <[email protected]>
--- tests/i915/i915_pm_dc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
tests/i915/i915_pm_dc.c +2 -1
@@ -274,7 +274,8 @@ static void check_dc3co_with_videoplayback_like_load(data_t *data)usleep (delay); } -check_dc_counter (data,CHECK_DC3CO , dc3co_prev_cnt); +igt_require_f (dc_state_wait_entry (data->debugfs_fd, +CHECK_DC3CO , dc3co_prev_cnt),"dc3co-vpb-simulation not enabled\n" ); }static void require_dc_counter (int debugfs_fd,int dc_flag)
Signature · 1 line
2.25.1