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

Kandpal, Suraj suraj.kandpal at intel.com
Mon Jul 29 06:42:45 UTC 2024



> -----Original Message-----
> From: Naladala, Ramanaidu <ramanaidu.naladala at intel.com>
> Sent: Friday, July 26, 2024 3:38 PM
> To: igt-dev at lists.freedesktop.org
> Cc: B, Jeevan <jeevan.b at intel.com>; Kandpal, Suraj
> <suraj.kandpal at intel.com>; Konieczny, Kamil <kamil.konieczny at intel.com>;
> Naladala, Ramanaidu <ramanaidu.naladala at intel.com>
> Subject: [PATCH i-g-t v3 2/4] tests/intel/kms_pm_dc: Update test duration to
> 4 seconds
> 
> 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)
> 
> Signed-off-by: Naladala Ramanaidu <ramanaidu.naladala at intel.com>
> ---
>  tests/intel/kms_pm_dc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/intel/kms_pm_dc.c b/tests/intel/kms_pm_dc.c index
> 3d37d4a25..09d362694 100644
> --- a/tests/intel/kms_pm_dc.c
> +++ b/tests/intel/kms_pm_dc.c
> @@ -592,7 +592,7 @@ 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), duration = 4, delay;

I feel declaring them in new line looks cleaner.

Regards,
Suraj Kandpal;
>  	enum pipe pipe;
>  	bool pkgc_flag = false;
>  	bool flip = true;
> --
> 2.43.0



More information about the igt-dev mailing list