All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t 1/2] tests/kms_pm_dc: Ensure PSR is enabled
@ 2024-03-26 13:20 Jouni Högander
  2024-03-26 13:20 ` [PATCH i-g-t 2/2] tests/kms_dirtyfb: " Jouni Högander
                   ` (7 more replies)
  0 siblings, 8 replies; 12+ messages in thread
From: Jouni Högander @ 2024-03-26 13:20 UTC (permalink / raw)
  To: igt-dev; +Cc: Jouni Högander

In certain cases PSR support is informed, but it doesn't get enabled
due to some limitations. This is causing failures which are actually just
expected behaviour. Fix this by checking PSR is really enabled and skip in
case it is not

Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/9737
Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
---
 tests/intel/kms_pm_dc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/intel/kms_pm_dc.c b/tests/intel/kms_pm_dc.c
index 7deebf83d..176f7a04b 100644
--- a/tests/intel/kms_pm_dc.c
+++ b/tests/intel/kms_pm_dc.c
@@ -399,6 +399,7 @@ static void test_dc_state_psr(data_t *data, int dc_flag)
 	dc_counter_before_psr = read_dc_counter(data->debugfs_fd, dc_flag);
 	setup_output(data);
 	setup_primary(data);
+	igt_require(!psr_disabled_check(data->debugfs_fd));
 	igt_assert(psr_wait_entry(data->debugfs_fd, data->op_psr_mode, NULL));
 	check_dc_counter(data, dc_flag, dc_counter_before_psr);
 	cleanup_dc_psr(data);
@@ -605,6 +606,7 @@ static void test_pkgc_state_psr(data_t *data)
 	prev_value = read_pkgc_counter(data->debugfs_root_fd);
 	setup_output(data);
 	setup_primary(data);
+	igt_require(!psr_disabled_check(data->debugfs_fd));
 	igt_assert(psr_wait_entry(data->debugfs_fd, data->op_psr_mode, NULL));
 	psr_dpms(data, DRM_MODE_DPMS_OFF);
 	igt_wait((cur_value = read_pkgc_counter(data->debugfs_root_fd)) > prev_value,
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-03-28 10:33 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-26 13:20 [PATCH i-g-t 1/2] tests/kms_pm_dc: Ensure PSR is enabled Jouni Högander
2024-03-26 13:20 ` [PATCH i-g-t 2/2] tests/kms_dirtyfb: " Jouni Högander
2024-03-27  8:04   ` Thasleem, Mohammed
2024-03-26 18:40 ` ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/2] tests/kms_pm_dc: " Patchwork
2024-03-26 18:43 ` ✓ CI.xeBAT: " Patchwork
2024-03-27  6:42 ` [PATCH i-g-t 1/2] " Thasleem, Mohammed
2024-03-28 10:33   ` Hogander, Jouni
2024-03-27  9:52 ` ✓ CI.xeBAT: success for series starting with [i-g-t,1/2] tests/kms_pm_dc: Ensure PSR is enabled (rev2) Patchwork
2024-03-27 10:02 ` ✓ Fi.CI.BAT: " Patchwork
2024-03-27 14:21 ` ✗ Fi.CI.IGT: failure for series starting with [i-g-t,1/2] tests/kms_pm_dc: Ensure PSR is enabled Patchwork
2024-03-28  2:20 ` ✗ Fi.CI.IGT: failure for series starting with [i-g-t,1/2] tests/kms_pm_dc: Ensure PSR is enabled (rev2) Patchwork
2024-03-28 10:24   ` Hogander, Jouni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.