drm: update drm_show_memory_stats() for dma-bufs
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 12 Feb 2024 21:04:25 +0000 (16:04 -0500)
committerChristian König <christian.koenig@amd.com>
Fri, 16 Feb 2024 11:52:50 +0000 (12:52 +0100)
commitd50ea100ea7e9fea3ef79ae431672937b71b6466
treefcf8b52ee80d4078b7ae488b01e353b43de369d2
parentb31f5eba32ae8cc28e7cfa5a55ec8670d8c718e2
drm: update drm_show_memory_stats() for dma-bufs

Show buffers as shared if they are shared via dma-buf as well
(e.g., shared with v4l or some other subsystem).

v2: switch to gem helper

Link: https://lore.kernel.org/all/20231207180225.439482-1-alexander.deucher@amd.com/
Reviewed-by: Rob Clark <robdclark@gmail.com> (v1)
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.keonig@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/drm_file.c