[i-g-t v7 1/4] lib/xe: Fix a comment error
Oak Zeng
oak.zeng at intel.com
Wed Mar 19 22:42:28 UTC 2025
The timeout value of __xe_wait_ufence and xe_wait_ufence
returns the remaining time, not elapsed time. Fix it.
Signed-off-by: Oak Zeng <oak.zeng at intel.com>
Reviewed-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
---
lib/xe/xe_ioctl.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/xe/xe_ioctl.c b/lib/xe/xe_ioctl.c
index 6d8388918..a0d8c8f3d 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,
@@ -532,7 +532,7 @@ int __xe_wait_ufence(int fd, uint64_t *addr, uint64_t value,
* Function compares @value with memory pointed by @addr until they are equal.
* Asserts that ioctl returned without error.
*
- * Returns elapsed time in nanoseconds if user fence was signalled.
+ * Returns remaining time in nanoseconds if user fence was signalled.
*/
int64_t xe_wait_ufence(int fd, uint64_t *addr, uint64_t value,
uint32_t exec_queue, int64_t timeout)
--
2.26.3
More information about the igt-dev
mailing list