Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/xe: Update shared stats to use the new gem helper

Switch to using the new gem shared memory stats helper
rather than hand rolling it.

Link: https://lore.kernel.org/all/20231207180225.439482-1-alexander.deucher@amd.com/
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>

authored by

Alex Deucher and committed by
Christian König
61e738d8 905a176a

+1 -1
+1 -1
drivers/gpu/drm/xe/xe_drm_client.c
··· 113 113 else 114 114 mem_type = XE_PL_TT; 115 115 116 - if (bo->ttm.base.handle_count > 1) 116 + if (drm_gem_object_is_shared_for_memory_stats(&bo->ttm.base)) 117 117 stats[mem_type].shared += sz; 118 118 else 119 119 stats[mem_type].private += sz;