[PATCH i-g-t v3 2/2] tests/intel/xe_gt_freq: Add a wait after gt reset

Riana Tauro riana.tauro at intel.com
Tue Aug 20 04:44:40 UTC 2024



On 8/19/2024 3:31 PM, Karthik Poosa wrote:
> After reset min and max takes sometime to get set.
min and max frequencies
> So add a wait of 100ms after gt reset before reading
> 5min and max frequencies.
5 min? typo?

With the commit message fixes
Reviewed-by: Riana Tauro <riana.tauro at intel.com>
> 
> Signed-off-by: Karthik Poosa <karthik.poosa at intel.com>
> ---
>   tests/intel/xe_gt_freq.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/tests/intel/xe_gt_freq.c b/tests/intel/xe_gt_freq.c
> index 56cc10ade..427e12c55 100644
> --- a/tests/intel/xe_gt_freq.c
> +++ b/tests/intel/xe_gt_freq.c
> @@ -342,6 +342,7 @@ static void test_reset(int fd, int gt_id, int cycles)
>   			     "Failed after %d good cycles\n", i);
>   
>   		xe_force_gt_reset_async(fd, gt_id);
> +		usleep(SLPC_FREQ_LATENCY_US);
>   
>   		igt_assert_f(get_freq(fd, gt_id, "min") == rpn,
>   			     "Failed after %d good cycles\n", i);


More information about the igt-dev mailing list