From: Matthew Brost <matthew.brost@intel.com>
To: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t 1/2] lib/xe_query: Add milliseconds to nanoseconds macro
Date: Tue, 27 Jun 2023 16:47:21 +0000 [thread overview]
Message-ID: <ZJsSmbU/W+HhMT/h@DUT025-TGLU.fm.intel.com> (raw)
In-Reply-To: <20230627161407.344961-2-zbigniew.kempczynski@intel.com>
On Tue, Jun 27, 2023 at 06:14:06PM +0200, Zbigniew Kempczyński wrote:
> We're going to change xe uapi to use nanoseconds so all tests which
> currently are passing jiffies have to be altered.
>
> Add MS_TO_NS() macro to make this work easier.
>
> Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
> ---
> lib/xe/xe_query.h | 2 ++
> tests/xe/xe_waitfence.c | 1 -
> 2 files changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/lib/xe/xe_query.h b/lib/xe/xe_query.h
> index 943ca558a5..cca2c9aae5 100644
> --- a/lib/xe/xe_query.h
> +++ b/lib/xe/xe_query.h
> @@ -99,4 +99,6 @@ bool xe_has_engine_class(int fd, uint16_t engine_class);
> struct xe_device *xe_device_get(int fd);
> void xe_device_put(int fd);
>
> +#define MS_TO_NS(ms) (((int64_t)ms) * 1000000)
> +
> #endif /* XE_QUERY_H */
> diff --git a/tests/xe/xe_waitfence.c b/tests/xe/xe_waitfence.c
> index c6b2db125c..7763a556c7 100644
> --- a/tests/xe/xe_waitfence.c
> +++ b/tests/xe/xe_waitfence.c
> @@ -38,7 +38,6 @@ static void do_bind(int fd, uint32_t vm, uint32_t bo, uint64_t offset,
> xe_vm_bind(fd, vm, bo, offset, addr, size, sync, 1);
> }
>
> -#define MS_TO_NS(ms) (((int64_t)ms) * 1000000)
> enum waittype {
> RELTIME,
> ABSTIME,
> --
> 2.34.1
>
next prev parent reply other threads:[~2023-06-27 16:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-27 16:14 [igt-dev] [PATCH i-g-t 0/2] Change all user wait fence tests to nanoseconds Zbigniew Kempczyński
2023-06-27 16:14 ` [igt-dev] [PATCH i-g-t 1/2] lib/xe_query: Add milliseconds to nanoseconds macro Zbigniew Kempczyński
2023-06-27 16:47 ` Matthew Brost [this message]
2023-06-27 16:14 ` [igt-dev] [PATCH i-g-t 2/2] tests/xe_*: Use nanoseconds instead jiffies in wait user fence Zbigniew Kempczyński
2023-06-27 16:48 ` Matthew Brost
2023-06-27 17:21 ` [igt-dev] ✓ Fi.CI.BAT: success for Change all user wait fence tests to nanoseconds Patchwork
2023-06-28 7:52 ` [igt-dev] ✗ Fi.CI.IGT: failure " 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=ZJsSmbU/W+HhMT/h@DUT025-TGLU.fm.intel.com \
--to=matthew.brost@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=zbigniew.kempczynski@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