From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4B91610E108 for ; Thu, 29 Jun 2023 06:55:39 +0000 (UTC) Message-ID: Date: Thu, 29 Jun 2023 08:55:29 +0200 Content-Language: en-US To: =?UTF-8?Q?Zbigniew_Kempczy=c5=84ski?= References: <20230629064807.557491-1-zbigniew.kempczynski@intel.com> From: Karolina Stolarek In-Reply-To: <20230629064807.557491-1-zbigniew.kempczynski@intel.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Subject: Re: [igt-dev] [PATCH i-g-t] tests/xe_vm: Fix missing jiffies -> nanoseconds conversion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: igt-dev@lists.freedesktop.org Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: 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 > > Signed-off-by: Zbigniew Kempczyński > Cc: Kamil Konieczny > --- > 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,