drm/xe/guc: Unblock GuC buffer cache for all modes

Today we were using GuC buffer cache only in the PF mode, but
shortly we will want to use it also in native and VF mode.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Link: https://lore.kernel.org/r/20250512220018.172-2-michal.wajdeczko@intel.com
This commit is contained in:
Michal Wajdeczko 2025-05-13 00:00:17 +02:00
parent 5aee6e33e1
commit b86babc9d9
2 changed files with 4 additions and 4 deletions

View File

@ -710,6 +710,10 @@ static int vf_guc_init_post_hwconfig(struct xe_guc *guc)
if (err)
return err;
err = xe_guc_buf_cache_init(&guc->buf);
if (err)
return err;
/* XXX xe_guc_db_mgr_init not needed for now */
return 0;

View File

@ -37,10 +37,6 @@ int xe_guc_buf_cache_init(struct xe_guc_buf_cache *cache)
struct xe_gt *gt = cache_to_gt(cache);
struct xe_sa_manager *sam;
/* XXX: currently it's useful only for the PF actions */
if (!IS_SRIOV_PF(gt_to_xe(gt)))
return 0;
sam = __xe_sa_bo_manager_init(gt_to_tile(gt), SZ_8K, 0, sizeof(u32));
if (IS_ERR(sam))
return PTR_ERR(sam);