]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe/sa: Allow creating suballocator with custom guard size
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Fri, 20 Dec 2024 19:41:59 +0000 (20:41 +0100)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Sat, 18 Jan 2025 23:12:00 +0000 (00:12 +0100)
commitae8b507fb8bbea2aa30783184d5728b14ce40c8f
tree6b3eb96995d5fa2ecdae3afb5b66fcb2dca34b92
parent0e1871f61e71d7611196b04d1b133f18fef666dd
drm/xe/sa: Allow creating suballocator with custom guard size

Actual xe_sa_manager implementation uses hardcoded 4K to exclude
it from making suballocations but in upcoming patch we want to
reuse the xe_sa_manager where such 4K guard is not needed. Add
another variant of the xe_sa_bo_manager_init() function that
accepts arbitrary guard size.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241220194205.995-7-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_sa.c
drivers/gpu/drm/xe/xe_sa.h