[PATCH i-g-t v4 2/4] tests/intel/kms_pm_dc: Update test duration to 4 seconds

Naladala Ramanaidu ramanaidu.naladala at intel.com
Sun Aug 11 20:03:57 UTC 2024


Certain features can prevent timely entry into the C10 state,
causing inconsistent results. So increase test time to get
accurate results.

v2: Split the patch into two. (Kamil)
v3: Declare variable in new line. (Suraj)

Signed-off-by: Naladala Ramanaidu <ramanaidu.naladala at intel.com>
---
 tests/intel/kms_pm_dc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/intel/kms_pm_dc.c b/tests/intel/kms_pm_dc.c
index 367bf4303..565c3d48d 100644
--- a/tests/intel/kms_pm_dc.c
+++ b/tests/intel/kms_pm_dc.c
@@ -591,7 +591,8 @@ 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, delay;
 	enum pipe pipe;
 	bool pkgc_flag = false;
 	bool flip = true;
-- 
2.43.0



More information about the igt-dev mailing list