diff options
| author | Yunxiang Li <Yunxiang.Li@amd.com> | 2024-12-19 10:14:08 -0500 |
|---|---|---|
| committer | Christian König <christian.koenig@amd.com> | 2024-12-19 16:56:17 +0100 |
| commit | bebf2ebd70f210a6c8fe5f668dadefb083014217 (patch) | |
| tree | b0aea6af8ddd47e34de7d71c69aa0f06b9e44ae9 /drivers/gpu/drm/xe | |
| parent | fd265d9e0c3358e6b9fe244d8f5d2824fda1c0dc (diff) | |
| download | linux-next-bebf2ebd70f210a6c8fe5f668dadefb083014217.tar.gz linux-next-bebf2ebd70f210a6c8fe5f668dadefb083014217.zip | |
drm: make drm-active- stats optional
When memory stats is generated fresh everytime by going though all the
BOs, their active information is quite easy to get. But if the stats are
tracked with BO's state this becomes harder since the job scheduling
part doesn't really deal with individual buffers.
Make drm-active- optional to enable amdgpu to switch to the second
method.
Signed-off-by: Yunxiang Li <Yunxiang.Li@amd.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241219151411.1150-3-Yunxiang.Li@amd.com
Signed-off-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'drivers/gpu/drm/xe')
| -rw-r--r-- | drivers/gpu/drm/xe/xe_drm_client.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_drm_client.c b/drivers/gpu/drm/xe/xe_drm_client.c index 22f0f1a6dfd5..1436d8f79e70 100644 --- a/drivers/gpu/drm/xe/xe_drm_client.c +++ b/drivers/gpu/drm/xe/xe_drm_client.c @@ -261,6 +261,7 @@ static void show_meminfo(struct drm_printer *p, struct drm_file *file) if (man) { drm_print_memory_stats(p, &stats[mem_type], + DRM_GEM_OBJECT_ACTIVE | DRM_GEM_OBJECT_RESIDENT | (mem_type != XE_PL_SYSTEM ? 0 : DRM_GEM_OBJECT_PURGEABLE), |
