[i-g-t v6 1/4] lib/xe: Fix a comment error

Zbigniew Kempczyński zbigniew.kempczynski at intel.com
Tue Mar 11 06:56:14 UTC 2025


On Mon, Feb 24, 2025 at 12:40:07PM -0500, Oak Zeng wrote:
> The timeout value of __xe_wait_ufence returns the
> remaining time, not elapsed time. Fix it.

Reviewed-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>

--
Zbigniew

> 
> Signed-off-by: Oak Zeng <oak.zeng at intel.com>
> ---
>  lib/xe/xe_ioctl.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/xe/xe_ioctl.c b/lib/xe/xe_ioctl.c
> index 6d8388918..028102aa2 100644
> --- a/lib/xe/xe_ioctl.c
> +++ b/lib/xe/xe_ioctl.c
> @@ -496,7 +496,7 @@ void xe_exec_wait(int fd, uint32_t exec_queue, uint64_t addr)
>   *
>   * Function compares @value with memory pointed by @addr until they are equal.
>   *
> - * Returns (in @timeout), the elapsed time in nanoseconds if user fence was
> + * Returns (in @timeout), the remaining time in nanoseconds if user fence was
>   * signalled. Returns 0 on success, -errno of ioctl on error.
>   */
>  int __xe_wait_ufence(int fd, uint64_t *addr, uint64_t value,
> -- 
> 2.26.3
> 


More information about the igt-dev mailing list