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/i915: 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/
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.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
905a176a ba1a58d5

+1 -1
+1 -1
drivers/gpu/drm/i915/i915_drm_client.c
··· 53 53 obj->mm.region->id : INTEL_REGION_SMEM; 54 54 const u64 sz = obj->base.size; 55 55 56 - if (obj->base.handle_count > 1) 56 + if (drm_gem_object_is_shared_for_memory_stats(&obj->base)) 57 57 stats[id].shared += sz; 58 58 else 59 59 stats[id].private += sz;