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

Thasleem, Mohammed mohammed.thasleem at intel.com
Wed Mar 27 08:04:00 UTC 2024


LGTM:
Reviewed-by: Mohammed Thasleem <mohammed.thasleem at intel.com>

-----Original Message-----
From: igt-dev <igt-dev-bounces at lists.freedesktop.org> On Behalf Of Jouni Högander
Sent: Tuesday, March 26, 2024 6:50 PM
To: igt-dev at lists.freedesktop.org
Cc: Hogander, Jouni <jouni.hogander at intel.com>
Subject: [PATCH i-g-t 2/2] tests/kms_dirtyfb: Ensure PSR is enabled

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