Skip to contentSkip to conversation

drm/ttm: fix documentation of ttm_bo_reserve

PATCH In review Nicolai Hähnle 1 participant 1 message Dec 12, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/3 drm/ttm: fix documentation of ttm_bo_reserve

From: Nicolai Hähnle <[email protected]>

Previously, the comment was inconsistent. EDEADLK is what the ww_mutex mechanism really returns.

---
 include/drm/ttm/ttm_bo_driver.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/drm/ttm/ttm_bo_driver.h +2 -2
index 813042c..3d4bf08 100644
@@ -826,10 +826,10 @@ static inline int __ttm_bo_reserve(struct ttm_buffer_object *bo,
  * reserved, the validation sequence is checked against the validation
  * sequence of the process currently reserving the buffer,
  * and if the current validation sequence is greater than that of the process
- * holding the reservation, the function returns -EAGAIN. Otherwise it sleeps
+ * holding the reservation, the function returns -EDEADLK. Otherwise it sleeps
  * waiting for the buffer to become unreserved, after which it retries
  * reserving.
- * The caller should, when receiving an -EAGAIN error
+ * The caller should, when receiving an -EDEADLK error
  * release all its buffer reservations, wait for @bo to become unreserved, and
  * then rerun the validation with the same validation sequence. This procedure
  * will always guarantee that the process with the lowest validation sequence
Signature · 6 lines
2.5.0

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel