drm/xe/sa: Allow making suballocations using custom gfp flags
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Fri, 20 Dec 2024 19:41:58 +0000 (20:41 +0100)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Sat, 18 Jan 2025 23:11:59 +0000 (00:11 +0100)
commit0e1871f61e71d7611196b04d1b133f18fef666dd
treeeae1bc5228a90cd44ef91109da1e90680be6025e
parent7e937cdf18164ea276ce0f4bbc5755e0031280e0
drm/xe/sa: Allow making suballocations using custom gfp flags

Actual xe_sa_manager implementation uses hardcoded GFP_KERNEL flag
during creation of suballocations but in upcoming patch we want to
reuse the xe_sa_manager in places where GFP_KERNEL is not allowed.
Add another variant of the xe_sa_bo_new() function that accepts
arbitrary gfp flags.

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-6-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_sa.c
drivers/gpu/drm/xe/xe_sa.h