[PATCH i-g-t 3/4] tests/kms_dirtyfb: disable psr feature only if psr possible
Vinod Govindapillai
vinod.govindapillai at intel.com
Fri Jun 7 14:57:31 UTC 2024
When kms_dirtyfb tests are executed on cases where PSR is not
possible the tests are getting skipped. This is because igt_skip
is use in psr_set function. So avoid calling the psr_disable if
not necessary.
Signed-off-by: Vinod Govindapillai <vinod.govindapillai at intel.com>
---
tests/intel/kms_dirtyfb.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/intel/kms_dirtyfb.c b/tests/intel/kms_dirtyfb.c
index 6121599ec..2a32fab56 100644
--- a/tests/intel/kms_dirtyfb.c
+++ b/tests/intel/kms_dirtyfb.c
@@ -169,7 +169,10 @@ static void check_feature(data_t *data)
static void disable_features(data_t *data)
{
intel_fbc_disable(data->drm_fd);
- psr_disable(data->drm_fd, data->debugfs_fd, NULL);
+
+ if (psr_sink_support(data->drm_fd, data->debugfs_fd, PSR_MODE_1, NULL))
+ psr_disable(data->drm_fd, data->debugfs_fd, NULL);
+
intel_drrs_disable(data->drm_fd, data->pipe);
}
--
2.34.1
More information about the igt-dev
mailing list