drm/xe: Allow the caller to pass guc_buf_cache size
authorMichał Winiarski <michal.winiarski@intel.com>
Wed, 12 Nov 2025 13:22:07 +0000 (14:22 +0100)
committerMichał Winiarski <michal.winiarski@intel.com>
Thu, 13 Nov 2025 10:48:19 +0000 (11:48 +0100)
commitdca2701a6277399f9d255f09b4c34d9a7171c09b
tree593fb7ebff7ea0ebe3f672ca79e2363b0b0088d7
parent4f4bdbda720c00ee5b7ef22cd0bfdb36e6aee1a3
drm/xe: Allow the caller to pass guc_buf_cache size

An upcoming change will use GuC buffer cache as a place where GuC
migration data will be stored, and the memory requirement for that is
larger than indirect data.
Allow the caller to pass the size based on the intended usecase.

Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://patch.msgid.link/20251112132220.516975-12-michal.winiarski@intel.com
Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
drivers/gpu/drm/xe/xe_guc_buf.c
drivers/gpu/drm/xe/xe_guc_buf.h