[igt-dev] [PATCH i-g-t] tests/xe_vm: Fix missing jiffies -> nanoseconds conversion
Karolina Stolarek
karolina.stolarek at intel.com
Thu Jun 29 06:55:29 UTC 2023
On 29.06.2023 08:48, Zbigniew Kempczyński wrote:
> In the commit 471bfababd070e1dac0ebb87470ac4f2ae85e663 I changed
> timeout granularity from ms -> ns, but I missed one occurence.
> Fix this as we need to want to stop using jiffies in xe wait
> user fence.
Reviewed-by: Karolina Stolarek <karolina.stolarek at intel.com>
>
> Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
> Cc: Kamil Konieczny <kamil.konieczny at linux.intel.com>
> ---
> tests/xe/xe_vm.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/xe/xe_vm.c b/tests/xe/xe_vm.c
> index 12ecd17fa4..04d6c39568 100644
> --- a/tests/xe/xe_vm.c
> +++ b/tests/xe/xe_vm.c
> @@ -357,7 +357,7 @@ static void *vm_async_ops_err_thread(void *data)
> .op = DRM_XE_UFENCE_WAIT_NEQ,
> .flags = DRM_XE_UFENCE_WAIT_VM_ERROR,
> .mask = DRM_XE_UFENCE_WAIT_U32,
> - .timeout = 1000,
> + .timeout = MS_TO_NS(1000),
> };
>
> igt_assert_eq(igt_ioctl(fd, DRM_IOCTL_XE_WAIT_USER_FENCE,
More information about the igt-dev
mailing list