Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [i-g-t 1/4] lib/xe: Fix a comment error
@ 2025-02-13  2:19 Oak Zeng
  2025-02-13  2:19 ` [i-g-t 2/4] lib/xe/xe_util: Introduce helper functions for buffer creation and command submission etc Oak Zeng
                   ` (7 more replies)
  0 siblings, 8 replies; 11+ messages in thread
From: Oak Zeng @ 2025-02-13  2:19 UTC (permalink / raw)
  To: igt-dev; +Cc: Thomas.Hellstrom, matthew.brost

The timeout value of __xe_wait_ufence returns the
remaining time, not elapsed time. Fix it.

Signed-off-by: Oak Zeng <oak.zeng@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


^ permalink raw reply related	[flat|nested] 11+ messages in thread
* [i-g-t 1/4] lib/xe: Fix a comment error
@ 2025-02-13 15:40 Oak Zeng
  2025-02-13 15:40 ` [i-g-t 4/4] tests/intel/xe_exec_fault_mode: Test scratch page under fault mode Oak Zeng
  0 siblings, 1 reply; 11+ messages in thread
From: Oak Zeng @ 2025-02-13 15:40 UTC (permalink / raw)
  To: igt-dev; +Cc: Thomas.Hellstrom, matthew.brost

The timeout value of __xe_wait_ufence returns the
remaining time, not elapsed time. Fix it.

Signed-off-by: Oak Zeng <oak.zeng@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


^ permalink raw reply related	[flat|nested] 11+ messages in thread
* [i-g-t 1/4] lib/xe: Fix a comment error
@ 2025-02-13 22:27 Oak Zeng
  2025-02-13 22:27 ` [i-g-t 4/4] tests/intel/xe_exec_fault_mode: Test scratch page under fault mode Oak Zeng
  0 siblings, 1 reply; 11+ messages in thread
From: Oak Zeng @ 2025-02-13 22:27 UTC (permalink / raw)
  To: igt-dev; +Cc: Thomas.Hellstrom, matthew.brost

The timeout value of __xe_wait_ufence returns the
remaining time, not elapsed time. Fix it.

Signed-off-by: Oak Zeng <oak.zeng@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


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-02-13 22:11 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-13  2:19 [i-g-t 1/4] lib/xe: Fix a comment error Oak Zeng
2025-02-13  2:19 ` [i-g-t 2/4] lib/xe/xe_util: Introduce helper functions for buffer creation and command submission etc Oak Zeng
2025-02-13  2:19 ` [i-g-t 3/4] tests/intel/xe_vm: Exclude invalid_flags tests from LNL and BMG Oak Zeng
2025-02-13  2:19 ` [i-g-t 4/4] tests/intel/xe_exec_fault_mode: Test scratch page under fault mode Oak Zeng
2025-02-13  3:03 ` ✗ GitLab.Pipeline: warning for series starting with [i-g-t,1/4] lib/xe: Fix a comment error Patchwork
2025-02-13  3:35 ` ✓ i915.CI.BAT: success " Patchwork
2025-02-13  3:56 ` ✓ Xe.CI.BAT: " Patchwork
2025-02-13 13:26 ` ✗ i915.CI.Full: failure " Patchwork
2025-02-13 17:47 ` ✗ Xe.CI.Full: " Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2025-02-13 15:40 [i-g-t 1/4] " Oak Zeng
2025-02-13 15:40 ` [i-g-t 4/4] tests/intel/xe_exec_fault_mode: Test scratch page under fault mode Oak Zeng
2025-02-13 22:27 [i-g-t 1/4] lib/xe: Fix a comment error Oak Zeng
2025-02-13 22:27 ` [i-g-t 4/4] tests/intel/xe_exec_fault_mode: Test scratch page under fault mode Oak Zeng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox