All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 01/11] drm/ttm: fix resource manager size type and description
@ 2022-02-14  9:34 Christian König
  2022-02-14  9:34 ` [PATCH 02/11] drm/ttm: add common accounting to the resource mgr v3 Christian König
                   ` (11 more replies)
  0 siblings, 12 replies; 25+ messages in thread
From: Christian König @ 2022-02-14  9:34 UTC (permalink / raw)
  To: matthew.william.auld, daniel, thomas.hellstrom, felix.kuehling,
	dri-devel

That are not pages any more.

Signed-off-by: Christian König <christian.koenig@amd.com>
---
 drivers/gpu/drm/ttm/ttm_resource.c | 6 +++---
 include/drm/ttm/ttm_resource.h     | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/ttm/ttm_resource.c b/drivers/gpu/drm/ttm/ttm_resource.c
index 68344c90549b..ae40e144e728 100644
--- a/drivers/gpu/drm/ttm/ttm_resource.c
+++ b/drivers/gpu/drm/ttm/ttm_resource.c
@@ -153,19 +153,19 @@ void ttm_resource_set_bo(struct ttm_resource *res,
  *
  * @man: memory manager object to init
  * @bdev: ttm device this manager belongs to
- * @p_size: size managed area in pages.
+ * @size: size of managed resources in arbitary units
  *
  * Initialise core parts of a manager object.
  */
 void ttm_resource_manager_init(struct ttm_resource_manager *man,
 			       struct ttm_device *bdev,
-			       unsigned long p_size)
+			       uint64_t size)
 {
 	unsigned i;
 
 	spin_lock_init(&man->move_lock);
 	man->bdev = bdev;
-	man->size = p_size;
+	man->size = size;
 
 	for (i = 0; i < TTM_MAX_BO_PRIORITY; ++i)
 		INIT_LIST_HEAD(&man->lru[i]);
diff --git a/include/drm/ttm/ttm_resource.h b/include/drm/ttm/ttm_resource.h
index 69eea9d6399b..555a11fb8a7f 100644
--- a/include/drm/ttm/ttm_resource.h
+++ b/include/drm/ttm/ttm_resource.h
@@ -278,7 +278,7 @@ void ttm_resource_set_bo(struct ttm_resource *res,
 
 void ttm_resource_manager_init(struct ttm_resource_manager *man,
 			       struct ttm_device *bdev,
-			       unsigned long p_size);
+			       uint64_t size);
 
 int ttm_resource_manager_evict_all(struct ttm_device *bdev,
 				   struct ttm_resource_manager *man);
-- 
2.25.1


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

end of thread, other threads:[~2022-03-09 14:10 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-14  9:34 [PATCH 01/11] drm/ttm: fix resource manager size type and description Christian König
2022-02-14  9:34 ` [PATCH 02/11] drm/ttm: add common accounting to the resource mgr v3 Christian König
2022-02-14 10:34   ` Matthew Auld
2022-02-14 13:23     ` Christian König
2022-02-14 14:29       ` Matthew Auld
2022-02-14 15:36         ` Christian König
2022-02-14  9:34 ` [PATCH 03/11] drm/ttm: move the LRU into resource handling v3 Christian König
2022-02-14  9:34 ` [PATCH 04/11] drm/ttm: add resource iterator v2 Christian König
2022-02-14 16:09   ` Felix Kuehling
2022-02-14  9:34 ` [PATCH 05/11] drm/radeon: remove resource accounting Christian König
2022-02-14 10:59   ` Matthew Auld
2022-02-14  9:34 ` [PATCH 06/11] drm/amdgpu: remove GTT accounting v2 Christian König
2022-02-14 11:10   ` Matthew Auld
2022-02-14 13:31     ` Christian König
2022-03-09 14:10   ` Mike Lothian
2022-02-14  9:34 ` [PATCH 07/11] drm/amdgpu: remove PL_PREEMPT accounting Christian König
2022-02-14 11:14   ` Matthew Auld
2022-02-14 16:14   ` Felix Kuehling
2022-02-14  9:34 ` [PATCH 08/11] drm/amdgpu: remove VRAM accounting v2 Christian König
2022-02-14 11:20   ` Matthew Auld
2022-02-14  9:34 ` [PATCH 09/11] drm/amdgpu: drop amdgpu_gtt_node Christian König
2022-02-14  9:34 ` [PATCH 10/11] drm/ttm: allow bulk moves for all domains Christian König
2022-02-14  9:34 ` [PATCH 11/11] drm/ttm: rework bulk move handling v2 Christian König
2022-02-14  9:36 ` [PATCH 01/11] drm/ttm: fix resource manager size type and description Christian König
2022-02-14 10:27 ` Matthew Auld

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.