[PATCH i-g-t 2/2] tests/kms_dirtyfb: Ensure PSR is enabled

Jouni Högander jouni.hogander at intel.com
Tue Mar 26 13:20:12 UTC 2024


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/9735
Signed-off-by: Jouni Högander <jouni.hogander at intel.com>
---
 tests/intel/kms_dirtyfb.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/intel/kms_dirtyfb.c b/tests/intel/kms_dirtyfb.c
index 9e4832929..6121599ec 100644
--- a/tests/intel/kms_dirtyfb.c
+++ b/tests/intel/kms_dirtyfb.c
@@ -151,6 +151,7 @@ static void check_feature(data_t *data)
 			     "FBC still disabled\n");
 		break;
 	case FEATURE_PSR:
+		igt_require(!psr_disabled_check(data->debugfs_fd));
 		igt_assert_f(psr_wait_entry(data->debugfs_fd, PSR_MODE_1, NULL),
 			     "PSR still disabled\n");
 		break;
-- 
2.34.1



More information about the igt-dev mailing list