Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: Harish Chegondi <harish.chegondi@intel.com>
Cc: <igt-dev@lists.freedesktop.org>
Subject: Re: [PATCH i-g-t 1/1] tests/intel/xe_eu_stall: Use the fastest sampling rate from the query IOCTL data
Date: Wed, 10 Sep 2025 18:45:22 -0700	[thread overview]
Message-ID: <87o6rh69u5.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <6701e36ca7746494aa9358448652be7fc819d51f.1757554496.git.harish.chegondi@intel.com>

On Wed, 10 Sep 2025 18:36:13 -0700, Harish Chegondi wrote:
>
> Earlier commit 157b34af65168 ("tests/intel/xe_eu_stall: Use default sampling rate
> from the query IOCTL data") used a mid sampling rate from those returned
> from the query IOCTL, if the user doesn't pass a sampling rate. However, some
> GPUs, sometimes, aren't generating any EU stall data with the mid sampling
> rate with 100 iterations of GPGPU fill. So, Use the fastest sampling rate
> from the query IOCTL data so that there is always some EU stall data
> generated with GPGPU fill.

Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>

>
> Cc: Ashutosh Dixit <ashutosh.dixit@intel.com>
> Signed-off-by: Harish Chegondi <harish.chegondi@intel.com>
> ---
>  tests/intel/xe_eu_stall.c | 8 +++-----
>  1 file changed, 3 insertions(+), 5 deletions(-)
>
> diff --git a/tests/intel/xe_eu_stall.c b/tests/intel/xe_eu_stall.c
> index f09e525eb..f5c57a9b3 100644
> --- a/tests/intel/xe_eu_stall.c
> +++ b/tests/intel/xe_eu_stall.c
> @@ -648,7 +648,7 @@ igt_main_args("e:g:o:r:u:w:", long_options, help_str, opt_handler, NULL)
>  {
>	bool blocking_read = true;
>	struct xe_device *xe_dev;
> -	int drm_fd, idx;
> +	int drm_fd;
>	uint32_t devid;
>	struct stat sb;
>
> @@ -665,10 +665,8 @@ igt_main_args("e:g:o:r:u:w:", long_options, help_str, opt_handler, NULL)
>		query_eu_stall_data = xe_dev->eu_stall;
>		igt_assert(query_eu_stall_data->num_sampling_rates > 0);
>		/* If the user doesn't pass a sampling rate, use a mid sampling rate */
> -		if (p_rate == 0) {
> -			idx = query_eu_stall_data->num_sampling_rates / 2;
> -			p_rate = query_eu_stall_data->sampling_rates[idx];
> -		}
> +		if (p_rate == 0)
> +			p_rate = query_eu_stall_data->sampling_rates[0];
>
>		if (output_file) {
>			output = fopen(output_file, "w");
> --
> 2.51.0
>

  reply	other threads:[~2025-09-11  1:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-11  1:36 [PATCH i-g-t 1/1] tests/intel/xe_eu_stall: Use the fastest sampling rate from the query IOCTL data Harish Chegondi
2025-09-11  1:45 ` Dixit, Ashutosh [this message]
2025-09-11  2:05 ` ✓ Xe.CI.BAT: success for series starting with [i-g-t,1/1] " Patchwork
2025-09-11  5:57 ` ✓ i915.CI.BAT: " Patchwork
2025-09-11  8:18 ` ✗ Xe.CI.Full: failure " Patchwork
2025-09-11 18:48 ` ✗ i915.CI.Full: " 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=87o6rh69u5.wl-ashutosh.dixit@intel.com \
    --to=ashutosh.dixit@intel.com \
    --cc=harish.chegondi@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    /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