Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Naladala Ramanaidu <ramanaidu.naladala@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: suraj.kandpal@intel.com, jeevan.b@intel.com,
	Naladala Ramanaidu <ramanaidu.naladala@intel.com>
Subject: [PATCH i-g-t v5 3/4] tests/intel/kms_pm_dc: Update test duration to 4 seconds
Date: Tue, 27 Aug 2024 18:10:17 +0530	[thread overview]
Message-ID: <20240827124018.1373304-4-ramanaidu.naladala@intel.com> (raw)
In-Reply-To: <20240827124018.1373304-1-ramanaidu.naladala@intel.com>

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@intel.com>
Reviewed-by: Suraj Kandpal <suraj.kandpal@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 b9bee3523..a69876fc7 100644
--- a/tests/intel/kms_pm_dc.c
+++ b/tests/intel/kms_pm_dc.c
@@ -593,7 +593,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


  parent reply	other threads:[~2024-08-27 12:40 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-27 12:40 [PATCH i-g-t v5 0/4] Improvise-the-deep-pkgc Naladala Ramanaidu
2024-08-27 12:40 ` [PATCH i-g-t v5 1/4] tests/intel/kms_pm_dc: Add time unit macros and update delay calculation Naladala Ramanaidu
2024-08-28  5:53   ` Kandpal, Suraj
2024-08-27 12:40 ` [PATCH i-g-t v5 2/4] tests/intel/kms_pm_dc: Update VRR handling and eDP output check Naladala Ramanaidu
2024-08-28  5:56   ` Kandpal, Suraj
2024-08-27 12:40 ` Naladala Ramanaidu [this message]
2024-08-27 12:40 ` [PATCH i-g-t v5 4/4] tests/intel/kms_pm_dc: Add polling for deep-pkgc Naladala Ramanaidu
2024-08-28  5:51   ` Kandpal, Suraj
2024-08-27 17:23 ` ✓ CI.xeBAT: success for Improvise-the-deep-pkgc (rev5) Patchwork
2024-08-27 17:35 ` ✓ Fi.CI.BAT: " Patchwork
2024-08-28  2:04 ` ✓ CI.xeFULL: " Patchwork
2024-08-28  5:48 ` [PATCH i-g-t v5 0/4] Improvise-the-deep-pkgc Kandpal, Suraj
2024-08-28  6:32   ` Naladala, Ramanaidu
2024-08-29  5:07 ` ✓ Fi.CI.IGT: success for Improvise-the-deep-pkgc (rev5) Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240827124018.1373304-4-ramanaidu.naladala@intel.com \
    --to=ramanaidu.naladala@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=jeevan.b@intel.com \
    --cc=suraj.kandpal@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox