]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/xe/sa: Shadow buffer support in the sub-allocator pool
authorSatyanarayana K V P <satyanarayana.k.v.p@intel.com>
Tue, 18 Nov 2025 12:07:44 +0000 (12:07 +0000)
committerMatthew Brost <matthew.brost@intel.com>
Wed, 19 Nov 2025 05:45:06 +0000 (21:45 -0800)
commit1f2cf5295cdba71818288c9e495b4ef5097565ed
treedf0a763ccc26546a89187572c751ea117b0a643f
parentc34a14bce7090862ebe5a64abe8d85df75e62737
drm/xe/sa: Shadow buffer support in the sub-allocator pool

The existing sub-allocator is limited to managing a single buffer object.
This enhancement introduces shadow buffer functionality to support
scenarios requiring dual buffer management.

The changes include added shadow buffer object creation capability,
Management for both primary and shadow buffers, and appropriate locking
mechanisms for thread-safe operations.

This enables more flexible buffer allocation strategies in scenarios where
shadow buffering is required.

Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Suggested-by: Matthew Brost <matthew.brost@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patch.msgid.link/20251118120745.3460172-2-satyanarayana.k.v.p@intel.com
drivers/gpu/drm/xe/xe_guc_buf.c
drivers/gpu/drm/xe/xe_sa.c
drivers/gpu/drm/xe/xe_sa.h
drivers/gpu/drm/xe/xe_sa_types.h
drivers/gpu/drm/xe/xe_sriov_vf_ccs.c