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

Kandpal, Suraj suraj.kandpal at intel.com
Fri Aug 23 03:50:24 UTC 2024



> -----Original Message-----
> From: Naladala, Ramanaidu <ramanaidu.naladala at intel.com>
> Sent: Friday, August 23, 2024 12:13 AM
> To: intel-gfx-trybot at lists.freedesktop.org
> Cc: Kandpal, Suraj <suraj.kandpal at intel.com>; B, Jeevan <jeevan.b at intel.com>;
> Naladala, Ramanaidu <ramanaidu.naladala at intel.com>
> Subject: [PATCH i-g-t v5 3/4] tests/intel/kms_pm_dc: Update test duration to 4
> seconds
> 
> 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>

LGTM,
Reviewed-by: Suraj Kandpal <suraj.kandpal 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
> 5367b40f2..9c2db76cb 100644
> --- a/tests/intel/kms_pm_dc.c
> +++ b/tests/intel/kms_pm_dc.c
> @@ -593,7 +593,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 = SECS(4), delay;
>  	enum pipe pipe;
>  	bool pkgc_flag = false;
>  	bool flip = true;
> --
> 2.43.0



More information about the Intel-gfx-trybot mailing list