* [PATCH] drm/ttm: Doc the unit of ttm_resource_manager.usage
@ 2023-05-09 14:03 Nirmoy Das
2023-05-10 9:45 ` Karolina Stolarek
0 siblings, 1 reply; 2+ messages in thread
From: Nirmoy Das @ 2023-05-09 14:03 UTC (permalink / raw)
To: dri-devel
Cc: Thomas Hellström, Christian König, Anshuman Gupta, Nirmoy Das
Document the unit of ttm_resource_manager.usage which was
missing before.
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Christian König <christian.koenig@amd.com>
Cc: Anshuman Gupta <anshuman.gupta@intel.com>
Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
---
include/drm/ttm/ttm_resource.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/drm/ttm/ttm_resource.h b/include/drm/ttm/ttm_resource.h
index 78a226eba953..32d6b9c91c40 100644
--- a/include/drm/ttm/ttm_resource.h
+++ b/include/drm/ttm/ttm_resource.h
@@ -145,6 +145,7 @@ struct ttm_resource_manager_func {
* @move_lock: lock for move fence
* @move: The fence of the last pipelined move operation.
* @lru: The lru list for this memory type.
+ * @usage: How much of the resources are used, in bytes.
*
* This structure is used to identify and manage memory types for a device.
*/
@@ -170,8 +171,7 @@ struct ttm_resource_manager {
struct list_head lru[TTM_MAX_BO_PRIORITY];
/**
- * @usage: How much of the resources are used, protected by the
- * bdev->lru_lock.
+ * Protected by the bdev->lru_lock.
*/
uint64_t usage;
};
--
2.39.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] drm/ttm: Doc the unit of ttm_resource_manager.usage
2023-05-09 14:03 [PATCH] drm/ttm: Doc the unit of ttm_resource_manager.usage Nirmoy Das
@ 2023-05-10 9:45 ` Karolina Stolarek
0 siblings, 0 replies; 2+ messages in thread
From: Karolina Stolarek @ 2023-05-10 9:45 UTC (permalink / raw)
To: Nirmoy Das
Cc: Thomas Hellström, Christian König, dri-devel, Anshuman Gupta
Hi Nirmoy,
On 9.05.2023 16:03, Nirmoy Das wrote:
> Document the unit of ttm_resource_manager.usage which was
> missing before.
>
> Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
> Cc: Christian König <christian.koenig@amd.com>
> Cc: Anshuman Gupta <anshuman.gupta@intel.com>
>
> Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
> ---
> include/drm/ttm/ttm_resource.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/include/drm/ttm/ttm_resource.h b/include/drm/ttm/ttm_resource.h
> index 78a226eba953..32d6b9c91c40 100644
> --- a/include/drm/ttm/ttm_resource.h
> +++ b/include/drm/ttm/ttm_resource.h
> @@ -145,6 +145,7 @@ struct ttm_resource_manager_func {
> * @move_lock: lock for move fence
> * @move: The fence of the last pipelined move operation.
> * @lru: The lru list for this memory type.
> + * @usage: How much of the resources are used, in bytes.
That's a very helpful addition, thanks for the patch:
Reviewed-by: Karolina Stolarek <karolina.stolarek@intel.com>
> *
> * This structure is used to identify and manage memory types for a device.
> */
> @@ -170,8 +171,7 @@ struct ttm_resource_manager {
> struct list_head lru[TTM_MAX_BO_PRIORITY];
>
> /**
> - * @usage: How much of the resources are used, protected by the
> - * bdev->lru_lock.
> + * Protected by the bdev->lru_lock.
> */
> uint64_t usage;
> };
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-05-10 9:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-09 14:03 [PATCH] drm/ttm: Doc the unit of ttm_resource_manager.usage Nirmoy Das
2023-05-10 9:45 ` Karolina Stolarek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).