aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2010-11-17 07:28:31 -0500
committerDave Airlie <airlied@redhat.com>2010-11-21 22:25:21 -0500
commit65705962025df490d13df59ec57c5329d1bd0a16 (patch)
treeaa9d40bbd1a842aaada664d9d0fa6a317ec1755f /include/drm
parent95762c2b34069bf4adb7929969f1f5f5fc8a38df (diff)
drm/ttm/vmwgfx: Have TTM manage the validation sequence.
Rather than having the driver supply the validation sequence, leave that responsibility to TTM. This saves some confusion and a function argument. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/ttm/ttm_bo_driver.h2
-rw-r--r--include/drm/ttm/ttm_execbuf_util.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/include/drm/ttm/ttm_bo_driver.h b/include/drm/ttm/ttm_bo_driver.h
index cfb9ca4ec1c4..e3b2e245db1b 100644
--- a/include/drm/ttm/ttm_bo_driver.h
+++ b/include/drm/ttm/ttm_bo_driver.h
@@ -515,6 +515,7 @@ struct ttm_bo_global {
515 * @addr_space_mm: Range manager for the device address space. 515 * @addr_space_mm: Range manager for the device address space.
516 * lru_lock: Spinlock that protects the buffer+device lru lists and 516 * lru_lock: Spinlock that protects the buffer+device lru lists and
517 * ddestroy lists. 517 * ddestroy lists.
518 * @val_seq: Current validation sequence.
518 * @nice_mode: Try nicely to wait for buffer idle when cleaning a manager. 519 * @nice_mode: Try nicely to wait for buffer idle when cleaning a manager.
519 * If a GPU lockup has been detected, this is forced to 0. 520 * If a GPU lockup has been detected, this is forced to 0.
520 * @dev_mapping: A pointer to the struct address_space representing the 521 * @dev_mapping: A pointer to the struct address_space representing the
@@ -544,6 +545,7 @@ struct ttm_bo_device {
544 * Protected by the global:lru lock. 545 * Protected by the global:lru lock.
545 */ 546 */
546 struct list_head ddestroy; 547 struct list_head ddestroy;
548 uint32_t val_seq;
547 549
548 /* 550 /*
549 * Protected by load / firstopen / lastclose /unload sync. 551 * Protected by load / firstopen / lastclose /unload sync.
diff --git a/include/drm/ttm/ttm_execbuf_util.h b/include/drm/ttm/ttm_execbuf_util.h
index 535ab00407e0..26cc7f9ffa41 100644
--- a/include/drm/ttm/ttm_execbuf_util.h
+++ b/include/drm/ttm/ttm_execbuf_util.h
@@ -72,7 +72,6 @@ extern void ttm_eu_backoff_reservation(struct list_head *list);
72 * function ttm_eu_reserve_buffers 72 * function ttm_eu_reserve_buffers
73 * 73 *
74 * @list: thread private list of ttm_validate_buffer structs. 74 * @list: thread private list of ttm_validate_buffer structs.
75 * @val_seq: A unique sequence number.
76 * 75 *
77 * Tries to reserve bos pointed to by the list entries for validation. 76 * Tries to reserve bos pointed to by the list entries for validation.
78 * If the function returns 0, all buffers are marked as "unfenced", 77 * If the function returns 0, all buffers are marked as "unfenced",
@@ -94,7 +93,7 @@ extern void ttm_eu_backoff_reservation(struct list_head *list);
94 * has failed. 93 * has failed.
95 */ 94 */
96 95
97extern int ttm_eu_reserve_buffers(struct list_head *list, uint32_t val_seq); 96extern int ttm_eu_reserve_buffers(struct list_head *list);
98 97
99/** 98/**
100 * function ttm_eu_fence_buffer_objects. 99 * function ttm_eu_fence_buffer_objects.