]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm: make drm-active- stats optional
authorYunxiang Li <Yunxiang.Li@amd.com>
Thu, 19 Dec 2024 15:14:08 +0000 (10:14 -0500)
committerChristian König <christian.koenig@amd.com>
Thu, 19 Dec 2024 15:56:17 +0000 (16:56 +0100)
commitbebf2ebd70f210a6c8fe5f668dadefb083014217
treeb0aea6af8ddd47e34de7d71c69aa0f06b9e44ae9
parentfd265d9e0c3358e6b9fe244d8f5d2824fda1c0dc
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c
drivers/gpu/drm/drm_file.c
drivers/gpu/drm/i915/i915_drm_client.c
drivers/gpu/drm/xe/xe_drm_client.c
include/drm/drm_gem.h