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
 
        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;
 
        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);