diff options
-rw-r--r-- | drivers/gpu/drm/ttm/ttm_bo_util.c | 13 | ||||
-rw-r--r-- | include/drm/ttm/ttm_bo_driver.h | 4 |
2 files changed, 13 insertions, 4 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_bo_util.c b/drivers/gpu/drm/ttm/ttm_bo_util.c index 8be35c809c7b..af894584dd90 100644 --- a/drivers/gpu/drm/ttm/ttm_bo_util.c +++ b/drivers/gpu/drm/ttm/ttm_bo_util.c | |||
@@ -86,6 +86,7 @@ int ttm_mem_io_lock(struct ttm_mem_type_manager *man, bool interruptible) | |||
86 | mutex_lock(&man->io_reserve_mutex); | 86 | mutex_lock(&man->io_reserve_mutex); |
87 | return 0; | 87 | return 0; |
88 | } | 88 | } |
89 | EXPORT_SYMBOL(ttm_mem_io_lock); | ||
89 | 90 | ||
90 | void ttm_mem_io_unlock(struct ttm_mem_type_manager *man) | 91 | void ttm_mem_io_unlock(struct ttm_mem_type_manager *man) |
91 | { | 92 | { |
@@ -94,6 +95,7 @@ void ttm_mem_io_unlock(struct ttm_mem_type_manager *man) | |||
94 | 95 | ||
95 | mutex_unlock(&man->io_reserve_mutex); | 96 | mutex_unlock(&man->io_reserve_mutex); |
96 | } | 97 | } |
98 | EXPORT_SYMBOL(ttm_mem_io_unlock); | ||
97 | 99 | ||
98 | static int ttm_mem_io_evict(struct ttm_mem_type_manager *man) | 100 | static int ttm_mem_io_evict(struct ttm_mem_type_manager *man) |
99 | { | 101 | { |
@@ -111,8 +113,9 @@ static int ttm_mem_io_evict(struct ttm_mem_type_manager *man) | |||
111 | return 0; | 113 | return 0; |
112 | } | 114 | } |
113 | 115 | ||
114 | static int ttm_mem_io_reserve(struct ttm_bo_device *bdev, | 116 | |
115 | struct ttm_mem_reg *mem) | 117 | int ttm_mem_io_reserve(struct ttm_bo_device *bdev, |
118 | struct ttm_mem_reg *mem) | ||
116 | { | 119 | { |
117 | struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; | 120 | struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; |
118 | int ret = 0; | 121 | int ret = 0; |
@@ -134,9 +137,10 @@ retry: | |||
134 | } | 137 | } |
135 | return ret; | 138 | return ret; |
136 | } | 139 | } |
140 | EXPORT_SYMBOL(ttm_mem_io_reserve); | ||
137 | 141 | ||
138 | static void ttm_mem_io_free(struct ttm_bo_device *bdev, | 142 | void ttm_mem_io_free(struct ttm_bo_device *bdev, |
139 | struct ttm_mem_reg *mem) | 143 | struct ttm_mem_reg *mem) |
140 | { | 144 | { |
141 | struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; | 145 | struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; |
142 | 146 | ||
@@ -149,6 +153,7 @@ static void ttm_mem_io_free(struct ttm_bo_device *bdev, | |||
149 | bdev->driver->io_mem_free(bdev, mem); | 153 | bdev->driver->io_mem_free(bdev, mem); |
150 | 154 | ||
151 | } | 155 | } |
156 | EXPORT_SYMBOL(ttm_mem_io_free); | ||
152 | 157 | ||
153 | int ttm_mem_io_reserve_vm(struct ttm_buffer_object *bo) | 158 | int ttm_mem_io_reserve_vm(struct ttm_buffer_object *bo) |
154 | { | 159 | { |
diff --git a/include/drm/ttm/ttm_bo_driver.h b/include/drm/ttm/ttm_bo_driver.h index 0fbd046e7c93..9c8dca79808e 100644 --- a/include/drm/ttm/ttm_bo_driver.h +++ b/include/drm/ttm/ttm_bo_driver.h | |||
@@ -902,6 +902,10 @@ extern void ttm_bo_unreserve_locked(struct ttm_buffer_object *bo); | |||
902 | * ttm_bo_util.c | 902 | * ttm_bo_util.c |
903 | */ | 903 | */ |
904 | 904 | ||
905 | int ttm_mem_io_reserve(struct ttm_bo_device *bdev, | ||
906 | struct ttm_mem_reg *mem); | ||
907 | void ttm_mem_io_free(struct ttm_bo_device *bdev, | ||
908 | struct ttm_mem_reg *mem); | ||
905 | /** | 909 | /** |
906 | * ttm_bo_move_ttm | 910 | * ttm_bo_move_ttm |
907 | * | 911 | * |