Commit 90d4aa20 authored by Christian König's avatar Christian König

drm/ttm: fix resource manager size type and description

Leave the man->size units as driver defined.
Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220214093439.2989-1-christian.koenig@amd.comReviewed-by: default avatarMatthew Auld <matthew.auld@intel.com>
parent 8f8dbb35
...@@ -153,19 +153,19 @@ void ttm_resource_set_bo(struct ttm_resource *res, ...@@ -153,19 +153,19 @@ void ttm_resource_set_bo(struct ttm_resource *res,
* *
* @man: memory manager object to init * @man: memory manager object to init
* @bdev: ttm device this manager belongs to * @bdev: ttm device this manager belongs to
* @p_size: size managed area in pages. * @size: size of managed resources in arbitrary units
* *
* Initialise core parts of a manager object. * Initialise core parts of a manager object.
*/ */
void ttm_resource_manager_init(struct ttm_resource_manager *man, void ttm_resource_manager_init(struct ttm_resource_manager *man,
struct ttm_device *bdev, struct ttm_device *bdev,
unsigned long p_size) uint64_t size)
{ {
unsigned i; unsigned i;
spin_lock_init(&man->move_lock); spin_lock_init(&man->move_lock);
man->bdev = bdev; man->bdev = bdev;
man->size = p_size; man->size = size;
for (i = 0; i < TTM_MAX_BO_PRIORITY; ++i) for (i = 0; i < TTM_MAX_BO_PRIORITY; ++i)
INIT_LIST_HEAD(&man->lru[i]); INIT_LIST_HEAD(&man->lru[i]);
......
...@@ -278,7 +278,7 @@ void ttm_resource_set_bo(struct ttm_resource *res, ...@@ -278,7 +278,7 @@ void ttm_resource_set_bo(struct ttm_resource *res,
void ttm_resource_manager_init(struct ttm_resource_manager *man, void ttm_resource_manager_init(struct ttm_resource_manager *man,
struct ttm_device *bdev, struct ttm_device *bdev,
unsigned long p_size); uint64_t size);
int ttm_resource_manager_evict_all(struct ttm_device *bdev, int ttm_resource_manager_evict_all(struct ttm_device *bdev,
struct ttm_resource_manager *man); struct ttm_resource_manager *man);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment