[PATCH i-g-t v6 3/4] tests/intel/kms_pm_dc: Update test duration to 4 seconds
Naladala Ramanaidu
ramanaidu.naladala at intel.com
Mon Sep 2 08:59:42 UTC 2024
Extend the test time to account for features causing
delayed C10 state entry. Considering CI execution time, we have
set the sequence to 4 seconds. For the first 2-3 seconds, we run
at the maximum refresh rate and then change the refresh rate to
emulate extended vblank for the remaining 4 seconds.
v2: Split the patch into two. (Kamil)
v3: Declare variable in new line. (Suraj)
v4: Fix magic number. (suraj)
Signed-off-by: Naladala Ramanaidu <ramanaidu.naladala at intel.com>
Reviewed-by: Suraj Kandpal <suraj.kandpal at intel.com>
---
tests/intel/kms_pm_dc.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/intel/kms_pm_dc.c b/tests/intel/kms_pm_dc.c
index 2d03ba4c5..75262c79d 100644
--- a/tests/intel/kms_pm_dc.c
+++ b/tests/intel/kms_pm_dc.c
@@ -592,7 +592,9 @@ static unsigned int read_pkgc_counter(int debugfs_root_fd)
static void test_deep_pkgc_state(data_t *data)
{
unsigned int pre_val = 0, cur_val = 0;
- time_t start = time(NULL), duration = 2, delay;
+ time_t start = time(NULL);
+ time_t duration = (4 * SEC);
+ time_t delay;
enum pipe pipe;
bool pkgc_flag = false;
bool flip = true;
--
2.43.0
More information about the igt-dev
mailing list