From: Nirmoy Das <nirmoy.das@linux.intel.com>
To: Lucas De Marchi <lucas.demarchi@intel.com>,
igt-dev@lists.freedesktop.org
Cc: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Subject: Re: [PATCH i-g-t v3 06/10] tests/intel/xe_drm_fdinfo: Use usec for batch duration
Date: Wed, 28 Aug 2024 16:51:37 +0200 [thread overview]
Message-ID: <d0cc1caf-c711-42f7-9e74-cacdca9a2b0d@linux.intel.com> (raw)
In-Reply-To: <20240827165449.1706784-7-lucas.demarchi@intel.com>
On 8/27/2024 6:54 PM, Lucas De Marchi wrote:
> It's only used to control the time to usleep(), so use a better unit.
>
> Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
> ---
> tests/intel/xe_drm_fdinfo.c | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/tests/intel/xe_drm_fdinfo.c b/tests/intel/xe_drm_fdinfo.c
> index 68c21925c..9fb739fba 100644
> --- a/tests/intel/xe_drm_fdinfo.c
> +++ b/tests/intel/xe_drm_fdinfo.c
> @@ -73,7 +73,7 @@ struct pceu_cycles {
> uint64_t total_cycles;
> };
>
> -const unsigned long batch_duration_ns = (1 * NSEC_PER_SEC) / 2;
> +const unsigned long batch_duration_usec = (1 * USEC_PER_SEC) / 2;
>
> static const char *engine_map[] = {
> "rcs",
> @@ -517,7 +517,7 @@ single(int fd, struct drm_xe_engine_class_instance *hwe, unsigned int flags)
> if (flags & TEST_ISOLATION)
> read_engine_cycles(new_fd, pceu1[1]);
>
> - usleep(batch_duration_ns / 1000);
> + usleep(batch_duration_usec);
> if (flags & TEST_TRAILING_IDLE)
> spin_sync_end(fd, ctx);
>
> @@ -553,7 +553,7 @@ busy_check_all(int fd, struct drm_xe_engine_class_instance *hwe, unsigned int fl
> }
>
> read_engine_cycles(fd, pceu1);
> - usleep(batch_duration_ns / 1000);
> + usleep(batch_duration_usec);
> if (flags & TEST_TRAILING_IDLE)
> spin_sync_end(fd, ctx);
> read_engine_cycles(fd, pceu2);
> @@ -580,7 +580,7 @@ single_destroy_queue(int fd, struct drm_xe_engine_class_instance *hwe)
> spin_sync_start(fd, ctx);
>
> read_engine_cycles(fd, pceu1);
> - usleep(batch_duration_ns / 1000);
> + usleep(batch_duration_usec);
>
> /* destroy queue before sampling again */
> spin_sync_end(fd, ctx);
> @@ -619,7 +619,7 @@ most_busy_check_all(int fd, struct drm_xe_engine_class_instance *hwe,
> }
>
> read_engine_cycles(fd, pceu1);
> - usleep(batch_duration_ns / 1000);
> + usleep(batch_duration_usec);
> if (flags & TEST_TRAILING_IDLE)
> xe_for_each_engine_class(class)
> spin_sync_end(fd, ctx[class]);
> @@ -663,7 +663,7 @@ all_busy_check_all(int fd, unsigned int flags)
> }
>
> read_engine_cycles(fd, pceu1);
> - usleep(batch_duration_ns / 1000);
> + usleep(batch_duration_usec);
> if (flags & TEST_TRAILING_IDLE)
> xe_for_each_engine_class(class)
> spin_sync_end(fd, ctx[class]);
next prev parent reply other threads:[~2024-08-28 14:51 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-27 16:54 [PATCH i-g-t v3 00/10] tests/intel/xe_drm_fdinfo: Fix noise and improve Lucas De Marchi
2024-08-27 16:54 ` [PATCH i-g-t v3 01/10] tests/intel/xe_drm_fdinfo: Extend mercy to the upper end Lucas De Marchi
2024-08-28 14:44 ` Nirmoy Das
2024-08-28 14:46 ` Nirmoy Das
2024-08-27 16:54 ` [PATCH i-g-t v3 02/10] tests/intel/xe_drm_fdinfo: Print timestamp for debug Lucas De Marchi
2024-08-28 14:45 ` Nirmoy Das
2024-08-27 16:54 ` [PATCH i-g-t v3 03/10] lib/igt_core: Add igt_assert_lt_double() Lucas De Marchi
2024-08-28 14:46 ` Nirmoy Das
2024-08-27 16:54 ` [PATCH i-g-t v3 04/10] tests/intel/xe_drm_fdinfo: Use igt_assert_lt_double() Lucas De Marchi
2024-08-28 14:48 ` Nirmoy Das
2024-08-27 16:54 ` [PATCH i-g-t v3 05/10] tests/intel/xe_drm_fdinfo: Be strict on == 0 comparison Lucas De Marchi
2024-08-28 14:51 ` Nirmoy Das
2024-08-27 16:54 ` [PATCH i-g-t v3 06/10] tests/intel/xe_drm_fdinfo: Use usec for batch duration Lucas De Marchi
2024-08-28 14:51 ` Nirmoy Das [this message]
2024-08-27 16:54 ` [PATCH i-g-t v3 07/10] tests/intel/xe_drm_fdinfo: Half the execution time Lucas De Marchi
2024-08-28 14:52 ` Nirmoy Das
2024-08-27 16:54 ` [PATCH i-g-t v3 08/10] tests/intel/xe_drm_fdinfo: Remove unused flags Lucas De Marchi
2024-08-28 15:00 ` Nirmoy Das
2024-08-27 16:54 ` [PATCH i-g-t v3 09/10] tests/intel/xe_drm_fdinfo: Use enum with expected load Lucas De Marchi
2024-08-28 14:56 ` Nirmoy Das
2024-08-27 16:54 ` [PATCH i-g-t v3 10/10] tests/intel/xe_drm_fdinfo: Rename and reorder tests Lucas De Marchi
2024-08-28 15:08 ` Nirmoy Das
2024-08-28 15:14 ` Nirmoy Das
2024-08-27 18:27 ` ✓ CI.xeBAT: success for tests/intel/xe_drm_fdinfo: Fix noise and improve (rev2) Patchwork
2024-08-27 18:38 ` ✗ Fi.CI.BAT: failure " Patchwork
2024-08-28 4:05 ` ✗ CI.xeFULL: " 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=d0cc1caf-c711-42f7-9e74-cacdca9a2b0d@linux.intel.com \
--to=nirmoy.das@linux.intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=lucas.demarchi@intel.com \
--cc=umesh.nerlige.ramappa@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